/* MJ's Hot Sauce - Modern CSS Architecture
   Version 5.0 - Enhanced with CSS Layers & Modern Features
   Caribbean-inspired design with cutting-edge CSS */

/* ============================================
   CSS LAYERS ARCHITECTURE
   ============================================ */
@layer reset, tokens, base, layout, components, utilities, overrides;

/* ============================================
   1. RESET & BASE
   ============================================ */
@layer reset {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        font-size: 16px;
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        /* Modern CSS features */
        text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
    }

    body {
        font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        line-height: 1.6;
        color: var(--text-primary);
        background-color: var(--surface-primary);
        overflow-x: hidden;
        font-size: 1.1rem;
        letter-spacing: 0.01em;
        /* Modern font rendering */
        font-synthesis: none;
        text-rendering: optimizeLegibility;
    }
}

/* ============================================
   2. DESIGN TOKENS
   ============================================ */
@layer tokens {
    :root {
        /* ========== COLOR SYSTEM ========== */
        /* Brand Colors - Caribbean Inspired */
        --brand-coral: #ff6b6b;
        --brand-turquoise: #4ecdc4;
        --brand-sand: #ffe66d;
        
        /* Semantic Colors */
        --color-primary: var(--brand-coral);
        --color-secondary: var(--brand-turquoise);
        --color-accent: var(--brand-sand);
        --color-success: #26de81;
        --color-warning: #ffa726;
        --color-danger: #fc5c65;
        --color-info: #42a5f5;
        
        /* Surface Colors - Dark Theme */
        --surface-primary: #1a1a1a;
        --surface-secondary: #2a2a2a;
        --surface-tertiary: #3a3a3a;
        --surface-elevated: #404040;
        
        /* Text Colors */
        --text-primary: #e0e0e0;
        --text-secondary: #c0c0c0;
        --text-tertiary: #a0a0a0;
        --text-muted: #808080;
        --text-inverse: #1a1a1a;
        
        /* Border Colors */
        --border-primary: #3a3a3a;
        --border-secondary: #4a4a4a;
        --border-focus: var(--color-primary);
        
        /* ========== SPACING SYSTEM ========== */
        /* Base unit: 8px for consistent spacing */
        --space-0: 0;
        --space-1: 0.125rem;  /* 2px */
        --space-2: 0.25rem;   /* 4px */
        --space-3: 0.375rem;  /* 6px */
        --space-4: 0.5rem;    /* 8px */
        --space-6: 0.75rem;   /* 12px */
        --space-8: 1rem;      /* 16px */
        --space-10: 1.25rem;  /* 20px */
        --space-12: 1.5rem;   /* 24px */
        --space-16: 2rem;     /* 32px */
        --space-20: 2.5rem;   /* 40px */
        --space-24: 3rem;     /* 48px */
        --space-32: 4rem;     /* 64px */
        --space-40: 5rem;     /* 80px */
        --space-48: 6rem;     /* 96px */
        --space-64: 8rem;     /* 128px */
        
        /* Semantic Spacing (Legacy support) */
        --space-xs: var(--space-4);
        --space-sm: var(--space-8);
        --space-md: var(--space-12);
        --space-lg: var(--space-16);
        --space-xl: var(--space-24);
        --space-xxl: var(--space-32);
        
        /* ========== TYPOGRAPHY SCALE ========== */
        /* Type Scale - Perfect Fourth (1.333) */
        --font-xs: 0.75rem;    /* 12px */
        --font-sm: 0.875rem;   /* 14px */
        --font-base: 1rem;     /* 16px */
        --font-lg: 1.125rem;   /* 18px */
        --font-xl: 1.333rem;   /* 21px */
        --font-2xl: 1.777rem;  /* 28px */
        --font-3xl: 2.369rem;  /* 38px */
        --font-4xl: 3.157rem;  /* 51px */
        --font-5xl: 4.209rem;  /* 67px */
        
        /* Font Weights */
        --font-weight-light: 300;
        --font-weight-normal: 400;
        --font-weight-medium: 500;
        --font-weight-semibold: 600;
        --font-weight-bold: 700;
        --font-weight-extrabold: 800;
        
        /* Line Heights */
        --line-height-tight: 1.25;
        --line-height-normal: 1.5;
        --line-height-relaxed: 1.75;
        
        /* ========== LAYOUT SYSTEM ========== */
        /* Border Radius */
        --radius-none: 0;
        --radius-sm: 0.25rem;   /* 4px */
        --radius-md: 0.5rem;    /* 8px */
        --radius-lg: 0.75rem;   /* 12px */
        --radius-xl: 1rem;      /* 16px */
        --radius-2xl: 1.5rem;   /* 24px */
        --radius-full: 9999px;
        
        /* Legacy support */
        --radius: var(--radius-md);
        
        /* Shadows */
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
        --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.6);
        
        /* Legacy support */
        --shadow: var(--shadow-md);
        
        /* ========== MOTION SYSTEM ========== */
        /* Easing Functions */
        --ease-linear: linear;
        --ease-in: cubic-bezier(0.4, 0, 1, 1);
        --ease-out: cubic-bezier(0, 0, 0.2, 1);
        --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
        --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
        
        /* Duration */
        --duration-fast: 150ms;
        --duration-normal: 300ms;
        --duration-slow: 500ms;
        
        /* Transitions */
        --transition-fast: var(--duration-fast) var(--ease-out);
        --transition-normal: var(--duration-normal) var(--ease-out);
        --transition-slow: var(--duration-slow) var(--ease-out);
        
        /* Legacy support */
        --transition: var(--transition-normal);
        
        /* ========== Z-INDEX SCALE ========== */
        --z-dropdown: 1000;
        --z-sticky: 1020;
        --z-fixed: 1030;
        --z-modal-backdrop: 1040;
        --z-modal: 1050;
        --z-popover: 1060;
        --z-tooltip: 1070;
        --z-toast: 1080;
        
        /* ========== CONTAINER SYSTEM ========== */
        --container-sm: 640px;
        --container-md: 768px;
        --container-lg: 1024px;
        --container-xl: 1280px;
        --container-2xl: 1536px;
        
        /* Content max-width */
        --content-max-width: 1200px;
    }
    
    /* ========== DARK MODE OVERRIDES ========== */
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme]) {
            /* Automatically use dark theme if system preference is dark */
            color-scheme: dark;
        }
    }
    
    /* ========== LIGHT MODE SUPPORT ========== */
    [data-theme="light"] {
        --surface-primary: #ffffff;
        --surface-secondary: #f8f9fa;
        --surface-tertiary: #e9ecef;
        --surface-elevated: #ffffff;
        
        --text-primary: #212529;
        --text-secondary: #6c757d;
        --text-tertiary: #adb5bd;
        --text-muted: #6c757d;
        --text-inverse: #ffffff;
        
        --border-primary: #dee2e6;
        --border-secondary: #ced4da;
    }
}

/* ============================================
   3. BASE TYPOGRAPHY
   ============================================ */
@layer base {
    /* ========== HEADINGS ========== */
    h1, h2, h3, h4, h5, h6 {
        font-weight: var(--font-weight-semibold);
        line-height: var(--line-height-tight);
        margin-block-end: var(--space-sm);
        color: var(--text-primary);
        letter-spacing: -0.02em;
        font-feature-settings: "kern" 1, "liga" 1;
    }

    h1 { 
        font-weight: var(--font-weight-bold);
        font-size: var(--font-4xl);
    }
    h2 { 
        font-weight: var(--font-weight-semibold);
        font-size: var(--font-3xl);
    }
    h3 { 
        font-weight: var(--font-weight-medium);
        font-size: var(--font-2xl);
    }
    h4 { 
        font-weight: var(--font-weight-medium);
        font-size: var(--font-xl);
    }
    h5 { 
        font-weight: var(--font-weight-medium);
        font-size: var(--font-lg);
    }
    h6 { 
        font-weight: var(--font-weight-medium);
        font-size: var(--font-base);
    }

    /* ========== BODY TEXT ========== */
    p {
        margin-block-end: var(--space-sm);
        color: var(--text-primary);
        line-height: var(--line-height-normal);
    }

    /* ========== LINKS ========== */
    a {
        color: var(--color-primary);
        text-decoration: none;
        transition: var(--transition-fast);
        position: relative;
    }

    a:hover {
        color: var(--color-secondary);
    }

    a:focus-visible {
        outline: 2px solid var(--border-focus);
        outline-offset: 2px;
        border-radius: var(--radius-sm);
    }

    /* ========== LISTS ========== */
    ul, ol {
        margin-block-end: var(--space-sm);
        padding-inline-start: var(--space-lg);
    }

    li {
        margin-block-end: var(--space-2);
    }

    /* ========== TEXT UTILITIES ========== */
    .text-balance {
        text-wrap: balance;
    }

    .text-pretty {
        text-wrap: pretty;
    }

    /* ========== RESPONSIVE TYPOGRAPHY ========== */
    @container (max-width: 768px) {
        h1 { font-size: var(--font-3xl); }
        h2 { font-size: var(--font-2xl); }
        h3 { font-size: var(--font-xl); }
    }

    /* ========== IMAGE ORIENTATION FIX ========== */
    /* Fix for sideways images on live site - ensures EXIF orientation is respected */
    img {
        image-orientation: from-image !important;
        max-width: 100%;
        height: auto;
        /* Prevent any rotation transforms on ALL images */
        transform: none !important;
    }

    /* Comprehensive fixes for ALL image components */
    .instagram-post img,
    .product-hero-img,
    .highlight-img,
    .featured-product-image img,
    .founder-img,
    .story-image img,
    .product-main-img,
    .thumbnail,
    .product-image img,
    .main-image img,
    .main-product-image img {
        image-orientation: from-image !important;
        /* Prevent any rotation transforms */
        transform: none !important;
    }
}

/* ============================================
   4. LAYOUT PRIMITIVES
   ============================================ */
@layer layout {
    /* ========== CONTAINER SYSTEM ========== */
    .container {
        width: 100%;
        max-inline-size: var(--content-max-width);
        margin-inline: auto;
        padding-inline: var(--space-sm);
        container-type: inline-size;
        container-name: main-container;
    }

    /* Responsive container sizes */
    .container-sm { max-inline-size: var(--container-sm); }
    .container-md { max-inline-size: var(--container-md); }
    .container-lg { max-inline-size: var(--container-lg); }
    .container-xl { max-inline-size: var(--container-xl); }
    .container-2xl { max-inline-size: var(--container-2xl); }

    /* ========== SECTION SPACING ========== */
    section {
        padding-block: var(--space-xxl);
        container-type: inline-size;
        container-name: section;
    }

    section + section {
        padding-block-start: calc(var(--space-xxl) * 1.5);
    }

    /* ========== LAYOUT UTILITIES ========== */
    /* Stack - Vertical spacing utility */
    .stack > * + * {
        margin-block-start: var(--space, var(--space-md));
    }

    /* Cluster - Horizontal and vertical spacing */
    .cluster {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space, var(--space-md));
        justify-content: var(--justify, flex-start);
        align-items: var(--align, center);
    }

    /* Grid - Auto-fit responsive grid */
    .auto-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(var(--min-item-size, 250px), 1fr));
        gap: var(--gap, var(--space-lg));
    }

    /* Flex utilities */
    .flex { display: flex; }
    .flex-col { flex-direction: column; }
    .flex-wrap { flex-wrap: wrap; }
    .flex-nowrap { flex-wrap: nowrap; }
    .items-center { align-items: center; }
    .items-start { align-items: flex-start; }
    .items-end { align-items: flex-end; }
    .justify-center { justify-content: center; }
    .justify-between { justify-content: space-between; }
    .justify-around { justify-content: space-around; }
    .justify-evenly { justify-content: space-evenly; }

    /* Grid utilities */
    .grid { display: grid; }
    .grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
    .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

    /* Container queries for responsive grids */
    @container section (max-width: 768px) {
        .grid-cols-2,
        .grid-cols-3,
        .grid-cols-4 {
            grid-template-columns: 1fr;
        }
    }

    @container section (max-width: 1024px) {
        .grid-cols-3,
        .grid-cols-4 {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

/* About page specific spacing - cleaner approach */

.about-page .page-hero,
.about-page .story-section {
    padding: 0;
    margin: 0;
}

.about-page .hero-content {
    padding: var(--space-lg) 0 var(--space-md) 0;
}

.about-page .story-content {
    padding: var(--space-lg) 0;
}

/* Remove gap between about page sections */
.about-hero + .about-story {
    margin-top: 0;
}

/* ============================================
   5. HEADER
   ============================================ */
.site-header {
    background: var(--light);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo:hover .logo-text {
    color: var(--primary);
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--primary);
}

.nav-link.active {
    background-color: rgba(255, 107, 107, 0.15);
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--white);
    font-weight: 600;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 4px 0;
    transition: var(--transition);
}

/* ============================================
   6. HERO SECTIONS
   ============================================ */
.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-md);
}

.hero-title .title-line {
    display: block;
}

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

.hero-description {
    font-size: var(--font-lg);
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* Story body and intro specific styles */
.story-intro {
    margin-bottom: var(--space-md);
}

.story-body {
    color: var(--text-primary);
}

.story-body p {
    margin-bottom: var(--space-sm);
}

.story-body p:last-child {
    margin-bottom: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(0,0,0,0.3);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   7. STORY SECTION
   ============================================ */
.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.story-title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.lead-text {
    font-size: var(--font-lg);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

/* Story section specific elements */
.story-image {
    position: relative;
}

.image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.floating-element.pepper {
    top: 10%;
    right: -20px;
}

.floating-element.star {
    bottom: 20%;
    left: -20px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.founder-quote {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 153, 0, 0.05) 100%);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin: var(--space-lg) 0;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--dark);
    padding: 0 10px;
    color: var(--primary);
    font-size: 1.5rem;
}

.founder-quote p {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.founder-quote cite {
    display: block;
    text-align: right;
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
}

.media-mention {
    color: var(--accent);
    font-weight: 600;
}

.hashtag {
    color: var(--secondary);
    font-weight: 500;
}

/* ============================================
   5. COMPONENT SYSTEM
   ============================================ */
@layer components {
    /* ========== BUTTON SYSTEM ========== */
    .btn {
        /* Base button styles */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        padding-block: var(--space-4);
        padding-inline: var(--space-6);
        border-radius: var(--radius-md);
        font-weight: var(--font-weight-medium);
        text-align: center;
        min-height: 44px;
        transition: var(--transition-normal);
        cursor: pointer;
        border: 2px solid transparent;
        font-size: var(--font-base);
        text-decoration: none;
        line-height: var(--line-height-tight);
        min-block-size: 44px; /* Accessibility: minimum touch target */
        position: relative;
        overflow: hidden;
        user-select: none;
        white-space: nowrap;
        
        /* Focus styles */
        &:focus-visible {
            outline: 2px solid var(--border-focus);
            outline-offset: 2px;
        }
        
        /* Disabled state */
        &:disabled,
        &[aria-disabled="true"] {
            opacity: 0.5;
            cursor: not-allowed;
            pointer-events: none;
        }
    }

    /* Button variants */
    .btn-primary {
        background-color: var(--color-primary);
        color: var(--text-inverse);
        box-shadow: var(--shadow-sm);
        
        &:hover {
            background-color: color-mix(in oklch, var(--color-primary), black 20%);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        &:active {
            transform: translateY(0);
            box-shadow: var(--shadow-sm);
        }
    }

    .btn-secondary {
        background-color: transparent;
        color: var(--color-primary);
        border-color: var(--color-primary);
        
        &:hover {
            background-color: var(--color-primary);
            color: var(--text-inverse);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        &:active {
            transform: translateY(0);
        }
    }

    .btn-ghost {
        background-color: transparent;
        color: var(--text-primary);
        
        &:hover {
            background-color: var(--surface-secondary);
            transform: translateY(-1px);
        }
    }

    .btn-danger {
        background-color: var(--color-danger);
        color: var(--text-inverse);
        
        &:hover {
            background-color: color-mix(in oklch, var(--color-danger), black 20%);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
    }

    /* Button sizes */
    .btn-sm {
        padding-block: var(--space-3);
        padding-inline: var(--space-4);
        font-size: var(--font-sm);
        min-height: 44px;
    }

    .btn-lg {
        padding-block: var(--space-4);
        padding-inline: var(--space-8);
        font-size: var(--font-lg);
        min-block-size: 52px;
    }

    .btn-xl {
        padding-block: var(--space-6);
        padding-inline: var(--space-10);
        font-size: var(--font-xl);
        min-block-size: 60px;
    }

    /* Button modifiers */
    .btn-full {
        inline-size: 100%;
    }

    .btn-icon-only {
        padding-inline: var(--space-3);
        aspect-ratio: 1;
    }

    /* Button loading state */
    .btn-loading {
        color: transparent;
        pointer-events: none;
        position: relative;
        
        &::after {
            content: '';
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid transparent;
            border-top: 2px solid currentColor;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 1s linear infinite;
        }
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Button group */
    .btn-group {
        display: inline-flex;
        
        > .btn {
            border-radius: 0;
            border-inline-end-width: 1px;
            
            &:first-child {
                border-start-start-radius: var(--radius-md);
                border-end-start-radius: var(--radius-md);
            }
            
            &:last-child {
                border-start-end-radius: var(--radius-md);
                border-end-end-radius: var(--radius-md);
                border-inline-end-width: 2px;
            }
            
            &:only-child {
                border-radius: var(--radius-md);
                border-inline-end-width: 2px;
            }
        }
    }

    /* ========== CARD SYSTEM ========== */
    .card {
        background-color: var(--surface-secondary);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-primary);
        overflow: hidden;
        container-type: inline-size;
        container-name: card;
        
        &:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
            transition: var(--transition-normal);
        }
    }

    .card-header,
    .card-body,
    .card-footer {
        padding: var(--space-lg);
    }

    .card-header {
        border-block-end: 1px solid var(--border-primary);
        background-color: var(--surface-tertiary);
    }

    .card-footer {
        border-block-start: 1px solid var(--border-primary);
        background-color: var(--surface-tertiary);
    }

    /* ========== FORM COMPONENTS ========== */
    .form-field {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
        margin-block-end: var(--space-lg);
    }

    .form-label {
        font-weight: var(--font-weight-medium);
        color: var(--text-primary);
        font-size: var(--font-sm);
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 16px;
        border: 2px solid #ddd;
        border-radius: var(--radius-md);
        background-color: rgba(255, 255, 255, 0.95);
        color: #333;
        font-size: var(--font-base);
        transition: var(--transition-fast);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        
        &:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
            background-color: rgba(255, 255, 255, 1);
        }
        
        &::placeholder {
            color: var(--text-muted);
        }
        
        &:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
    }

    .form-textarea {
        resize: vertical;
        min-block-size: 100px;
    }

    .form-error {
        color: var(--color-danger);
        font-size: var(--font-sm);
        margin-block-start: var(--space-1);
    }

    /* ========== ANIMATION KEYFRAMES ========== */
    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideUp {
        from { 
            opacity: 0;
            transform: translateY(var(--space-4));
        }
        to { 
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ============================================
   6. UTILITY CLASSES
   ============================================ */
@layer utilities {
    /* ========== SPACING UTILITIES ========== */
    /* Margin utilities */
    .m-0 { margin: 0; }
    .m-1 { margin: var(--space-1); }
    .m-2 { margin: var(--space-2); }
    .m-3 { margin: var(--space-3); }
    .m-4 { margin: var(--space-4); }
    .m-6 { margin: var(--space-6); }
    .m-8 { margin: var(--space-8); }
    .m-12 { margin: var(--space-12); }
    .m-16 { margin: var(--space-16); }
    .m-auto { margin: auto; }

    /* Padding utilities */
    .p-0 { padding: 0; }
    .p-1 { padding: var(--space-1); }
    .p-2 { padding: var(--space-2); }
    .p-3 { padding: var(--space-3); }
    .p-4 { padding: var(--space-4); }
    .p-6 { padding: var(--space-6); }
    .p-8 { padding: var(--space-8); }
    .p-12 { padding: var(--space-12); }
    .p-16 { padding: var(--space-16); }

    /* Margin/Padding directional utilities */
    .mt-0 { margin-block-start: 0; }
    .mt-4 { margin-block-start: var(--space-4); }
    .mt-8 { margin-block-start: var(--space-8); }
    .mb-0 { margin-block-end: 0; }
    .mb-4 { margin-block-end: var(--space-4); }
    .mb-8 { margin-block-end: var(--space-8); }
    .ml-0 { margin-inline-start: 0; }
    .ml-auto { margin-inline-start: auto; }
    .mr-0 { margin-inline-end: 0; }
    .mr-auto { margin-inline-end: auto; }

    /* ========== DISPLAY UTILITIES ========== */
    .hidden { display: none; }
    .block { display: block; }
    .inline { display: inline; }
    .inline-block { display: inline-block; }
    .flex { display: flex; }
    .inline-flex { display: inline-flex; }
    .grid { display: grid; }
    .inline-grid { display: inline-grid; }

    /* ========== TEXT UTILITIES ========== */
    .text-left { text-align: start; }
    .text-center { text-align: center; }
    .text-right { text-align: end; }
    .text-justify { text-align: justify; }

    .text-xs { font-size: var(--font-xs); }
    .text-sm { font-size: var(--font-sm); }
    .text-base { font-size: var(--font-base); }
    .text-lg { font-size: var(--font-lg); }
    .text-xl { font-size: var(--font-xl); }
    .text-2xl { font-size: var(--font-2xl); }
    .text-3xl { font-size: var(--font-3xl); }
    .text-4xl { font-size: var(--font-4xl); }

    .font-light { font-weight: var(--font-weight-light); }
    .font-normal { font-weight: var(--font-weight-normal); }
    .font-medium { font-weight: var(--font-weight-medium); }
    .font-semibold { font-weight: var(--font-weight-semibold); }
    .font-bold { font-weight: var(--font-weight-bold); }

    .text-primary { color: var(--text-primary); }
    .text-secondary { color: var(--text-secondary); }
    .text-muted { color: var(--text-muted); }
    .text-accent { color: var(--color-accent); }
    .text-success { color: var(--color-success); }
    .text-warning { color: var(--color-warning); }
    .text-danger { color: var(--color-danger); }

    /* ========== BACKGROUND UTILITIES ========== */
    .bg-primary { background-color: var(--color-primary); }
    .bg-secondary { background-color: var(--color-secondary); }
    .bg-surface { background-color: var(--surface-secondary); }
    .bg-transparent { background-color: transparent; }

    /* ========== BORDER UTILITIES ========== */
    .border { border: 1px solid var(--border-primary); }
    .border-0 { border: none; }
    .border-primary { border-color: var(--border-primary); }
    .border-focus { border-color: var(--border-focus); }

    .rounded { border-radius: var(--radius-md); }
    .rounded-sm { border-radius: var(--radius-sm); }
    .rounded-lg { border-radius: var(--radius-lg); }
    .rounded-xl { border-radius: var(--radius-xl); }
    .rounded-full { border-radius: var(--radius-full); }

    /* ========== SHADOW UTILITIES ========== */
    .shadow-sm { box-shadow: var(--shadow-sm); }
    .shadow { box-shadow: var(--shadow-md); }
    .shadow-lg { box-shadow: var(--shadow-lg); }
    .shadow-xl { box-shadow: var(--shadow-xl); }
    .shadow-none { box-shadow: none; }

    /* ========== POSITION UTILITIES ========== */
    .relative { position: relative; }
    .absolute { position: absolute; }
    .fixed { position: fixed; }
    .sticky { position: sticky; }

    /* ========== OVERFLOW UTILITIES ========== */
    .overflow-hidden { overflow: hidden; }
    .overflow-auto { overflow: auto; }
    .overflow-scroll { overflow: scroll; }

    /* ========== INTERACTION UTILITIES ========== */
    .pointer-events-none { pointer-events: none; }
    .pointer-events-auto { pointer-events: auto; }
    .cursor-pointer { cursor: pointer; }
    .cursor-not-allowed { cursor: not-allowed; }

    .select-none { user-select: none; }
    .select-text { user-select: text; }
    .select-all { user-select: all; }

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

    .not-sr-only {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    /* ========== ANIMATION UTILITIES ========== */
    .animate-fade-in {
        animation: fadeIn var(--duration-normal) var(--ease-out);
    }

    .animate-slide-up {
        animation: slideUp var(--duration-normal) var(--ease-out);
    }

    .animate-spin {
        animation: spin 1s linear infinite;
    }

    /* ========== RESPONSIVE UTILITIES ========== */
    @container (max-width: 768px) {
        .sm\:hidden { display: none; }
        .sm\:block { display: block; }
        .sm\:text-center { text-align: center; }
        .sm\:text-sm { font-size: var(--font-sm); }
    }

    @container (min-width: 769px) {
        .md\:hidden { display: none; }
        .md\:block { display: block; }
        .md\:flex { display: flex; }
        .md\:grid { display: grid; }
    }
}

/* ============================================
   7. ACCESSIBILITY & REDUCED MOTION
   ============================================ */
@layer base {
    /* Enhanced focus styles for better keyboard navigation */
    *:focus-visible {
        outline: 2px solid var(--border-focus);
        outline-offset: 2px;
        border-radius: var(--radius-sm);
    }

    /* Reduced motion preferences */
    @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;
        }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        :root {
            --border-primary: currentColor;
            --shadow-md: 0 0 0 1px currentColor;
        }
    }

    /* Color scheme preference */
    @media (prefers-color-scheme: light) {
        :root:not([data-theme]) {
            color-scheme: light;
        }
    }

    @media (prefers-color-scheme: dark) {
        :root:not([data-theme]) {
            color-scheme: dark;
        }
    }
}

/* Skip link for screen readers - improved implementation */
.skip-link {
    position: absolute;
    top: -40px;
    left: var(--space-sm);
    background: var(--primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    text-decoration: none;
    border-radius: var(--radius);
    z-index: 1000;
    font-weight: 600;
    transition: var(--transition);
}

.skip-link:focus {
    top: var(--space-sm);
    box-shadow: var(--shadow-lg);
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn:hover,
    .nav-link:hover,
    .logo:hover .logo-icon {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #ff0000;
        --secondary: #00ffff;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --dark: #000000;
        --light: #1a1a1a;
    }
}

/* ============================================
   10. FOOTER
   ============================================ */
.site-footer {
    background-color: #0a0a0a;
    color: var(--white);
    padding: var(--space-xl) 0;
    margin-top: var(--space-xxl);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    height: 60px;
    margin-bottom: var(--space-sm);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary);
    transform: scale(1.1);
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
}

.footer-nav a,
.footer-contact a {
    color: var(--text-secondary);
    opacity: 1;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   10. UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.hidden { display: none; }
.block { display: block; }

/* Skip link for accessibility - consolidated implementation */

/* ============================================
   11. RESPONSIVE
   ============================================ */

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-features {
        gap: var(--space-md);
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .story-content {
        gap: var(--space-lg);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--light);
        flex-direction: column;
        justify-content: start;
        padding: var(--space-lg) var(--space-sm);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-right: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .nav-menu {
        z-index: 999;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .phone {
        display: none;
    }
    
    /* Logo adjustments for mobile */
    .logo-text {
        font-size: 1.25rem;
    }
    
    /* Story section */
    .story-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: var(--font-sm);
        min-width: 100px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        min-width: 200px;
        justify-content: center;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ============================================
   12. SPECIFIC FIXES
   ============================================ */
/* Ensure no gaps between sections on About page */
.about-hero + .about-story {
    margin-top: 0 !important;
}

/* Remove any default spacing that might exist */
main > section + section {
    margin-top: 0;
}

/* Additional fixes for about page spacing */
#main-content .page-hero.about-hero {
    padding: 0 !important;
    margin: 0 !important;
}

#main-content .story-section.about-story {
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure the container doesn't add extra spacing */
.about-hero .container,
.about-story .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Story section container specific fix */
.story-section > .container {
    min-height: auto !important;
    height: auto !important;
    padding: 0 var(--space-sm) !important;
}

/* Ensure story content is visible */
.story-image,
.story-text {
    opacity: 1 !important;
}

/* Animation class when elements come into view */
.story-image.visible,
.story-text.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Timeline section - proper integration with about page */
.timeline-section {
    background-color: var(--dark);
    padding: var(--space-lg) 0;
}

.about-story + .timeline-section {
    margin-top: 0;
}

/* Timeline styling for dark mode */
.timeline {
    position: relative;
    padding: var(--space-lg) 0;
}

.timeline-item {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.timeline-date {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.timeline-content {
    background: var(--light);
    padding: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Values section dark mode */
.values-section {
    background-color: var(--dark);
    padding: var(--space-lg) 0;
}

.timeline-section + .values-section {
    margin-top: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.value-item {
    text-align: center;
    padding: var(--space-lg);
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.value-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon {
    font-size: 1.5rem;
    color: var(--white);
}

.value-item h3 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.value-item p {
    color: var(--text-secondary);
}

/* Product cards */
.product-card {
    background: var(--light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

/* Form elements */
input, textarea, select {
    width: 100%;
    padding: var(--space-sm);
    background: var(--light);
    color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: var(--font-base);
    transition: var(--transition);
    font-family: inherit;
}

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

/* Style labels for better form appearance */
label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--white);
    font-size: var(--font-base);
}

/* Style placeholders */
input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Improve select dropdown appearance */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0c0c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* CTA Section Styles */
.cta-section {
    position: relative;
    background: var(--light);
    padding: var(--space-lg) 0;
    margin-top: 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Deprecated button variants - use btn-primary or btn-secondary instead */
/* Kept for backward compatibility - consider removing after updating HTML */
/* Button active states */
.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn.clicked {
    animation: clickPulse 0.3s ease;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Section header styles */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
}

/* ============================================
   13. PRODUCT PAGE STYLES
   ============================================ */
/* Product Gallery */
.product-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.main-image {
    position: relative;
    background: var(--light);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
}

.main-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--light);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    background: var(--light);
    padding: var(--space-xl);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.product-info h1 {
    margin-bottom: var(--space-md);
}

.product-price {
    font-size: var(--font-2xl);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Heat Level */
.heat-level {
    background: var(--dark);
    padding: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.heat-indicator {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.flame {
    font-size: 1.5rem;
    opacity: 0.3;
}

.flame.active {
    opacity: 1;
    color: var(--primary);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: var(--light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

#quantity {
    width: 60px;
    text-align: center;
    background: var(--dark);
    border: 1px solid var(--border-color);
}

/* Legal pages dark mode */
.legal-hero {
    background: var(--light);
    border-bottom: 1px solid var(--border-color);
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
}

.legal-nav {
    background: var(--light);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.legal-nav ul {
    list-style: none;
}

.legal-nav a {
    display: block;
    padding: var(--space-sm);
    color: var(--text-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
}

.legal-nav a:hover,
.legal-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.legal-text {
    background: var(--light);
    padding: var(--space-xl);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.legal-text h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.legal-text ul {
    margin-left: var(--space-lg);
    color: var(--text-secondary);
}

.contact-info {
    background: var(--dark);
    padding: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-top: var(--space-sm);
}

.policy-highlight {
    background: var(--dark);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.policy-highlight i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.policy-note {
    background: var(--dark);
    padding: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-top: var(--space-xl);
    display: flex;
    gap: var(--space-sm);
    align-items: start;
}

.policy-note i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Fix product image sizing */
.product-main-img {
    max-width: 500px !important;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain !important;
}

.product-card-img {
    width: 100%;
    height: 250px;
    object-fit: contain !important;
    border-radius: var(--radius);
    background: var(--light);
    padding: var(--space-sm);
}

/* Contact Form Product Selection Styles */
.product-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.product-option {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.product-option.selected {
    border-color: var(--primary);
    background-color: rgba(255, 107, 107, 0.1);
}

.product-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-card-label {
    display: block;
    padding: var(--space-sm);
    cursor: pointer;
}

.product-option .product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--light);
}

.product-option .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-sm);
}

.product-info {
    padding: var(--space-sm);
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

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

/* Product badges */
.viral-badge,
.product-badge {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1;
}

.product-badge.new {
    background: var(--secondary);
}

.product-badge.best-value {
    background: var(--accent);
    color: var(--dark);
}

/* Heat level display */
.heat-level {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.heat-meter {
    display: flex;
    gap: 2px;
}

.heat-meter.small .heat-pepper {
    font-size: 0.875rem;
    opacity: 0.3;
}

.heat-meter .heat-pepper.filled {
    opacity: 1;
}

.heat-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Value proposition */
.value-prop {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.savings {
    background: var(--success);
    color: var(--white);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Order review product display */
.product-image-small {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--light);
    flex-shrink: 0;
}

.product-image-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-xs);
}

.selected-product {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    background: var(--light);
    padding: var(--space-sm);
    border-radius: var(--radius);
}

.product-details-small {
    flex: 1;
}

/* Mobile responsive for product selection */
@media (max-width: 768px) {
    .product-selection {
        grid-template-columns: 1fr;
    }
    
    .product-option .product-image {
        height: 150px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
}

/* Product showcase images */
.main-product-image {
    text-align: center;
    padding: var(--space-lg);
}

.main-product-image img {
    max-width: 500px !important;
    width: 100%;
    height: auto;
    object-fit: contain !important;
}

/* Ensure thumbnails stay small */
.product-thumbnails {
    justify-content: center;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Responsive adjustments for product page */
@media (min-width: 769px) {
    .product-gallery {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (max-width: 768px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-nav {
        position: static;
    }
    
    /* Even smaller product images on mobile */
    .product-main-img {
        max-width: 350px !important;
    }
    
    .product-card-img {
        height: 200px;
    }
}

/* Size Selection Styles */
.size-selection {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-bg, #f8f9fa);
    border-radius: var(--radius, 12px);
    border: 2px solid var(--border, #e0e0e0);
}

.size-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text, #333);
    font-size: 1.1rem;
}

.size-dropdown {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--primary, #12b76a);
    border-radius: var(--radius-sm, 8px);
    background: white;
    color: var(--text, #333);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    font-family: inherit;
}

.size-dropdown:hover,
.size-dropdown:focus {
    border-color: var(--primary-dark, #0a8c4f);
    box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.1);
    outline: none;
}

/* Special Offers Styles */
.special-offers {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-radius: var(--radius, 12px);
    border: 2px dashed var(--primary, #12b76a);
}

.offers-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text, #333);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offers-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary, #666);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offers-list li i {
    color: var(--primary, #12b76a);
    font-size: 1.1rem;
}

/* Mobile Responsive for Size Selection */
@media (max-width: 768px) {
    .size-selection {
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .size-dropdown {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .special-offers {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .offers-list li {
        font-size: 0.9rem;
    }
}

/* Size Select Wrapper for Contact Page */
.size-select-wrapper {
    margin: 0.75rem 0;
}

.product-size-select {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: var(--radius-sm, 6px);
    background: white;
    color: var(--text, #333);
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    font-family: inherit;
}

.product-size-select:hover,
.product-size-select:focus {
    border-color: var(--primary, #12b76a);
    outline: none;
    box-shadow: 0 0 0 2px rgba(18, 183, 106, 0.1);
}

/* Update product option styles */
.product-option .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary, #12b76a);
    margin-top: 0.5rem;
}

/* Success Overlay Styles */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.success-modal-content {
    background: var(--light, #2a2a2a);
    padding: 3rem 2.5rem;
    border-radius: var(--radius, 12px);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.5));
    border: 1px solid var(--border-color, #3a3a3a);
}

.success-modal-content.animated {
    animation: slideUp 0.4s ease-out;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: var(--success, #26de81);
    animation: bounceIn 0.6s ease-out 0.2s both;
}

.success-modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--white, #e0e0e0);
}

.success-modal-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary, #c0c0c0);
    line-height: 1.6;
}

.success-features {
    margin-bottom: 2rem;
    text-align: left;
}

.success-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--dark, #1a1a1a);
    border-radius: var(--radius, 12px);
    border: 1px solid var(--border-color, #3a3a3a);
}

.success-feature i {
    color: var(--primary, #ff6b6b);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.success-feature span {
    color: var(--text-primary, #e0e0e0);
    font-size: 0.95rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 140px;
}

/* Success overlay animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive for success modal */
@media (max-width: 768px) {
    .success-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
}

/* Enhanced Mobile Form Experience */
@media (max-width: 768px) {
    .form-grid {
        gap: 1rem;
    }
    
    .form-group.half,
    .form-group.third {
        grid-column: 1 / -1;
    }
    
    .quantity-wrapper {
        min-height: 48px;
        border-radius: 12px;
    }
    
    .quantity-btn {
        min-width: 48px;
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .product-actions .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Improved checkout form mobile layout */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .checkout-form-container {
        order: 2;
    }
    
    .order-summary-container {
        order: 1;
        position: static;
    }
    
    .form-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Better mobile input spacing */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    /* Improved select dropdown for mobile */
    select {
        background-size: 16px;
        background-position: right 12px center;
    }
}

/* Small mobile improvements */
@media (max-width: 480px) {
    .form-grid {
        gap: 0.75rem;
    }
    
    .quantity-control {
        justify-content: center;
    }
    
    .size-selection {
        text-align: center;
    }
    
    .size-dropdown {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* ============================================
   14. COMPREHENSIVE FORM STYLES
   ============================================ */

/* Form Elements Base Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: var(--font-base);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Form placeholders */
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Form labels */
label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-sm);
}

/* Required field indicator */
label .required {
    color: var(--primary);
    margin-left: 4px;
}

/* Form groups */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff4444;
}

/* Error messages */
.field-error {
    color: #ff4444;
    font-size: var(--font-sm);
    margin-top: var(--space-xs);
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Textarea specific */
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox and radio styles */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: var(--space-xs);
    cursor: pointer;
}

/* Form row for side-by-side fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Form buttons */
.form-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: space-between;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.form-buttons .btn {
    min-width: 150px;
}

/* Disabled form elements */
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--border-color);
}

/* Order form container and layout */
.order-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.order-form-container {
    background: var(--light);
    border-radius: var(--radius);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Form header styling */
.form-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-header h2 {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-lg);
    margin-bottom: var(--space-md);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* Contact form base styles */
.contact-form {
    width: 100%;
}

/* Form step management */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.form-step.active {
    display: block;
}

/* Step header */
.step-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.step-header h3 {
    font-size: var(--font-xl);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.step-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-base);
}

/* Product selector styles */
.product-selector {
    margin-bottom: var(--space-lg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.product-option {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.product-label {
    display: block;
    text-align: center;
    padding: var(--space-md);
    background: var(--dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.product-option input[type="radio"]:checked + .product-label {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.product-label img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: var(--space-sm);
}

.product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

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

/* Size selector */
.size-selector {
    margin-bottom: var(--space-md);
}

.size-options {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.size-option {
    flex: 1;
    min-width: 100px;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.size-label {
    display: block;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option input[type="radio"]:checked + .size-label {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

/* Quantity selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-btn {
    background: var(--dark);
    border: none;
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-primary);
}

/* Order summary in form */
.order-summary-inline {
    background: var(--dark);
    border-radius: var(--radius);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.summary-header h4 {
    color: var(--text-primary);
    font-size: var(--font-lg);
}

.cart-items {
    margin-bottom: var(--space-md);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.item-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.item-info img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius);
}

.item-details h5 {
    font-size: var(--font-sm);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.item-details p {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #ff4444;
}

/* Customer info form */
.customer-info {
    margin-bottom: var(--space-lg);
}

/* Shipping info form */
.shipping-info {
    margin-bottom: var(--space-lg);
}

/* Special instructions */
.special-instructions {
    margin-bottom: var(--space-lg);
}

/* Form navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-btn.prev i {
    margin-right: var(--space-xs);
}

.nav-btn.next i {
    margin-left: var(--space-xs);
}

/* Progress indicator */
.form-progress {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.progress-step {
    display: flex;
    align-items: center;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 50px;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
}

.progress-step.completed:not(:last-child)::after {
    background: var(--primary);
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.progress-step.active .step-indicator,
.progress-step.completed .step-indicator {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: var(--space-xs);
    font-size: var(--font-xs);
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .order-form-container {
        padding: var(--space-lg);
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .progress-step:not(:last-child)::after {
        width: 30px;
    }
    
    .step-label {
        font-size: 10px;
    }
}

/* ============================================
   15. CHECKOUT PAGE STYLES
   ============================================ */

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.checkout-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.checkout-header h1 {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
}

.checkout-step.active {
    color: var(--primary);
}

.checkout-step.completed {
    color: var(--success);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-sm);
}

.checkout-step.active .step-number {
    background: var(--primary);
    color: white;
}

.checkout-step.completed .step-number {
    background: var(--success);
    color: white;
}

/* Checkout grid layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    align-items: start;
}

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

/* Checkout form container */
.checkout-form-container {
    background: var(--light);
    border-radius: var(--radius);
    padding: var(--space-xl);
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: var(--space-xl);
}

.form-section h2 {
    font-size: var(--font-xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* Payment form specific */
.payment-methods {
    margin-bottom: var(--space-md);
}

.payment-method-icons {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.payment-method-icons i {
    font-size: var(--font-2xl);
    color: var(--text-secondary);
}

/* Stripe card element container */
.stripe-card-element {
    background: var(--dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--space-sm);
    transition: var(--transition);
    font-size: var(--font-base);
}

.stripe-card-element.StripeElement--focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

#card-errors {
    color: var(--danger);
    margin-top: var(--space-xs);
    font-size: var(--font-sm);
    display: none;
}

#card-errors.show {
    display: block;
}

/* Order summary sidebar */
.order-summary-container {
    position: sticky;
    top: 100px;
}

.order-summary {
    background: var(--light);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
}

.order-summary h2 {
    font-size: var(--font-xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.order-items {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.order-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.order-item:last-child {
    margin-bottom: 0;
}

.item-image {
    position: relative;
    width: 60px;
    height: 60px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.item-quantity {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: var(--font-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50%;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: var(--font-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.item-details p {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.item-price {
    font-weight: 600;
    color: var(--primary);
}

/* Order totals */
.order-totals {
    margin-bottom: var(--space-md);
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.total-line.total {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color);
}

/* Promo code section */
.promo-code-section {
    margin-bottom: var(--space-md);
}

.promo-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
}

.promo-input {
    display: none;
    margin-top: var(--space-sm);
}

.promo-input.active {
    display: flex;
    gap: var(--space-xs);
}

.promo-input input {
    flex: 1;
}

.promo-input button {
    padding: var(--space-sm) var(--space-md);
}

/* Security info */
.security-info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin-top: var(--space-md);
}

.security-info i {
    color: var(--success);
}

/* Submit button */
#submit-payment {
    width: 100%;
    margin-top: var(--space-lg);
    font-size: var(--font-lg);
    padding: var(--space-md) var(--space-lg);
}

/* Payment success */
.payment-success {
    text-align: center;
    padding: var(--space-xl);
}

.success-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-content i {
    font-size: var(--font-4xl);
    color: var(--success);
    margin-bottom: var(--space-md);
}

.success-content h2 {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.success-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.success-content strong {
    color: var(--text-primary);
}

/* Image orientation fixes - removed rotation that was causing sideways images */

/* Additional button styles */
.btn-viral {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8e53 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-md) var(--space-lg);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-viral:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: var(--space-sm) var(--space-lg);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--white);
    font-size: var(--font-base);
}

.required {
    color: var(--primary);
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 2px solid #ddd;
    border-radius: var(--radius);
    font-size: var(--font-base);
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.form-input:hover {
    border-color: #bbb;
}

.form-input.error {
    border-color: var(--danger);
}

.error-message {
    display: none;
    color: var(--danger);
    font-size: var(--font-sm);
    margin-top: var(--space-xs);
}

/* Promo code section */
.promo-wrapper {
    display: flex;
    gap: var(--space-sm);
}

.promo-apply-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.promo-apply-btn:hover {
    background: #ff5252;
}

.promo-message {
    margin-top: var(--space-xs);
    font-size: var(--font-sm);
    font-weight: 500;
}

.promo-message.success {
    color: var(--success);
}

.promo-message.error {
    color: var(--danger);
}

/* Step navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.next-step,
.prev-step,
.submit-order {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Order review section */
.order-review {
    background: var(--dark);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.review-section {
    margin-bottom: var(--space-lg);
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section h4 {
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.shipping-address {
    color: var(--text-secondary);
    line-height: 1.6;
}

.shipping-address div {
    margin-bottom: var(--space-xs);
}

/* Order summary sidebar */
.order-summary {
    position: sticky;
    top: 100px;
    background: var(--dark);
    padding: var(--space-lg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.order-summary h3 {
    margin-bottom: var(--space-md);
    font-size: var(--font-xl);
}

.summary-content {
    margin-bottom: var(--space-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
}

.summary-row.total {
    font-weight: 700;
    font-size: var(--font-lg);
    color: var(--white);
    padding-top: var(--space-sm);
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--space-sm) 0;
}

.summary-note {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: rgba(78, 205, 196, 0.1);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    color: var(--secondary);
}

.trust-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs);
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* Quantity section styling */
.quantity-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.quantity-label {
    font-weight: 500;
    color: var(--white);
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    background: var(--dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-wrapper input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    padding: var(--space-sm);
    font-weight: 600;
    font-size: var(--font-base);
}

.quantity-wrapper input:focus {
    outline: none;
    box-shadow: none;
}

/* Contact info section */
.contact-info-container {
    margin-top: var(--space-xxl);
}

.contact-info {
    margin-bottom: var(--space-xl);
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: var(--font-lg);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.contact-method {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-xs);
}

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

.contact-hours {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin-top: var(--space-xs);
}

.contact-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.feature-tag {
    padding: 2px 8px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* FAQ section */
.faq-section {
    margin-top: var(--space-xl);
}

.faq-container {
    margin-top: var(--space-lg);
}

.faq-item {
    background: var(--light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 107, 107, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-secondary);
}

.faq-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

/* Social proof section */
.social-proof-section {
    text-align: center;
    margin-top: var(--space-xl);
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.proof-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.social-links-section {
    margin-top: var(--space-lg);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--light);
    border-radius: var(--radius);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Responsive design for contact page */
@media (max-width: 992px) {
    .order-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        margin-top: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .step-navigation {
        flex-direction: column;
    }
    
    .step-navigation button {
        width: 100%;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .order-form-container {
        padding: var(--space-md);
    }
    
    .security-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .promo-wrapper {
        flex-direction: column;
    }
    
    .promo-apply-btn {
        width: 100%;
    }
}

/* ============================================
   15. CHECKOUT PAGE STYLES
   ============================================ */
.checkout-page {
    background: var(--dark);
}

.checkout-header {
    background: var(--light);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-header h1 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.5;
}

.checkout-steps .step.active {
    opacity: 1;
}

.checkout-steps .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: var(--font-sm);
}

.checkout-content {
    padding: var(--space-xl) 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-form-container {
    background: var(--light);
    padding: var(--space-xl);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: var(--space-xl);
}

.form-section h2 {
    margin-bottom: var(--space-md);
    font-size: var(--font-xl);
}

.form-grid {
    display: grid;
    gap: var(--space-md);
}

.form-grid .half {
    grid-column: span 1;
}

.form-grid .third {
    grid-column: span 1;
}

/* Payment section */
.payment-methods {
    margin-bottom: var(--space-md);
}

.payment-method-icons {
    display: flex;
    gap: var(--space-sm);
    font-size: 2rem;
    color: var(--text-secondary);
}

.stripe-card-element {
    padding: var(--space-sm);
    background: var(--dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stripe-card-element.StripeElement--focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

#card-errors {
    color: var(--danger);
    font-size: var(--font-sm);
    margin-top: var(--space-xs);
}

/* Order summary styles for checkout */
.order-summary-container {
    position: sticky;
    top: 100px;
}

.order-items {
    margin-bottom: var(--space-md);
}

.order-totals {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
}

.total-line.total {
    font-weight: 700;
    font-size: var(--font-lg);
    color: var(--white);
    padding-top: var(--space-sm);
    border-top: 2px solid var(--border-color);
    margin-top: var(--space-sm);
}

.promo-code-section {
    margin-top: var(--space-md);
}

.promo-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: var(--font-sm);
    text-decoration: underline;
}

.promo-input {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.security-info {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: rgba(78, 205, 196, 0.1);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    color: var(--secondary);
}

/* Responsive checkout */
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary-container {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-form-container {
        padding: var(--space-md);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-steps {
        gap: var(--space-md);
    }
}

/* Additional form improvements */
.form-step h4 {
    font-size: var(--font-lg);
    color: var(--primary);
    margin: var(--space-lg) 0 var(--space-md) 0;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.form-step h4:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Better visual hierarchy for form sections */
.contact-form .form-group:last-child {
    margin-bottom: 0;
}

/* Improve button styling in forms */
.contact-form .btn,
.checkout-form .btn {
    font-size: var(--font-base);
    padding: 0.875rem 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Ensure consistent spacing in checkout */
.checkout-form-container label {
    color: var(--white);
    font-weight: 500;
}

.checkout-form-container input,
.checkout-form-container select {
    background: var(--dark);
}