:root {
    --primary: #8d6e63;
    --primary-light: #be9c91;
    --primary-dark: #5f4339;
    --accent: #d4a373;
    --bg-light: #fefae0;
    --text-main: #2c1e1a;
    --text-muted: #6d4c41;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1400px;
}

[data-theme="dark"] {
    --bg-light: #000000;
    --text-main: #ffffff !important;
    --text-muted: #f0f0f0 !important;
    --white: #121212;
    --glass: rgba(0, 0, 0, 0.95);
    --shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
    --primary-dark: #e6b38c;
    --primary: #d4a373;
}

[data-theme="dark"] body {
    background-color: #000000;
    color: #ffffff;
}

[data-theme="dark"] section,
[data-theme="dark"] header,
[data-theme="dark"] footer,
[data-theme="dark"] .products,
[data-theme="dark"] .testimonials {
    background-color: #000000 !important;
}

[data-theme="dark"] .about {
    background-color: transparent !important;
}

[data-theme="dark"] .testimonial-card {
    background-color: #121212 !important;
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] p, 
[data-theme="dark"] span:not(.status), 
[data-theme="dark"] a,
[data-theme="dark"] li {
    color: #ffffff !important;
}

[data-theme="dark"] .product-card {
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .hero::before {
    background: rgba(0,0,0,0.7); /* Darken hero overlay */
}

[data-theme="dark"] .about-text h2::after {
    background: var(--accent);
}

[data-theme="dark"] .filter-btn {
    border-color: rgba(255,255,255,0.3);
    color: #ffffff;
}

[data-theme="dark"] .testimonial-card {
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    width: 95%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/sourdough.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 4rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.3);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 163, 115, 0.4);
    background: #c39462;
}

/* Products Section */
.products {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto 0;
}

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

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

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

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

.status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.available {
    background: rgba(76, 175, 80, 0.9);
    color: var(--white);
}

.status.sold-out {
    background: rgba(244, 67, 54, 0.9);
    color: var(--white);
}

.product-info {
    padding: 2rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    height: 3rem;
    overflow: hidden;
}

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

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

/* About Section */
.about {
    padding: 8rem 0;
    background: transparent;
}

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

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text h2::after {
    margin: 1rem 0 0;
}

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

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-dark);
}

.rounded-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 6rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-info .logo {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-links h3, .footer-hours h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-hours p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .shop-status {
        display: none !important;
    }
    .logo {
        font-size: 1.3rem;
    }
    nav {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background: var(--primary-dark);
        transition: var(--transition);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .about-text h2 {
        text-align: center;
        font-size: 2.2rem;
    }

    .about-text h2::after {
        margin: 1rem auto 0;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* Order Button */
.order-btn {
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.order-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.order-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    color: #888;
}

.order-btn.disabled:hover {
    transform: none;
}

/* Feature: Live Status */
.shop-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.open { background: #4caf50; box-shadow: 0 0 8px #4caf50; }
.status-dot.closed { background: #f44336; }

/* Feature: Product Filters */
.filters-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--text-main);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: var(--white);
}

/* Feature: Shopping Cart UI */
.cart-trigger {
    position: relative;
    cursor: pointer;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

#cart-count {
    background: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
}

#cart-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    border: 3px solid #000000 !important;
    box-shadow: 0 0 100px rgba(0,0,0,0.7);
    z-index: 2000;
    width: 95%;
    max-width: 450px;
    color: var(--text-main);
}

#cart-modal.active { display: block; }

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.remove-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-btn:hover { background: #cc0000; transform: scale(1.1); }

/* Feature: Testimonials Swiper Redesign */
.testimonials {
    padding: 8rem 0;
    background: var(--bg-light);
}

.testimonial-card {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--accent);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Feature: Interactive Map */
#map {
    height: 400px;
    width: 100%;
    border-radius: 20px;
    margin-top: 3rem;
}

/* Feature: Theme Switcher */
#theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Utility: Toast */
.toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--primary-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    animation: fadeInUp 0.3s ease;
    z-index: 3000;
}
