    /* Professional CSV-Driven Catalog Styles with Enhanced Navigation */
  /* ================================================================= */

  /* CSS Custom Properties (Variables) */
  :root {
    /* Light Color Palette */
    --color-white: #ffffff;
    --color-light-gray: #f8f9fa;
    --color-soft-gray: #f1f3f4;
    --color-medium-gray: #e8eaed;
    --color-border-light: #dadce0;
    --color-text-primary: #202124;
    --color-text-secondary: #5f6368;
    --color-text-muted: #9aa0a6;
    
    /* Dynamic Brand Colors (updated from CSV) */
  --color-primary: #6366f1;
  --color-accent: #8b5cf6;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Ensure minimum contrast ratios for accessibility */
  --color-primary-light: color-mix(in srgb, var(--color-primary) 80%, white);
  --color-primary-dark: color-mix(in srgb, var(--color-primary) 60%, black);
  --color-text-on-primary: white;
    
    /* Semantic Colors */
    --color-bg: var(--color-white);
    --color-surface: var(--color-light-gray);
    --color-surface-elevated: var(--color-white);
    --color-border: var(--color-border-light);
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-light: rgba(0, 0, 0, 0.05);
    --color-overlay: rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-primary: 'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-heading: 'Poppins', sans-serif;
    
    /* Spacing Scale */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    
    /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* ============================================
    QUICK WIN 5: REFINED TYPOGRAPHY
    ============================================ */

  /* Improved readability */
  body {
    line-height: 1.65;
    letter-spacing: -0.01em;
  }

  /* Headers with subtle shadow for depth */
  .hero-title,
  .section-title,
  .brands-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    letter-spacing: -0.02em;
  }

  .hero-title {
    font-weight: 700;
    background: linear-gradient(
      135deg,
      var(--color-text-primary) 0%,
      var(--color-primary) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Card titles with better hierarchy */
  .card-title {
    letter-spacing: -0.01em;
    line-height: 1.35;
  }

  /* Subtle number styling */
  .card-badge,
  .brand-count,
  .viewer-counter,
  .slideshow-counter {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }


  /* ============================================
    DISABLE DOUBLE-TAP ZOOM EVERYWHERE
    ============================================ */

  * {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  html, body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }

  /* Specifically disable on all interactive elements */
  img, 
  a, 
  button, 
  .content-card, 
  .brand-item,
  .taxonomy-item,
  .viewer-image,
  .slideshow-image,
  .preview-image {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* Allow text selection only where needed */
  .card-title,
  .card-description,
  .brand-name,
  p,
  h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
  }


  /* Reset & Base Styles */
  /* ================== */

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

  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }

  body {
    padding-top: 80px; /* INCREASED for better mobile spacing */
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
  }

  /* Mobile body padding adjustment */
  @media (max-width: 768px) {
    body {
      padding-top: 90px; /* More space on mobile */
    }
  }

  @media (max-width: 480px) {
    body {
      padding-top: 100px; /* Even more on small mobile */
    }
  }

  /* Container System */
  /* ================ */

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

  @media (min-width: 768px) {
    .container {
      padding: 0 var(--space-6);
    }
  }

  /* ADDED: Desktop header height specification */
  @media (min-width: 769px) {
    .header-content {
      height: 60px;
    }
  }

  @media (min-width: 1200px) {
    .container {
      padding: 0 var(--space-8);
    }
  }



  /* Fix container for hero section */
  /* Fix container for hero section */
.hero .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 var(--space-4) !important;
  width: 100% !important;
  overflow: visible !important;
}
  /* Header Styles */
  /* ============= */

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98); /* More opaque */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12); /* DARKER border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* Stronger shadow */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
  }
  /* Collapsed state - hide entire header */
  .header.collapsed {
    transform: translateY(-100%);
  }
  /* FIXED: Header content spacing */
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px; /* FIXED: Updated base height */
    gap: var(--space-4);
    padding: 0 var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
  }

  /* FIXED: Mobile responsive adjustments */
  @media (max-width: 768px) {
    body {
      padding-top: 75px; /* FIXED: Increased mobile body padding */
    }
    
    .header-content {
      height: 70px; /* FIXED: Increased mobile header height */
    }
    
    .hero {
      padding: 120px var(--space-4) var(--space-6) var(--space-4); /* FIXED: Reduced top padding from 160px to 120px */
    }
    
    .hero-title {
      font-size: 2.2rem; /* Slightly smaller on mobile */
    }
    
    .breadcrumb-nav {
      margin-top: var(--space-1);
      margin-bottom: var(--space-3);
      font-size: 0.8rem;
      padding: var(--space-2) var(--space-4);
      max-width: 90%;
    }
  }

  @media (max-width: 480px) {
    body {
      padding-top: 90px; /* FIXED: Increased from 85px to 90px */
    }
    
    .header-content {
      height: auto; /* FIXED: Changed to auto */
      min-height: 80px; /* FIXED: Added min-height */
    }
    
    .hero {
      padding: 100px var(--space-3) var(--space-4) var(--space-3); /* FIXED: Reduced top padding from 170px to 100px */
    }
    
    .hero-title {
      font-size: 1.9rem;
    }
    
    .hero-subtitle {
      font-size: 1.1rem;
      margin-bottom: var(--space-6); /* Reduced spacing */
    }
    
    .breadcrumb-nav {
      font-size: 0.75rem;
      margin-top: 0;
      margin-bottom: var(--space-2);
    }
  }

.brand-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
}
/* FORCE brand info to always show */
.header .brand-info,
.brand-section .brand-info {
  display: flex !important;
  flex-direction: column !important;
}


  .brand-info * {
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Brand Section */
  /* ============= */

  .brand-section {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
    filter: contrast(1.2) saturate(1.3);
  }

  .brand-logo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: contrast(1.3) saturate(1.4);
  }

  .brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* NUCLEAR: Override everything for brand name */
  #brandName {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #202124 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    -webkit-text-fill-color: #202124 !important;
    text-shadow: none !important;
    background: none !important;
    position: relative !important;
    z-index: 999 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  #brandTagline {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #5f6368 !important;
    font-size: 0.75rem !important;
    -webkit-text-fill-color: #5f6368 !important;
  }

  /* Search Section */
  /* ============== */

  .search-section {
    flex: 1;
    max-width: 400px;
    margin-left: var(--space-4);
  }

  .search-container {
    position: relative;
    width: 100%;
  }

  .search-input {
    width: 100%;
    height: 40px;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0 var(--space-4) 0 40px;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    outline: none;
    transition: all var(--transition-base);
  }

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

  .search-input::placeholder {
    color: var(--color-text-muted);
  }

  .search-icon {
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
  }

  /* Hero Section - Dual Layout (Homepage + Inner Pages) */
  /* ==================================================== */

  .hero {
  background: #ffffff !important;
  padding: var(--space-16) 0 var(--space-8) 0; /* NO horizontal padding */
  margin-top: 0;
  overflow: hidden !important; /* ADD THIS */
  min-height: 300px !important;
  position: relative !important;
}

  /* Remove gray background on category pages too */
  body[data-page-type="category"] .hero,
  body[data-page-type="brand"] .hero {
    background: #ffffff !important;
    min-height: 350px !important;
    padding: 4rem 0 3rem 0 !important;
  }



  /* Remove text shadow/gradient interference on inner hero */
  body[data-page-type="category"] .hero,
  body[data-page-type="brand"] .hero {
    background: linear-gradient(135deg, 
      rgba(248, 249, 250, 1) 0%, 
      rgba(255, 255, 255, 1) 100%) !important;
  }

  body[data-page-type="category"] .hero *,
  body[data-page-type="brand"] .hero * {
    text-shadow: none !important;
    -webkit-text-fill-color: initial !important;
  }








  /* Prevent grid collapse when switching views */
  .hero-homepage[style*="display: none"] {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-inner[style*="display: block"] {
    display: block !important;
    height: auto !important;
    min-height: 200px !important;
  } 
  .hero-slideshow-side {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(0, 0, 0, 0.05);
  }

  .hero-slideshow-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  }

  .hero-slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transition: opacity 0.5s ease;
  }

  .hero-slideshow-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .hero-slideshow-viewport.loading .hero-slideshow-loading {
    opacity: 1;
  }

  .hero-slideshow-viewport.loading .hero-slideshow-image {
    opacity: 0.3;
  }



  .hero-content-side {
  text-align: left;
  padding: var(--space-8) 0; /* CHANGED: removed horizontal padding */
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

  /* Hero Title - Multi-line styling */
  .hero-title-line1,
  .hero-title-line2,
  .hero-title-line3 {
    display: block;
    line-height: 1.1;
  }

  .hero-title-highlight {
    color: #B8956A; /* Gold/tan color from photo */
    font-style: normal;
  }

  .hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
  padding: 0; /* ADD THIS */
}

  .hero-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  transition: transform 0.2s ease; /* CHANGED: Only transform, not "all" */
  position: relative;
  overflow: hidden;
  min-height: 90px;
  height: 90px; /* ADDED: Fixed height */
  contain: layout style paint; /* ADDED: CSS containment */
  will-change: transform; /* ADDED: GPU hint */
}

.hero-btn strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em; /* Increased letter spacing */
  line-height: 1.4; /* Added line height */
  display: block; /* Make it block for better spacing */
  margin-bottom: 0.25rem; /* Add space below */
}

.hero-btn-text-small {
  font-size: 0.8rem; /* Increased from 0.75rem */
  opacity: 0.9;
  position: absolute;
  bottom: 12px; /* Increased from 8px */
  left: 24px; /* Increased from 20px */
  line-height: 1.3;
}

.hero-btn span:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.25rem; /* Add gap between lines */
  line-height: 1.4;
}

  .hero-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
  }

  .hero-btn:hover svg {
    transform: translateX(4px);
  }

  .hero-btn-primary {
    background: #B8956A;
    color: white;
    box-shadow: 0 4px 12px rgba(184, 149, 106, 0.3);
  }

  .hero-btn-primary:hover {
    background: #A67F54;
    box-shadow: 0 6px 20px rgba(184, 149, 106, 0.4);
    transform: translateY(-2px);
  }

  .hero-btn-secondary {
    background: #8B9470;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 148, 112, 0.3);
  }

  .hero-btn-secondary:hover {
    background: #7A8360;
    box-shadow: 0 6px 20px rgba(139, 148, 112, 0.4);
    transform: translateY(-2px);
  }
/* CRITICAL: Prevent layout shift on mobile */
@media (max-width: 768px) {
  .hero-btn {
    height: 80px !important; /* Fixed height on mobile */
    min-height: 80px !important;
    padding: var(--space-4) var(--space-5) !important;
  }
  
  .hero-btn span:first-child {
    line-height: 1.3 !important; /* Stable line height */
  }
  
  .hero-btn-text-small {
    position: absolute !important;
    bottom: 10px !important;
    left: 20px !important;
    font-size: 0.75rem !important;
  }
  
  /* Prevent hero from shifting during load */
  .hero {
    min-height: 500px !important; /* Reserve space */
  }
  
  .hero-content-side {
    min-height: 350px !important; /* Reserve space */
  }
}
  /* INNER PAGES HERO: Traditional Centered */
  /* INNER PAGES HERO: Traditional Centered */
  .hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    padding: var(--space-8) var(--space-4);
  }

  /* Force inner hero title visibility */
  .hero-inner .hero-title {
    display: block !important;
    visibility: visible !important;/* INNER PAGES HERO: Traditional Centered */
  .hero-inner {
    max-width: 800px;
    width: 100% !important;
    margin: 0 auto;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    padding: var(--space-8) var(--space-4) !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  /* Force inner hero title visibility */
  .hero-inner .hero-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--color-text-primary) !important;
    -webkit-text-fill-color: var(--color-text-primary) !important;
    font-family: var(--font-display);
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: var(--space-4) !important;
    line-height: 1.2 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-shadow: none !important;
    background: transparent !important;
  }

  /* Force inner hero subtitle visibility */
  .hero-inner .hero-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--color-text-secondary) !important;
    -webkit-text-fill-color: var(--color-text-secondary) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: var(--space-6) !important;
    width: 100% !important;
    max-width: 100% !important;
    text-shadow: none !important;
    background: transparent !important;
  }
    opacity: 1 !important;
    color: var(--color-text-primary) !important;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.2;
  }

  /* Force inner hero subtitle visibility */
  .hero-inner .hero-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--color-text-secondary) !important;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
  }

  /* Mobile adjustments */
  @media (max-width: 768px) {
    .hero-inner {
      padding: var(--space-6) var(--space-4);
    }
    
    .hero-inner .hero-title {
      font-size: 2rem;
    }
    
    .hero-inner .hero-subtitle {
      font-size: 1rem;
    }
  }
  /* Hero inner wrapper for proper positioning */
  .hero-inner-wrapper {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
  }
  /* Common Hero Styles */
  .hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-10);
    line-height: 1.6;
  }

  /* Reduce spacing between hero and first section */
  .hero + #dynamicSections .content-section:first-child {
    padding-top: var(--space-5);
  }

/* ============================================
   MOBILE HERO - VERTICAL STACK LAYOUT
   ============================================ */
/* ============================================
   MOBILE HERO - VERTICAL STACK LAYOUT
   ============================================ */

@media (max-width: 768px) {
  .hero {
    padding: var(--space-8) 0 var(--space-6) 0 !important;
    overflow: visible !important;
  }
  
  .hero .container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* CRITICAL: Force flexbox vertical stack - override grid completely */
  .hero-layout.hero-homepage,
  .hero-homepage,
  #heroHomepage {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: var(--space-8) !important;
    align-items: center !important;
    justify-content: flex-start !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* Image container - TOP - full width */
  .hero-slideshow-side {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    background: #fff !important;
    border-radius: var(--radius-xl) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-xl) !important;
    border: 2px solid rgba(0, 0, 0, 0.05) !important;
    order: 1 !important;
    margin: 0 !important;
    padding: 0 var(--space-4) !important;
    box-sizing: border-box !important;
  }

  /* Content container - BOTTOM - full width, centered */
  .hero-content-side {
    text-align: center !important;
    padding: 0 var(--space-4) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-6) !important;
    align-items: center !important;
    justify-content: center !important;
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: var(--space-6) !important;
    text-align: center !important;
    width: 100% !important;
  }
  
  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: var(--space-3) !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .hero-btn {
    width: 100% !important;
    justify-content: space-between !important;
    min-height: 70px !important;
  }
  
  /* Center all title lines */
  .hero-title-line1,
  .hero-title-line2,
  .hero-title-line3 {
    display: block !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .hero {
    padding: var(--space-6) 0 var(--space-4) 0 !important;
  }
  
  .hero-slideshow-side {
    padding: 0 var(--space-3) !important;
  }
  
  .hero-content-side {
    padding: 0 var(--space-3) !important;
  }
  
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
  
  .hero-btn {
    font-size: 0.85rem !important;
    padding: var(--space-3) var(--space-4) !important;
    min-height: 65px !important;
  }
  
  .hero-btn-text-small {
    font-size: 0.7rem !important;
  }
}


@media (max-width: 768px) {
  .hero-btn {
    font-size: 0.95rem;
    padding: var(--space-4) var(--space-5);
    min-height: 85px; /* Increased */
    line-height: 1.5;
  }
  
  .hero-btn strong {
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
  }
  
  .hero-btn-text-small {
    font-size: 0.75rem;
    bottom: 10px;
    left: 20px;
  }
  .hero-title-line1,
  .hero-title-line2,
  .hero-title-line3 {
    display: block;
    line-height: 1.1;
    text-align: center;
  }
}    


  

 @media (max-width: 480px) {
  .hero-btn {
    font-size: 0.9rem;
    padding: var(--space-4) var(--space-4);
    min-height: 80px;
  }
  
  .hero-btn-text-small {
    font-size: 0.7rem;
    bottom: 8px;
    left: 16px;
  }
    
    .hero-title-line1,
    .hero-title-line2,
    .hero-title-line3 {
      font-size: 1.75rem;
    }
  }

  /* Force inner hero to override homepage styles */
  .hero:has(.hero-inner[style*="display: block"]) .hero-homepage {
    display: none !important;
  }

  .hero:has(.hero-homepage[style*="display: grid"]) .hero-inner {
    display: none !important;
  }

  /* CRITICAL: Force inner hero visibility on category pages */
  body[data-page-type="category"] .hero-inner,
  body[data-page-type="brand"] .hero-inner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    min-height: 200px !important;
  }

  body[data-page-type="category"] .hero-inner .hero-title,
  body[data-page-type="brand"] .hero-inner .hero-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #202124 !important;
    -webkit-text-fill-color: #202124 !important;
    text-shadow: none !important;
    background: transparent !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    z-index: 11 !important;
  }

  body[data-page-type="category"] .hero-inner .hero-subtitle,
  body[data-page-type="brand"] .hero-inner .hero-subtitle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #5f6368 !important;
    -webkit-text-fill-color: #5f6368 !important;
    text-shadow: none !important;
    background: transparent !important;
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    z-index: 11 !important;
  }





  /* ============================================
    QUICK WIN 2: SUBTLE BACKGROUND GRADIENTS
    ============================================ */

  /* Warm white background with subtle gradient */
  body {
    background: linear-gradient(
      135deg,
      #FEFDFB 0%,
      #FFFFFF 50%,
      #FAFAFA 100%
    );
    background-attachment: scroll;
  }

  /* Enhanced hero gradient */
  .hero {
    background: linear-gradient(
      135deg,
      rgba(248, 249, 250, 1) 0%,
      rgba(99, 102, 241, 0.03) 30%,
      rgba(139, 92, 246, 0.02) 70%,
      rgba(241, 243, 244, 1) 100%
    );
  }

  /* Subtle card background gradient */
  .content-card {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.98) 100%
    );
  }

  .content-card:hover {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(99, 102, 241, 0.02) 100%
    );
  }

  /* ============================================
    QUICK WIN 3: SMOOTH ANIMATIONS & INTERACTIONS
    ============================================ */

  /* Smooth easing for all transitions */
  * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Card entrance animation */
  @keyframes cardSlideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .content-card {
    animation: cardSlideUp 0.5s ease-out;
    animation-fill-mode: both;
  }

  /* Stagger card animations */
  .content-card:nth-child(1) { animation-delay: 0.05s; }
  .content-card:nth-child(2) { animation-delay: 0.1s; }
  .content-card:nth-child(3) { animation-delay: 0.15s; }
  .content-card:nth-child(4) { animation-delay: 0.2s; }
  .content-card:nth-child(5) { animation-delay: 0.25s; }
  .content-card:nth-child(6) { animation-delay: 0.3s; }

  /* Smooth hover scale with spring effect */
  .content-card,
  .brand-item {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .content-card:hover,
  .brand-item:hover {
    transform: translateY(-8px) scale(1.02);
  }

  /* Active state - press down effect */
  .content-card:active,
  .brand-item:active {
    transform: translateY(-2px) scale(0.98);
    transition-duration: 0.1s;
  }

  /* Arrow slide animation with bounce */
  .card-arrow {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .content-card:hover .card-arrow {
    transform: translateX(8px);
    animation: arrowBounce 0.6s ease-in-out;
  }

  @keyframes arrowBounce {
    0%, 100% { transform: translateX(8px); }
    50% { transform: translateX(12px); }
  }

  /* Badge pop animation */
  .card-badge {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .content-card:hover .card-badge {
    transform: scale(1.08);
  }

  /* Image zoom with smooth ease */
  .card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  /* Brand logo rotation on hover */
  .brand-logo-small {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .brand-item:hover .brand-logo-small {
    transform: scale(1.1) rotate(5deg);
  }

  /* Header brand logo pulse */
  .brand-logo {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .brand-logo:hover {
    animation: logoPulse 0.6s ease-in-out;
  }

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

  /* Search input smooth expand */
  .search-input {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .search-input:focus {
    transform: scale(1.02);
  }
  /* KEEP - Shimmer for skeleton screens */
  @keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
  }

  /* Button ripple effect */
  button,
  .fab-action,
  .menu-button {
    position: relative;
    overflow: hidden;
  }

  button::after,
  .fab-action::after,
  .menu-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  button:active::after,
  .fab-action:active::after,
  .menu-button:active::after {
    width: 300px;
    height: 300px;
  }

  /* FAB bounce on appearance */
  .whatsapp-fab-solo,
  .three-dot-menu {
    animation: fabBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  @keyframes fabBounceIn {
    from {
      opacity: 0;
      transform: scale(0) translateY(100px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  /* FAB pulse animation */
  .whatsapp-fab-solo {
    animation: fabBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              fabPulse 2s infinite;
  }

  @keyframes fabPulse {
    0%, 100% { 
      box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    }
    50% { 
      box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    }
  }

  /* Menu items cascade animation */
  .three-dot-menu.expanded .menu-item:nth-child(1) {
    animation: menuSlideIn 0.3s ease-out 0.05s both;
  }

  .three-dot-menu.expanded .menu-item:nth-child(2) {
    animation: menuSlideIn 0.3s ease-out 0.1s both;
  }

  .three-dot-menu.expanded .menu-item:nth-child(3) {
    animation: menuSlideIn 0.3s ease-out 0.15s both;
  }

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

  /* Smooth section fade in on scroll */
  .content-section {
    animation: sectionFadeIn 0.6s ease-out;
  }

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

  /* Image loading skeleton animation */
  @keyframes shimmer {
    0% {
      background-position: -1000px 0;
    }
    100% {
      background-position: 1000px 0;
    }
  }

  .card-image:empty,
  .brand-logo-small:empty {
    background: linear-gradient(
      90deg,
      #f0f0f0 0%,
      #e0e0e0 20%,
      #f0f0f0 40%,
      #f0f0f0 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
  }

  /* Smooth overlay fade */
  .card-overlay {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Hero title word-by-word reveal */
  .hero-title {
    animation: titleReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes titleReveal {
    from {
      opacity: 0;
      transform: translateY(30px);
      letter-spacing: 0.2em;
    }
    to {
      opacity: 1;
      transform: translateY(0);
      letter-spacing: -0.02em;
    }
  }

  /* Smooth scroll behavior */
  html {
    scroll-behavior: smooth;
  }

  /* Reduce motion for accessibility */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }



  .breadcrumb-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: 0.9rem;
    color: #202124 !important;
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-width: 600px;
    margin: var(--space-6) auto var(--space-6) auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    min-height: 40px !important;
  }

  /* Force all breadcrumb children visible */
  .breadcrumb-nav * {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .breadcrumb-nav a {
    color: #6366f1 !important;
    -webkit-text-fill-color: #6366f1 !important;
    text-decoration: none;
    font-weight: 600 !important;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    display: inline-block !important;
    background: transparent !important;
    text-shadow: none !important;
  }

  .breadcrumb-nav a:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #6366f1 !important;
    transform: translateY(-1px);
  }

  /* Breadcrumb separator */
  .breadcrumb-nav span:not([style*="font-weight"]) {
    color: #9aa0a6 !important;
    -webkit-text-fill-color: #9aa0a6 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
    background: transparent !important;
    text-shadow: none !important;
  }

  /* Current page in breadcrumb */
  .breadcrumb-nav span[style*="font-weight"] {
    color: #202124 !important;
    -webkit-text-fill-color: #202124 !important;
    font-weight: 600 !important;
    padding: var(--space-1) var(--space-2);
    background: rgba(99, 102, 241, 0.15) !important;
    border-radius: var(--radius-sm);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  /* Mobile breadcrumb */
  @media (max-width: 768px) {
    .breadcrumb-nav {
      font-size: 0.85rem;
      padding: var(--space-2) var(--space-4);
      max-width: 90%;
      min-height: 36px !important;
    }
  }

  /* ALSO ADD: Ensure search section doesn't overlap */
  .search-section {
    padding: var(--space-3) var(--space-4); /* FIXED: Reduced from space-8 to space-4 */
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    /* Add top margin if search is positioned near header */
    position: relative;
    z-index: 10;
  }

  .breadcrumb-nav {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: 0.9rem;
    color: #202124 !important;
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    max-width: 600px;
    margin: var(--space-6) auto var(--space-6) auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    min-height: 40px !important;
  }

  /* Force all breadcrumb children visible */
  .breadcrumb-nav * {
    visibility: visible !important;
    opacity: 1 !important;
  }

  .breadcrumb-nav a {
    color: var(--color-primary) !important;
    -webkit-text-fill-color: var(--color-primary) !important;
    text-decoration: none;
    font-weight: 600 !important;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    display: inline-block !important;
    background: transparent !important;
    text-shadow: none !important;
  }

  .breadcrumb-nav a:hover {
    background: var(--color-primary) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    transform: translateY(-1px);
  }

  /* Breadcrumb separator */
  .breadcrumb-nav span:not([style*="font-weight"]) {
    color: #9aa0a6 !important;
    -webkit-text-fill-color: #9aa0a6 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
    background: transparent !important;
    text-shadow: none !important;
  }

  /* Current page in breadcrumb */
  .breadcrumb-nav span[style*="font-weight"] {
    color: white !important;
    -webkit-text-fill-color: white !important;
    font-weight: 600 !important;
    padding: var(--space-1) var(--space-2);
    background: var(--color-primary) !important;
    border-radius: var(--radius-sm);
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  /* Mobile breadcrumb */
  @media (max-width: 768px) {
    .breadcrumb-nav {
      font-size: 0.85rem;
      padding: var(--space-2) var(--space-4);
      max-width: 90%;
      min-height: 36px !important;
    }
  }


  /* Content Sections */
  /* ================ */

  .content-section {
    padding: var(--space-12) 0;
  }

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

  .section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
  }

  .section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
  }
  /* Alternating Section Colors */
  /* ========================== */

  /* Alternating Section Colors - More specific selector */
  #dynamicSections .content-section:nth-child(odd) {
    background: var(--color-light-gray);
  }

  #dynamicSections .content-section:nth-child(even) {
    background: var(--color-white);
  }

  /* Ensure hero doesn't get alternating colors */
  .hero {
    background: linear-gradient(135deg, 
      var(--color-light-gray) 0%, 
      rgba(99, 102, 241, 0.05) 50%,
      var(--color-soft-gray) 100%) !important;
  }
  /* Smart Mathematical Grid System */
  /* =============================== */

  .cards-grid {
    display: grid;
    gap: var(--space-6);
  }

  /* Fixed layouts for small counts */
  .cards-grid.grid-1 { 
    grid-template-columns: 1fr; 
    max-width: 400px; 
    margin: 0 auto; 
  }

  .cards-grid.grid-2 { 
    grid-template-columns: repeat(2, 1fr); 
  }

  .cards-grid.grid-3 { 
    grid-template-columns: repeat(3, 1fr); 
  }

  /* Smart grid for 4-12 items using mathematical centering */
  .cards-grid.grid-smart {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
  }

  /* Smart centering classes applied by JavaScript */
  .cards-grid.grid-smart .content-card.center-item {
    grid-column: 2 / 3;
    justify-self: center;
  }

  .cards-grid.grid-smart .content-card.partial-row-left {
    justify-self: end;
    margin-right: 12%;
  }

  .cards-grid.grid-smart .content-card.partial-row-right {
    justify-self: start;  
    margin-left: 12%;
  }

  /* Responsive auto-fit for many items (13+) */
  .cards-grid.grid-many {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-items: stretch;
  }

  /* Mobile: All grids become single column */
  @media (max-width: 768px) {
    .cards-grid.grid-2,
    .cards-grid.grid-3,
    .cards-grid.grid-smart,
    .cards-grid.grid-many {
      grid-template-columns: 1fr !important;
    }
    
    .cards-grid .content-card {
      grid-column: auto !important;
      justify-self: stretch !important;
      margin: 0 !important;
    }
  }

  /* Tablet: 2 columns for medium screens */
  @media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid.grid-smart {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .cards-grid.grid-smart .content-card.center-item {
      grid-column: 1 / -1;
      justify-self: center;
      max-width: 350px;
    }
    
    .cards-grid.grid-smart .content-card.partial-row-left {
      justify-self: center;
      margin: 0;
    }
    
    .cards-grid.grid-smart .content-card.partial-row-right {
      justify-self: center;
      margin: 0;
    }
  }

  /* Large screens: Enhanced spacing */
  @media (min-width: 1200px) {
    .cards-grid {
      gap: var(--space-8);
    }
    
    .cards-grid.grid-smart .content-card.partial-row-left {
      margin-right: 15%;
    }
    
    .cards-grid.grid-smart .content-card.partial-row-right {
      margin-left: 15%;
    }
  }
  /* Card Styles */
  /* =========== */

  .content-card {
    background: var(--color-surface-elevated);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    position: relative;
  }

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

  .content-card[data-is-product="true"] {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), var(--color-surface-elevated));
  }

  .content-card[data-is-product="true"]:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), var(--color-surface-elevated));
    border-color: var(--color-primary);
  }

  .content-card[data-is-product="true"] .card-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
  }

  .content-card[data-is-product="true"] .card-arrow {
    color: var(--color-primary);
  }

  .content-card[data-is-product="true"] .card-title {
    color: var(--color-primary-dark, var(--color-primary));
    font-weight: 600;
  }

  .content-card[data-is-product="true"]:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, 
      rgba(var(--color-primary-rgb, 99, 102, 241), 0.05), 
      var(--color-surface-elevated)
    );
  }

  .content-card[data-is-product="true"] .card-badge {
    background: rgba(var(--color-primary-rgb, 99, 102, 241), 0.15);
    color: var(--color-primary-dark, var(--color-primary));
    font-weight: 600;
  }

  .card-image {
  width: 100%;
  height: 200px;
  min-height: 200px; /* ADDED: Reserve space */
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border-light, #f1f3f4);
  contain: layout style paint; /* ADDED: Prevent layout shift */
}

.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

  /* FIXED: Ensure ALL images in cards have proper sizing with higher specificity */
  .card-image img,
  .card-image .card-image-enhanced,
  .content-card .card-image img,
  .content-card .card-image .card-image-enhanced {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important; /* Force cover as default */
    object-position: center center !important; /* Force center as default */
  }
  /* Ensure card images have proper dimensions for object-fit */
  .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #ffffff !important; /* FIXED: Pure white background */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border-light, #f1f3f4);
  }
  .card-image:not(:has(img)) {
    background: #ffffff !important;
  }
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Default */
  }

  .card-image-enhanced {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  .content-card:hover .card-image img {
    transform: scale(1.05);
  }

  .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity var(--transition-base);
  }

  .content-card:hover .card-overlay {
    opacity: 1;
  }

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

  .card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
  }

  .card-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-4);
    line-height: 1.5;
  }

  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-4);
  }

  .card-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
  }

  .content-card[data-is-product="true"] .card-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
  }

  .card-arrow {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    transition: transform var(--transition-base);
  }

  .content-card[data-is-product="true"] .card-arrow {
    color: var(--color-success);
  }

  .content-card:hover .card-arrow {
    transform: translateX(4px);
  }
  /* Ensure products use brand colors */
  .content-card[data-is-product="true"] .card-title {
    color: var(--color-primary);
  }

  .content-card[data-is-product="true"]:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, 
      rgba(var(--color-primary-rgb, 99, 102, 241), 0.02), 
      var(--color-surface-elevated)
    );
  }
  /* ADD this section to public/style.css after existing card styles: */

  /* Complete Background-Image Method Support */
  /* ======================================== */

  .card-image-background {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    
    /* Ensure it behaves like an image */
    display: block;
    
    /* Smooth transitions */
    transition: all var(--transition-smooth);
    
    /* Prevent any unwanted scaling initially */
    transform: scale(1);
    
    /* Ensure high-quality rendering */
    background-attachment: scroll;
  }

  /* Hover effects for background-image cards */
  .content-card:hover .card-image-background {
    /* Slight zoom effect while preserving positioning */
    transform: scale(1.05);
  }

  /* Ensure background-image cards have proper container setup */
  .card-image-container:has(.card-image-background) {
    overflow: hidden;
    position: relative;
    background: #ffffff;
  }

  /* Loading/error states for background-image method */
  .card-image-background:not([style*="background-image: url"]) {
    background: linear-gradient(135deg, var(--color-soft-gray), var(--color-medium-gray));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
  }

  .card-image-background:not([style*="background-image: url"]):before {
    content: '🖼️';
  }

  /* Debug helper - shows which method is being used */
  .card-image-enhanced[data-method="img-tag"]::after {
    content: 'IMG';
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(0, 255, 0, 0.7);
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .card-image-background[data-method="background"]::after {
    content: 'BG';
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(0, 0, 255, 0.7);
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  /* Show debug labels on hover (for development) */
  .content-card:hover .card-image-enhanced::after,
  .content-card:hover .card-image-background::after {
    opacity: 1;
  }

  /* High DPI support */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .card-image-background {
      /* Ensure crisp rendering on retina displays */
      image-rendering: -webkit-optimize-contrast;
    }
  }

  /* Mobile optimizations */
  @media (max-width: 768px) {
    .content-card:hover .card-image-background {
      /* Reduced hover effect on mobile */
      transform: scale(1.02);
    }
    
    /* Hide debug labels on mobile */
    .card-image-enhanced::after,
    .card-image-background::after {
      display: none !important;
    }
  }
  /* Enhanced Image Rendering System - FIXED VERSION */
  /* ================================================ */

  /* Enhanced Image Rendering CSS - ADD to style.css */
  /* ================================================= */

  /* Enhanced Card Image Container */
  .card-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: #ffffff; /* FIXED: Pure white background */
    border: 1px solid var(--color-border-light, #f1f3f4);
  }

  .card-image-enhanced {
    width: 100% !important;
    height: 100% !important;
    display: block;
    transition: all var(--transition-smooth);
    
    /* FIXED: Force default object-fit values */
    object-fit: cover !important;
    object-position: center center !important;
    
    /* FIXED: Pure white background for any empty spaces */
    background: #ffffff !important;
    
    /* Ensure image quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimizeQuality;
    
    /* Prevent image dragging */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    
    /* Smooth scaling and positioning */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
  }

  /* Hover effects for enhanced images */
  .content-card:hover .card-image-enhanced {
    transform: scale(1.05) var(--card-image-transform, scale(1));
  }

  /* Ensure transformed images don't overflow */
  .card-image-container {
    transform: translateZ(0);
    will-change: transform;
  }

  /* Responsive image scaling adjustments */
  @media (max-width: 768px) {
    .card-image-enhanced {
      /* Reduce aggressive scaling on mobile */
      max-width: none;
      max-height: none;
    }
    
    .content-card:hover .card-image-enhanced {
      /* Less dramatic hover effect on mobile */
      transform: scale(1.02) var(--card-image-transform, scale(1));
    }
  }

  /* High DPI display optimizations */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .card-image-enhanced {
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
    }
  }

  /* Fallback for browsers that don't support modern CSS */
  @supports not (object-fit: cover) {
    .card-image-enhanced {
      /* Fallback for older browsers */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }
  }

  /* Loading state for images */
  .card-image-enhanced[src=""] {
    background: #ffffff !important; /* Pure white instead of gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
  }

  /* Error state styling */
  .card-image-enhanced:not([src]),
  .card-image-enhanced[src=""]:after {
    content: '🖼️';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--color-soft-gray);
    font-size: 3rem;
  }

  /* Mobile optimizations */
  @media (max-width: 768px) {
    .card-image-enhanced,
    .card-image-standard {
      max-width: none;
      max-height: none;
    }
    
    .content-card:hover .card-image-enhanced,
    .content-card:hover .card-image-standard {
      /* Less dramatic hover effect on mobile */
      transform: scale(1.02);
    }
  }

  /* High DPI display optimizations */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .card-image-enhanced,
    .card-image-standard {
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
    }
  }

  /* Fallback for browsers that don't support modern CSS */
  @supports not (object-fit: cover) {
    .card-image-enhanced {
      /* Fallback for older browsers */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }
  }

  /* Loading state for images */
  .card-image-enhanced[src=""] {
    background: linear-gradient(135deg, var(--color-soft-gray), var(--color-medium-gray));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
  }

  /* Error state styling */
  .card-image-enhanced:not([src]),
  .card-image-enhanced[src=""]:after {
    content: '🖼️';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #ffffff !important; /* Pure white background */
    font-size: 3rem;
  }


  /* ============================================
    QUICK WIN 1: ENHANCED SHADOWS & DEPTH
    ============================================ */

  /* Multi-layer shadow system for cards */
  .content-card {
    box-shadow: 
      0 1px 2px rgba(0, 0, 0, 0.06),
      0 2px 4px rgba(0, 0, 0, 0.04);
  }

  .content-card:hover {
    box-shadow: 
      0 10px 20px rgba(0, 0, 0, 0.08),
      0 4px 8px rgba(0, 0, 0, 0.06),
      0 0 0 1px rgba(99, 102, 241, 0.1);
  }

  /* Subtle elevation for brand items */
  .brand-item {
    box-shadow: 
      0 2px 4px rgba(0, 0, 0, 0.05),
      0 1px 2px rgba(0, 0, 0, 0.03);
  }

  .brand-item:hover {
    box-shadow: 
      0 12px 24px rgba(0, 0, 0, 0.1),
      0 6px 12px rgba(0, 0, 0, 0.06),
      0 0 0 1px rgba(99, 102, 241, 0.15);
  }

  /* Header elevation */
  .header {
    box-shadow: 
      0 1px 3px rgba(0, 0, 0, 0.06),
      0 1px 2px rgba(0, 0, 0, 0.04);
  }


  /* ============================================
    QUICK WIN 2: ENHANCED COLOR DEPTH
    ============================================ */

  /* Warm, inviting background */
  body {
    background: 
      linear-gradient(
        135deg,
        #FEFDFB 0%,
        #FFFFFF 40%,
        #F9FAFB 100%
      );
    background-attachment: scroll;
  }

  /* Hero with subtle brand color influence */
  .hero {
    background: 
      linear-gradient(
        135deg,
        rgba(248, 249, 250, 1) 0%,
        rgba(99, 102, 241, 0.015) 25%,
        rgba(139, 92, 246, 0.01) 50%,
        rgba(99, 102, 241, 0.015) 75%,
        rgba(241, 243, 244, 1) 100%
      );
    position: relative;
    overflow: hidden;
  }

  /* Subtle decorative gradient overlay */


  .hero-content {
    position: relative;
    z-index: 1;
  }

  /* Enhanced card backgrounds with depth */
  .content-card {
    background: 
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(248, 249, 250, 0.95) 100%
      );
  }

  .content-card:hover {
    background: 
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(99, 102, 241, 0.02) 50%,
        rgba(139, 92, 246, 0.015) 100%
      );
  }

  /* Brand items with subtle color */
  .brand-item {
    background: 
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.97) 100%
      );
  }

  .brand-item:hover {
    background: 
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(99, 102, 241, 0.025) 100%
      );
  }

  /* Header with frosted glass depth */
  .header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  }

  /* Brand logo with gradient glow */
  .brand-logo {
    background: 
      linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%
      );
    box-shadow: 
      0 4px 12px rgba(99, 102, 241, 0.25),
      0 0 0 1px rgba(99, 102, 241, 0.1);
    position: relative;
  }



  .brand-logo:hover::before {
    opacity: 1;
  }

  /* Search bar with depth */
  .search-input {
    background: 
      linear-gradient(
        135deg,
        rgba(248, 249, 250, 1) 0%,
        rgba(255, 255, 255, 1) 100%
      );
    border: 2px solid rgba(99, 102, 241, 0.08);
  }

  .search-input:focus {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 
      0 0 0 4px rgba(99, 102, 241, 0.06),
      0 4px 12px rgba(99, 102, 241, 0.1);
  }

  /* Section alternating with subtle gradients */
  #dynamicSections .content-section:nth-child(odd) {
    background: 
      linear-gradient(
        180deg,
        rgba(248, 249, 250, 0.5) 0%,
        rgba(248, 249, 250, 1) 50%,
        rgba(248, 249, 250, 0.5) 100%
      );
  }

  #dynamicSections .content-section:nth-child(even) {
    background: 
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.5) 100%
      );
  }

  /* Badges with gradient backgrounds */
  .card-badge {
    background: 
      linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(139, 92, 246, 0.08) 100%
      );
    color: var(--color-primary);
    box-shadow: inset 0 1px 2px rgba(99, 102, 241, 0.1);
  }

  .content-card:hover .card-badge {
    background: 
      linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.12) 0%,
        rgba(139, 92, 246, 0.12) 100%
      );
    box-shadow: 
      inset 0 1px 2px rgba(99, 102, 241, 0.15),
      0 2px 8px rgba(99, 102, 241, 0.15);
  }

  /* Footer with gradient */
  .footer {
    background: 
      linear-gradient(
        135deg,
        #1a1a1a 0%,
        var(--color-text-primary) 50%,
        #1a1a1a 100%
      );
  }

  /* FAB buttons with enhanced gradients */
  .whatsapp-fab-solo {
    background: 
      linear-gradient(
        135deg,
        #25D366 0%,
        #128C7E 100%
      );
    box-shadow: 
      0 6px 20px rgba(37, 211, 102, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .whatsapp-fab-solo:hover {
    box-shadow: 
      0 8px 30px rgba(37, 211, 102, 0.45),
      0 0 0 2px rgba(255, 255, 255, 0.15);
  }

  .three-dot-toggle {
    background: 
      linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%
      );
    box-shadow: 
      0 6px 20px rgba(99, 102, 241, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .menu-button {
    background: 
      linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-accent) 100%
      );
    box-shadow: 
      0 4px 15px rgba(99, 102, 241, 0.25),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .menu-button:hover {
    background: 
      linear-gradient(
        135deg,
        var(--color-accent) 0%,
        var(--color-primary) 100%
      );
  }

  /* Taxonomy Section */
  /* ================ */

  /* Review Slideshow Section */
  /* ======================== */

  .slideshow-section {
    background: var(--color-white);
    padding: var(--space-12) 0 var(--space-8);
    border-bottom: 1px solid var(--color-border);
  }

  .slideshow-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-8);
  }

  .slideshow-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
  }

  /* FIXED: Proper mobile sizing - visible but not overwhelming */
  @media (max-width: 768px) {
    .slideshow-container {
      max-width: 90vw;
      max-height: 70vh;
      aspect-ratio: 3/4; /* Taller aspect ratio for mobile */
    }
  }

  @media (max-width: 480px) {
    .slideshow-container {
      max-width: 95vw;
      max-height: 65vh;
    }
  }

  .slideshow-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    transition: opacity 0.3s ease;
  }

  .slideshow-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .slideshow-viewport.loading .slideshow-loading {
    opacity: 1;
  }

  .slideshow-viewport.loading .slideshow-image {
    opacity: 0.3;
  }

  .slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    font-weight: 300;
    z-index: 10;
    line-height: 1;
  }

  .slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
  }

  .slideshow-nav.prev {
    left: 10px;
  }

  .slideshow-nav.next {
    right: 10px;
  }

  .slideshow-counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.7);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    font-weight: 500;
  }

  .slideshow-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  @media (max-width: 768px) {  
    .slideshow-nav {
      width: 50px;
      height: 50px;
      font-size: 2rem;
    }
    
    .slideshow-nav.prev {
      left: 5px;
    }
    
    .slideshow-nav.next {
      right: 5px;
    }
  }

/* ============================================
   BRANDS SECTION - HOMEPAGE ONLY
   ============================================ */

/* Default: Hide brands section everywhere */
.brands-section {
  display: none !important;
}

/* Only show on homepage (when body has no data-page-type attribute) */
body:not([data-page-type]) .brands-section {
  display: block !important;
}

  /* ============================================
    BRANDS SECTION - FIXED
    ============================================ */

  .brands-section {
    background: var(--color-light-gray);
    padding: var(--space-16) 0;
  }

  .brands-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-12);
  }

  .brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Square container with actual size */
  .brand-item {
    background: white;
    padding: 0;
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Fill grid cell */
    aspect-ratio: 1; /* Square shape */
    min-height: 160px; /* Minimum size on mobile */
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .brand-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  /* Logo container fills the card */
  .brand-logo-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 20%; /* More space around logo */
  }

  /* Logo image - BIGGER */
  .brand-logo-small img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
  }
  /* MOBILE BRAND LOGO FIX */
  @media (max-width: 768px) {
    .brand-logo-small {
      width: 100% !important;
      height: 100% !important;
      padding: 15% !important; /* Adjust padding for mobile */
    }
    
    .brand-logo-small img {
      max-width: 100% !important;
      max-height: 100% !important;
      width: auto !important;
      height: auto !important;
      object-fit: contain !important;
      display: block !important;
    }
    
    .brand-item {
      min-height: 160px !important; /* Ensure visible size */
      aspect-ratio: 1 !important;
    }
  }

  /* Force image visibility */
  .brand-logo-small img[src] {
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* Fallback emoji - BIGGER */
  .brand-logo-fallback {
    font-size: 5rem;
    line-height: 1;
  }

  /* Hide text in browse brands section */
  .brand-info,
  .brand-name-display,
  .brand-count {
    display: none !important;
  }

  /* Mobile: 2 columns, BIGGER boxes */
  @media (max-width: 768px) {
    .brands-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: var(--space-4);
    }
    
    .brand-item {
      min-height: 180px; /* Taller on mobile */
    }
  }

  /* Tablet: 3 columns */
  @media (min-width: 769px) and (max-width: 1024px) {
    .brands-grid {
      grid-template-columns: repeat(3, 1fr) !important;
      gap: var(--space-5);
    }
    
    .brand-item {
      min-height: 150px;
    }
  }

  /* Desktop: 5 columns */
  @media (min-width: 1025px) and (max-width: 1399px) {
    .brands-grid {
      grid-template-columns: repeat(5, 1fr) !important;
    }
    
    .brand-item {
      min-height: 140px;
    }
  }

  /* Large desktop: 6 columns */
  @media (min-width: 1400px) {
    .brands-grid {
      grid-template-columns: repeat(6, 1fr) !important;
    }
    
    .brand-item {
      min-height: 130px;
    }
  }

  /* Brand Category Cards - Contain Fit Override */
  /* =========================================== */

/* Brand Category Cards - Contain Fit Override */
.brand-category-card .card-image-brand-logo {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff !important;
  padding: 0 !important; /* FIXED: Remove padding for perfect fit */
  display: block !important;
}

.brand-category-card .card-image {
  background: #ffffff !important;
  padding: 0 !important; /* FIXED: Remove container padding */
}

  /* Override any conflicting global styles for brand logos */
  .card-image-brand-logo {
    object-fit: contain !important;
    object-position: center !important;
  }


  @media (max-width: 768px) {
    .brands-grid {
      grid-template-columns: 1fr;
    }
    
    .brand-item {
      padding: var(--space-3);
    }
    
    .brand-logo-small {
      width: 50px;
      height: 50px;
    }

  }



  .taxonomy-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: var(--space-12);
  }

  .taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
  }

  .taxonomy-item {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
  }

  .taxonomy-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

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

  .taxonomy-count {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
  }

  /* Footer */
  /* ====== */

  .footer {
    background: var(--color-text-primary);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
    text-align: left;
  }

  .footer-content .footer-section:first-child {
    padding-right: var(--space-4);
  }

  .footer-content .footer-section:first-child p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 90%;
  }

  @media (max-width: 768px) {
    .footer-content {
      grid-template-columns: 1fr;
      gap: var(--space-6);
      text-align: center;
    }
    
    .footer-content .footer-section:first-child {
      padding-right: 0;
    }
    
    .footer-content .footer-section:first-child p {
      max-width: 100%;
    }
  }

  .footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
  }

  .footer-section p,
  .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: var(--space-2);
    display: block;
  }

  .footer-section a:hover {
    color: white;
  }

  /* Fix for Footer Copyright Single Line */
  /* ================================== */

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    
    /* FORCE single line on all devices */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .footer-bottom p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .footer-bottom * {
    display: inline !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  /* Ensure single line on all screen sizes */
  @media (max-width: 768px) {
    .footer-bottom {
      font-size: 0.8rem !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
  }

  @media (max-width: 480px) {
    .footer-bottom {
      font-size: 0.75rem !important;
      padding-left: 10px !important;
      padding-right: 10px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
  }

  @media (max-width: 360px) {
    .footer-bottom {
      font-size: 0.7rem !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
  }

  /* ============================================
    QUICK WIN 4: ENHANCED INTERACTIVE STATES
    ============================================ */

  /* Better focus states */
  .content-card:focus-visible,
  .brand-item:focus-visible,
  button:focus-visible,
  a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    box-shadow: 
      0 0 0 4px rgba(99, 102, 241, 0.1),
      0 4px 12px rgba(99, 102, 241, 0.15);
  }

  /* Smooth brand logo hover */
  .brand-logo {
    box-shadow: 
      0 2px 4px rgba(99, 102, 241, 0.2),
      0 0 0 1px rgba(99, 102, 241, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .brand-logo:hover {
    box-shadow: 
      0 6px 16px rgba(99, 102, 241, 0.3),
      0 0 0 2px rgba(99, 102, 241, 0.2);
    transform: translateY(-3px) scale(1.05);
  }

  /* Enhanced search input focus */
  .search-input:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 
      0 0 0 4px rgba(99, 102, 241, 0.08),
      0 4px 12px rgba(99, 102, 241, 0.12);
    transform: scale(1.02);
  }


  /* Separated Floating Action Buttons */
  /* ================================== */

  /* WhatsApp FAB (Solo) */
  .whatsapp-fab-solo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all var(--transition-smooth);
  }

  .whatsapp-fab-solo:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }

  .whatsapp-fab-solo svg {
    width: 30px;
    height: 30px;
  }

  /* Updated FAB CSS - Replace the existing FAB section in your style.css */

  /* 3-Dot Menu Container */
  .three-dot-menu {
    position: fixed;
    bottom: 110px; /* Above WhatsApp */
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .three-dot-items {
    display: none;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    pointer-events: none;
  }

  /* Show menu items when expanded */
  .three-dot-menu.expanded .three-dot-items {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  /* Circular Toggle Button Like WhatsApp */
  .three-dot-toggle {
    display: none !important; /* Hide the toggle button */
    width: 70px;
    height: 70px;
    border-radius: 50%; /* Perfect circle */
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-smooth);
    position: relative;
    padding: 8px;
  }

  .three-dot-toggle:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  }

  .toggle-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
  }

  .toggle-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
  }

  .toggle-icon-placeholder {
    font-size: 22px;
    line-height: 1;
  }

  .toggle-label {
    font-size: 8px;
    font-weight: 600;
    line-height: 1.1;
    white-space: pre-line;
    max-width: 60px;
    text-align: center;
    word-spacing: -1px;
    letter-spacing: -0.2px;
  }

  /* Individual Menu Items - Also Circular */
  .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-base);
  }

  .menu-button {
    width: 55px;
    height: 55px;
    border-radius: 50%; /* Perfect circle */
    border: 2px solid white;
    background: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
    position: relative;
    padding: 0;
    /* Enhanced contrast for better visibility */
    filter: contrast(1.2) saturate(1.3) brightness(0.9);
  }

  .menu-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: var(--color-accent);
    filter: contrast(1.3) saturate(1.4) brightness(0.85);
  }

  .menu-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  .icon-placeholder {
    font-size: 20px;
    color: white;
    line-height: 1;
  }

  .menu-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: center;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
  }

  /* Menu Item Hover Effects */
  .menu-item:hover .menu-label {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .three-dot-menu {
      bottom: 95px;
      right: 25px;
    }
    
    .three-dot-toggle {
      width: 60px;
      height: 60px;
      padding: 6px;
    }
    
    .toggle-icon {
      width: 18px;
      height: 18px;
    }
    
    .toggle-icon-placeholder {
      font-size: 18px;
    }
    
    .toggle-label {
      font-size: 7px;
      line-height: 1.0;
      max-width: 50px;
      word-spacing: -1px;
      letter-spacing: -0.3px;
    }
    
    .menu-button {
      width: 50px;
      height: 50px;
    }
    
    .menu-icon {
      width: 20px;
      height: 20px;
    }
    
    .menu-label {
      font-size: 9px;
    }
  }

  @media (max-width: 480px) {
    .three-dot-toggle {
      width: 55px;
      height: 55px;
    }
    
    .toggle-icon {
      width: 16px;
      height: 16px;
    }
    
    .toggle-icon-placeholder {
      font-size: 16px;
    }
    
    .toggle-label {
      font-size: 6px;
      line-height: 1.0;
      max-width: 45px;
    }
    
    .menu-button {
      width: 45px;
      height: 45px;
    }
    
    .menu-icon {
      width: 18px;
      height: 18px;
    }
    
    .menu-label {
      font-size: 8px;
    }
  }

  /* Force 3-dot menu to start collapsed */
  .three-dot-menu:not(.expanded) .three-dot-items {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .three-dot-menu.expanded .three-dot-items {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: all !important;
  }

  /* Individual Menu Item */
  .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-base);
  }

  .menu-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    background: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
    position: relative;
    padding: 0;
  }

  .menu-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: var(--color-accent);
  }

  .menu-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make icons white */
  }

  .icon-placeholder {
    font-size: 20px;
    color: white;
    line-height: 1;
  }

  .menu-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: center;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
  }

  /* Menu Item Hover Effects */
  .menu-item:hover .menu-label {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
  }

  /* Image Viewer Modal (unchanged) */
  .image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
  }

  .image-viewer-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
  }

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

  .viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .viewer-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }

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

  .viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

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

  .viewer-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
  }

  .viewer-nav.prev {
    left: -80px;
  }

  .viewer-nav.next {
    right: -80px;
  }

  .viewer-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
  }

  .viewer-title {
    position: absolute;
    top: -60px;
    left: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
  }

  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .whatsapp-fab-solo {
      bottom: 25px;
      right: 25px;
      width: 55px;
      height: 55px;
    }
    
    .whatsapp-fab-solo svg {
      width: 26px;
      height: 26px;
    }
    
    .three-dot-menu {
      bottom: 95px;
      right: 25px;
    }
    
    .three-dot-toggle {
      width: 55px;
      height: 55px;
    }
    
    .menu-button {
      width: 45px;
      height: 45px;
    }
    
    .menu-icon {
      width: 20px;
      height: 20px;
    }
    
    .menu-label {
      font-size: 10px;
    }
  }

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

  .viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .viewer-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }

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

  .viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

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

  .viewer-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
  }

  .viewer-nav.prev {
    left: -80px;
  }

  .viewer-nav.next {
    right: -80px;
  }

  .viewer-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 500;
  }

  .viewer-title {
    position: absolute;
    top: -60px;
    left: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
  }

  /* Enhanced Floating Action Buttons - Larger and Mobile Optimized */
  /* ============================================================== */

  .fab-container {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-4);
  }

  .fab-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-smooth);
    position: relative;
  }

  .fab-toggle:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow-xl);
  }

  .fab-toggle:active {
    transform: scale(0.95);
  }

  .fab-close {
    display: none;
    font-size: 2.5rem;
    font-weight: 300;
  }

  .fab-container.expanded .fab-dots {
    display: none;
  }

  .fab-container.expanded .fab-close {
    display: block;
  }

  .fab-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    pointer-events: none;
  }

  .fab-container.expanded .fab-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .fab-action {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    text-decoration: none;
    overflow: hidden;
  }

  .fab-action:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    width: auto;
    padding: 0 var(--space-5);
    border-radius: var(--radius-full);
    min-width: 60px;
  }

  .fab-action:active {
    transform: scale(0.95);
  }

  .fab-action svg {
    width: 28px;
    height: 28px;
    transition: all var(--transition-base);
    flex-shrink: 0;
  }

  .fab-text {
    margin-left: var(--space-3);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
    font-size: 1rem;
  }

  .fab-action:hover .fab-text {
    opacity: 1;
    transform: translateX(0);
  }

  .fab-action:hover svg {
    margin-right: var(--space-2);
  }

  /* WhatsApp specific styling */
  .whatsapp-fab {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: white !important;
  }

  /* Image Viewer Modal - Enhanced */
  /* ============================= */

  .image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
  }

  .image-viewer-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
  }

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

  .viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }

  .viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .viewer-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .viewer-image:active {
    transform: scale(0.98);
  }

  .viewer-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    font-weight: 300;
    z-index: 10001;
    line-height: 1;
  }

  .viewer-close:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
  }

  .viewer-close:active {
    transform: scale(0.95);
  }

  /* Mobile close button */
  @media (max-width: 768px) {
    .viewer-close {
      width: 50px;
      height: 50px;
      font-size: 2rem;
      top: 15px;
      right: 15px;
    }
  }

  .viewer-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    font-weight: 300;
    z-index: 10001;
    line-height: 1;
  }

  .viewer-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
  }

  .viewer-nav:active {
    transform: translateY(-50%) scale(0.95);
  }

  .viewer-nav.prev {
    left: 20px;
  }

  .viewer-nav.next {
    right: 20px;
  }

  /* Mobile navigation */
  @media (max-width: 768px) {
    .viewer-nav.prev {
      left: 15px;
    }
    
    .viewer-nav.next {
      right: 15px;
    }
    
    .viewer-nav {
      width: 50px;
      height: 50px;
      font-size: 2rem;
    }
  }

  .viewer-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    font-weight: 500;
  }

  .viewer-title {
    position: absolute;
    top: -60px;
    left: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }

  /* Mobile optimizations */
  @media (max-width: 768px) {
    .fab-container {
      bottom: var(--space-6);
      right: var(--space-6);
    }
    
    .fab-toggle {
      width: 65px;
      height: 65px;
    }
    
    .fab-action {
      width: 55px;
      height: 55px;
    }
    
    .fab-action svg {
      width: 24px;
      height: 24px;
    }
    
    .viewer-nav.prev {
      left: -50px;
    }
    
    .viewer-nav.next {
      right: -50px;
    }
    
    .viewer-nav {
      width: 50px;
      height: 50px;
      font-size: 2rem;
    }
    
    .viewer-close {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    top: 10px;
    right: 10px;
    z-index: 10001;
  }
    
    .viewer-content {
      max-width: 95vw;
      max-height: 85vh;
    }
    
    .viewer-image {
      max-height: 85vh;
      cursor: default;
    }
  }
  /* Loading States */
  /* ============== */

  .loading-skeleton {
    background: linear-gradient(90deg, var(--color-soft-gray) 25%, var(--color-medium-gray) 50%, var(--color-soft-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s infinite;
  }

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

  /* Responsive Design */
  /* ================= */

  @media (max-width: 768px) {
    .container {
      padding: 0 var(--space-4);
    }

    .header-content {
      height: 70px;
      flex-direction: column;
      gap: var(--space-3);
      align-items: stretch;
    }

    .brand-section {
      justify-content: center;
    }
    
  .brand-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #202124 !important;
    line-height: 1.2;
    cursor: pointer;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-text-fill-color: #202124 !important; /* Force color on Safari */
  }

  /* Force visibility on mobile */
  @media (max-width: 768px) {
    .brand-name {
      font-size: 1.1rem;
      display: block !important;
      color: #202124 !important;
      -webkit-text-fill-color: #202124 !important;
    }
  }

    .search-section {
      max-width: none;
    }

    .hero {
      padding: var(--space-12) 0;
    }

    .hero-title {
      font-size: 2.5rem;
    }

    .breadcrumb-nav {
      font-size: 0.8rem;
      padding: var(--space-2) var(--space-4);
      margin-bottom: var(--space-6);
      max-width: 90%;
    }

    .breadcrumb-nav a,
    .breadcrumb-nav span[style*="font-weight"] {
      padding: var(--space-1);
    }

    .content-section {
      padding: var(--space-12) 0;
    }

    .section-title {
      font-size: 2rem;
    }

    .cards-grid.grid-2,
    .cards-grid.grid-3,
    .cards-grid.grid-4,
    .cards-grid.grid-many {
      grid-template-columns: 1fr;
    }

    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .taxonomy-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .header-content {
      height: auto;
      padding: var(--space-4) 0;
    }

    .stats-grid,
    .taxonomy-grid {
      grid-template-columns: 1fr;
    }

    .hero-title {
      font-size: 2rem;
    }

    .section-title {
      font-size: 1.75rem;
    }

    .breadcrumb-nav {
      font-size: 0.75rem;
    }
  }

  /* Focus States for Accessibility */
  /* =============================== */

  .content-card:focus,
  .taxonomy-item:focus,
  .brand-logo:focus,
  .search-input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  .content-card:focus-visible,
  .taxonomy-item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  /* Utility Classes */
  /* =============== */

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

  .hidden { 
    display: none; 
  }

  .loading { 
    opacity: 0.7; 
  }



  /* ============================================================================
    DRIVE PREVIEW MODAL STYLES - FIXED LAYOUT
    ============================================================================ */

  .drive-preview-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10000 !important;
    display: none !important;
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
  }

  .drive-preview-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.3s ease;
  }

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

  .preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
  }

  .preview-container {
    position: relative;
    width: 100%;
    max-width: 1400px; /* FIXED: Limit width on large screens */
    height: 100%;
    max-height: 95vh; /* FIXED: Limit height */
    display: flex;
    flex-direction: column;
    z-index: 1;
    margin: 0 auto; /* FIXED: Center horizontally */
    padding: 0 2rem; /* FIXED: Add padding on sides */
  }

  .preview-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0; /* FIXED: Rounded top corners */
    flex-shrink: 0; /* FIXED: Prevent shrinking */
  }

  .preview-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
    flex: 1;
  }

  .preview-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
  }

  .preview-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }

  .preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.5); /* FIXED: Semi-transparent background */
    min-height: 0; /* FIXED: Allow flex shrinking */
  }

  .preview-image {
    max-width: 100%;
    max-height: 100%;
    width: auto; /* FIXED: Auto width for proper scaling */
    height: auto; /* FIXED: Auto height for proper scaling */
    object-fit: contain; /* FIXED: Contain entire image */
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block; /* FIXED: Remove inline spacing */
    margin: 0 auto; /* FIXED: Center the image */
  }

  .preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
  }

  .preview-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

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

  .preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    text-align: center;
    padding: 2rem;
  }

  .preview-error-icon {
    font-size: 4rem;
    opacity: 0.7;
  }

  .preview-error h3 {
    font-size: 1.5rem;
    margin: 0;
  }

  .preview-error p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
  }

  .preview-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .preview-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
  }

  .preview-navigation {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px; /* FIXED: Rounded bottom corners */
    flex-shrink: 0; /* FIXED: Prevent shrinking */
  }

  .preview-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
  }

  .preview-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
  }

  .preview-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
  }

  .preview-counter {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
  }

  /* MOBILE OPTIMIZATIONS - FIXED */
  @media (max-width: 768px) {
    .preview-container {
      max-width: 100%;
      padding: 0;
      max-height: 100vh;
    }
    
    .preview-header {
      padding: 1rem 1.25rem;
      border-radius: 0; /* No rounded corners on mobile */
    }
    
    .preview-title {
      font-size: 1rem;
      max-width: 60%;
    }
    
    .preview-close {
      width: 40px;
      height: 40px;
      font-size: 1.75rem;
    }
    
    .preview-content {
      padding: 1rem;
      background: rgba(0, 0, 0, 0.8); /* Darker on mobile */
    }
    
    .preview-image {
      max-width: 95%; /* FIXED: Slightly smaller on mobile */
      max-height: 95%; /* FIXED: Slightly smaller on mobile */
      border-radius: 4px;
    }
    
    .preview-navigation {
      padding: 1rem 1.25rem;
      border-radius: 0; /* No rounded corners on mobile */
    }
    
    .preview-nav {
      width: 44px;
      height: 44px;
      font-size: 1.75rem;
    }
    
    .preview-counter {
      font-size: 0.9rem;
      padding: 0.4rem 0.8rem;
      min-width: 70px;
    }
  }

  /* TABLET OPTIMIZATIONS */
  @media (min-width: 769px) and (max-width: 1024px) {
    .preview-container {
      max-width: 900px;
      padding: 0 1rem;
    }
    
    .preview-content {
      padding: 1.5rem;
    }
  }

  /* LARGE DESKTOP OPTIMIZATIONS */
  @media (min-width: 1440px) {
    .preview-container {
      max-width: 1600px;
    }
    
    .preview-content {
      padding: 3rem;
    }
    
    .preview-image {
      max-width: 90%; /* Slightly smaller on very large screens */
      max-height: 90%;
    }
  }

  /* ULTRA-WIDE MONITOR SUPPORT */
  @media (min-width: 1920px) {
    .preview-container {
      max-width: 1800px;
    }
  }

  /* TOUCH DEVICE OPTIMIZATIONS */
  @media (hover: none) and (pointer: coarse) {
    .preview-image {
      cursor: default; /* Remove pointer cursor on touch devices */
    }
    
    .preview-nav:active:not(:disabled) {
      transform: scale(0.95); /* Touch feedback */
    }
    
    .preview-close:active {
      transform: scale(0.95); /* Touch feedback */
    }
  }

  /* LANDSCAPE MODE ON MOBILE */
  @media (max-width: 768px) and (orientation: landscape) {
    .preview-header {
      padding: 0.75rem 1rem;
    }
    
    .preview-content {
      padding: 0.5rem;
    }
    
    .preview-navigation {
      padding: 0.75rem 1rem;
    }
    
    .preview-image {
      max-height: 85vh; /* FIXED: Prevent overflow in landscape */
    }
  }

  /* HIGH DPI DISPLAYS */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .preview-image {
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
    }
  }

  /* DARK MODE SUPPORT (if enabled) */
  @media (prefers-color-scheme: dark) {
    .drive-preview-modal {
      background: rgba(0, 0, 0, 0.98) !important;
    }
    
    .preview-header,
    .preview-navigation {
      background: rgba(0, 0, 0, 0.95);
    }
  }

  /* REDUCED MOTION SUPPORT */
  @media (prefers-reduced-motion: reduce) {
    .drive-preview-modal.active {
      animation: none;
    }
    
    .preview-image {
      transition: none;
    }
    
    .preview-nav,
    .preview-close {
      transition: none;
    }
    /* Featured Section Heading */
  /* ======================== */

  .featured-heading-section {
    background: var(--color-white);
    padding: var(--space-8) 0 var(--space-4) 0;
  }

  body[data-page-type="category"] .featured-heading-section,
  body[data-page-type="brand"] .featured-heading-section {
    display: none !important;
  }
  /* NUCLEAR OPTION: Force hero visibility on category pages */
  body[data-page-type="category"] .hero,
  body[data-page-type="brand"] .hero {
    position: relative !important;
    z-index: 50 !important;
    background: #f8f9fa !important;
    border-bottom: 2px solid #e8eaed !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
  }

  body[data-page-type="category"] .hero-inner,
  body[data-page-type="brand"] .hero-inner {
    position: relative !important;
    z-index: 51 !important;
    transform: translateZ(0) !important;
    backface-visibility: visible !important;
    perspective: 1000px !important;
  }

  body[data-page-type="category"] .hero-title,
  body[data-page-type="brand"] .hero-title {
    transform: translateZ(0) !important;
    backface-visibility: visible !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
  }

  body[data-page-type="category"] .breadcrumb-nav,
  body[data-page-type="brand"] .breadcrumb-nav {
    transform: translateZ(0) !important;
    backface-visibility: visible !important;
  }

  /* CRITICAL: Prevent homepage hero grid from crushing inner hero */
  body[data-page-type="category"] .hero-homepage,
  body[data-page-type="brand"] .hero-homepage {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body[data-page-type="category"] .hero,
  body[data-page-type="brand"] .hero {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  body[data-page-type="category"] .hero .container,
  body[data-page-type="brand"] .hero .container {
    display: block !important;
    grid-template-columns: none !important;
  }

  body[data-page-type="category"] .hero-inner,
  body[data-page-type="brand"] .hero-inner {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
  }



/* Simple visibility control - ONE rule only */
body[data-page-type="category"] .brands-section,
body[data-page-type="category"] .slideshow-section,
body[data-page-type="brand"] .brands-section,
body[data-page-type="brand"] .slideshow-section {
  display: none;
}

/* Performance: Contain animations and prevent layout thrashing */
.content-card {
  contain: layout style paint;
  will-change: transform;
}

.brands-section,
.slideshow-section {
  contain: layout style;
}

/* Prevent animation queue buildup on mobile */
@media (max-width: 768px) {
  .content-card {
    animation-duration: 0.3s !important; /* Faster on mobile */
  }
  
  .content-card:nth-child(n+7) {
    animation: none !important; /* No animation after 6 cards */
  }
}


/* Mobile: Prevent content collapse during navigation */
@media (max-width: 768px) {
  #dynamicSections {
    min-height: 300px;
    position: relative;
  }
  
  .content-section {
    min-height: 200px;
  }
  
  /* Prevent flash of hidden content */
  body[data-page-type] .hero-inner {
    opacity: 1 !important;
    visibility: visible !important;
  }
}
/* CRITICAL: Reduce animations on mobile to prevent GPU overload */
@media (max-width: 768px) {
  .content-card {
    animation-duration: 0.2s !important; /* Faster */
  }
  
  /* Only animate first 6 cards */
  .content-card:nth-child(n+7) {
    animation: none !important;
    animation-delay: 0s !important;
  }
  
  /* Disable hover transforms on mobile - they conflict with touch */
  .content-card:hover {
    transform: none !important;
  }
  
  .content-card:active {
    transform: scale(0.98) !important; /* Touch feedback only */
  }
}



/* CRITICAL: Disable all transitions during navigation */
body.navigating * {
  transition: none !important;
  animation: none !important;
}

/* NUCLEAR: Simplify hero on mobile to prevent layout shift */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-8) 0 var(--space-6) 0 !important;
  }
  
  .hero-homepage {
    min-height: 500px !important;
  }
  
  .hero-slideshow-side {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  
  .hero-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Disable all hero animations on mobile */
  .hero * {
    animation: none !important;
    transition: transform 0.2s ease !important;
  }
}

/* UPDATED: Only hide brands section on inner pages, keep slideshow */
body[data-page-type="category"] .brands-section,
body[data-page-type="brand"] .brands-section {
  display: none !important;
}

/* NUCLEAR: Force hide brands section on inner pages */
body[data-page-type="category"] .brands-section,
body[data-page-type="brand"] .brands-section {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Ensure brands section is visible on homepage */
body:not([data-page-type]) .brands-section {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  position: relative !important;
  pointer-events: auto !important;
}

  }
  /* ============================================
    SKELETON LOADING SCREENS
    ============================================ */

  /* Shimmer animation */
  @keyframes shimmer {
    0% {
      background-position: -1000px 0;
    }
    100% {
      background-position: 1000px 0;
    }
  }

  /* Skeleton base */
  .skeleton {
    background: linear-gradient(
      90deg,
      #f0f0f0 0%,
      #e0e0e0 20%,
      #f0f0f0 40%,
      #f0f0f0 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: var(--radius-sm);
  }

  /* Skeleton card */
  .skeleton-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(
      90deg,
      #f0f0f0 0%,
      #e0e0e0 20%,
      #f0f0f0 40%,
      #f0f0f0 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
  }

  .skeleton-content {
    padding: var(--space-6);
  }

  .skeleton-line {
    height: 16px;
    margin-bottom: var(--space-3);
    background: linear-gradient(
      90deg,
      #f0f0f0 0%,
      #e0e0e0 20%,
      #f0f0f0 40%,
      #f0f0f0 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: var(--radius-sm);
  }

  .skeleton-line:last-child {
    width: 60%;
  }

  .skeleton-line.short {
    width: 40%;
  }

  /* Hide real content while loading */
  .loading .content-card {
    display: none;
  }
    
