/* ============================================================
   CATALYST BIOLABS — GLOZIN CHILD THEME
   Complete Design System
   ============================================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors */
  --primary:        #1a2744;
  --primary-dark:   #0f1a30;
  --primary-light:  #243461;
  --accent:         #2563eb;
  --accent-hover:   #1d4ed8;
  --accent-light:   rgba(37,99,235,0.12);
  --accent-glow:    rgba(37,99,235,0.25);
  --cyan:           #00d4ff;
  --cyan-dim:       #0099cc;
  --cyan-glow:      rgba(0,212,255,0.15);

  /* Neutrals */
  --white:          #ffffff;
  --off-white:      #f8f9fc;
  --gray-50:        #f9fafb;
  --gray-100:       #f3f4f6;
  --gray-200:       #e5e7eb;
  --gray-300:       #d1d5db;
  --gray-400:       #9ca3af;
  --gray-500:       #6b7280;
  --gray-600:       #4b5563;
  --gray-700:       #374151;
  --gray-800:       #1f2937;
  --gray-900:       #111827;
  --black:          #0a0a0a;

  /* Dark Theme (announcement bar, footer, hero overlays) */
  --dark-bg:        #0a0e1a;
  --dark-bg-2:      #0d1225;
  --dark-card:      #111827;
  --dark-border:    rgba(255,255,255,0.08);

  /* Semantic */
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --info:           #3b82f6;

  /* Typography */
  --font-primary:   'Inter', 'DM Sans', sans-serif;
  --font-display:   'Rajdhani', 'Inter', sans-serif;
  --font-size-xs:   11px;
  --font-size-sm:   13px;
  --font-size-base: 15px;
  --font-size-md:   17px;
  --font-size-lg:   20px;
  --font-size-xl:   24px;
  --font-size-2xl:  32px;
  --font-size-3xl:  42px;
  --font-size-4xl:  56px;
  --font-size-5xl:  72px;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.16), 0 8px 16px rgba(0,0,0,0.08);
  --shadow-blue: 0 4px 24px rgba(37,99,235,0.3);
  --shadow-blue-lg: 0 8px 40px rgba(37,99,235,0.4);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --container-max: 1280px;
  --header-height: 72px;
  --topbar-height: 42px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* ===== ACCESSIBILITY UTILITIES ===== */
/* Skip-to-content link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--white); outline-offset: 2px; }

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

/* Global focus-visible ring (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== SELECTION ===== */
::selection { background: var(--accent); color: var(--white); }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}
.container-fluid { width: 100%; padding: 0 var(--space-6); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-5); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}
h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

.display-font { font-family: var(--font-display); }
.text-accent { color: var(--accent); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: var(--font-size-sm); }
.text-xs { font-size: var(--font-size-xs); }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== ANNOUNCEMENT TOPBAR ===== */
.topbar {
  background: var(--primary-dark);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 100;
  /* Ensure CTA never bleeds outside the topbar on any viewport */
  contain: layout;
}
.topbar-marquee {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  overflow: hidden;
}
.topbar-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
}
.topbar-track:hover { animation-play-state: paused; }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-8);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.topbar-item i { color: var(--cyan); font-size: 12px; }
.topbar-sep {
  color: rgba(255,255,255,0.2);
  font-size: 16px;
}
.topbar-cta {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 var(--space-6);
  background: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--transition-fast);
  cursor: pointer;
  z-index: 2;
}
.topbar-cta:hover { background: var(--accent-hover); }
.topbar-cta i { font-size: 10px; }

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

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow var(--transition-base), background var(--transition-base);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 160px;   /* hard cap — prevents overflow into nav */
}
.site-logo-img {
  display: block;
  width: 100%;          /* fill the capped container */
  max-width: 160px;     /* explicit safety net */
  height: auto;         /* preserve aspect ratio */
  max-height: 52px;     /* cap height so header stays 72px tall */
  object-fit: contain;
}
.logo-primary {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.logo-secondary {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 1px;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: var(--space-1); flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover { color: var(--accent); background: var(--accent-light); }
.nav-link.active { color: var(--accent); }
.nav-link i.chevron {
  font-size: 9px;
  transition: transform var(--transition-fast);
  opacity: 0.6;
}
.nav-item:hover .nav-link i.chevron { transform: rotate(180deg); }

/* Hot badge */
.nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  background: var(--danger);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 2px;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 1000;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.dropdown-item:hover { background: var(--accent-light); color: var(--accent); }
.dropdown-item i {
  width: 20px;
  color: var(--gray-400);
  font-size: 12px;
  transition: color var(--transition-fast);
}
.dropdown-item:hover i { color: var(--accent); }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: var(--space-2) 0; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

/* Search Bar */
.header-search {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 0 var(--space-4);
  gap: var(--space-2);
  height: 38px;
  transition: all var(--transition-base);
  width: 220px;
}
.header-search:focus-within {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  width: 260px;
}
.header-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--gray-800);
  width: 100%;
  /* focus ring handled by global :focus-visible rule */
}
.header-search input::placeholder { color: var(--gray-400); }
.header-search i { color: var(--gray-400); font-size: 13px; flex-shrink: 0; }

/* Icon Buttons */
.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--gray-600);
  background: transparent;
  border: none;
}
.icon-btn:hover { background: var(--gray-100); color: var(--accent); }
.icon-btn i { font-size: 16px; }
.icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  border: none;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ===== MARQUEE TICKER (below header) ===== */
.ticker-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: marqueeScroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-6);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ticker-dot { color: var(--accent); font-size: 5px; }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-3) 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-500); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--gray-700); font-weight: 500; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-blue-lg);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-dark {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}
.btn-dark:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.btn-lg { padding: 15px 36px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-pill { border-radius: var(--radius-full); }

/* Cart Button */
.btn-cart {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-blue);
  letter-spacing: 0.03em;
}
.btn-cart:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue-lg);
}
.btn-cart.success {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}

/* Icon Action Buttons */
.action-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 15px;
}
.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.action-btn.wishlist-active { border-color: var(--danger); color: var(--danger); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-new    { background: var(--success); color: var(--white); }
.badge-hot    { background: var(--danger); color: var(--white); }
.badge-sale   { background: var(--warning); color: var(--white); }
.badge-info   { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(37,99,235,0.25); }
.badge-stock  { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-outline{ background: transparent; border: 1.5px solid var(--gray-300); color: var(--gray-600); }

/* ===== SECTION STYLES ===== */
.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-24) 0; }
.section-dark {
  background: var(--dark-bg);
  color: var(--white);
}
.section-gray { background: var(--gray-50); }
.section-blue { background: var(--primary); color: var(--white); }

.section-header {
  margin-bottom: var(--space-12);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 14px;
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}
.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section-title .highlight { color: var(--accent); }
.section-title-white { color: var(--white); }
.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}
.section-subtitle-white { color: rgba(255,255,255,0.65); }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--primary-dark);
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,14,26,0.92) 0%, rgba(10,14,26,0.7) 55%, rgba(10,14,26,0.3) 100%);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.4;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-24) 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.35);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-5);
}
.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: var(--space-6);
  letter-spacing: -1px;
}
.hero-title .accent { color: var(--cyan); }
.hero-subtitle {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat-value .unit { font-size: 18px; color: var(--cyan); }
.hero-stat-label {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(37,99,235,0.12);
  transform: translateY(-4px);
}
.product-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.product-card-actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition-base);
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}
.card-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-md);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.card-action-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.card-action-btn.active { color: var(--danger); }

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--gray-50);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-5);
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,39,68,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.product-card:hover .product-card-img-overlay { opacity: 1; }
.overlay-btn {
  padding: 10px 24px;
  background: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition-fast);
  transform: translateY(8px);
  transition: all var(--transition-base);
}
.product-card:hover .overlay-btn { transform: translateY(0); }
.overlay-btn:hover { background: var(--accent); color: var(--white); }

.product-card-body { padding: var(--space-4) var(--space-5) var(--space-5); flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-1);
}
.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  line-height: 1.35;
}
.product-name a { transition: color var(--transition-fast); }
.product-name a:hover { color: var(--accent); }
.product-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.price-now {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}
.price-old {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
}
.price-save {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
}
.btn-add-card {
  padding: 8px 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.btn-add-card:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--accent);
  font-size: 22px;
  transition: all var(--transition-base);
}
.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--white);
}
.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}
.feature-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ===== STAT CARDS ===== */
.stat-card {
  padding: var(--space-8);
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-base);
}
.stat-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(37,99,235,0.4);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-number .unit { color: var(--cyan); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-5) 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
}
.trust-item i { color: var(--accent); font-size: 18px; }

/* ===== TABS ===== */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: var(--space-8);
}
.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}
.tab-btn.active { color: var(--accent); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn:hover { color: var(--gray-800); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInUp 0.3s ease; }

/* ===== ACCORDION ===== */
.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}
.accordion-item:first-child { border-top: 1px solid var(--gray-200); }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-800);
  transition: color var(--transition-fast);
  user-select: none;
}
.accordion-header:hover { color: var(--accent); }
.accordion-icon {
  width: 28px;
  height: 28px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gray-500);
  transition: all var(--transition-base);
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon {
  background: var(--accent);
  color: var(--white);
  transform: rotate(180deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.accordion-body-inner {
  padding-bottom: var(--space-5);
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-800);
  outline: none;
  transition: all var(--transition-base);
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.form-input::placeholder { color: var(--gray-400); }
.form-textarea {
  width: 100%;
  min-height: 130px;
  padding: var(--space-4);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-800);
  outline: none;
  resize: vertical;
  transition: all var(--transition-base);
  line-height: 1.6;
}
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

/* Quantity Selector */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.qty-btn {
  width: 42px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: none;
  color: var(--gray-600);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.qty-btn:hover { background: var(--accent-light); color: var(--accent); }
.qty-input {
  width: 56px;
  height: 48px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  outline: none;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ===== DATA TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  background: var(--gray-50);
  padding: 12px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--gray-200);
}
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table td:first-child {
  font-weight: 600;
  color: var(--gray-500);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 35%;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
}
.footer-top {
  padding: var(--space-20) 0 var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-top: var(--space-4);
  max-width: 280px;
}
.footer-logo-primary {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.footer-logo-secondary {
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-top: 2px;
}
.footer-socials {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}
.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-5);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-link:hover { color: var(--white); }
.footer-link i { font-size: 11px; opacity: 0.4; }
.footer-bottom {
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-legal {
  display: flex;
  gap: var(--space-5);
}
.footer-legal a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-disclaimer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: var(--space-4) 0;
}
.footer-disclaimer p {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.7;
  text-align: center;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--white);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
}
.cart-drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.cart-drawer-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--gray-500);
  font-size: 14px;
  transition: all var(--transition-fast);
}
.cart-drawer-close:hover { background: var(--danger); color: var(--white); }
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6);
}
.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--gray-100);
}
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  object-fit: contain;
  padding: 4px;
  background: var(--gray-50);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-1);
  line-height: 1.35;
}
.cart-item-meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: var(--space-3);
}
.cart-item-footer { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 16px; font-weight: 800; color: var(--gray-900); }
.cart-remove {
  font-size: 12px;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-remove:hover { color: var(--danger); }
.cart-drawer-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--gray-200);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.cart-total-label { font-size: 14px; color: var(--gray-500); font-weight: 600; }
.cart-total-value { font-size: 24px; font-weight: 800; color: var(--gray-900); }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  height: 200px;
  color: var(--gray-400);
}
.cart-empty i { font-size: 48px; opacity: 0.3; }
.cart-empty p { font-size: 14px; }

/* ===== UTILITY ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@keyframes spin { to { transform: rotate(360deg); } }

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

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== NOTIFICATION TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  min-width: 300px;
  max-width: 380px;
  animation: slideInRight 0.35s ease;
  position: relative;
  border-left: 4px solid var(--accent);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast.success .toast-icon { color: var(--success); }
.toast.error   .toast-icon { color: var(--danger); }
.toast-content { flex: 1; }
.toast-title { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.toast-msg   { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.toast-close {
  font-size: 12px;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  transition: opacity 0.5s ease, visibility 0.5s ease;
  /* CSS-only safety fallback: hide after 3s even if JS is delayed/blocked */
  animation: loaderAutoHide 0.5s ease 3s forwards;
}
@keyframes loaderAutoHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--primary); }
.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: var(--radius-full);
  animation: loaderAnim 1.2s ease-in-out infinite;
}
@keyframes loaderAnim {
  0%   { width: 0; transform: translateX(0); }
  50%  { width: 70%; }
  100% { width: 0; transform: translateX(200px); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-blue);
  border: none;
  font-size: 14px;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1200px) {
  :root { --font-size-5xl: 58px; --font-size-4xl: 46px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-search { width: 160px; }
  :root { --font-size-5xl: 46px; --font-size-4xl: 36px; --font-size-3xl: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--space-6); flex-wrap: wrap; }
  :root { --font-size-5xl: 38px; }
  .trust-items { gap: var(--space-5); }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .cart-drawer { width: 380px; }
}
@media (max-width: 600px) {
  .container { padding: 0 var(--space-4); }
  .header-search { display: none; }
  .cart-drawer { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
/* ===== SMALL DEVICE BREAKPOINT (480px / 375px) ===== */
@media (max-width: 480px) {
  :root { --font-size-5xl: 32px; --font-size-4xl: 28px; --font-size-3xl: 22px; }
  .trust-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .trust-item { flex-direction: column; text-align: center; gap: var(--space-2); }
  .hero-stats { flex-direction: column; align-items: center; gap: var(--space-4); }
  .hero-stat-divider { display: none; }
  .footer-brand p { font-size: 13px; }
  .section { padding: var(--space-12) 0; }
  .btn-lg { padding: 13px 24px; font-size: 14px; }
}

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 92vw);
  background: var(--white);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  box-shadow: 4px 0 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  border-bottom: 1px solid var(--gray-200);
}
.mobile-nav-close {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 14px;
}
.mobile-nav-links { padding: var(--space-4); flex: 1; overflow-y: auto; }

/* Mobile nav search bar */
.mobile-nav-search {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.mobile-nav-search i { color: var(--gray-400); font-size: 13px; flex-shrink: 0; }
.mobile-search-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--gray-800);
  width: 100%;
}
.mobile-search-input::placeholder { color: var(--gray-400); }
.mobile-search-input:focus-visible { outline: none; }
.mobile-nav-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.mobile-nav-link:hover { background: var(--accent-light); color: var(--accent); }
.mobile-nav-link i { width: 20px; color: var(--gray-400); }
.mobile-nav-footer {
  padding: var(--space-5);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: var(--space-3);
}
