/* Modern color scheme */

/* New chocolate & turmeric color scheme */
:root {
    --primary: #D4A574;            /* Light Turmeric Yellow - main brand color */
    --primary-dark: #B8935A;       /* Darker turmeric for hover states */
    --secondary: #F4E4BC;          /* Very light turmeric for backgrounds */
    --accent: #E6B85C;             /* Medium turmeric for accents */
    --chocolate: #8B6F47;          /* Light Chocolate for header */
    --chocolate-dark: #6B5435;     /* Darker chocolate for header hover */
    --light: #FDF9F0;              /* Warm off-white background */
    --dark: #4A3728;               /* Dark brown for text */
    --text: #5D4037;               /* Warm brown text color */
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Base button styles */
button, .cta {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    /*transition: all 0.3s极 */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

button:hover, .cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Input styles */
input, textarea, select {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

/* Section styles */
section {
    padding: 5rem 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
}

/* Hero Carousel */
.hero {
    /*
    height: calc(100vh - 60px);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    */
    height: calc(100vh - 60px);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    width: 100vw; /* Add this line for full viewport width */
    margin-left: calc(-50vw + 50%); /* Add this line to break out of container */
    left: 0; /* Reset any left positioning */
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 600px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 2rem;
}

.carousel-nav button {
    background: rgba(255,255,255,0.3);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-nav button:hover {
    background: rgba(255,255,255,0.5);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.carousel-indicators span.active {
    background: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    /*background-color: rgba(76, 175, 80, 0.95); */
    background-color: var(--chocolate); 
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header p {
    margin: 0;
    font-size: 1rem;
}

#auth-section {
    display: flex;
    gap: 1rem;
}

/* Adjust main content to account for fixed header */
main {
    /* Removed top padding since navbar is now primary header */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

/* Product Grid */
.products {
    padding: 4rem 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

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

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.product-card h3 {
    margin-top: 0;
    color: var(--dark);
}

.product-card .ingredients {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.product-card .price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.4rem;
    margin: 1rem 0;
}

.product-card .cta {
    width: 100%;
}

/* Form Group with Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1.2rem 1rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 16px; /* Prevent zoom on mobile */
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 16px; /* Prevent zoom on mobile */
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not(:placeholder-shown) + label {
    top: 0.4rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary);
}

/* Larger touch targets */
button, .cta, .nav-links a {
    min-width: 44px;
    min-height: 44px;
}

/* Wave Dividers */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.wave-divider .shape-fill {
    fill: var(--light);
}

/* Apply wave between sections */
.hero + section {
    position: relative;
}

.hero + section::before {
    content: '';
    position: absolute;
    top: -49px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f8f9fa'%3E%3C/path%3E%3C/svg%3E");
}

.ingredients, .health-benefits {
    background: rgba(255,255,255,0.9);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.price {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: bold;
    margin: 1rem 0;
}

.order-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-tracking {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-contact {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary);
    color: white;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
}
/* Navigation Styles */
.navbar {
    background-color: var(--chocolate);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body {
    padding-top: 60px;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Hamburger menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.4s;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover {
    background-color: var(--chocolate-dark);
}

.nav-links a.active {
    background-color: var(--accent);
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--chocolate-dark);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: 0.5s;
        gap: 30px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}