/* ==========================================================================
   1. VARIABLES & RESET (The Foundation)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    /* Premium Bakery Palette */
    --primary-dark: #2A1B18;    /* Deep Cocoa */
    --primary-main: #5D4037;    /* Rich Chocolate */
    --secondary: #E65100;       /* Vibrant Caramel */
    --secondary-light: #FF9800; /* Warm Gold */
    --accent: #FDE0D9;          /* Soft Peach/Cream */
    --bg-main: #FAFAFA;         /* Off-white */
    --surface: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    
    /* Effects & Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 24px rgba(93, 64, 55, 0.12);
    --shadow-hover: 0 15px 35px rgba(230, 81, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif; 
    color: var(--primary-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   2. KEYFRAME ANIMATIONS (Bringing it to life)
   ========================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animation Utility Classes */
.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; opacity: 0; }
.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }

/* ==========================================================================
   3. HEADER & NAVIGATION (Glassmorphism effect)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Important for mobile menu positioning */
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a i {
    color: var(--secondary);
}

/* Base Desktop Menu Styles */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.main-nav a:hover { color: var(--secondary); }
.main-nav a:hover::after { width: 100%; }

/* Hide mobile button on Desktop */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
}

/* ==========================================================================
   4. BREADCRUMBS (For better UX)
   ========================================================================== */
.breadcrumbs {
    padding: 15px 0;
    background: var(--surface);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li { display: inline-flex; align-items: center; }

.breadcrumbs a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.breadcrumbs a:hover { color: var(--secondary); }
.breadcrumbs i { color: var(--text-muted); font-size: 0.8rem; margin: 0 5px; }
.breadcrumbs .active { color: var(--primary-main); font-weight: 500; }

/* ==========================================================================
   5. BUTTONS (Interactive & Tactile)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    animation: pulseGlow 2s infinite;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px) scale(1.02);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
    animation: slideInRight 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ==========================================================================
   7. PRODUCT CARDS & GRID
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }
.section-title p { color: var(--text-muted); }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 30px 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--secondary);
    border-radius: var(--radius) var(--radius) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-card:hover::before { transform: scaleX(1); }

.product-icon {
    font-size: 3rem;
    color: var(--secondary-light);
    margin-bottom: 20px;
    transition: var(--transition);
}

.product-card:hover .product-icon { transform: scale(1.1) rotate(5deg); }

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-price {
    font-size: 1.5rem;
    color: var(--primary-main);
    font-weight: 700;
    margin: 15px 0;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 70px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-col i {
    color: var(--secondary);
    width: 25px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* ==========================================================================
   9. RESPONSIVE QUERIES (Mobile Fixes)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Show Mobile Menu Button */
    .mobile-menu-btn { 
        display: block; 
    }
    
/* Hide Default Nav & Format for Dropdown */
    .main-nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff; /* Solid white for maximum visibility */
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        border-top: 1px solid rgba(0,0,0,0.05);
        z-index: 1001;
    }
    
    /* The active class triggered by JS */
    .main-nav.active {
        display: block !important;
        animation: fadeUp 0.3s ease-out forwards;
    }

    /* Force the list to take up space and align correctly */
    .main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 0;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    /* Make the links large and explicitly dark */
    .main-nav a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-dark) !important; 
    }
    

    /* Fix Breadcrumbs so they don't hide */
    .breadcrumbs {
        padding: 12px 0;
        font-size: 0.85rem; 
    }
    .breadcrumbs ul {
        flex-wrap: wrap; 
        justify-content: center; 
    }

    /* Adjust Hero & Grid Layouts for smaller screens */
    .hero-section { padding: 60px 0; text-align: center; }
    .hero-content { margin: 0 auto; }
    .grid-container { grid-template-columns: 1fr; }
    .footer-grid { text-align: center; }
    .footer-col a:hover { padding-left: 0; }
}
