/* ==================== CSS Variables ==================== */
:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f5f0;
    --bg-accent: #fff9f0;
    --text-primary: #2c2416;
    --text-secondary: #5c4a3a;
    --text-muted: #8b7355;
    --accent-primary: #d4a574;
    --accent-secondary: #b8845f;
    --accent-hover: #a67550;
    --border-color: #e8ddd0;
    --shadow-sm: rgba(44, 36, 22, 0.05);
    --shadow-md: rgba(44, 36, 22, 0.1);
    --shadow-lg: rgba(44, 36, 22, 0.15);
    --card-bg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #1a1612;
    --bg-secondary: #2a2318;
    --bg-accent: #332b1f;
    --text-primary: #f5ede3;
    --text-secondary: #d4c4b0;
    --text-muted: #a89478;
    --accent-primary: #d4a574;
    --accent-secondary: #b8845f;
    --accent-hover: #e5b685;
    --border-color: #3d3428;
    --shadow-sm: rgba(0, 0, 0, 0.2);
    --shadow-md: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.4);
    --card-bg: #2a2318;
    --navbar-bg: rgba(26, 22, 18, 0.95);
}

/* ==================== Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-sm);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.theme-toggle {
    background: var(--bg-accent);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .sun-icon {
    display: inline;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon,
:root:not([data-theme]) .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon,
:root:not([data-theme]) .moon-icon {
    display: inline;
}

/* ==================== Hero Section ==================== */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tagline {
    font-size: 1.3rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-primary);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-md);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-lg);
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-lg);
}

/* ==================== About Section ==================== */
.about {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 8px 30px var(--shadow-md);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-accent);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-md);
    border-color: var(--accent-primary);
}

.feature .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ==================== Products Section ==================== */
.products {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px var(--shadow-md);
    border-color: var(--accent-primary);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px var(--shadow-md);
}

.badge.spicy {
    background: #e74c3c;
}

.badge.seasonal {
    background: #9b59b6;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== Contact Section ==================== */
.contact {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    padding: 1.5rem;
    background: var(--bg-accent);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 5px 20px var(--shadow-md);
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0.3rem 0;
}

.qr-code {
    text-align: center;
    padding: 2rem;
    background: var(--bg-accent);
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.qr-code h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.qr-code img {
    max-width: 200px;
    margin: 0 auto 1rem;
    border-radius: 10px;
}

.qr-code p {
    color: var(--text-muted);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    text-align: center;
}

.thank-you {
    margin-bottom: 1.5rem;
}

.thank-you img {
    max-width: 200px;
    margin: 0 auto;
}

.footer p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .logo span {
        font-size: 1rem;
    }

    .theme-toggle {
        padding: 0.4rem 0.8rem;
    }
}
