/* Premium Design System for Forever Living Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;600;800&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #ffcc00; /* Official Vivid Yellow */
    --primary-dark: #e6b800;
    --secondary: #333333;
    --accent: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Urbanist', sans-serif;
    background: #ffffff;
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* Sections */
section {
    padding: 80px 0;
}

/* Hero Section with Multi-layer Wave */
.hero {
    height: 650px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
}

.hero-wave-container svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
}

.hero-content {
    max-width: 550px;
    z-index: 25;
}

.hero-content h1 {
    color: var(--white);
    line-height: 0.95;
    margin-bottom: 2.5rem;
}

.hero-content h1 .title-light {
    font-size: 3rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-content h1 .title-bold {
    font-size: 5.5rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    letter-spacing: -2px;
}

.hero-content p {
    color: var(--white);
    font-size: 1rem;
    max-width: 440px;
    line-height: 1.5;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Features Row */
.features-row {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    background: var(--white);
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.feature-text h4 {
    font-size: 1rem;
    margin: 0;
}

.feature-text p {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
}

.btn-primary:hover {
    background: var(--accent);
    transform: scale(1.05);
}

/* Products Grid */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary);
}

/* Category Grid - Side by Side */
.product-grid {
    display: flex;
    flex-flow: row;
    justify-content: center;
    gap: 30px;
    padding: 60px 0;
    list-style: none;
}

.category-card {
    flex: 0 0 160px;
    text-align: center;
    transition: var(--transition);
}

.category-card img {
    width: 100%;
    height: 100px; /* Fixed height for harmony */
    object-fit: contain; /* Proportional scaling */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: translateY(-10px);
}

.category-card h3 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--secondary);
}

/* Info Cards (Bottom) */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: var(--white);
    text-decoration: none;
}

.info-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}

.info-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

.btn-yellow {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
    background: #ffffff;
}

.product-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.item-card {
    background: var(--white);
    border-radius: 24px;
    padding: 0; /* Remove padding for full-bleed image */
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid #f2f2f2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* For border radius on image */
}

.item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.item-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
}

.item-card h3 {
    font-size: 1.15rem;
    margin: 25px 20px 8px;
    color: var(--secondary);
    font-weight: 700;
}

.item-card .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 25px;
    display: block;
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 25px;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary); /* Dark text on yellow looks more premium than white */
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.3);
    filter: brightness(1.05);
}

.btn-ask {
    background: #fdfdfd;
    color: #888;
    padding: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #eee;
    border-radius: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-ask:hover {
    background: #fff;
    border-color: #ddd;
    color: var(--secondary);
}

/* Product Images Luxury Showcase */
.product-img-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Keep it square to match product images */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fdfdfd;
    position: relative;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.item-card:hover .product-img-container img {
    transform: scale(1.08);
}

.img-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1c40f 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 20px;
    text-align: center;
    text-transform: uppercase;
}

.img-fallback-modal {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f1c40f 0%, #2980b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 30px;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.detail-info ul li {
    font-size: 0.95rem;
    color: #555;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Cookie Banner Refined */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: #1a1a1a;
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 1001;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.cookie-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 1rem;
    white-space: nowrap;
}

/* WhatsApp CTA */
.cta-whatsapp {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    border-radius: 40px;
    margin: 40px 0;
}

.cta-whatsapp h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
    /* Global Container Adjustments */
    .container {
        padding: 0 1.2rem !important;
    }

    /* Header & Navigation */
    header .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.6rem 1rem !important;
    }
    
    header nav {
        display: none !important;
    }
    
    header div[style*="gap: 1rem"] {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: auto !important;
    }

    header div[style*="gap: 12px"] {
        gap: 6px !important;
    }

    .logo {
        font-size: 1.1rem !important;
    }
    
    header img {
        height: 32px !important;
    }

    #btn-login-main {
        font-size: 0.7rem !important;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    header .btn-primary {
        padding: 0.5rem 1rem !important;
        font-size: 0.75rem !important;
    }

    /* Hero Section */
    .hero {
        height: auto !important;
        padding: 100px 0 60px !important;
        text-align: center !important;
    }
    
    .hero .container {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .hero-content {
        max-width: 100% !important;
    }
    
    .hero-content h1 {
        margin-bottom: 1.5rem !important;
    }
    
    .hero-content h1 .title-light {
        font-size: 2.2rem !important;
    }
    
    .hero-content h1 .title-bold {
        font-size: 3.5rem !important;
    }
    
    .hero-image {
        padding-right: 0 !important;
        justify-content: center !important;
        width: 100%;
    }
    
    .hero-image img {
        max-height: 380px !important;
        margin-bottom: 0 !important;
    }
    
    .hero-wave-container svg {
        height: 60px !important;
    }

    /* Features Row */
    .features-row {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px 0 !important;
        align-items: stretch !important;
    }
    
    .feature-item {
        flex-direction: row !important;
        text-align: left !important;
        align-items: center !important;
        gap: 15px !important;
        background: #fdfdfd !important;
        padding: 12px 16px !important;
        border-radius: 16px !important;
        border: 1px solid #f0f0f0 !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    }
    
    .feature-item svg {
        flex-shrink: 0 !important;
        width: 24px !important;
        height: 24px !important;
        color: var(--primary) !important;
    }
    
    .feature-text {
        text-align: left !important;
    }
    
    .feature-text h4 {
        font-size: 1rem !important;
        font-weight: 700 !important;
        color: var(--secondary) !important;
        margin-bottom: 2px !important;
    }
    
    .feature-text p {
        font-size: 0.8rem !important;
        color: #666 !important;
    }

    /* Category Grid */
    .product-grid {
        display: flex !important;
        flex-flow: row nowrap !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        padding: 20px 10px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .product-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .category-card {
        flex: 0 0 85px !important;
        max-width: 85px !important;
        scroll-snap-align: start !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        opacity: 0.6 !important;
        transition: all 0.3s ease !important;
    }

    .category-card[style*="opacity: 1"] {
        opacity: 1 !important;
    }
    
    .category-card img {
        width: 64px !important;
        height: 64px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        border: 2px solid #eee !important;
        padding: 3px !important;
        background: white !important;
        margin-bottom: 8px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    }

    .category-card[style*="opacity: 1"] img {
        border-color: var(--primary) !important;
        box-shadow: 0 0 12px rgba(255, 204, 0, 0.4) !important;
        transform: scale(1.05) !important;
    }
    
    .category-card h3 {
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: var(--secondary) !important;
        white-space: nowrap !important;
    }

    /* Product Showcase */
    .product-showcase {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 20px !important;
    }

    /* Bio Section */
    .bio-section {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 50px 1.2rem !important;
        text-align: center !important;
    }
    
    .bio-section > div {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .bio-section > div:first-child > div {
        width: 220px !important;
        height: 220px !important;
        margin: 0 auto;
        border: 4px solid var(--primary) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
    
    .bio-section h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin: 1.2rem 0 !important;
    }
    
    .bio-section p {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .bio-section .btn-yellow {
        margin-top: 1.5rem !important;
        padding: 0.8rem 2.5rem !important;
        width: 80% !important;
        max-width: 250px;
    }

    /* Info Cards */
    .info-cards {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .info-card {
        height: 200px !important;
        padding: 1.5rem !important;
    }
    
    .info-card h3 {
        font-size: 1.3rem !important;
    }

    /* Why Forever Section */
    #sobre {
        border-radius: 40px 40px 0 0 !important;
        padding: 60px 0 !important;
    }
    
    #sobre h2 {
        font-size: 2.2rem !important;
        text-align: center;
    }
    
    #sobre .container {
        gap: 2.5rem !important;
    }
    
    #sobre div[style*="flex: 1"] {
        text-align: center;
    }

    /* WhatsApp CTA */
    .cta-whatsapp {
        padding: 60px 20px !important;
        border-radius: 24px !important;
        margin: 20px 0 !important;
    }
    
    .cta-whatsapp h2 {
        font-size: 2rem !important;
    }
    
    .cta-whatsapp a.btn-primary {
        font-size: 1rem !important;
        padding: 1rem 1.5rem !important;
    }

    /* Floating elements */
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 99999 !important;
    }
    
    .whatsapp-float svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    #cart-float-btn {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 80px !important;
        z-index: 99999 !important;
    }
    
    #cart-float-btn span {
        font-size: 1.2rem !important;
    }

    /* Detail Modal Mobile */
    .modal-content {
        width: 92% !important;
        border-radius: 24px !important;
        max-height: 88vh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    
    .detail-image {
        min-height: auto !important;
        height: 240px !important;
        flex: none !important;
    }
    
    .detail-image img {
        padding: 15px !important;
    }
    
    .detail-info {
        flex: none !important;
        height: auto !important;
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    
    .detail-info > div:first-child {
        padding: 20px 20px 10px !important;
        overflow-y: visible !important;
        height: auto !important;
    }
    
    .detail-info > div:last-child {
        padding: 10px 20px 20px !important;
        position: relative !important;
        background: white !important;
        border-top: 1px solid #f0f0f0 !important;
    }
    
    #modal-product-name {
        font-size: 1.5rem !important;
        margin-top: 5px !important;
        margin-bottom: 12px !important;
    }
    
    #modal-product-price {
        font-size: 1.6rem !important;
    }

    /* Side Cart Drawer */
    #side-cart {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Recruitment-specific mobile styles */
    .recruitment-hero h1 {
        font-size: 2.4rem !important;
    }
    
    .recruitment-hero p {
        font-size: 1rem !important;
    }
    
    .benefit-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    .benefit-item h3 {
        text-align: center !important;
    }
    
    .benefit-item p {
        text-align: center !important;
    }
    
    .container div[style*="grid-template-columns: 1fr 1fr"],
    .container div[style*="grid-template-columns: 1fr 1fr"] + div {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .form-card {
        margin-top: -50px !important;
        padding: 25px !important;
    }
}
