:root {
    --primary-bg: #ffffff;
    --accent-green: #562100;
    --accent-yellow: #ffce00;
    --text-dark: #333333;
    --font-heading: 'Prompt', sans-serif;
    --font-body: 'Kanit', sans-serif;
}

html {
    font-size: 100%;
    /* Reset to normal zoom */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image: radial-gradient(rgba(255, 206, 0, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    /* Scaled down dots */
}

.container {
    max-width: 1200px;
    /* Reset to normal width */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--accent-yellow);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 40px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: #444;
    text-decoration: none;
    font-weight: 600;
}

.login-btn {
    text-decoration: none;
    color: var(--accent-green);
    font-weight: bold;
    border: 2px solid var(--accent-green);
    padding: 8px 18px;
    border-radius: 30px;
}

.mobile-menu-btn {
    display: none;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.3);
    padding: 4px;
    border-radius: 50px;
    margin-left: 20px;
}

.lang-switcher button {
    background: none;
    border: none;
    padding: 5px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.9rem;
    color: #562100;
    transition: all 0.3s ease;
}

.lang-switcher button.active {
    background: var(--accent-green);
    color: white;
}

.lang-switcher button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
    background-color: #fff;
    background-image: radial-gradient(rgba(255, 206, 0, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-logo-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    margin-bottom: 50px;
}

.hero-main-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.hero-image-side {
    flex: 1;
    text-align: right;
    animation: float 6s ease-in-out infinite;
}

.hero-text-side {
    flex: 1;
    text-align: left;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.product-image {
    max-width: 90%;
    height: auto;
}

.product-title {
    font-size: 2.8rem;
    color: var(--accent-green);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.product-subtitle {
    font-size: 1.4rem;
    color: #666;
    font-weight: 500;
}

.benefit-list {
    list-style: none;
    margin-top: 30px;
    padding-left: 0;
}

.benefit-list li {
    margin-bottom: 18px;
    font-size: 1.3rem;
    color: #444;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.benefit-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background: var(--accent-yellow);
    color: #562100;
    font-weight: 900;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 206, 0, 0.3);
}

.benefit-list li:hover {
    transform: translateX(10px);
    color: #000;
}

/* Brand Story */
.brand-story-section {
    padding: 100px 0;
    text-align: center;
    background-color: #fff;
    background-image: radial-gradient(rgba(255, 206, 0, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.story-content h3 {
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}

.brand-motto {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-top: 50px;
    margin-bottom: 60px;
}

.promo-centered {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
    justify-items: center;
}

.promo-banner {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-banner:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background-image: radial-gradient(rgba(255, 206, 0, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--accent-green);
    margin-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1.5px solid #eee;
    /* Color assigned via JS */
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: visible;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.product-img-box {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 15px;
    transition: background 0.4s ease;
    overflow: visible;
    /* Ensure nothing clips the 3D pop-out */
}

/* Light Glow Effect on Hover */
.product-card:hover .product-img-box {
    background: radial-gradient(circle, rgba(255, 206, 0, 0.25) 0%, transparent 70%);
}

.product-img-box img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3D Pop-Out Tilt Hover Effect */
.product-card:hover .hover-tilt {
    transform: translateY(-20px) rotate(-8deg) scale(1.35);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    z-index: 100;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Badge Lift Effect on Hover */
.product-card:hover .badge {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.old-price-strike {
    text-decoration: line-through;
    color: #bbb;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.sale-badge-red {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff0000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.85rem;
    z-index: 5;
    transform: rotate(5deg);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

.price-yellow {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-yellow);
    line-height: 1;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Price Pop Effect on Hover */
.product-card:hover .price-yellow {
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 5px 15px rgba(255, 206, 0, 0.4);
}

.size-text {
    font-weight: 800;
    color: #333;
    font-size: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-right: 10px;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.size {
    color: #888;
    font-weight: bold;
}

.btn-primary {
    background: var(--accent-yellow);
    color: #000;
    text-decoration: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.4rem;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-pulse-big {
    animation: pulseBig 2s infinite;
}

@keyframes pulseBig {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 206, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 206, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 206, 0, 0);
    }
}

.cta-container {
    text-align: center;
    margin-top: 50px;
}

/* Social & Blog */
.social-section {
    text-align: center;
    padding: 40px 0 80px 0;
    /* Reduced top padding from 80px to 40px */
    background-image: radial-gradient(rgba(255, 206, 0, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.social-title {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 30px;
    /* Reduced margin from 50px to 30px */
    font-weight: 800;
}

.video-container {
    max-width: 350px;
    /* Adjusted for vertical TikTok height */
    margin: 60px auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #000;
    line-height: 0;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 9/16;
    border: none;
}

.social-links-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-icon {
    padding: 15px 50px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.btn-social-line {
    background: #06C755;
}

.btn-ig {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.btn-tiktok {
    background: #000;
}

.blog-preview {
    padding: 80px 0;
    background-image: radial-gradient(rgba(255, 206, 0, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    /* Increased slightly for better spacing */
    text-align: left;
    align-items: flex-start;
}

.blog-content h4 {
    color: var(--accent-green);
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.blog-content p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
    width: 100%;
}

.read-more {
    color: #999;
    /* Changed from yellow to gray so the 'yellow' on hover is more meaningful, or vice versa? */
    /* User said 'from gray to yellow', so I should keep default gray and make hover yellow */
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .read-more {
    gap: 15px;
    color: var(--accent-yellow);
    /* Hover turns to yellow */
    transform: translateX(5px);
}

/* Footer */
.main-footer {
    background: var(--accent-yellow);
    color: #333;
    padding: 60px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

@media (max-width: 992px) {
    .hero-main-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-image-side,
    .hero-text-side {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .product-title {
        font-size: 2.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 500px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}