/* ==========================================================================
   GOLDEN CRUST BAKERY - Premium Artisan Bakery Template
   Design Identity: Warm, Rustic, Handcrafted, Inviting
   Colors: Rich Browns, Warm Cream, Wheat Gold, Burnt Sienna
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES - DESIGN TOKENS
   ========================================================================== */

:root {
    /* Primary - Rich Saddlebrown (Crust) */
    --color-primary-50: #fdf8f3;
    --color-primary-100: #f9efe3;
    --color-primary-200: #f2dcc4;
    --color-primary-300: #e8c49c;
    --color-primary-400: #dba66e;
    --color-primary-500: #c8894a;
    --color-primary-600: #8B4513;
    --color-primary-700: #723a10;
    --color-primary-800: #5c2f0d;
    --color-primary-900: #4a260a;

    /* Secondary - Wheat Gold */
    --color-secondary-50: #fefcf3;
    --color-secondary-100: #fdf8e3;
    --color-secondary-200: #faefc4;
    --color-secondary-300: #f5e19c;
    --color-secondary-400: #efd06e;
    --color-secondary-500: #D4A574;
    --color-secondary-600: #c49458;
    --color-secondary-700: #a67940;
    --color-secondary-800: #866030;
    --color-secondary-900: #6b4d26;

    /* Accent - Warm Cinnamon */
    --color-accent-50: #fef5f2;
    --color-accent-100: #fde8e1;
    --color-accent-200: #fcd5c8;
    --color-accent-300: #f9b9a3;
    --color-accent-400: #f49370;
    --color-accent-500: #C41E3A;
    --color-accent-600: #a51830;
    --color-accent-700: #891528;
    --color-accent-800: #711322;
    --color-accent-900: #5d111e;

    /* Cream - Background */
    --color-cream-50: #FFFEF9;
    --color-cream-100: #FDF5E6;
    --color-cream-200: #FAF0DC;
    --color-cream-300: #F5E6C8;
    --color-cream-400: #F0DDB4;
    --color-cream-500: #E8D4A0;

    /* Wheat - Warm Tones */
    --color-wheat-50: #FFFBF0;
    --color-wheat-100: #F5DEB3;
    --color-wheat-200: #EDD5A0;
    --color-wheat-300: #E5CC8D;
    --color-wheat-400: #D4B87A;
    --color-wheat-500: #C4A467;

    /* Neutral - Warm Stone */
    --color-neutral-50: #fafaf9;
    --color-neutral-100: #f5f5f4;
    --color-neutral-200: #e7e5e4;
    --color-neutral-300: #d6d3d1;
    --color-neutral-400: #a8a29e;
    --color-neutral-500: #78716c;
    --color-neutral-600: #57534e;
    --color-neutral-700: #44403c;
    --color-neutral-800: #292524;
    --color-neutral-900: #1c1917;

    /* Semantic Colors */
    --color-success: #16a34a;
    --color-success-light: #22c55e;
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-error: #dc2626;
    --color-error-light: #ef4444;
    --color-info: #0284c7;
    --color-info-light: #0ea5e9;

    /* Light Mode Semantic */
    --color-background: var(--color-cream-100);
    --color-surface: #ffffff;
    --color-surface-warm: var(--color-cream-50);
    --color-text-primary: var(--color-neutral-900);
    --color-text-secondary: var(--color-neutral-600);
    --color-text-tertiary: var(--color-neutral-500);
    --color-text-muted: var(--color-neutral-400);
    --color-border: var(--color-neutral-200);
    --color-border-light: var(--color-neutral-100);

    /* Typography - Font Families */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Dancing Script', 'Brush Script MT', cursive;

    /* Typography Scale */
    --text-hero: clamp(3rem, 8vw, 5.5rem);
    --text-display: clamp(2.5rem, 6vw, 4rem);
    --text-h1: clamp(2rem, 5vw, 3rem);
    --text-h2: clamp(1.75rem, 4vw, 2.5rem);
    --text-h3: clamp(1.25rem, 3vw, 1.75rem);
    --text-h4: clamp(1.125rem, 2vw, 1.25rem);
    --text-body: 1rem;
    --text-body-lg: 1.125rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Typography - Line Heights */
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;
    --leading-loose: 2;

    /* Typography - Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.1em;
    --tracking-widest: 0.15em;

    /* Spacing Scale */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-14: 3.5rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-28: 7rem;
    --space-32: 8rem;
    --space-40: 10rem;

    /* Border Radius */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Warm tinted */
    --shadow-sm: 0 1px 2px rgba(139, 69, 19, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(139, 69, 19, 0.08), 0 2px 4px -1px rgba(139, 69, 19, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(139, 69, 19, 0.1), 0 4px 6px -2px rgba(139, 69, 19, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(139, 69, 19, 0.1), 0 10px 10px -5px rgba(139, 69, 19, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(139, 69, 19, 0.2);
    --shadow-inner: inset 0 2px 4px rgba(139, 69, 19, 0.06);

    /* Special Shadows */
    --shadow-warm: 0 8px 30px rgba(139, 69, 19, 0.15);
    --shadow-glow: 0 0 40px rgba(212, 165, 116, 0.3);
    --shadow-card: 0 4px 20px rgba(139, 69, 19, 0.08);
    --shadow-product: 0 10px 40px rgba(139, 69, 19, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 700ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 500ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

.dark,
[data-theme="dark"] {
    --color-background: #0f0d0a;
    --color-surface: #1a1714;
    --color-surface-warm: #241f1a;
    --color-text-primary: #faf9f7;
    --color-text-secondary: #d4d0c8;
    --color-text-tertiary: #a8a29e;
    --color-text-muted: #78716c;
    --color-border: #3d3530;
    --color-border-light: #2d2722;

    /* Adjusted colors for dark */
    --color-cream-100: #1a1714;
    --color-cream-200: #241f1a;
    --color-wheat-100: #2d2520;

    /* Shadows for dark mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --shadow-warm: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(212, 165, 116, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-product: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.font-display {
    font-family: var(--font-display);
}

.font-script {
    font-family: var(--font-script);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p {
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-secondary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Script Text */
.text-script {
    font-family: var(--font-script);
    font-weight: 400;
}

/* ==========================================================================
   DECORATIVE BACKGROUNDS
   ========================================================================== */

/* Grain Texture Overlay */
.bg-grain {
    position: relative;
}

.bg-grain::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

/* Cross Pattern */
.bg-pattern-cross {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B4513' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.dark .bg-pattern-cross {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A574' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Wheat Decorative Pattern */
.bg-wheat-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23D4A574' fill-opacity='0.05' d='M40 0c2 8-2 16-2 16s4-8 6-8 6 8 4 16c-2 8-8 12-8 12s6-4 8-4 4 4 2 8-6 8-6 8 8 0 8 4-4 8-8 8-8-4-8-4 4 8 4 12-4 8-4 8'/%3E%3C/svg%3E");
}

/* Flour Dust Effect */
.bg-flour {
    position: relative;
}

.bg-flour::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
}

.dark .bg-flour::after {
    opacity: 0.05;
}

/* Warm Gradient Background */
.bg-warm-gradient {
    background: linear-gradient(
        135deg,
        var(--color-cream-100) 0%,
        var(--color-wheat-100) 50%,
        var(--color-cream-100) 100%
    );
}

/* ==========================================================================
   WHEAT DIVIDER
   ========================================================================== */

.wheat-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-8) 0;
}

.wheat-divider::before,
.wheat-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-secondary-500),
        transparent
    );
}

.wheat-divider svg {
    width: 32px;
    height: 32px;
    color: var(--color-secondary-500);
    flex-shrink: 0;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all var(--transition-smooth);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all var(--transition-smooth);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all var(--transition-smooth);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: rotate(-5deg) scale(0.95);
    transition: all var(--transition-smooth);
}

.reveal-rotate.active {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ==========================================================================
   CONTINUOUS ANIMATIONS
   ========================================================================== */

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Steam Rising Animation */
@keyframes steam {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-40px) scale(1.2);
        opacity: 0;
    }
}

.animate-steam {
    animation: steam 3s ease-out infinite;
}

.animate-steam-delayed {
    animation: steam 3s ease-out infinite;
    animation-delay: 1s;
}

/* Gentle Pulse */
@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

.animate-pulse-gentle {
    animation: pulse-gentle 3s ease-in-out infinite;
}

/* Rotate Slow */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Bake Timer */
@keyframes bake-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(196, 30, 58, 0.4);
    }
}

.animate-bake-glow {
    animation: bake-glow 2s ease-in-out infinite;
}

/* ==========================================================================
   HOVER EFFECTS
   ========================================================================== */

/* Lift Effect */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Scale Effect */
.hover-scale {
    transition: transform var(--transition-normal);
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Warm Glow */
.hover-glow {
    transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* Image Zoom */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img,
.hover-zoom .img-hover {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-zoom:hover img,
.hover-zoom:hover .img-hover,
.group:hover .hover-zoom img,
.group:hover .img-hover {
    transform: scale(1.08);
}

/* Shine Overlay */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.hover-shine:hover::before {
    left: 100%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-small);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--color-primary-600);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary-600);
    border: 2px solid var(--color-primary-600);
}

.btn-secondary:hover {
    background: var(--color-primary-600);
    color: white;
}

.btn-accent {
    background: var(--color-accent-500);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-accent:hover {
    background: var(--color-accent-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-cream {
    background: var(--color-cream-100);
    color: var(--color-primary-700);
    border: 1px solid var(--color-secondary-400);
}

.btn-cream:hover {
    background: var(--color-secondary-200);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-body);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-link {
    position: relative;
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-600);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary-600);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */

.product-card {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-product);
}

.product-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-cream-200);
}

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

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

.product-card-body {
    padding: var(--space-6);
}

.product-card-category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-secondary-600);
    margin-bottom: var(--space-2);
}

.product-card-title {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.product-card-description {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

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

/* ==========================================================================
   PRICE TAG
   ========================================================================== */

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary-600);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-body);
}

.price-tag-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-h4);
}

.price-tag-cream {
    background: var(--color-cream-100);
    color: var(--color-primary-700);
    border: 1px solid var(--color-secondary-400);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-full);
}

.badge-fresh {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-light) 100%);
    color: white;
}

.badge-bestseller {
    background: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
    color: white;
}

.badge-seasonal {
    background: linear-gradient(135deg, var(--color-secondary-400) 0%, var(--color-secondary-500) 100%);
    color: var(--color-primary-900);
}

.badge-organic {
    background: var(--color-cream-200);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */

.category-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--color-cream-200);
}

.category-card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28, 25, 23, 0.9) 0%,
        rgba(28, 25, 23, 0.4) 50%,
        transparent 100%
    );
    z-index: 1;
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    z-index: 2;
    color: white;
}

.category-card-title {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.category-card-count {
    font-size: var(--text-small);
    opacity: 0.8;
}

/* ==========================================================================
   MENU CARD (Recipe Card Style)
   ========================================================================== */

.menu-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-warm);
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.menu-card-title {
    font-family: var(--font-display);
    font-size: var(--text-h4);
    font-weight: 700;
    color: var(--color-text-primary);
}

.menu-card-price {
    font-family: var(--font-display);
    font-size: var(--text-h4);
    font-weight: 700;
    color: var(--color-primary-600);
}

.menu-card-description {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.menu-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.menu-card-tag {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
    background: var(--color-cream-200);
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   TESTIMONIAL CARDS
   ========================================================================== */

.testimonial-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-warm);
}

.testimonial-quote {
    position: relative;
    font-family: var(--font-display);
    font-size: var(--text-body-lg);
    font-style: italic;
    color: var(--color-text-primary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--color-secondary-400);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--color-cream-200);
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-text-primary);
}

.testimonial-role {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: var(--space-1);
    color: var(--color-warning);
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-warm);
    border-color: var(--color-secondary-300);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-cream-100) 0%, var(--color-wheat-100) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: var(--color-primary-600);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--color-primary-600);
    color: white;
    transform: scale(1.05);
}

.feature-title {
    font-family: var(--font-display);
    font-size: var(--text-h4);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.feature-description {
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   GALLERY GRID
   ========================================================================== */

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 69, 19, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    background: rgba(139, 69, 19, 0.7);
}

.gallery-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-600);
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   HOURS CARD
   ========================================================================== */

.hours-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-card);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 600;
    color: var(--color-text-primary);
}

.hours-time {
    color: var(--color-text-secondary);
}

.hours-closed {
    color: var(--color-accent-500);
}

/* ==========================================================================
   CONTACT INFO
   ========================================================================== */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    border-color: var(--color-secondary-400);
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-cream-200);
    border-radius: var(--radius-lg);
    color: var(--color-primary-600);
    flex-shrink: 0;
}

.contact-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-1);
}

.contact-value {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */

.newsletter-box {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
    max-width: 500px;
    margin: var(--space-6) auto 0;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-body);
    background: white;
    color: var(--color-text-primary);
}

.newsletter-input::placeholder {
    color: var(--color-text-tertiary);
}

.newsletter-input:focus {
    outline: 2px solid var(--color-secondary-400);
    outline-offset: 2px;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: var(--text-body);
    color: var(--color-text-primary);
    background: var(--color-surface);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--color-neutral-900);
    color: var(--color-neutral-300);
}

.dark .footer {
    background: #050504;
}

.footer-link {
    color: var(--color-neutral-400);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-neutral-800);
    border-radius: var(--radius-full);
    color: var(--color-neutral-400);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--color-primary-600);
    color: white;
    transform: translateY(-2px);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm {
    max-width: 768px;
}

.container-lg {
    max-width: 1536px;
}

.section-padding {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: var(--space-16);
        padding-bottom: var(--space-16);
    }
}

/* Text Colors */
.text-primary { color: var(--color-primary-600); }
.text-secondary { color: var(--color-secondary-500); }
.text-accent { color: var(--color-accent-500); }
.text-muted { color: var(--color-text-muted); }

/* Background Colors */
.bg-cream { background-color: var(--color-cream-100); }
.bg-wheat { background-color: var(--color-wheat-100); }
.bg-surface { background-color: var(--color-surface); }

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-4) var(--space-6);
    background: var(--color-primary-600);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-lg);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
}

:focus-visible {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
}

/* ==========================================================================
   SELECTION & SCROLLBAR
   ========================================================================== */

::selection {
    background-color: var(--color-secondary-300);
    color: var(--color-primary-900);
}

.dark ::selection {
    background-color: var(--color-primary-700);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream-200);
}

.dark ::-webkit-scrollbar-track {
    background: var(--color-neutral-800);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary-400);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-cream-200);
}

.dark ::-webkit-scrollbar-thumb {
    background: var(--color-neutral-600);
    border-color: var(--color-neutral-800);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-600);
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-rotate {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   PERFORMANCE
   ========================================================================== */

section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.animate-float,
.animate-steam,
.hover-lift,
.hover-scale {
    transform: translateZ(0);
    will-change: transform;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}
