/* ============================================
   GABHAN PETS - MASTER STYLESHEET
   Modern, responsive design for premium pet accessories
   ============================================ */

/* ============================================
   CSS VARIABLES & THEME
   ============================================ */
:root {
    /* Colors */
    --primary: #2c5f5d;
    --primary-dark: #1e4341;
    --primary-light: #3d7a77;
    --secondary: #2c5f5d;
    --secondary-dark: #1e4341;
    --accent: #2c5f5d;
    
    /* Neutrals */
    --gray-50: #f7f6f4;
    --gray-100: #f0eeeb;
    --gray-200: #e3e1dd;
    --gray-300: #c5c3bf;
    --gray-400: #8f8d89;
    --gray-500: #6b6966;
    --gray-600: #4a4845;
    --gray-700: #333130;
    --gray-800: #242322;
    --gray-900: #1a1918;
    
    --white: #ffffff;
    --black: #000000;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #3b82f6;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', var(--font-primary);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;
    
    /* Section Spacing (vertical rhythm system) */
    --section-hero: 4rem 0 3rem;      /* Primary hero sections */
    --section-content: 3rem 0 2.5rem; /* Standard content sections */
    --section-tight: 2rem 0 1.5rem;   /* Utility/compact sections */
    --section-gap: 2.5rem;            /* Gap between related sections */
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Container */
    --container-max: 1200px;
    
    /* Z-index hierarchy (clear stacking order) */
    --z-dropdown: 100;
    --z-sticky: 900;
    --z-overlay: 997;
    --z-nav-mobile: 998;
    --z-sticky-cta: 999;
    --z-scroll-top: 1000;
    --z-modal: 9999;
    --z-modal-content: 10000;
    
    /* iOS viewport height fallback (set by JS) */
    --vh: 1vh;
    
    /* Backgrounds */
    --bg-primary: #fdfcfb;
    --bg-secondary: #f7f6f4;
    --bg-tertiary: #f0eeeb;
    
    /* Borders */
    --border-color: #e5e7eb;
    --border-color-light: #f3f4f6;

    /* Text Tokens */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-tertiary: var(--gray-500);
}

/* Dark Mode */
[data-theme="dark"] {
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-400: #6b7280;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;
    --white: #0f172a;
    --black: #ffffff;
    
    /* Dark mode backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    /* Dark mode borders */
    --border-color: #334155;
    --border-color-light: #1e293b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    
    /* Dark Mode Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;

    /* Text Tokens - Dark */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-tertiary: var(--gray-500);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Mobile-first 16px page padding */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

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

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

/* ============================================
   REUSABLE UTILITY CLASSES
   ============================================
   Use these instead of inline styles
   ============================================ */

/* Content Sections */
.content-section {
    padding: var(--section-content);
}

.content-section--tight {
    padding: var(--section-tight);
}

.content-section--bg {
    background: var(--bg-secondary);
}

/* Text Styles */
.text-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.text-body--lg {
    font-size: 1.125rem;
    line-height: 1.8;
}

.text-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.text-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Section Headings */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-title--sm {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Card Boxes */
.card-box {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.card-box--muted {
    background: var(--bg-secondary);
}

/* Grid Layouts */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

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

/* Flex Utilities */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
    gap: 3rem;
}

/* Trust Components */
.trust-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.trust-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* Max Width Containers */
.max-w-sm { max-width: 500px; margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 700px; margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 900px; margin-left: auto; margin-right: auto; }

/* Background Utilities */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Card Variants */
.card-accent {
    border-left: 4px solid var(--primary);
    padding: 1.25rem;
}

.card-top-accent {
    border-top: 4px solid var(--primary);
}

.card-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Text Colors */
.text-primary {
    color: var(--primary);
}

/* Text Styles */
.text-italic {
    font-style: italic;
}

/* Callout Boxes */
.callout-box {
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}

.callout-highlight {
    border-left: 4px solid var(--primary);
}

/* Text Highlights */
.text-highlight {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar,
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: none;
    padding: 0 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    height: 64px;
    display: flex;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1440px) {
    .navbar,
    .header {
        padding: 0 32px;
    }
}

html[data-theme="dark"] .navbar,
html[data-theme="dark"] .header {
    background: #111827;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.navbar .container,
.header .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

[data-theme="dark"] .navbar,
[data-theme="dark"] .header {
    background: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 64px;
    gap: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    font-family: var(--font-heading);
    font-weight: 800;
    flex-shrink: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar .logo img,
.header .logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-lg);
}

.logo-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
    min-width: 0;
}

.logo-text {
    font-size: 28px;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[data-theme="dark"] .logo-text {
    color: rgba(255, 255, 255, 0.95);
}

.logo-subtitle {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
}

.navbar .logo-subtitle,
.header .logo-subtitle {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    z-index: 999;
    position: relative;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    min-width: 0;
}

.nav-menu {
    display: flex;
    gap: 28px;
    align-items: center;
    height: 64px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-menu li {
    position: relative;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown > a svg {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover > a svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown, 100);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0.25rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--bg-secondary);
    border-color: var(--gray-700);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    color: var(--text-secondary);
    padding: 0 12px;
    border-radius: 999px;
    transition: all var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--bg-secondary);
}

@media (min-width: 1024px) {
    .nav-menu a[href="blog.html"],
    .nav-menu a[href="about.html"],
    .nav-menu a[href="contact.html"] {
        display: none;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 16px;
    flex-shrink: 0;
}

.theme-toggle {
    padding: 10px;
    color: var(--gray-700);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    width: 44px;
    height: 44px;
}

.theme-toggle:hover {
    background: var(--gray-100);
    color: var(--primary);
}

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

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

.cart-btn {
    position: relative;
    padding: 10px;
    color: var(--gray-700);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.cart-btn:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--radius-full);
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
    border: 2px solid var(--bg-primary);
    animation: cartPulse 2s ease infinite;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   MOBILE HEADER - WORLD-CLASS PREMIUM FIX
   ============================================ */
@media (max-width: 768px) {
    /* Rule 1: One-row header, 60px tall max */
    .navbar,
    .header {
        height: 60px;
        padding: 0 16px;
    }
    
    .navbar .container,
    .header .container {
        height: 60px;
        padding: 0;
    }
    
    /* Hide tagline/subtitle on mobile */
    .logo-subtitle,
    .brand__tagline,
    .brand__subtitle,
    .header .logo-subtitle {
        display: none !important;
    }
    
    /* Compact logo */
    .logo {
        gap: 8px;
    }
    
    .navbar .logo img,
    .header .logo img {
        width: 28px;
        height: 28px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    /* Rule 2: 16px page padding, tight spacing */
    .nav-wrapper {
        gap: 0;
    }
    
    .nav-actions {
        gap: 12px;
    }
    
    /* 44px tap targets */
    .theme-toggle,
    .cart-btn {
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    
    /* Rule 3: No transforms/filters on header/footer for crisp text */
    .navbar,
    .header,
    .navbar *,
    .header *,
    .footer,
    .footer * {
        transform: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Exception: allow hamburger animation */
    .mobile-menu-toggle span {
        transform: none;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        transform: scaleX(0) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg) !important;
    }
    
    /* Cart badge positioning for mobile */
    .cart-count {
        top: -2px;
        right: -2px;
        font-size: 10px;
        min-width: 18px;
        height: 18px;
        padding: 2px 5px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .navbar,
    .header {
        height: 56px;
        padding: 0 12px;
    }
    
    .navbar .container,
    .header .container {
        height: 56px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .navbar .logo img,
    .header .logo img {
        width: 24px;
        height: 24px;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .theme-toggle,
    .cart-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 6px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    min-height: 40px;
    gap: var(--spacing-lg);
}

.promo-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.promo-icon {
    font-size: 1.25rem;
}

.promo-left p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.promo-countdown {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.countdown-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
}

.countdown-value {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.countdown-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.countdown-sep {
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.7;
    padding: 0 0.1rem;
}

/* Countdown urgency animations */
.countdown-urgent .countdown-value {
    color: var(--warning);
    animation: countdownPulse 1s ease infinite;
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .promo-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .promo-left p {
        font-size: 0.8rem;
    }
    
    .countdown-label {
        display: none;
    }
    
    .countdown-unit {
        min-width: 28px;
    }
    
    .countdown-value {
        font-size: 0.9rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 5rem 0;
    background: var(--bg-primary);
    overflow: hidden;
    isolation: isolate;
    min-height: 650px;
    display: flex;
    align-items: center;
}

/* Ensure decorative pseudo-layers never block clicks in the hero */
.hero::before,
.hero::after {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero {
        animation: none;
    }
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-primary);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 540px;
    line-height: 1.7;
}

[data-theme="dark"] .hero-description {
    color: #d1d5db;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
}

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

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    max-width: 640px;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .hero-img {
        max-width: 100%;
    }
}

.social-proof {
    padding: 2.5rem 0 3.5rem;
    background: var(--bg-secondary);
}

.social-proof-content {
    display: grid;
    grid-template-columns: minmax(0, 600px);
    gap: 1rem;
    justify-content: center;
    text-align: center;
}

.social-proof-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.social-proof-content p {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.product-showcase {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.product-showcase::after {
    content: '🐱';
    font-size: 8rem;
    opacity: 0.15;
    position: absolute;
    pointer-events: none;
}

.product-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.floating-badge {
    position: absolute;
    background: var(--bg-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 0.875rem;
    animation: float 3s ease-in-out infinite;
}

.floating-badge-1 {
    top: 15%;
    left: 5% !important;
}

.floating-badge-2 {
    bottom: 15%;
    right: 5% !important;
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.4; }
}

@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5); }
}

@keyframes socialPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

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

/* ============================================
   SOCIAL PROOF BAR
   ============================================ */
.social-proof-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-md) 0;
    overflow: hidden;
}

.social-proof-ticker {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.ticker-content {
    display: inline-flex;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-2xl);
    color: var(--white);
    font-size: 0.95rem;
}

.ticker-icon {
    font-size: 1.2rem;
}

.ticker-text strong {
    color: var(--warning);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   TRUST BADGES SECTION
   ============================================ */
.trust-badges-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.trust-badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trust-badge-icon {
    font-size: 1.75rem;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
}

.trust-badge-text strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.trust-badge-text span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .trust-badge-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .trust-badge-icon {
        font-size: 1.5rem;
    }
    
    .trust-badge-text strong {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .trust-badges-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badge-item {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* ============================================
   LIVE ACTIVITY WIDGET
   ============================================ */
.live-activity-widget {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 900;
    animation: slideInLeft 0.5s ease 2s both;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.live-activity-widget:hover {
    transform: scale(1.02);
}

.activity-pulse {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: livePulse 1.5s ease infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.activity-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.activity-icon {
    font-size: 1rem;
}

.activity-content strong {
    color: var(--primary);
    font-weight: 700;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .live-activity-widget {
        bottom: auto;
        top: 80px;
        left: 10px;
        right: 10px;
        justify-content: center;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .activity-content {
        font-size: 0.8rem;
    }
}

/* Video Play Button Hover */
.video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(99, 102, 241, 1);
}

.video-play-overlay:focus {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    min-height: 44px;
    cursor: pointer;
    border: none;
}

@media (max-width: 480px) {
    .btn {
        min-width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

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

.btn-secondary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl) auto;
    line-height: 1.6;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 3rem 0 2.5rem;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.feature-card {
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.featured-products {
    padding: 3rem 0 2.5rem;
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.product-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
}

.product-card:focus-within {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    transform: translateY(-4px);
}

.product-badge-row {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.product-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.badge-bestseller {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--white);
}

.badge-bundle {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: var(--white);
}

.badge-instock {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.badge-new {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: var(--white);
}

.product-badge.special {
    background: linear-gradient(135deg, var(--accent), var(--warning));
}

.product-badge.bestseller::before {
    content: '⭐';
    font-size: 0.875rem;
}

.product-badge.special::before {
    content: '🎁';
    font-size: 0.875rem;
}

.product-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-orientation: from-image; /* Respect EXIF rotation */
    transition: transform var(--transition-slow);
}

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

.product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-placeholder::after {
    content: '🐱';
    font-size: 4rem;
    opacity: 0.3;
}

.product-info {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.stars {
    color: var(--accent);
    font-size: 1rem;
}

.rating-count {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    margin-top: auto;
    border-top: 1px solid var(--gray-200);
}

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

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: stretch;
}

.btn-add-cart {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 93, 0.25);
}

.btn-icon-only {
    width: 40px;
    min-width: 40px;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-old {
    font-size: 1rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
    margin-right: var(--spacing-xs);
}

.price-new {
    color: var(--secondary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 3rem 0 2.5rem;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.testimonial-card {
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-meta {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    padding: 2.5rem 0 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--gray-200);
}

.newsletter-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text {
    margin-bottom: 1.5rem;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.newsletter-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

.newsletter-benefits {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.newsletter-benefits li {
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 500;
    padding-left: 0.5rem;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.newsletter-form .btn {
    padding: 1rem 2rem;
    gap: 0.5rem;
    white-space: nowrap;
}

.newsletter-privacy {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 4rem 0 3rem;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

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

.cta-section .btn-primary {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

.cta-section .btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.cta-section .btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   CONFIRM MODAL (replaces browser confirm())
   ============================================ */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1rem;
}

.confirm-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.confirm-dialog {
    background: var(--bg-primary, #fdfcfb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-xl, 1rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 380px;
    padding: 2rem;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.confirm-overlay.is-visible .confirm-dialog {
    transform: scale(1) translateY(0);
}

.confirm-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-icon.warn {
    background: #fef3c7;
    color: #d97706;
}

.confirm-icon.danger {
    background: #fee2e2;
    color: #dc2626;
}

.confirm-icon.info {
    background: #dbeafe;
    color: #2563eb;
}

.confirm-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.confirm-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
}

.confirm-actions .btn {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md, 0.5rem);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
}

.confirm-actions .btn:active {
    transform: scale(0.97);
}

.confirm-btn-cancel {
    background: var(--bg-tertiary, #f0eeeb);
    color: var(--text-primary);
}

.confirm-btn-cancel:hover {
    background: var(--bg-secondary, #f7f6f4);
}

.confirm-btn-confirm {
    background: var(--primary, #2c5f5d);
    color: #fff;
}

.confirm-btn-confirm:hover {
    background: var(--primary-dark, #1e4a48);
}

.confirm-btn-danger {
    background: #dc2626;
    color: #fff;
}

.confirm-btn-danger:hover {
    background: #b91c1c;
}

/* Dark mode */
[data-theme="dark"] .confirm-dialog {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .confirm-btn-cancel {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .confirm-btn-cancel:hover {
    background: #475569;
}

[data-theme="dark"] .confirm-icon.warn {
    background: rgba(217, 119, 6, 0.15);
}

[data-theme="dark"] .confirm-icon.danger {
    background: rgba(220, 38, 38, 0.15);
}

[data-theme="dark"] .confirm-icon.info {
    background: rgba(37, 99, 235, 0.15);
}

/* ============================================
   CLEAR CART — subtle text-link style
   ============================================ */
.clear-cart-row {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    text-align: center;
}

.clear-cart-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm, 0.25rem);
    transition: color 0.2s, background 0.2s;
}

.clear-cart-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

[data-theme="dark"] .clear-cart-btn:hover {
    background: rgba(220, 38, 38, 0.12);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1b2a3e;
    color: #c8d0da;
    padding: 2rem 0 1rem;
    /* Prevent GPU compositing blur on text */
    transform: none;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

[data-theme="dark"] .footer {
    background: #0d1926;
}

.footer * {
    transform: none;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Re-enable transforms for interactive footer elements */
.footer .social-links a:hover,
.footer .social-links a:active,
.footer .social-links a svg,
.footer .payment-icons svg:hover {
    transform: unset;
}

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

.footer-col-brand {
    max-width: 340px;
}

.footer-newsletter {
    margin: 1.5rem 0;
}

.footer-newsletter .newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.footer-legal-links a {
    color: #7a8899;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: #ffffff;
}

.footer-legal-links span {
    color: #4a5568;
}

.footer-trust {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

[data-theme="dark"] .footer-trust {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #7a8899;
}

.payment-label {
    font-size: 0.8rem;
    color: #7a8899;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.footer-title {
    margin-bottom: var(--spacing-md);
}

.footer-title .logo-text {
    color: #ffffff;
}

.footer-description {
    color: #94a3b8;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: #94a3b8;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
    pointer-events: none;
}

.social-links a svg {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: socialPulse 1.5s infinite;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.social-links a:active {
    transform: translateY(-1px) scale(1);
}

/* Brand-specific hover colors */
.social-facebook:hover::before {
    background: #1877f2 !important;
}

.social-instagram:hover::before {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
}

.social-twitter:hover::before {
    background: #1da1f2 !important;
}

.social-tiktok:hover::before {
    background: linear-gradient(135deg, #00f2ea, #ff0050) !important;
}

.footer-heading {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #94a3b8;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-payment > span {
    color: #7a8899;
    font-size: 0.8rem;
    white-space: nowrap;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.payment-icons svg {
    display: block;
    height: 24px;
    width: auto;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    border-radius: 3px;
    opacity: 0.7;
}

.payment-icons svg:hover {
    transform: translateY(-1px);
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Premium Minimal: Full-screen overlay with fade (no transform blur) */
    .nav-center {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        padding: 80px 24px 24px;
        display: flex;
        flex-direction: column;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 998;
        overflow-y: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .nav-center.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Clean header bar - no gradient, just subtle border */
    .nav-center::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        pointer-events: none;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        flex: 1;
    }
    
    /* No stagger animation - instant crisp text */
    .nav-menu li {
        width: 100%;
        opacity: 1;
    }
    
    .nav-center.active .nav-menu li {
        opacity: 1;
    }
    
    /* Remove stagger delays - premium minimal is instant */
    .nav-center.active .nav-menu li:nth-child(1),
    .nav-center.active .nav-menu li:nth-child(2),
    .nav-center.active .nav-menu li:nth-child(3),
    .nav-center.active .nav-menu li:nth-child(4),
    .nav-center.active .nav-menu li:nth-child(5),
    .nav-center.active .nav-menu li:nth-child(6),
    .nav-center.active .nav-menu li:nth-child(7) {
        transition-delay: 0s;
    }
    
    /* Clean nav links - 56px tap targets, no arrows */
    .nav-menu a {
        display: flex;
        align-items: center;
        min-height: 56px;
        padding: 16px 0;
        font-size: 17px;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
        position: relative;
    }
    
    /* Remove arrow pseudo-element */
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        color: var(--primary);
        background: transparent;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--primary);
        margin-left: 0;
        padding-left: 16px;
        background: transparent;
        border-radius: 0;
    }
    
    .dropdown-menu a {
        font-size: 15px;
        font-weight: 500;
        min-height: 48px;
        padding: 12px 0;
    }
    
    /* Mobile Menu Toggle Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile Menu Footer */
    .mobile-menu-footer {
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid var(--border-color);
    }
    
    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 997;
        animation: fadeIn 0.3s ease;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .product-showcase {
        height: 350px;
    }
    
    .floating-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .floating-badge-1 {
        top: 10%;
        left: 2% !important;
    }
    
    .floating-badge-2 {
        bottom: 10%;
        right: 2% !important;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: var(--spacing-lg);
    }
    
    .stat {
        min-width: 100px;
    }
    
    .features-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .product-card {
        box-shadow: var(--shadow-sm);
    }
    
    /* Footer mobile - clean single column */
    .footer {
        padding: 32px 0 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-col-brand {
        max-width: 100%;
    }
    
    .footer-col h4,
    .footer-title {
        margin-bottom: 16px;
    }
    
    .footer-col ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-col a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-newsletter .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-newsletter input,
    .footer-newsletter .btn {
        width: 100%;
        min-height: 48px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        align-items: center;
        padding-top: 24px;
    }
    
    .footer-legal {
        align-items: center;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .footer-legal-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .footer-payment {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }
    
    .payment-icons {
        justify-content: center;
    }
    
    .footer-trust > div {
        flex-direction: column;
        gap: 16px !important;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .product-showcase {
        height: 280px;
    }
    
    .floating-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .promo-content p {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
    }
    
    /* ============================================
       MOBILE PAGE LAYOUT FIXES
       ============================================ */
    
    /* Contact page: Stack 2-column grid */
    section > .container > div[style*="grid-template-columns: 1fr 1fr"],
    section > .container > div[style*="grid-template-columns:1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    /* About page: Stack values grid and why-choose */
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns:repeat(3, 1fr)"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    div[style*="grid-template-columns: repeat(2, 1fr)"],
    div[style*="grid-template-columns:repeat(2, 1fr)"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    /* Reviews page: Stack summary grid */
    div[style*="grid-template-columns: 1fr 2fr"],
    div[style*="grid-template-columns:1fr 2fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    div[style*="border-right"] {
        border-right: none !important;
        padding-right: 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Timeline mobile fix */
    div[style*="padding-left: 3rem"],
    div[style*="padding-right: 3rem"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Form inputs: 48px min-height tap targets */
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    select {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    /* Filter/sort buttons: 48px tap targets */
    .filter-btn,
    .sort-select,
    .faq-category-btn,
    button[style*="padding: 0.5rem"] {
        min-height: 48px !important;
        padding: 12px 16px !important;
    }
}

/* ============================================
   SHOP PAGE STYLES
   ============================================ */

/* Shop Hero Section */
.shop-hero {
    padding: 3rem 0 2.5rem;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
}

.shop-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
    pointer-events: none;
}

.shop-hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.shop-hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.shop-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.shop-hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.shop-hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.shop-hero-rating .rating-stars {
    color: #f59e0b;
    letter-spacing: -1px;
}

.shop-hero-rating .rating-text {
    color: var(--text-secondary);
}

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

.shop-hero-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.shop-hero-sub {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Trust Strip */
.trust-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
    padding: 0.75rem 0;
    position: relative;
    z-index: 1;
}

.trust-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-strip-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Trust strip dark mode */
[data-theme="dark"] .trust-strip {
    background: #1b2635;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .trust-strip-item {
    color: #c6d1dc;
}

[data-theme="dark"] .trust-strip-item svg {
    color: #5db8b4;
}

/* ============================================
   3-TIER HEADER SYSTEM
   ============================================
   1. Primary Hero    - Homepage only (emotional, large, with image)
   2. Section Header  - Reviews, Shop, About (medium, compact, with CTA)
   3. Utility Header  - Support, Contact, Blog (tight, functional)
   ============================================ */

/* Base page header (default to section-header size) */
.page-header {
    padding: 2rem 0 1.5rem;
    background: var(--bg-secondary);
    text-align: center;
}

/* --- SECTION HEADER (Reviews, Shop, About) --- */
.page-header.section-header,
.page-header.reviews-header {
    padding: 2rem 0 1.5rem;
}

.page-header.section-header .page-title,
.page-header.reviews-header .page-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

/* --- UTILITY HEADER (Support, Contact, Blog) --- */
.page-header.utility-header {
    padding: 1.5rem 0 1rem;
    background: var(--bg-secondary);
}

.page-header.utility-header .page-title {
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    margin-bottom: 0.375rem;
}

.page-header.utility-header .page-description {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

/* --- Shared Header Elements --- */
.page-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-header-actions .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* About page special styling */
.page-header.about-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 2rem 0 1.5rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    min-width: 140px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.pulse-glow {
    /* Removed pulsing animation */
}

.animate-title {
    animation: fadeSlideUp 0.8s ease-out;
}

.animate-subtitle {
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.shop-section {
    padding: 2.5rem 0 3rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    max-width: 1100px;
    margin: 0 auto;
}

.shop-sidebar {
    display: none;
    top: 140px;
    height: fit-content;
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.filter-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--gray-200);
}

.filter-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.filter-close {
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-700);
}

.filter-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.filter-group {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    color: var(--gray-700);
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
    border: 1px solid transparent;
}

.filter-option:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.filter-option span:first-of-type {
    flex: 1;
}

.filter-count {
    margin-left: auto;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-300);
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.shop-toolbar-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.btn-filter-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-filter-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-filter-toggle svg {
    flex-shrink: 0;
}

.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.results-count strong {
    color: var(--text-primary);
    font-weight: 700;
}

.sort-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23374151' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.sort-select:hover {
    border-color: var(--primary);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid var(--gray-200);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.quick-view-btn {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-primary);
    color: var(--primary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0;
    transition: all var(--transition-base);
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.trust-badges {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--gray-200);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

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

.badge-item svg {
    margin: 0 auto var(--spacing-md);
    color: var(--primary);
}

.badge-item h4 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.badge-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.trust-badges-inline {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    padding: var(--spacing-lg) 0;
    margin: var(--spacing-lg) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.trust-badge-small {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.trust-badge-small svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
    padding: 2.5rem 0 3rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
}

.main-image::after {
    content: '🔍';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: var(--shadow-md);
}

.main-image:hover::after {
    opacity: 1;
}

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

.main-image:hover img {
    transform: scale(1.02);
}

/* Image Zoom Modal */
.zoom-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.zoom-modal.active .zoom-modal-content {
    transform: scale(1);
}

.zoom-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.zoom-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: rotate(90deg);
}

.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-nav:hover {
    background: rgba(0, 0, 0, 0.3);
}

.zoom-nav.prev {
    left: -70px;
}

.zoom-nav.next {
    right: -70px;
}

.zoom-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.thumbnail {
    aspect-ratio: 1;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
    overflow: hidden;
}

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

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

.product-details h1 {
    font-family: var(--font-heading);
    font-size: 2.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--success);
    font-weight: 600;
}

.stock-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.product-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--spacing-lg);
}

.product-features {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.product-features h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--gray-700);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.quantity-selector {
    margin-bottom: var(--spacing-lg);
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

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

.quantity-input button {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 1.25rem;
    font-weight: 700;
    transition: background var(--transition-fast);
}

.quantity-input button:hover {
    background: var(--gray-200);
}

.quantity-input input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    outline: none;
    pointer-events: none; /* Display-only: custom ± buttons handle changes */
    -moz-appearance: textfield; /* Firefox: remove spinners */
}

/* Remove native number input spinners globally */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Quantity controls inside any container */
.quantity-controls button {
    line-height: 1;
    user-select: none;
}

.add-to-cart-section {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.add-to-cart-section .btn {
    flex: 1;
}

/* Upsell Widget Button */
.btn-upsell-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-upsell-add:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================
   STICKY CTA BAR (Product Pages)
   ============================================ */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    z-index: var(--z-sticky-cta, 999);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    padding: var(--spacing-sm) 0;
    padding-bottom: calc(var(--spacing-sm) + env(safe-area-inset-bottom, 0px));
    will-change: transform, opacity;
}

.sticky-cta-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Push back-to-top button up when sticky bar is visible */
.sticky-cta-bar.visible ~ .back-to-top,
body.sticky-bar-visible .back-to-top {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.sticky-product-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 0;
}

.sticky-product-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.sticky-product-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sticky-product-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.sticky-product-shipping {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.3;
}

.sticky-cta-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.sticky-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.sticky-rating .stars {
    color: var(--warning);
    font-size: 0.85rem;
}

.sticky-rating .count {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.sticky-add-btn {
    padding: var(--spacing-sm) var(--spacing-xl) !important;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .sticky-cta-bar {
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
    
    .sticky-cta-bar .container {
        max-width: 100%;
        padding: 0;
        width: 100%;
    }
    
    .sticky-cta-bar .sticky-cta-content {
        gap: 12px;
    }
    
    .sticky-product-thumb {
        width: 36px;
        height: 36px;
    }
    
    .sticky-product-name {
        font-size: 0.8rem;
    }
    
    .sticky-product-price {
        font-size: 0.9rem;
    }
    
    .sticky-product-shipping {
        display: none;
    }
    
    .sticky-rating {
        display: none;
    }
    
    .sticky-add-btn {
        padding: 0 20px !important;
        height: 44px;
        font-size: 15px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sticky-add-btn svg {
        display: none;
    }
}

@media (max-width: 480px) {
    .sticky-cta-bar {
        padding: 8px 12px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
    
    .sticky-add-btn {
        height: 42px;
        font-size: 14px;
        padding: 0 16px !important;
    }
}

.product-tabs {
    margin-top: var(--spacing-3xl);
}

.tabs-header {
    display: flex;
    gap: var(--spacing-md);
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: var(--spacing-xl);
}

.tab-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.reviews-summary {
    display: flex;
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
}

.rating-overview {
    text-align: center;
}

.overall-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rating-stars {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.total-reviews {
    color: var(--text-secondary);
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.rating-bar-label {
    width: 60px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-full);
}

.rating-bar-count {
    width: 50px;
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.review-item {
    padding: var(--spacing-xl);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-md);
}

.review-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.review-date {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ============================================
   RESPONSIVE - SHOP & PRODUCT PAGES
   ============================================ */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        z-index: 9998;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-xl);
        border-radius: 0;
        padding-top: var(--spacing-xl);
    }
    
    .shop-sidebar.active {
        left: 0;
    }
    
    .filter-header {
        display: flex;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9997;
        backdrop-filter: blur(2px);
    }
    
    .filter-overlay.active {
        display: block;
    }
    
    .btn-filter-toggle {
        display: flex;
    }
    
    .trust-strip {
        position: relative;
        top: 0;
    }
    
    .trust-strip-inner {
        gap: 1.5rem;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .promo-banner {
        padding: 1rem 0;
    }
    
    .promo-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .promo-content p {
        font-size: 0.8125rem;
    }
    
    .newsletter-section {
        padding: 3rem 0;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .newsletter-description {
        font-size: 1rem;
    }
    
    .newsletter-benefits {
        text-align: center;
    }
    
    .newsletter-benefits li {
        font-size: 0.9375rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .shop-hero {
        padding: 2rem 0 2rem;
    }
    
    .shop-hero h1 {
        font-size: 1.5rem;
    }
    
    .shop-hero-description {
        font-size: 1rem;
    }
    
    .shop-hero-rating {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.85rem;
    }
    
    .shop-hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .shop-hero-actions .btn {
        width: 100%;
    }
    
    .shop-hero-sub {
        font-size: 0.875rem;
    }
    
    .trust-strip-inner {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 0 var(--spacing-md);
    }
    
    .trust-strip-item {
        font-size: 0.8125rem;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .shop-toolbar-left,
    .shop-toolbar-right {
        justify-content: space-between;
    }
    
    .sort-label {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-select {
        flex: 1;
        max-width: 200px;
    }
    
    .shop-sidebar {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--transition-base);
}

img[loading="lazy"].loaded {
    opacity: 1;
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Skeleton States */
.skeleton-wrapper {
    pointer-events: none;
}

.skeleton-text {
    height: 1em;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5em;
    background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 65%; }
.skeleton-text.long { width: 90%; }
.skeleton-text.full { width: 100%; }

.skeleton-heading {
    height: 1.5em;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75em;
    background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-image {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-button {
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Skeleton Product Card */
.skeleton-product-card {
    padding: var(--spacing-md);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
}

.skeleton-product-card .skeleton-image {
    aspect-ratio: 1;
    margin-bottom: var(--spacing-md);
}

.skeleton-product-card .skeleton-heading {
    width: 80%;
}

.skeleton-product-card .skeleton-text.price {
    width: 30%;
    height: 1.25em;
}

/* Skeleton Review Card */
.skeleton-review {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
}

.skeleton-review-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    100% { left: 150%; }
}

/* Content Loading States */
.content-loading {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    color: var(--text-tertiary);
}

.content-loading .loading-spinner {
    width: 48px;
    height: 48px;
}

/* Page Transition Loading */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
}

.page-loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    background-size: 200% 100%;
    animation: page-loading 1.5s ease-in-out infinite;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.page-loading.active .page-loading-bar {
    transform: scaleX(0.8);
}

.page-loading.complete .page-loading-bar {
    transform: scaleX(1);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.3s ease 0.2s;
}

@keyframes page-loading {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* Dark Mode Skeleton Adjustments */
.dark-mode .skeleton,
.dark-mode .skeleton-text,
.dark-mode .skeleton-heading,
.dark-mode .skeleton-image,
.dark-mode .skeleton-avatar,
.dark-mode .skeleton-button {
    background: linear-gradient(90deg, var(--gray-800) 0%, var(--gray-700) 50%, var(--gray-800) 100%);
    background-size: 200% 100%;
}

.dark-mode .loading-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.dark-mode .loading-spinner {
    border-color: var(--gray-700);
    border-top-color: var(--primary);
}

.filter-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.filter-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

@media (max-width: 768px) {
    .shop-sidebar {
        grid-template-columns: 1fr;
    }
    
    .shop-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    .add-to-cart-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .tabs-header {
        overflow-x: auto;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-icon-only {
        width: 100%;
        min-height: 48px;
    }
    
    /* Mobile tap targets - minimum 44px */
    .btn-add-cart,
    .add-to-cart-section .btn,
    .product-actions .btn {
        min-height: 48px;
        font-size: 16px;
        padding: 14px 20px;
        font-weight: 600;
    }
    
    /* Ensure text doesn't wrap on mobile */
    .btn-add-cart svg {
        flex-shrink: 0;
    }
    
    /* Product card mobile optimization */
    .product-card {
        border-radius: 12px;
    }
    
    .product-card:hover {
        transform: none;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-title {
        font-size: 17px;
    }
    
    .product-price {
        font-size: 20px;
    }
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.3s ease;
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-700);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
    transform: rotate(90deg);
}

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

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

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        padding: var(--spacing-lg);
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   SHOPPING CART MODAL
   ============================================ */
.cart-modal .modal-content {
    max-width: 480px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    height: 92vh;
    position: relative;
    border-radius: var(--radius-xl);
}

.cart-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--bg-primary);
}

.cart-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
}

.cart-item-count-badge {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

/* Free Shipping Progress */
.free-shipping-progress {
    padding: 0.5rem 1rem;
    background: rgba(44, 95, 93, 0.06);
    border-bottom: 1px solid var(--gray-200);
}

.shipping-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
}

.shipping-progress-text span:first-child {
    color: var(--primary);
}

.shipping-progress-text .shipping-goal {
    color: var(--success);
    font-weight: 600;
}

.shipping-progress-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #3a9e98);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.shipping-progress-fill.complete {
    background: linear-gradient(90deg, var(--success), #22c55e);
}

.shipping-notice {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--success);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.5rem;
}\n\n/* Empty Cart Enhancement */\n.empty-cart {
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: emptyCartFadeIn 0.5s ease-out, emptyCartBounce 0.6s ease 0.3s;
}

@keyframes emptyCartFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes emptyCartBounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-2px); }
}

.empty-cart-icon svg {
    color: var(--text-tertiary);
}

.empty-cart h3 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.empty-cart .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Empty Cart Product Recommendations */
.empty-cart-recommendations {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-100);
}

.empty-cart-recommendations .reco-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.reco-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    margin-bottom: 0.5rem;
    text-align: left;
    transition: background 0.2s;
}

.reco-product:hover {
    background: var(--gray-100);
}

.reco-product img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.reco-product-info {
    flex: 1;
    min-width: 0;
}

.reco-product-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reco-product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2px;
}

.reco-stars {
    color: #f59e0b;
    font-size: 0.7rem;
    letter-spacing: -1px;
}

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

.reco-add-btn {
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.reco-add-btn:hover {
    background: var(--primary-dark, #1e4745);
    transform: scale(1.05);
}

.reco-add-btn:active {
    transform: scale(0.97);
}

/* Empty Cart Trust Signals */
.empty-cart-trust-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
}

.trust-signal {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-signal svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Cart Upsell */
.cart-upsell {
    padding: 0.875rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.02) 100%);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.upsell-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upsell-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upsell-product img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.upsell-info {
    flex: 1;
}

.upsell-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.upsell-price {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.upsell-add {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
    background: var(--primary) !important;
    color: var(--white) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s ease;
}

.upsell-add:hover {
    background: var(--primary-dark) !important;
    transform: scale(1.05);
}

/* Cart Trust Signals */
.cart-trust-signals {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--gray-200);
}

.cart-trust-signals span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Checkout CTA Enhancement */
.btn-checkout-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    position: relative;
    overflow: hidden;
}

.btn-checkout-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-checkout-cta:hover::before {
    left: 100%;
}

.cart-body {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--spacing-md);
    min-height: 0;
    max-height: 100%;
}

.cart-body::-webkit-scrollbar {
    width: 8px;
}

.cart-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.cart-body::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.cart-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

.empty-cart {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-cart svg {
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-lg);
}

.empty-cart h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.5rem;
    align-items: center;
    padding: 0.625rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}

.cart-item:hover {
    background: var(--gray-100);
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    flex-shrink: 0;
    grid-row: span 2;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder-sm {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--bg-secondary);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.cart-item-details .cart-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cart-item-price {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 0.125rem;
    grid-column: 2;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray-300);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-primary);
    pointer-events: none; /* Display-only */
    -moz-appearance: textfield;
}

.qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

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

.cart-item-total {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.875rem;
    text-align: right;
    grid-column: 3;
    grid-row: span 2;
    align-self: center;
}

.cart-item-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: var(--error-light);
    color: var(--error);
}

.cart-item-remove svg {
    width: 16px;
    height: 16px;
}

.cart-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    z-index: 20;
}

.cart-summary {
    margin-bottom: 0.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.125rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.cart-total-row {
    border-top: 2px solid var(--gray-300);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.shipping-notice {
    background: var(--success-light);
    color: var(--success);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 0.5rem;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cart-actions .btn {
    width: 100%;
    padding: 0.7rem 1rem !important;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.cart-actions .btn-secondary {
    background: var(--gray-100) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--gray-300) !important;
}

.cart-actions .btn-secondary:hover {
    background: var(--gray-200) !important;
}

/* Cart Modal Mobile Responsive */
@media (max-width: 576px) {
    .cart-modal .modal-content {
        max-width: 100%;
        width: 100%;
        height: 100dvh; /* Modern browsers */
        height: calc(var(--vh, 1vh) * 100); /* iOS fallback */
        max-height: 100dvh;
        max-height: calc(var(--vh, 1vh) * 100);
        border-radius: 0;
        margin: 0;
    }
    
    .cart-header {
        padding: var(--spacing-md);
    }
    
    .cart-body {
        padding: var(--spacing-sm);
    }
    
    .cart-item {
        grid-template-columns: 50px 1fr auto;
        gap: 0.375rem var(--spacing-xs);
        padding: var(--spacing-sm);
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-name {
        font-size: 0.8rem;
    }
    
    .cart-item-price {
        font-size: 0.7rem;
    }
    
    .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 0.875rem;
    }
    
    .qty-value {
        min-width: 24px;
        font-size: 0.8rem;
    }
    
    .cart-footer {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .cart-summary-row {
        font-size: 0.8rem;
    }
    
    .cart-total-row {
        font-size: 1rem;
    }
    
    .cart-actions .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem;
    }
    
    .cart-trust-signals {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cart-trust-signals span {
        font-size: 0.7rem;
    }
    
    .shipping-notice {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* Objection Handling Section */
.objection-section {
    padding: 3rem 0 2.5rem;
    background: var(--bg-secondary);
}

.objection-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.objection-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.objection-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.objection-grid {
    display: grid;
    gap: var(--spacing-lg);
    text-align: left;
    margin-top: 1.5rem;
}

.objection-item {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.objection-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.objection-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.objection-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.objection-text p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Product Trust Badges */
.product-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.trust-badge {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Most Popular Badge */
.badge-popular {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: var(--white);
}

/* Sticky CTA Bar */
.sticky-cta {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md) 0;
    z-index: 999;
    opacity: 0;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.sticky-cta.visible {
    bottom: 0;
    opacity: 1;
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.sticky-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sticky-cta-title {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.btn-sticky {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .objection-title {
        font-size: 1.5rem;
    }

    .objection-intro {
        font-size: 1rem;
    }

    .objection-item {
        padding: var(--spacing-lg);
    }

    .objection-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Hide duplicate sticky-cta in favor of sticky-cta-bar */
    .sticky-cta {
        display: none !important;
    }

    .btn-sticky {
        width: 100%;
        height: 48px;
        padding: 0 20px;
        font-size: 16px;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm);
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
        grid-row: 1 / 3;
    }
    
    .cart-item-details {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .cart-item-quantity {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        justify-self: start;
    }
    
    .cart-item-total {
        position: absolute;
        top: var(--spacing-sm);
        right: calc(var(--spacing-sm) + 28px);
        grid-column: unset;
        grid-row: unset;
    }
    
    .cart-item-remove {
        position: absolute;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        grid-column: unset;
        grid-row: unset;
    }
    
    /* Make cart-item position relative for absolute children */
    .cart-item {
        position: relative;
    }
    
    .cart-actions {
        flex-direction: column;
    }
}

/* ============================================
   PAYMENT METHOD STYLES
   ============================================ */

.payment-methods {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.payment-option:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.payment-option.active {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.payment-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.payment-info {
    text-align: left;
}

.payment-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.payment-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

#card-element {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

#card-errors {
    color: var(--error);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.paypal-button-container {
    margin: 1.5rem 0;
}

/* Order Summary Loading State */
#orderSummarySection {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#orderSummarySection.loaded {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   ENHANCED NOTIFICATION SYSTEM
   ============================================ */

.notification-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    pointer-events: auto;
    animation: notificationSlideIn 0.3s ease-out;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--error);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.info {
    border-left-color: var(--info);
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.notification.success .notification-icon { color: var(--success); }
.notification.error .notification-icon { color: var(--error); }
.notification.warning .notification-icon { color: var(--warning); }
.notification.info .notification-icon { color: var(--info); }

.notification-content {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.4;
}

.notification-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.notification-dismiss:hover {
    color: var(--text-secondary);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    border-radius: 0 0 var(--radius-lg) 0;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
    .sticky-cta.is-hidden {
        display: none !important;
    }
}

@keyframes notificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    .sticky-cta-bar.is-hidden {
        display: none !important;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ============================================
   ENHANCED CART STYLES
   ============================================ */

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-800);
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

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

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
}

.item-total-price {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    min-width: 70px;
    text-align: right;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: var(--error-light);
    color: var(--error);
}

/* Cart count animation */
.cart-count {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-count-animate {
    animation: countPop 0.3s ease;
}

@keyframes countPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

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

/* Visible focus indicators for keyboard navigation */
.keyboard-nav *:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.keyboard-nav button:focus,
.keyboard-nav a:focus,
.keyboard-nav input:focus,
.keyboard-nav select:focus,
.keyboard-nav textarea:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Screen reader only text */
.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;
}

/* ARIA live region for announcements */
#aria-live-region {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */

.input-valid {
    border-color: var(--success) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2310b981' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.input-error {
    border-color: var(--error) !important;
    background-color: rgba(239, 68, 68, 0.05);
}

.validation-feedback {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    padding-left: 0.125rem;
}

.validation-feedback.error {
    color: var(--error);
}

.validation-feedback.success {
    color: var(--success);
}

.required-label::after {
    content: ' *';
    color: var(--error);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    .notification-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
        grid-row: span 2;
    }
    
    .cart-item-quantity {
        grid-column: 2;
    }
    
    .cart-item-total {
        display: none;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

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

@media print {
    .nav-main,
    .mobile-menu-toggle,
    .cart-btn,
    .scroll-to-top,
    .notification-container,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: var(--black);
        background: var(--white);
    }
    
    a {
        text-decoration: underline;
        color: var(--black);
    }
    
    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* ============================================
   ADVANCED MICRO-INTERACTIONS
   ============================================ */

/* Button hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn:hover::after {
    opacity: 1;
}

/* Ripple effect */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Card hover lift effect */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Magnetic hover effect for icons */
.magnetic-icon {
    transition: transform 0.3s ease;
}

/* Image zoom on hover */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.5s ease;
}

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

/* Glow effect */
.glow {
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* Text gradient animation */
.gradient-text-animated {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Staggered fade in */
.stagger-fade > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.5s ease forwards;
}

.stagger-fade > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-fade > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Underline animation for links */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Shake animation for errors */
.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Bounce on click */
.bounce-click:active {
    animation: bounceClick 0.15s ease;
}

@keyframes bounceClick {
    50% { transform: scale(0.95); }
}

/* Floating animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Pulse glow */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(99, 102, 241, 0); }
}

/* Typing cursor effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Progress bar animation */
.progress-bar {
    position: relative;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-bar-striped .progress-bar-fill {
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

/* Icon spin */
.icon-spin {
    animation: spin 1s linear infinite;
}

/* Subtle scale on focus */
.scale-focus:focus {
    transform: scale(1.02);
}

/* Badge pulse */
.badge-pulse {
    position: relative;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: badgePulse 2s ease-out infinite;
    background: inherit;
    pointer-events: none;
}

@keyframes badgePulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================
   SKELETON LOADING COMPONENTS
   ============================================ */

.skeleton-text {
    height: 1em;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 70%; }
.skeleton-text.long { width: 100%; }

.skeleton-image {
    aspect-ratio: 1;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-card {
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.skeleton-card .skeleton-image {
    height: 200px;
    margin-bottom: 1rem;
}

.skeleton-card .skeleton-text {
    margin-bottom: 0.5rem;
}

/* ============================================
   MICRO-INTERACTIONS & ANIMATIONS
   ============================================ */

/* Magnetic hover effect for buttons */
.btn-magnetic {
    transition: transform 0.15s ease-out;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.ripple:active::after {
    transform: translate(-50%, -50%) scale(3);
    opacity: 1;
    transition: 0s;
}

/* Card lift effect */
.card-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glow effect on hover */
.glow:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4),
                0 0 40px rgba(99, 102, 241, 0.2);
}

/* Tilt effect for cards */
.tilt-effect {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

/* Bounce on click */
.bounce-click:active {
    animation: bounceClick 0.3s ease;
}

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

/* Pulse attention effect */
.pulse-attention {
    animation: pulseAttention 2s infinite;
}

@keyframes pulseAttention {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
}

/* Icon rotation on hover */
.icon-rotate:hover svg,
.icon-rotate:hover .icon {
    transform: rotate(15deg);
    transition: transform 0.3s ease;
}

/* Scale up icon on hover */
.icon-scale:hover svg,
.icon-scale:hover .icon {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* Underline grow effect */
.underline-grow {
    position: relative;
}

.underline-grow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.underline-grow:hover::after {
    width: 100%;
}

/* Text reveal on hover */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.text-reveal:hover span {
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Shake effect for errors */
.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Success checkmark animation */
.success-check {
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Gradient border animation */
.gradient-border {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientRotate 3s linear infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating animation */
.float-gentle {
    animation: floatGentle 4s ease-in-out infinite;
}

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

/* Progress fill animation */
.progress-animate .progress-fill {
    animation: progressFill 1s ease-out forwards;
}

@keyframes progressFill {
    from { width: 0; }
}

/* Number count up effect styles */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* Cursor trail effect container */
.cursor-trail {
    position: relative;
}

/* Interactive image zoom */
.image-zoom {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-zoom img {
    transition: transform 0.5s ease;
}

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

/* Blur reveal on scroll */
.blur-reveal {
    filter: blur(10px);
    opacity: 0;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.blur-reveal.revealed {
    filter: blur(0);
    opacity: 1;
}

/* Typewriter effect container */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary);
    animation: typewriter 3s steps(40) 1s 1 normal both,
               blinkCursor 0.5s step-end infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    50% { border-color: transparent; }
}

/* Elastic button */
.btn-elastic:active {
    animation: elastic 0.4s ease;
}

@keyframes elastic {
    0% { transform: scale(1); }
    30% { transform: scale(0.9, 1.1); }
    60% { transform: scale(1.05, 0.95); }
    100% { transform: scale(1); }
}

/* Parallax scroll effect */
.parallax-container {
    perspective: 1px;
    overflow-x: hidden;
    overflow-y: auto;
}

.parallax-layer {
    transform: translateZ(-1px) scale(2);
}

/* Link hover effect with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.link-arrow::after {
    content: '→';
    transition: transform 0.2s ease;
}

.link-arrow:hover::after {
    transform: translateX(5px);
}

/* Focus ring animation */
.focus-ring:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--bg-primary),
                0 0 0 5px var(--primary);
    animation: focusRing 0.3s ease;
}

@keyframes focusRing {
    0% { box-shadow: 0 0 0 0 var(--bg-primary), 0 0 0 0 var(--primary); }
    100% { box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 5px var(--primary); }
}

/* Subtle rotate on hover */
.rotate-hover:hover {
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

/* Scale in from center */
.scale-in {
    animation: scaleIn 0.4s ease forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Slide in from directions */
.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.5s ease forwards;
}

.slide-in-down {
    animation: slideInDown 0.5s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   DARK MODE MICRO-INTERACTION ADJUSTMENTS
   ============================================ */

[data-theme="dark"] .card-lift:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .skeleton,
[data-theme="dark"] .skeleton-text,
[data-theme="dark"] .skeleton-image {
    background: linear-gradient(90deg, var(--gray-700) 25%, var(--gray-600) 50%, var(--gray-700) 75%);
    background-size: 200% 100%;
}

/* ============================================
   POLICY & METHODOLOGY PAGES
   ============================================ */

/* Dark mode: brighter search fields for contrast */
html[data-theme="dark"] #faqSearch {
    background: #0f2235 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] #faqSuggestions {
    background: #0f2235;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] #faqSuggestions li:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Hero - Simple Version for Content Pages */
.hero-simple {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-simple h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Policy Content */
.policy-content {
    padding: 4rem 0;
    background: var(--gray-50);
}

.content-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.policy-section {
    background: var(--bg-secondary);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.policy-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 2rem 0 1rem;
}

.policy-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 1.5rem 0 0.75rem;
}

.policy-section .lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.policy-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.policy-section ul,
.policy-section ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-section li {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.policy-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Policy Boxes */
.policy-box {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.policy-box.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left-color: var(--primary);
}

.policy-box h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.policy-box ul,
.policy-box ol {
    margin-bottom: 0;
}

/* Process Steps */
.process-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}

.process-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

.process-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.process-steps strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.125rem;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}

.contact-card p {
    margin-bottom: 0.25rem;
}

.contact-card .small {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Policy Footer */
.policy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
    text-align: center;
}

.policy-footer .small {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* Notes & Callouts */
.note {
    background: var(--info);
    color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.note strong {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-simple {
        padding: 3rem 0 2rem;
    }
    
    .hero-simple h1 {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .policy-section {
        padding: 1.5rem;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .process-steps li {
        padding-left: 2.5rem;
    }
    
    .process-steps li::before {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog Hero (Section-header tier) */
.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.blog-hero .page-title {
    color: white;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 0.5rem;
}

.blog-hero .page-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Controls */
.blog-controls {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.blog-search {
    position: relative;
    max-width: 400px;
    flex: 1;
    min-width: 280px;
}

.blog-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.blog-search-input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

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

.blog-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
}

/* Blog Filters */
.blog-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}

.blog-filters::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.category-btn.active {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary);
}

/* Blog Content Section */
.blog-content {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

/* Featured Article */
.featured-article {
    margin-bottom: 3.5rem;
}

.featured-article-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(44, 95, 93, 0.2);
}

.featured-image {
    height: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.featured-image-icon {
    font-size: 5rem;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.featured-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.3) 100%);
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-date,
.featured-read-time {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.featured-cta:hover {
    background: var(--primary-dark);
    gap: 0.75rem;
    transform: translateX(2px);
}

/* Article Count */
.article-count-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-count {
    font-weight: 700;
    color: var(--primary);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

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

.blog-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.blog-card-icon {
    font-size: 3.5rem;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}

.blog-card-body {
    padding: 1.75rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-category.behavior { color: var(--warning); }
.blog-card-category.health { color: var(--success); }
.blog-card-category.tips { color: var(--primary); }
.blog-card-category.guides { color: var(--accent); }
.blog-card-category.care { color: var(--info); }

.blog-card-read-time {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.blog-card-date {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.blog-card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 0.5rem;
}

.blog-coming-soon {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
    font-style: italic;
}

/* No Results */
.blog-no-results {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    margin-top: 2rem;
}

.blog-no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.blog-no-results-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.blog-no-results-text {
    color: var(--text-secondary);
}

/* Load More */
.blog-load-more {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter Section */
.blog-newsletter {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.blog-newsletter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.blog-newsletter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-newsletter-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-newsletter-text {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

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

.newsletter-btn {
    background: var(--text-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
}

.blog-newsletter-disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Blog Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 280px;
    }
    
    .featured-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 3rem 0 2rem;
    }
    
    .blog-hero .page-title {
        font-size: 2rem;
    }
    
    .blog-controls {
        flex-direction: column;
    }
    
    .blog-search {
        max-width: 100%;
    }
    
    .blog-filters {
        justify-content: flex-start;
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }
    
    .category-btn {
        flex-shrink: 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-image {
        min-height: 220px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-excerpt {
        font-size: 1rem;
    }
    
    .blog-newsletter {
        padding: 3rem 0;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .blog-newsletter-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   MOBILE LAYOUT FIXES (iOS Safari Compatibility)
   ============================================ */

/* Scroll-to-top button - position above sticky CTA on mobile */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px !important; /* Clear sticky CTA bar */
        left: 1rem;
        width: 44px;
        height: 44px;
        z-index: var(--z-scroll-top, 1000);
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 100px !important; /* Extra clearance for taller mobile CTAs */
        left: 0.75rem;
        width: 40px;
        height: 40px;
    }
}

/* Ensure sticky CTA doesn't overlap with modal */
.sticky-cta-bar,
.sticky-cta {
    z-index: var(--z-sticky-cta, 999);
}

/* Modal overlay should cover everything */
.modal {
    z-index: var(--z-modal, 9999);
}

.modal-content {
    z-index: var(--z-modal-content, 10000);
}

/* Fix body scroll lock - add touch-action for iOS */
body.menu-open,
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
    -webkit-overflow-scrolling: none;
}

/* Prevent content shift when scroll is locked */
body.menu-open,
body.modal-open {
    padding-right: 0 !important; /* Prevent scrollbar gap */
}

/* Mobile dropdown should close when navigating */
@media (max-width: 768px) {
    .nav-dropdown .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-dropdown.open .dropdown-menu {
        max-height: 300px;
    }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: var(--z-scroll-top, 1000);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-dark, #1e4a48);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Safe area insets */
@supports (bottom: env(safe-area-inset-bottom)) {
    .scroll-to-top {
        bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: calc(env(safe-area-inset-bottom, 20px) + 80px) !important;
    }
    
    .sticky-cta-bar,
    .sticky-cta {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* Cart panel and mobile menu use dynamic viewport */
.cart-modal .modal-content,
.nav-center {
    height: calc(var(--vh, 1vh) * 100);
}

/* ============================================
   LAYOUT SAFETY NET
   ============================================ */

/* Prevent body from going full-screen / fixed */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: block !important;
    overflow-y: auto !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
}

body:not(.modal-open):not(.menu-open) {
    position: static !important;
}

/* Prevent page sections from becoming full-screen centered blocks */
.page,
.page-shell,
.page-content,
.hero-shell,
.layout {
    height: auto !important;
    min-height: auto !important;
}

/* Z-Index Master Reference:
   - Navbar: 1000
   - Dropdown menu: 100
   - Sticky CTA: 999
   - Mobile nav overlay: 997
   - Mobile nav panel: 998
   - Scroll-to-top FAB: 1000
   - Modal overlay: 9999
   - Modal content: 10000
*/

/* =========================================================
   GABHAN PETS — DARK MODE COLORS ONLY (No Layout Changes)
   Applies ONLY in dark mode: html[data-theme="dark"] …
   ========================================================= */

html[data-theme="dark"] {
    --lux-panel: rgba(255, 255, 255, 0.08);
    --lux-panel2: rgba(255, 255, 255, 0.12);
    --lux-line: rgba(255, 255, 255, 0.12);
    --lux-text: rgba(255, 255, 255, 0.92);
    --lux-muted: rgba(255, 255, 255, 0.70);
    --lux-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
    --lux-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.32);
}

/* ── Dark mode: global icon contrast fix ── */
html[data-theme="dark"] svg:not(.logo img):not([fill="currentColor"][fill]) {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .navbar svg,
html[data-theme="dark"] .header svg {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .cart-btn {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .theme-toggle {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .faq-icon {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .faq-question:hover .faq-icon {
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .hero-trust svg,
html[data-theme="dark"] .trust-point svg {
    stroke: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .social-links a {
    color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .social-links a:hover {
    color: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .footer svg,
html[data-theme="dark"] .footer .social-links svg {
    color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .btn svg,
html[data-theme="dark"] button svg {
    color: inherit;
}

html[data-theme="dark"] .help-topic-btn svg {
    stroke: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] body {
    background-image: none;
}

html[data-theme="dark"] #main-content {
    background-image:
        radial-gradient(1100px 600px at 15% 0%, rgba(34, 195, 166, 0.10), transparent 55%),
        radial-gradient(900px 520px at 88% 10%, rgba(201, 167, 106, 0.08), transparent 58%);
    background-repeat: no-repeat;
}

/* Dark mode header - colors only, no layout */
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .header {
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .nav-menu a {
    color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .nav-menu a.active {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .cart-btn {
    background: var(--lux-panel);
    border: 1px solid var(--lux-line);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .cart-btn:hover {
    background: var(--lux-panel2);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .testimonial,
html[data-theme="dark"] .faq-item {
    background: #1b2635;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ========== Dark Mode: Product Card Text Contrast ========== */
html[data-theme="dark"] .product-name {
    color: #e6edf5;
}

html[data-theme="dark"] .product-description {
    color: #d4dde8;
}

html[data-theme="dark"] .product-use-case {
    color: #5db8b4 !important; /* Override inline var(--primary) */
}

html[data-theme="dark"] .rating-count {
    color: #9fb1c3;
}

html[data-theme="dark"] .product-price {
    color: #e6edf5;
}

html[data-theme="dark"] .price-old {
    color: #7a8899;
}

html[data-theme="dark"] .product-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .stars {
    color: #fbbf24;
}

html[data-theme="dark"] .product-card:hover {
    border-color: rgba(44, 95, 93, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Bundle card - Best Value visual treatment */
.product-card.best-value {
    border: 2px solid var(--primary);
    position: relative;
}

.product-card.best-value::before {
    content: '✦ BEST VALUE';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 2;
}

html[data-theme="dark"] .product-card.best-value {
    border-color: rgba(93, 184, 180, 0.5);
    box-shadow: 0 0 30px rgba(44, 95, 93, 0.15);
}

html[data-theme="dark"] .price-new {
    color: #e6edf5;
}

/* Shop hero dark mode */
html[data-theme="dark"] .shop-hero .rating-text {
    color: #c6d1dc;
}

/* ========== Dark Mode: Shop Toolbar & Sort ========== */
html[data-theme="dark"] .shop-toolbar {
    background: #1b2635;
    border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .results-count {
    color: #9fb1c3;
}

html[data-theme="dark"] .results-count strong {
    color: #e6edf5;
}

html[data-theme="dark"] .sort-label {
    color: #c6d1dc;
}

html[data-theme="dark"] .sort-select {
    background: #0f172a;
    color: #e6edf5;
    border-color: rgba(255, 255, 255, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23c6d1dc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

html[data-theme="dark"] .sort-select:hover {
    border-color: rgba(93, 184, 180, 0.5);
}

html[data-theme="dark"] .sort-select:focus {
    border-color: #5db8b4;
    box-shadow: 0 0 0 3px rgba(93, 184, 180, 0.15);
}

html[data-theme="dark"] .sort-select option {
    background: #1e293b;
    color: #e6edf5;
}

html[data-theme="dark"] .btn-filter-toggle {
    background: #0f172a;
    color: #c6d1dc;
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .btn-filter-toggle:hover {
    background: #1e293b;
    border-color: rgba(93, 184, 180, 0.5);
    color: #5db8b4;
}

html[data-theme="dark"] .shop-hero-description {
    color: #c6d1dc;
}

html[data-theme="dark"] .shop-hero-eyebrow {
    color: #5db8b4;
}

/* ========== Dark Mode: Product Detail Page ========== */
html[data-theme="dark"] .product-detail h1,
html[data-theme="dark"] .product-details h1 {
    color: #e6edf5;
}

html[data-theme="dark"] .product-detail .product-description {
    color: #c6d1dc;
}

html[data-theme="dark"] .product-detail .rating span,
html[data-theme="dark"] .product-detail .rating strong {
    color: #c6d1dc;
}

html[data-theme="dark"] .product-detail .features {
    background: #1b2635;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .product-detail .features h3 {
    color: #e6edf5;
}

html[data-theme="dark"] .product-detail .features li {
    color: #c6d1dc;
}

html[data-theme="dark"] .product-features {
    background: #1b2635;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .product-features h3 {
    color: #e6edf5;
}

html[data-theme="dark"] .product-features li {
    color: #c6d1dc;
}

html[data-theme="dark"] .product-detail label[for="quantity"] {
    color: #c6d1dc !important;
}

html[data-theme="dark"] .product-detail input[type="number"] {
    background: #0f172a;
    color: #e6edf5;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .product-meta {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .stock-status {
    color: #34d399;
}

/* ========== Dark Mode: Testimonial Card Contrast ========== */
html[data-theme="dark"] .testimonial-card {
    background: #1b2635;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .testimonial-text {
    color: #c6d1dc;
}

html[data-theme="dark"] .testimonial-rating {
    color: #fbbf24;
}

html[data-theme="dark"] .author-name {
    color: #e6edf5;
}

html[data-theme="dark"] .author-meta {
    color: #9fb1c3;
}

/* ========== Dark Mode: Review Filters & Sort Dropdown ========== */
html[data-theme="dark"] #reviewSort {
    background: #1b2635;
    color: #e6edf5;
    border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] #reviewSort:hover {
    border-color: rgba(93, 184, 180, 0.5);
}

html[data-theme="dark"] #reviewSort:focus {
    border-color: #5db8b4;
    box-shadow: 0 0 0 3px rgba(93, 184, 180, 0.15);
    outline: none;
}

html[data-theme="dark"] #reviewSort option {
    background: #1e293b;
    color: #e6edf5;
}

html[data-theme="dark"] .review-filter-btn {
    background: #1b2635 !important;
    color: #c6d1dc !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] .review-filter-btn:hover {
    background: #253344 !important;
    color: #e6edf5 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] .review-filter-btn.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/* ========== Dark Mode: Section Text Contrast ========== */
html[data-theme="dark"] .section-subtitle {
    color: #c6d1dc;
}

html[data-theme="dark"] .section-subtitle:first-of-type,
html[data-theme="dark"] .section-eyebrow {
    color: #5db8b4;
}

html[data-theme="dark"] .section-title {
    color: #e6edf5;
}

html[data-theme="dark"] .section-description {
    color: #c6d1dc;
}

/* ========== Dark Mode: Newsletter Section ========== */
html[data-theme="dark"] .newsletter-section {
    background: #0f172a;
}

html[data-theme="dark"] .newsletter-title {
    color: #e6edf5;
}

html[data-theme="dark"] .newsletter-description {
    color: #c6d1dc;
}

html[data-theme="dark"] .newsletter-input {
    background: #1b2635;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.20);
}

html[data-theme="dark"] .newsletter-input::placeholder {
    color: #8fa3b8;
}

html[data-theme="dark"] .newsletter-input:focus {
    border-color: #5db8b4;
    box-shadow: 0 0 0 3px rgba(93, 184, 180, 0.15);
}

html[data-theme="dark"] .newsletter-privacy {
    color: #7a8899;
}

/* ========== Dark Mode: Final CTA Section ========== */
html[data-theme="dark"] .cta-section {
    background: #1b2635;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .cta-title {
    color: #e6edf5;
}

html[data-theme="dark"] .cta-description {
    color: #c6d1dc;
}

html[data-theme="dark"] .cta-trust-strip {
    color: #9fb1c3;
}

html[data-theme="dark"] .cta-section .btn-secondary {
    border-color: #5db8b4;
    color: #5db8b4;
    background: transparent;
}

html[data-theme="dark"] .cta-section .btn-secondary:hover {
    background: #5db8b4;
    color: #0f172a;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    margin-top: 0;
    display: block;
    line-height: 1;
}

.faq-question span {
    flex: 1;
    min-width: 0;
}

/* ========== Dark Mode: Cart Drawer / Sheet ========== */
html[data-theme="dark"] .sheet,
html[data-theme="dark"] .cart-modal .modal-content {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .sheet__header,
html[data-theme="dark"] .cart-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: #1e293b;
}

html[data-theme="dark"] .sheet__title,
html[data-theme="dark"] .cart-header h2 {
    color: #ffffff;
}

html[data-theme="dark"] .sheet__close {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .sheet__close:hover {
    background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .sheet__close svg {
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .sheet__footer,
html[data-theme="dark"] .cart-footer {
    background: #1e293b;
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Cart items */
html[data-theme="dark"] .cart-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .cart-item:hover {
    background: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .cart-item-name {
    color: #ffffff;
    font-weight: 600;
}

html[data-theme="dark"] .cart-item-price {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .cart-item-total,
html[data-theme="dark"] .item-total-price {
    color: #22c55e;
    font-weight: 700;
}

html[data-theme="dark"] .qty-value {
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .qty-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] .qty-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #22c55e;
    color: #22c55e;
}

html[data-theme="dark"] .cart-item-quantity {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .cart-item-remove {
    color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Cart summary / totals */
html[data-theme="dark"] .cart-summary-row {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .cart-total-row {
    color: #ffffff;
    border-top-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .cart-item-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

/* Free shipping progress — dark */
html[data-theme="dark"] .free-shipping-progress {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.04) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .shipping-progress-text span:first-child {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .shipping-progress-bar {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .shipping-notice {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

/* Upsell — dark */
html[data-theme="dark"] .cart-upsell {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .upsell-name {
    color: #ffffff;
}

html[data-theme="dark"] .upsell-price {
    color: rgba(255, 255, 255, 0.7);
}

/* Recommendations — dark */
html[data-theme="dark"] .reco-product {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .reco-product:hover {
    background: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .reco-product-name {
    color: #ffffff;
}

html[data-theme="dark"] .reco-price {
    color: #22c55e;
}

/* Cart trust signals — dark */
html[data-theme="dark"] .cart-trust-signals {
    border-top-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .cart-trust-signals span {
    color: rgba(255, 255, 255, 0.6);
}

/* Checkout CTA — dark */
html[data-theme="dark"] .btn-checkout-cta {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .cart-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .cart-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}

/* Empty cart — dark */
html[data-theme="dark"] .empty-cart h3 {
    color: #ffffff;
}

html[data-theme="dark"] .empty-cart p {
    color: rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .empty-cart-icon {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

html[data-theme="dark"] .empty-cart-icon svg {
    color: rgba(255, 255, 255, 0.4);
}

html[data-theme="dark"] .empty-cart-recommendations {
    border-top-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .empty-cart-recommendations .reco-heading {
    color: rgba(255, 255, 255, 0.5);
}

/* Cart scrollbar — dark */
html[data-theme="dark"] .cart-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .cart-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .cart-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Mini-cart dropdown — dark */
html[data-theme="dark"] .mini-cart-item-name {
    color: #ffffff;
}

html[data-theme="dark"] .mini-cart-item-qty {
    color: rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] .mini-cart-item-price {
    color: #ffffff;
}

html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus {
    border-color: rgba(34, 195, 166, 0.55);
    box-shadow: 0 0 0 4px rgba(34, 195, 166, 0.12);
    outline: none;
}

/* ============================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html[data-theme="dark"] * {
        transition: none !important;
    }
}

