/* ============================================
   GADGETS GARAGE — Electronics & Gadgets Storefront
   Design System: Modern tech, clean, authoritative
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--color-text-primary); background: var(--color-bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* --- Design Tokens --- */
:root {
  /* Colors — deep tech palette */
  --color-bg: #f7f8fa;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f2f5;
  --color-border: #e2e5ea;
  --color-border-strong: #c8ccd4;
  --color-text-primary: #1a1d23;
  --color-text-secondary: #4a5060;
  --color-text-muted: #8b91a0;
  --color-accent: #0066ff;
  --color-accent-hover: #0052cc;
  --color-accent-fg: #ffffff;
  --color-accent-light: #e6f0ff;
  --color-success: #0a8a4f;
  --color-warning: #c4790a;
  --color-error: #d1242f;
  --color-dark: #1a1d23;
  --color-dark-alt: #252a33;

  /* Typography */
  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

  /* Spacing */
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px;
  --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Layout */
  --container-max: 1280px;
  --header-height: 64px;
}

/* --- Container --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 12px 24px; font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: var(--radius-md); transition: all var(--transition-fast); white-space: nowrap;
  text-align: center; line-height: 1.4; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--color-accent); color: var(--color-accent-fg); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-dark); color: #fff; }
.btn-secondary:hover { background: var(--color-dark-alt); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--color-text-primary); border-color: var(--color-border-strong); }
.btn-ghost:hover { border-color: var(--color-text-primary); background: var(--color-surface-alt); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-full { width: 100%; }

/* --- Badges --- */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px; font-size: 11px; font-weight: 700;
  border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-sale { background: #fee; color: var(--color-error); }
.badge-new { background: var(--color-accent-light); color: var(--color-accent); }
.badge-out { background: var(--color-surface-alt); color: var(--color-text-muted); }
.badge-count {
  background: var(--color-accent); color: #fff; min-width: 20px; height: 20px;
  border-radius: var(--radius-full); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--color-dark); color: #fff; text-align: center;
  padding: 10px var(--space-lg); font-size: 13px; font-weight: 500;
}
.announcement-bar strong { color: var(--color-accent); }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 100; background: var(--color-surface);
  border-bottom: 1px solid var(--color-border); height: var(--header-height);
  display: flex; align-items: center;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--space-lg); }
.nav-logo { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--color-dark); white-space: nowrap; letter-spacing: -0.5px; }
.nav-logo span { color: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--color-text-secondary);
  transition: color var(--transition-fast); position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-text-primary); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--color-accent); transition: width var(--transition-fast);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: var(--space-sm) 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all var(--transition-fast);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 8px var(--space-lg); font-size: 14px; color: var(--color-text-secondary); }
.nav-dropdown-menu a:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }
.nav-icon-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--color-text-secondary); transition: all var(--transition-fast);
  position: relative;
}
.nav-icon-btn:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.nav-icon-btn svg { width: 22px; height: 22px; }
.nav-cart-count {
  position: absolute; top: 2px; right: 2px; background: var(--color-accent); color: #fff;
  min-width: 18px; height: 18px; border-radius: var(--radius-full); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* --- Search Bar --- */
.search-bar { position: relative; }
.search-input-wrap { display: flex; align-items: center; gap: var(--space-sm); }
.search-input {
  width: 240px; padding: 8px 12px 8px 36px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-size: 14px; background: var(--color-surface-alt);
  transition: all var(--transition-fast);
}
.search-input:focus { outline: none; border-color: var(--color-accent); background: var(--color-surface); box-shadow: 0 0 0 3px var(--color-accent-light); }
.search-icon { position: absolute; left: 10px; color: var(--color-text-muted); pointer-events: none; }
.search-results {
  position: absolute; top: 100%; right: 0; width: 360px; max-height: 400px; overflow-y: auto;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); display: none; z-index: 200;
}
.search-results.show { display: block; }
.search-item { display: flex; gap: var(--space-md); padding: var(--space-md); border-bottom: 1px solid var(--color-border); transition: background var(--transition-fast); }
.search-item:hover { background: var(--color-surface-alt); }
.search-item img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }
.search-item-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.search-item-info p { font-size: 13px; color: var(--color-accent); font-weight: 600; }
.search-item-info .search-item-vendor { font-size: 12px; color: var(--color-text-muted); }
.search-no-results { padding: var(--space-lg); text-align: center; color: var(--color-text-muted); font-size: 14px; }

/* --- Hamburger / Mobile Menu --- */
.hamburger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--color-text-primary); transition: all var(--transition-fast); border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
  background: var(--color-surface); z-index: 99; padding: var(--space-xl) var(--space-lg);
  transform: translateX(-100%); transition: transform var(--transition-base); overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: block; padding: var(--space-md) 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--color-border); }
.mobile-menu a:hover { color: var(--color-accent); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background: linear-gradient(135deg, #0a0e17 0%, #1a1d23 50%, #252a33 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; opacity: 0.35; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,23,0.9) 0%, rgba(10,14,23,0.5) 60%, transparent 100%); }
.hero-content { position: relative; z-index: 2; padding: var(--space-3xl) var(--space-lg); max-width: 640px; }
.hero-eyebrow { display: inline-block; padding: 6px 14px; background: rgba(0,102,255,0.2); border: 1px solid rgba(0,102,255,0.4); border-radius: var(--radius-full); color: #4d94ff; font-size: 13px; font-weight: 600; margin-bottom: var(--space-lg); text-transform: uppercase; letter-spacing: 1px; }
.hero-title { font-family: var(--font-heading); font-size: clamp(32px, 5vw, 52px); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: var(--space-md); letter-spacing: -1px; }
.hero-subtitle { font-size: 18px; color: #b8c0d0; margin-bottom: var(--space-xl); max-width: 480px; line-height: 1.5; }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* --- Sections --- */
.section { padding: var(--space-2xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-title { font-family: var(--font-heading); font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; color: var(--color-text-primary); margin-bottom: var(--space-sm); letter-spacing: -0.5px; }
.section-subtitle { font-size: 16px; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-lg); }

/* --- Product Card --- */
.product-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition-base); display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--color-border-strong); }
.product-card-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--color-surface-alt); }
.product-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: var(--space-sm); left: var(--space-sm); display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.product-card-info { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
.product-card-vendor { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.product-card-title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); line-height: 1.3; }
.product-card-title a:hover { color: var(--color-accent); }
.product-card-price-wrap { display: flex; align-items: baseline; gap: var(--space-sm); margin-top: auto; }
.product-card-price { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--color-text-primary); }
.product-card-compare-price { font-size: 14px; color: var(--color-text-muted); text-decoration: line-through; }
.product-card-atc {
  margin-top: var(--space-sm); width: 100%; padding: 10px; background: var(--color-dark); color: #fff;
  border-radius: var(--radius-md); font-size: 13px; font-weight: 600; transition: all var(--transition-fast);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.product-card-atc:hover { background: var(--color-accent); }
.product-card-atc:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Collection Card --- */
.collection-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  display: block; transition: all var(--transition-base);
}
.collection-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.collection-card:hover img { transform: scale(1.05); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg); }
.collection-card-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.collection-card-desc { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.4; }
.collection-card-count { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* --- Blog Card --- */
.blog-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition-base); display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--color-surface-alt); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-base); }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-info { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; }
.blog-card-meta { font-size: 12px; color: var(--color-text-muted); display: flex; gap: var(--space-sm); align-items: center; }
.blog-card-title { font-family: var(--font-heading); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--color-text-primary); }
.blog-card-excerpt { font-size: 14px; color: var(--color-text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-readmore { font-size: 14px; font-weight: 600; color: var(--color-accent); margin-top: auto; }

/* --- Trust Badges --- */
.trust-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.trust-item { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-lg); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.trust-item-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--color-accent-light); border-radius: var(--radius-md); color: var(--color-accent); flex-shrink: 0; }
.trust-item-icon svg { width: 24px; height: 24px; }
.trust-item-text h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.trust-item-text p { font-size: 13px; color: var(--color-text-muted); }

/* --- Breadcrumb --- */
.breadcrumb { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; padding: var(--space-md) 0; font-size: 13px; }
.breadcrumb-item { color: var(--color-text-muted); }
.breadcrumb-item a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-text-muted); }
.breadcrumb-item.current { color: var(--color-text-primary); font-weight: 600; }

/* --- Product Page Layout --- */
.product-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.product-gallery { display: flex; flex-direction: column; gap: var(--space-md); }
.gallery-main-wrap { position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-alt); border: 1px solid var(--color-border); }
.gallery-main-wrap img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: var(--space-sm); overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; background: var(--color-surface-alt); }
.gallery-thumb.active { border-color: var(--color-accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: var(--space-md); }
.product-vendor { font-size: 13px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.product-title { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.product-rating { display: flex; align-items: center; gap: var(--space-sm); }
.rating-stars { display: inline-flex; gap: 2px; color: #f5a623; }
.rating-stars svg { width: 18px; height: 18px; }
.rating-text { font-size: 13px; color: var(--color-text-muted); }
.product-price-wrap { display: flex; align-items: baseline; gap: var(--space-md); }
.product-price { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--color-text-primary); }
.product-compare-price { font-family: var(--font-mono); font-size: 18px; color: var(--color-text-muted); text-decoration: line-through; }
.product-sku { font-size: 13px; color: var(--color-text-muted); font-family: var(--font-mono); }
.product-short-desc { font-size: 15px; color: var(--color-text-secondary); line-height: 1.6; }
.availability-msg { display: flex; align-items: center; gap: var(--space-sm); font-size: 14px; font-weight: 500; }
.availability-msg.in-stock { color: var(--color-success); }
.availability-msg.out-stock { color: var(--color-error); }

/* --- Option Selectors --- */
.option-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.option-label { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.option-btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.option-btn {
  padding: 8px 16px; border: 2px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; color: var(--color-text-secondary); transition: all var(--transition-fast);
  background: var(--color-surface);
}
.option-btn:hover { border-color: var(--color-text-primary); }
.option-btn.active { border-color: var(--color-accent); background: var(--color-accent-light); color: var(--color-accent); }
.option-btn.unavailable { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* --- Quantity Control --- */
.qty-control { display: inline-flex; align-items: center; border: 2px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.qty-btn { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.qty-btn:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.qty-input { width: 50px; height: 44px; text-align: center; border: none; border-left: 2px solid var(--color-border); border-right: 2px solid var(--color-border); font-size: 15px; font-weight: 600; }
.qty-input:focus { outline: none; }

/* --- Sticky ATC --- */
.sticky-atc {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--color-surface);
  border-top: 1px solid var(--color-border); box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  padding: var(--space-md) var(--space-lg); z-index: 90; transform: translateY(100%);
  transition: transform var(--transition-base); display: flex; align-items: center; gap: var(--space-md);
}
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-product { display: flex; align-items: center; gap: var(--space-md); flex: 1; min-width: 0; }
.sticky-atc-product img { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.sticky-atc-product-info { min-width: 0; }
.sticky-atc-product-info h4 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc-product-info p { font-size: 15px; font-weight: 700; color: var(--color-accent); font-family: var(--font-mono); }

/* --- Accordions --- */
.product-accordions { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-lg); }
.accordion { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.accordion-header { padding: var(--space-md); font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: var(--color-surface); transition: background var(--transition-fast); }
.accordion-header:hover { background: var(--color-surface-alt); }
.accordion-header::after { content: '+'; font-size: 20px; color: var(--color-text-muted); transition: transform var(--transition-fast); }
.accordion.open .accordion-header::after { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); padding: 0 var(--space-md); }
.accordion.open .accordion-body { max-height: 1000px; padding: var(--space-md); }
.accordion-body p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: var(--space-sm); }
.accordion-body ul { padding-left: var(--space-lg); margin-bottom: var(--space-sm); }
.accordion-body li { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 4px; list-style: disc; }

/* --- Reviews --- */
.reviews-section { margin-top: var(--space-2xl); }
.reviews-summary { display: flex; align-items: center; gap: var(--space-xl); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.reviews-avg { text-align: center; }
.reviews-score { font-family: var(--font-heading); font-size: 48px; font-weight: 700; line-height: 1; }
.reviews-score-out { font-size: 16px; color: var(--color-text-muted); }
.reviews-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.rating-bar { display: flex; align-items: center; gap: var(--space-sm); font-size: 13px; }
.rating-bar-label { width: 40px; color: var(--color-text-muted); }
.rating-bar-track { flex: 1; height: 8px; background: var(--color-surface-alt); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f5a623; border-radius: var(--radius-full); transition: width var(--transition-base); }
.rating-bar-count { width: 30px; text-align: right; color: var(--color-text-muted); }
.review-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-lg); margin-bottom: var(--space-md); }
.review-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--space-sm); }
.review-author { font-size: 15px; font-weight: 600; }
.review-verified { font-size: 12px; color: var(--color-success); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.review-title { font-size: 15px; font-weight: 600; margin-bottom: var(--space-xs); }
.review-body { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }
.review-date { font-size: 12px; color: var(--color-text-muted); }

/* --- Cart Drawer --- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--color-surface);
  z-index: 201; transform: translateX(100%); transition: transform var(--transition-base);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.cart-drawer-header h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: var(--space-sm); }
#cart-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); font-size: 20px; color: var(--color-text-muted); transition: all var(--transition-fast); }
#cart-close:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
.cart-lines { flex: 1; overflow-y: auto; padding: var(--space-md); }
.cart-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.cart-item img { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--color-surface-alt); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cart-item-variant { font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--color-accent); font-family: var(--font-mono); }
.cart-item-controls { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-sm); }
.cart-item-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.cart-item-qty button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--color-text-secondary); }
.cart-item-qty button:hover { background: var(--color-surface-alt); }
.cart-item-qty span { width: 32px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-item-remove { font-size: 12px; color: var(--color-text-muted); transition: color var(--transition-fast); }
.cart-item-remove:hover { color: var(--color-error); }
.cart-empty { text-align: center; padding: var(--space-2xl) var(--space-lg); color: var(--color-text-muted); }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto var(--space-md); opacity: 0.3; }
.cart-empty p { font-size: 15px; margin-bottom: var(--space-md); }
.cart-footer { padding: var(--space-lg); border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-sm); }
.cart-subtotal span { font-size: 15px; color: var(--color-text-secondary); }
.cart-subtotal strong { font-size: 20px; font-weight: 700; font-family: var(--font-mono); }
.cart-tax-note { font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--space-md); text-align: center; }
.cart-footer .btn { margin-bottom: var(--space-sm); }

/* --- Toast --- */
.toast {
  position: fixed; bottom: var(--space-xl); left: 50%; transform: translateX(-50%) translateY(100px);
  padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
  z-index: 300; opacity: 0; transition: all var(--transition-base); box-shadow: var(--shadow-lg); white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-success { background: var(--color-success); color: #fff; }
.toast-error { background: var(--color-error); color: #fff; }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.pagination-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
  color: var(--color-text-secondary); transition: all var(--transition-fast); background: var(--color-surface);
}
.pagination-btn:hover { border-color: var(--color-text-primary); color: var(--color-text-primary); }
.pagination-btn.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Sort Bar --- */
.sort-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.sort-bar select { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 14px; background: var(--color-surface); cursor: pointer; }
.sort-bar select:focus { outline: none; border-color: var(--color-accent); }
.product-count { font-size: 14px; color: var(--color-text-muted); }

/* --- Footer --- */
.footer { background: var(--color-dark); color: #b8c0d0; padding: var(--space-2xl) 0 var(--space-lg); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-brand-col { max-width: 360px; }
.footer-links-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.footer-col h4 { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: #b8c0d0; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--color-accent); }
.footer-logo { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: var(--space-md); }
.footer-logo span { color: var(--color-accent); }
.footer-brand-desc { font-size: 14px; line-height: 1.6; margin-bottom: var(--space-md); max-width: 320px; }
.social-links { display: flex; gap: var(--space-sm); }
.social-links a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-md); transition: all var(--transition-fast); }
.social-links a:hover { background: var(--color-accent); border-color: var(--color-accent); }
.social-links svg { width: 20px; height: 20px; }
.footer-newsletter { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); flex-wrap: wrap; padding: var(--space-xl) 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: var(--space-lg); }
.footer-newsletter-text h4 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.footer-newsletter-text p { font-size: 14px; color: #b8c0d0; }
.footer-newsletter-form { display: flex; gap: var(--space-sm); max-width: 400px; width: 100%; }
.footer-newsletter-form input { flex: 1; min-width: 180px; padding: 12px var(--space-md); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md); font-size: 15px; background: rgba(255,255,255,0.05); color: #fff; }
.footer-newsletter-form input::placeholder { color: #8b91a0; }
.footer-newsletter-form input:focus { outline: none; border-color: var(--color-accent); }
.footer-bottom { padding-top: var(--space-lg); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); font-size: 13px; }
.footer-payment-icons { display: flex; gap: var(--space-sm); align-items: center; }
.footer-payment-icons span { font-size: 12px; color: #8b91a0; padding: 4px 8px; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); }

/* --- Page Hero (for about/story/certifications) --- */
.page-hero { margin-bottom: var(--space-xl); padding-bottom: var(--space-lg); border-bottom: 2px solid var(--color-accent); }
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 36px); font-weight: 700; }

/* --- Checkout Page --- */
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.checkout-form-section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); }
.checkout-section-title { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin-bottom: var(--space-lg); display: flex; align-items: center; gap: var(--space-sm); }
.checkout-section-number { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--color-accent); color: #fff; border-radius: var(--radius-full); font-size: 14px; font-weight: 700; }
.checkout-form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.checkout-summary { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-xl); position: sticky; top: 80px; }
.checkout-summary h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: var(--space-lg); }
.checkout-item { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.checkout-item img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--color-surface-alt); }
.checkout-item-info { flex: 1; }
.checkout-item-title { font-size: 14px; font-weight: 600; }
.checkout-item-variant { font-size: 12px; color: var(--color-text-muted); }
.checkout-item-price { font-size: 14px; font-weight: 700; font-family: var(--font-mono); color: var(--color-accent); }
.checkout-item-qty { font-size: 12px; color: var(--color-text-muted); }
.checkout-totals { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 2px solid var(--color-border); }
.checkout-total-row { display: flex; justify-content: space-between; margin-bottom: var(--space-sm); font-size: 14px; }
.checkout-total-row.grand { font-size: 20px; font-weight: 700; font-family: var(--font-mono); border-top: 1px solid var(--color-border); padding-top: var(--space-sm); margin-top: var(--space-sm); }
.checkout-total-row.grand strong { color: var(--color-accent); }
.checkout-payment-methods { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }
.checkout-payment-option { display: flex; align-items: center; gap: var(--space-sm); padding: 12px var(--space-md); border: 2px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); flex: 1; min-width: 120px; }
.checkout-payment-option:hover { border-color: var(--color-text-primary); }
.checkout-payment-option.active { border-color: var(--color-accent); background: var(--color-accent-light); }
.checkout-payment-option input { accent-color: var(--color-accent); }
.checkout-payment-option label { font-size: 14px; font-weight: 600; cursor: pointer; }
.checkout-trust { display: flex; align-items: center; gap: var(--space-sm); justify-content: center; padding: var(--space-md); background: var(--color-surface-alt); border-radius: var(--radius-md); margin-top: var(--space-md); font-size: 13px; color: var(--color-text-secondary); }
.checkout-trust svg { width: 18px; height: 18px; color: var(--color-success); }
.checkout-success { text-align: center; padding: var(--space-3xl) var(--space-lg); }
.checkout-success-icon { width: 80px; height: 80px; margin: 0 auto var(--space-lg); display: flex; align-items: center; justify-content: center; background: #e6f6ed; border-radius: var(--radius-full); color: var(--color-success); }
.checkout-success-icon svg { width: 40px; height: 40px; }
.checkout-success h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; margin-bottom: var(--space-md); }
.checkout-success p { font-size: 16px; color: var(--color-text-secondary); margin-bottom: var(--space-lg); }
.checkout-success-order { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); margin: 0 auto var(--space-lg); max-width: 500px; text-align: left; }
.checkout-success-order h3 { font-size: 16px; font-weight: 600; margin-bottom: var(--space-sm); }
.checkout-success-order p { font-size: 14px; margin-bottom: 4px; }

@media (min-width: 640px) {
  .footer-links-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 2fr; }
  .checkout-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr 400px; }
}
@media (max-width: 639px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .footer-newsletter { flex-direction: column; align-items: flex-start; }
  .footer-newsletter-form { max-width: 100%; }
}

/* --- Skeleton --- */
.skeleton { background: linear-gradient(90deg, var(--color-surface-alt) 25%, var(--color-border) 50%, var(--color-surface-alt) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn 0.5s ease; }
.slide-up { animation: slideUp 0.5s ease; }

/* --- Page Content (Shopify pages, policies, blog articles) --- */
.page-content { max-width: 800px; margin: 0 auto; }
.page-content h1 { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 36px); font-weight: 700; margin-bottom: var(--space-lg); }
.page-content h2 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; margin: var(--space-lg) 0 var(--space-sm); }
.page-content h3 { font-size: 18px; font-weight: 600; margin: var(--space-md) 0 var(--space-sm); }
.page-content p { font-size: 15px; line-height: 1.7; margin-bottom: var(--space-md); color: var(--color-text-secondary); }
.page-content ul, .page-content ol { padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.page-content li { font-size: 15px; line-height: 1.7; margin-bottom: var(--space-xs); color: var(--color-text-secondary); list-style: disc; }
.page-content ol li { list-style: decimal; }
.page-content strong { color: var(--color-text-primary); }
.page-content a { color: var(--color-accent); text-decoration: underline; }
.page-content img { border-radius: var(--radius-md); margin: var(--space-md) 0; }

/* --- Contact Form --- */
.contact-form { display: flex; flex-direction: column; gap: var(--space-md); max-width: 600px; }
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-group label { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.form-group label .required { color: var(--color-error); }
.form-input, .form-textarea {
  padding: 12px var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 15px; background: var(--color-surface); transition: all var(--transition-fast);
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-error { font-size: 13px; color: var(--color-error); display: none; }
.form-error.show { display: block; }
.form-success { padding: var(--space-md); background: #e6f6ed; border: 1px solid #a0d8b6; border-radius: var(--radius-md); color: var(--color-success); font-size: 14px; font-weight: 600; display: none; }
.form-success.show { display: block; }

/* --- Policy Layout --- */
.policy-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-xl); }
.policy-sidebar { display: flex; flex-direction: column; gap: var(--space-xs); }
.policy-sidebar a { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.policy-sidebar a:hover, .policy-sidebar a.active { background: var(--color-accent-light); color: var(--color-accent); }

/* --- Newsletter --- */
.newsletter { background: var(--color-dark); color: #fff; padding: var(--space-2xl) 0; text-align: center; }
.newsletter h3 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin-bottom: var(--space-sm); }
.newsletter p { font-size: 15px; color: #b8c0d0; margin-bottom: var(--space-lg); }
.newsletter-form { display: flex; gap: var(--space-sm); max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 200px; padding: 12px var(--space-md); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md); font-size: 15px; background: rgba(255,255,255,0.05); color: #fff; }
.newsletter-form input::placeholder { color: #8b91a0; }
.newsletter-form input:focus { outline: none; border-color: var(--color-accent); }

/* --- FAQ Section --- */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-sm); overflow: hidden; }
.faq-question { padding: var(--space-md) var(--space-lg); font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background var(--transition-fast); }
.faq-question:hover { background: var(--color-surface-alt); }
.faq-question::after { content: '+'; font-size: 22px; color: var(--color-text-muted); transition: transform var(--transition-fast); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-base); padding: 0 var(--space-lg); }
.faq-item.open .faq-answer { max-height: 500px; padding: var(--space-md) var(--space-lg); }
.faq-answer p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }

/* --- Value Props / Why Choose Us --- */
.value-props { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.value-prop { text-align: center; padding: var(--space-lg); }
.value-prop-icon { width: 56px; height: 56px; margin: 0 auto var(--space-md); display: flex; align-items: center; justify-content: center; background: var(--color-accent-light); border-radius: var(--radius-full); color: var(--color-accent); }
.value-prop-icon svg { width: 28px; height: 28px; }
.value-prop h4 { font-size: 16px; font-weight: 600; margin-bottom: var(--space-xs); }
.value-prop p { font-size: 14px; color: var(--color-text-muted); }

/* --- Promo Banner --- */
.promo-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; display: flex; align-items: center; }
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-banner-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,102,255,0.85) 0%, rgba(0,82,204,0.7) 100%); }
.promo-banner-content { position: relative; z-index: 2; padding: var(--space-2xl); color: #fff; max-width: 500px; }
.promo-banner-content h3 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin-bottom: var(--space-sm); }
.promo-banner-content p { font-size: 16px; margin-bottom: var(--space-lg); opacity: 0.9; }

/* --- 404 Page --- */
.error-404 { text-align: center; padding: var(--space-3xl) var(--space-lg); }
.error-404 h1 { font-family: var(--font-heading); font-size: clamp(60px, 10vw, 120px); font-weight: 700; color: var(--color-accent); line-height: 1; }
.error-404 h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 600; margin-bottom: var(--space-md); }
.error-404 p { font-size: 16px; color: var(--color-text-secondary); margin-bottom: var(--space-lg); }
.error-404-links { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-top: var(--space-lg); }

/* --- Blog Article --- */
.article-hero { position: relative; min-height: 400px; display: flex; align-items: flex-end; overflow: hidden; }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); }
.article-hero-content { position: relative; z-index: 2; padding: var(--space-2xl); color: #fff; max-width: 800px; }
.article-meta { display: flex; gap: var(--space-md); font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: var(--space-sm); }
.article-hero-content h1 { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 38px); font-weight: 700; line-height: 1.2; }
.article-body { max-width: 800px; margin: 0 auto; padding: var(--space-xl) 0; }
.article-share { display: flex; gap: var(--space-sm); align-items: center; margin: var(--space-lg) 0; padding: var(--space-md) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.article-share span { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); }
.share-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: all var(--transition-fast); }
.share-btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.share-btn svg { width: 18px; height: 18px; }

/* --- Collection Hero --- */
.collection-hero { position: relative; min-height: 280px; display: flex; align-items: center; overflow: hidden; }
.collection-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,14,23,0.8) 0%, rgba(10,14,23,0.4) 100%); }
.collection-hero-content { position: relative; z-index: 2; padding: var(--space-2xl); color: #fff; }
.collection-hero-content h1 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: var(--space-sm); }

/* --- Spinner --- */
.spinner { width: 40px; height: 40px; border: 3px solid var(--color-surface-alt); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: var(--space-xl) auto; }

/* --- Accessibility --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* --- Responsive Breakpoints --- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .trust-badges { grid-template-columns: repeat(4, 1fr); }
  .value-props { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .product-layout { grid-template-columns: 1fr 1fr; }
  .policy-layout { grid-template-columns: 240px 1fr; }
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
  .mobile-menu { display: none; }
  .nav-links { display: flex; }
  .search-input { width: 280px; }
}

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .search-input { width: 180px; }
}

@media (max-width: 639px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-badges { grid-template-columns: 1fr; }
  .value-props { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 400px; }
  .hero-content { padding: var(--space-2xl) var(--space-lg); }
  .sticky-atc { flex-wrap: wrap; }
  .sticky-atc-product { width: 100%; }
  .sticky-atc .btn { width: 100%; }
  .reviews-summary { flex-direction: column; align-items: flex-start; }
  .cart-drawer { max-width: 100%; }
}
