/* =========================================================================
   HiBargh.com — Design System
   =========================================================================
   Apple HIG-inspired, RTL Persian, glassmorphism throughout.
   Tokens only — no hardcoded hex / px in components.
   Mirrors the portal stack so the two sites feel cohesive.
   ========================================================================= */

:root {
  /* Opt out of browser auto-dark heuristics (Chrome force-dark, Dark Reader, etc.).
     The site has its own theming via [data-theme="dark"]; we don't want the browser
     to apply its own inversion on top, which can produce unreadable "black header"
     symptoms with text vanishing into the background. */
  color-scheme: light;

  /* ── Semantic colors ── */
  --apple-blue:   #0071e3;
  --apple-blue-dark: #0058b9;
  --apple-green:  #34c759;
  --apple-red:    #ff3b30;
  --apple-amber:  #ffcc00;
  --apple-gray:   #f5f5f7;
  --apple-gray-2: #e8e8ed;
  --apple-gray-3: #d2d2d7;
  --apple-dark:   #1d1d1f;
  --apple-dark-2: #424245;
  --apple-dark-3: #6e6e73;
  --apple-dark-4: #86868b;
  --brand-accent: #e11d48;

  /* ── Glass ── */
  --glass-bg:     rgba(255, 255, 255, 0.40);
  --glass-border: rgba(255, 255, 255, 0.40);
  --liquid-glass: rgba(255, 255, 255, 0.15);
  --rim-light:    rgba(255, 255, 255, 0.80);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

  /* ── Typography scale ── */
  --text-2xs: 10px;
  --text-xs:  11px;
  --text-sm:  13px;
  --text-base:15px;
  --text-lg:  18px;
  --text-xl:  21px;
  --text-2xl: 26px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 48px;

  --leading-tight: 1.2;
  --leading-body:  1.6;

  /* ── Spacing (4px base) ── */
  --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;

  /* ── Radius ── */
  --radius-sm:   12px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-2xl:  40px;
  --radius-full: 999px;

  /* ── Easing ── */
  --apple-ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --apple-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --apple-spring:   cubic-bezier(0.22, 1, 0.36, 1);

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

[data-theme="dark"] {
  --apple-gray:   #000;
  --apple-gray-2: #1c1c1e;
  --apple-gray-3: #2c2c2e;
  --apple-dark:   #f5f5f7;
  --apple-dark-2: #d2d2d7;
  --apple-dark-3: #8e8e93;

  --glass-bg:     rgba(28, 28, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.12);
  --liquid-glass: rgba(28, 28, 30, 0.4);
  --rim-light:    rgba(255, 255, 255, 0.15);
}

/* =========================================================================
   Base reset
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--apple-gray);
  color: var(--apple-dark);
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--apple-blue); }

h1, h2, h3, h4, h5, h6 {
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}
h1 { font-size: var(--text-4xl); font-weight: 700; }
h2 { font-size: var(--text-3xl); font-weight: 700; }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl);  font-weight: 600; }
h5 { font-size: var(--text-lg);  font-weight: 600; }

p { margin: 0 0 var(--space-3); }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; }

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

::selection { background: var(--apple-blue); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================================
   Layout primitives
   ========================================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--space-4);
}

.section { padding-block: var(--space-12); }
.section--lg { padding-block: var(--space-16); }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.stack > * + * { margin-top: var(--space-4); }

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  padding: .75rem 1rem;
  background: var(--apple-dark);
  color: #fff;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus {
  inset-inline-start: 1rem;
  top: 1rem;
  border-radius: var(--radius-sm);
}

/* =========================================================================
   Glassmorphism
   ========================================================================= */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--rim-light);
  border-radius: var(--radius-lg);
}

.liquid-glass {
  background: var(--liquid-glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 var(--rim-light);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--apple-spring),
              box-shadow .35s var(--apple-spring);
}
.liquid-glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), inset 0 1px 0 var(--rim-light);
}

/* =========================================================================
   Header (sticky)
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  background: rgba(245, 245, 247, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .site-header { background: rgba(0, 0, 0, 0.6); }

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  min-height: var(--header-h);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-xl);
}
.site-header .brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--brand-accent);
  border-radius: 50%;
}

.site-header ul.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
}
.site-header ul.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  min-height: 44px;
  transition: background .2s var(--apple-ease);
}
.site-header ul.nav-links a:hover { background: rgba(0, 0, 0, 0.05); }

@media (max-width: 767px) {
  .site-header ul.nav-links { display: none; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  margin-top: var(--space-12);
  padding-block: var(--space-10);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .site-footer { background: var(--apple-gray-2); }

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}
.site-footer h2 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.site-footer .footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--apple-dark-3);
  font-size: var(--text-sm);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.site-footer .footer-contact {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.site-footer .footer-contact li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--apple-dark-2);
}
.site-footer .footer-contact svg { width: 16px; height: 16px; color: var(--apple-dark-3); flex: 0 0 auto; }

/* =========================================================================
   Breadcrumbs
   ========================================================================= */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  list-style: none;
  padding: var(--space-3) 0;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--apple-dark-3);
}
.breadcrumbs li + li::before {
  content: '›';
  margin-inline-end: .5rem;
  color: var(--apple-dark-4);
}
.breadcrumbs a:hover { color: var(--apple-blue); }
.breadcrumbs [aria-current="page"] {
  color: var(--apple-dark);
  font-weight: 500;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: .75rem 1.25rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s var(--apple-ease),
              background .2s var(--apple-ease),
              box-shadow .2s var(--apple-ease);
  text-decoration: none;
  user-select: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--apple-dark);
  color: #fff;
}
.btn-primary:hover { background: #000; color: #fff; }

.btn-accent {
  background: var(--apple-blue);
  color: #fff;
}
.btn-accent:hover { background: var(--apple-blue-dark); color: #fff; }

.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--apple-dark);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.6); }

.btn-block { width: 100%; }

/* =========================================================================
   Cards
   ========================================================================= */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--apple-spring),
              box-shadow .35s var(--apple-spring);
}
[data-theme="dark"] .card { background: var(--apple-gray-2); }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.card-media {
  position: relative;
  background: var(--apple-gray);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--apple-spring);
}
.card:hover .card-media img { transform: scale(1.03); }

.card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0;
  line-height: var(--leading-tight);
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--apple-dark-3);
}
.card-price {
  font-weight: 700;
  color: var(--apple-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: .25rem .625rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.06);
  color: var(--apple-dark-2);
}
.badge-success { background: rgba(52, 199, 89, 0.14); color: #1e7a3a; }
.badge-warn    { background: rgba(255, 204, 0, 0.18); color: #8a6d00; }
.badge-danger  { background: rgba(255, 59, 48, 0.14); color: #a8201a; }
.badge-info    { background: rgba(0, 113, 227, 0.12); color: var(--apple-blue-dark); }

/* =========================================================================
   Hero (used on home + landings)
   ========================================================================= */
.hero {
  padding-block: var(--space-16);
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 113, 227, 0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(225, 29, 72, 0.06), transparent 50%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; }
}
.hero h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  margin: 0 0 var(--space-4);
}
.hero p.lead {
  font-size: var(--text-lg);
  color: var(--apple-dark-2);
  margin: 0 0 var(--space-6);
  max-width: 60ch;
}
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* =========================================================================
   Product detail
   ========================================================================= */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-block: var(--space-8);
}
@media (min-width: 768px) {
  .product-detail { grid-template-columns: 1fr 1fr; }
}
.product-gallery {
  position: relative;
  background: var(--apple-gray-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  margin: 0 0 var(--space-3);
}
.product-info .price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-block: var(--space-4);
}
.product-info .price {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--apple-dark);
}
.product-info .price-old {
  font-size: var(--text-lg);
  color: var(--apple-dark-4);
  text-decoration: line-through;
}

.spec-table { width: 100%; border-collapse: collapse; margin-block: var(--space-6); }
.spec-table th, .spec-table td {
  padding: var(--space-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: right;
}
.spec-table th {
  font-weight: 500;
  color: var(--apple-dark-3);
  width: 40%;
}

/* =========================================================================
   FAQ (details/summary)
   ========================================================================= */
.faq details {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: var(--space-4) 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--apple-dark-3);
  transition: transform .3s var(--apple-spring);
}
.faq details[open] summary::after { content: '−'; }
.faq details > p { margin-top: var(--space-3); color: var(--apple-dark-2); }

/* =========================================================================
   Forms
   ========================================================================= */
.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--apple-dark-2);
}
.input, .textarea, .select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: var(--text-base);
  transition: border-color .2s var(--apple-ease),
              box-shadow .2s var(--apple-ease);
  min-height: 44px;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.textarea { min-height: 140px; resize: vertical; }
[data-theme="dark"] .input,
[data-theme="dark"] .textarea,
[data-theme="dark"] .select { background: var(--apple-gray-3); border-color: rgba(255, 255, 255, 0.12); }

.honeypot {
  position: absolute !important;
  inset-inline-start: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
}

/* =========================================================================
   Skeleton loader
   ========================================================================= */
.skeleton {
  background: linear-gradient(90deg, var(--apple-gray-2) 0%, var(--apple-gray-3) 50%, var(--apple-gray-2) 100%);
  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; } }

/* =========================================================================
   Toasts (used by main.js showToast)
   ========================================================================= */
.toast-stack {
  position: fixed;
  bottom: var(--space-4);
  inset-inline-start: var(--space-4);
  display: grid;
  gap: var(--space-2);
  z-index: 1000;
  pointer-events: none;
}
.toast {
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--apple-dark);
  color: #fff;
  font-size: var(--text-sm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
  animation: toast-in .35s var(--apple-spring);
}
.toast--success { background: var(--apple-green); }
.toast--error   { background: var(--apple-red); }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================================================================
   Utility
   ========================================================================= */
.text-muted   { color: var(--apple-dark-3); }
.text-center  { text-align: center; }
.text-sm      { font-size: var(--text-sm); }
.text-lg      { font-size: var(--text-lg); }
.text-2xl     { font-size: var(--text-2xl); }
.mt-0  { margin-top: 0 !important; }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.flex  { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.wrap  { flex-wrap: wrap; }

/* =========================================================================
   Mobile drawer (top nav)
   ========================================================================= */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-toggle:hover { background: rgba(0, 0, 0, 0.08); }
@media (max-width: 767px) { .nav-toggle { display: inline-flex; } }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-drawer[data-open="true"] { display: block; animation: drawer-fade .3s var(--apple-ease-out); }
.nav-drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(86vw, 360px);
  background: var(--apple-gray);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  animation: drawer-in .4s var(--apple-spring);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
}
.nav-drawer__panel a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  min-height: 44px;
}
.nav-drawer__panel a:hover { background: rgba(0, 0, 0, 0.05); color: var(--apple-dark); }
.nav-drawer__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
}
@keyframes drawer-in   { from { transform: translateX(-30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }
[data-theme="dark"] .nav-drawer__panel { background: var(--apple-gray-2); }

/* =========================================================================
   Page head — title band atop most pages
   ========================================================================= */
.page-head { padding-block: var(--space-8) var(--space-6); }
.page-head h1 {
  margin: 0 0 var(--space-3);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
}
.page-head__intro {
  max-width: 70ch;
  color: var(--apple-dark-2);
  font-size: var(--text-lg);
  margin: 0;
}
.page-head__meta {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  color: var(--apple-dark-3);
  font-size: var(--text-sm);
}

/* =========================================================================
   Section head — title row with optional action button
   ========================================================================= */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.section-head__title { margin: 0; font-size: var(--text-2xl); font-weight: 700; }
.section-head__sub   { margin: var(--space-2) 0 0; color: var(--apple-dark-3); font-size: var(--text-sm); max-width: 60ch; }
.section-head__action { font-size: var(--text-sm); }

/* =========================================================================
   Hero — home page
   ========================================================================= */
.hero {
  padding-block: var(--space-16);
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 113, 227, 0.10), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(225, 29, 72, 0.08), transparent 55%);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr 1fr; } }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: .35rem .75rem;
  border-radius: var(--radius-full);
  background: rgba(0, 113, 227, 0.10);
  color: var(--apple-blue-dark);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.hero h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  margin: 0 0 var(--space-4);
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: var(--text-lg);
  color: var(--apple-dark-2);
  margin: 0 0 var(--space-6);
  max-width: 60ch;
}
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.hero__panel {
  padding: var(--space-6);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}
.hero__panel h2 { margin: 0; font-size: var(--text-xl); font-weight: 600; }

/* =========================================================================
   Trust strip — icon + short text row
   ========================================================================= */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-block: var(--space-6);
}
[data-theme="dark"] .trust-strip { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--apple-dark-2);
}
.trust-strip__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 113, 227, 0.10);
  color: var(--apple-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.trust-strip__icon svg { width: 20px; height: 20px; }
.trust-strip__label { font-weight: 500; color: var(--apple-dark); }
.trust-strip__sub   { margin: 0; color: var(--apple-dark-3); font-size: var(--text-xs); }

/* =========================================================================
   Feature list — Lucide check + text
   ========================================================================= */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--apple-dark-2);
}
.feature-list__check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(52, 199, 89, 0.15);
  color: #1e7a3a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-list__check svg { width: 14px; height: 14px; }

/* =========================================================================
   Tile — category & brand picture tile
   ========================================================================= */
.tile {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--apple-gray-2);
  aspect-ratio: 4 / 3;
  transition: transform .35s var(--apple-spring),
              box-shadow .35s var(--apple-spring);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12); }
.tile__media { position: absolute; inset: 0; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.10) 50%, transparent 100%);
}
.tile__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-4);
  color: #fff;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
}
.tile__title { margin: 0; font-size: var(--text-lg); font-weight: 600; color: #fff; }
.tile__count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: .25rem .625rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Category tile fallback (no image) */
.tile--solid {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(225, 29, 72, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: var(--space-6);
  aspect-ratio: 1 / 1;
  color: var(--apple-dark);
}
.tile--solid .tile__title { color: var(--apple-dark); font-size: var(--text-base); }
.tile--solid svg { width: 36px; height: 36px; color: var(--apple-blue); margin-bottom: var(--space-2); }

/* =========================================================================
   Brand logo strip — horizontal row of grayscale logos
   ========================================================================= */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}
.logo-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform .25s var(--apple-ease),
              border-color .25s var(--apple-ease);
  min-height: 90px;
}
.logo-strip__item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.30);
}
.logo-strip__item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter .25s var(--apple-ease), opacity .25s var(--apple-ease);
}
.logo-strip__item:hover img { filter: none; opacity: 1; }
.logo-strip__item--text {
  font-weight: 600;
  color: var(--apple-dark-2);
  font-size: var(--text-sm);
}
[data-theme="dark"] .logo-strip__item { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }

/* =========================================================================
   CTA band — full-width call to action between sections
   ========================================================================= */
.cta-band {
  margin-block: var(--space-12);
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 113, 227, 0.22), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(225, 29, 72, 0.18), transparent 55%),
    var(--apple-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 var(--space-2); font-size: var(--text-2xl); }
.cta-band p  { color: rgba(255, 255, 255, 0.78); margin: 0; max-width: 50ch; }
.cta-band .cta-band__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--apple-dark); }
.cta-band .btn-primary:hover { background: var(--apple-gray); color: var(--apple-dark); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.20); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* =========================================================================
   Cover — category / brand / landing hero header
   ========================================================================= */
.cover {
  padding-block: var(--space-10);
  margin-bottom: var(--space-6);
  background:
    radial-gradient(circle at 80% 30%, rgba(0, 113, 227, 0.10), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(225, 29, 72, 0.07), transparent 55%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.cover__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 768px) { .cover__inner { grid-template-columns: auto 1fr auto; } }
.cover__logo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
.cover__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cover__logo svg { width: 48px; height: 48px; color: var(--apple-blue); }
.cover__title { margin: 0 0 var(--space-2); font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
.cover__meta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  color: var(--apple-dark-3);
  font-size: var(--text-sm);
  margin: 0;
}
.cover__description {
  margin: var(--space-3) 0 0;
  color: var(--apple-dark-2);
  max-width: 70ch;
}
.cover__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* =========================================================================
   Shop layout (sidebar + grid)
   ========================================================================= */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 900px) { .shop-layout { grid-template-columns: 280px 1fr; } }

.filter-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
[data-theme="dark"] .filter-panel { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
.filter-panel + .filter-panel { margin-top: var(--space-4); }
.filter-panel__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--apple-dark);
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.filter-panel__title svg { width: 16px; height: 16px; color: var(--apple-dark-3); }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-1); }
.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--apple-dark-2);
  min-height: 36px;
  transition: background .2s var(--apple-ease);
}
.filter-list a:hover { background: rgba(0, 0, 0, 0.04); color: var(--apple-dark); }
.filter-list a[aria-current="true"] {
  background: rgba(0, 113, 227, 0.12);
  color: var(--apple-blue-dark);
  font-weight: 500;
}
.filter-list__count {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--apple-dark);
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}
.filter-list a:hover .filter-list__count {
  background: rgba(0, 113, 227, 0.14);
  color: var(--apple-blue-dark);
}
.filter-list a[aria-current="true"] .filter-list__count {
  background: var(--apple-blue);
  color: #fff;
}
.filter-list__sub {
  padding-inline-start: var(--space-6) !important;
  font-size: var(--text-sm);
  position: relative;
}
.filter-list__sub::before {
  content: '';
  position: absolute;
  inset-inline-start: var(--space-3);
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--apple-dark-4);
}
.filter-list__empty { opacity: 0.55; }
.filter-list__empty:hover { opacity: 1; }
[data-theme="dark"] .filter-list__count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--apple-dark);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.shop-toolbar__count { color: var(--apple-dark-3); font-size: var(--text-sm); margin: 0; }
.shop-toolbar__sort {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.shop-toolbar__sort label { color: var(--apple-dark-3); font-size: var(--text-sm); }
.shop-toolbar__sort select {
  padding: .5rem .75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: var(--text-sm);
  min-height: 40px;
}
[data-theme="dark"] .shop-toolbar__sort select { background: var(--apple-gray-3); border-color: rgba(255, 255, 255, 0.12); }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.chip-remove {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: .35rem .75rem;
  border-radius: var(--radius-full);
  background: rgba(0, 113, 227, 0.12);
  color: var(--apple-blue-dark);
  font-size: var(--text-xs);
  font-weight: 500;
  min-height: 32px;
}
.chip-remove:hover { background: rgba(0, 113, 227, 0.20); }
.chip-remove svg { width: 12px; height: 12px; }

.shop-search {
  display: flex;
  gap: var(--space-2);
}
.shop-search .input { flex: 1; }

.filter-toggle {
  display: none;
  width: 100%;
  margin-bottom: var(--space-3);
}
@media (max-width: 899px) { .filter-toggle { display: inline-flex; } }
@media (max-width: 899px) {
  .shop-sidebar { display: none; }
  .shop-sidebar[data-open="true"] { display: block; margin-bottom: var(--space-4); }
}

/* =========================================================================
   Product detail page (pdp)
   ========================================================================= */
.pdp { padding-block: var(--space-6); }
.pdp__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 900px) { .pdp__top { grid-template-columns: 1.05fr 1fr; align-items: start; } }

.pdp__gallery { display: grid; gap: var(--space-3); }
.pdp__main {
  position: relative;
  background: var(--apple-gray-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88px;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}
.pdp__thumb {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--apple-gray-2);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  scroll-snap-align: start;
  flex: 0 0 auto;
  transition: border-color .2s var(--apple-ease);
}
.pdp__thumb:hover, .pdp__thumb[aria-current="true"] { border-color: var(--apple-blue); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp__info { display: flex; flex-direction: column; gap: var(--space-3); }
@media (min-width: 900px) {
  .pdp__info { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
}
.pdp__crumbs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.pdp__title { margin: var(--space-2) 0 0; font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl)); line-height: var(--leading-tight); }
.pdp__short { color: var(--apple-dark-2); margin: 0; font-size: var(--text-base); }

.pdp__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .pdp__price-row { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
.pdp__price {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: 700;
  color: var(--apple-dark);
}
.pdp__price-old {
  font-size: var(--text-base);
  color: var(--apple-dark-4);
  text-decoration: line-through;
}
.pdp__discount-pct {
  display: inline-flex;
  padding: .25rem .625rem;
  border-radius: var(--radius-full);
  background: rgba(225, 29, 72, 0.12);
  color: #a8201a;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-inline-start: auto;
}

.pdp__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.pdp__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.pdp__actions .btn { width: 100%; }

.pdp__meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.pdp__meta-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--apple-dark-2);
}
.pdp__meta-list svg { width: 16px; height: 16px; color: var(--apple-blue); flex: 0 0 auto; }

.pdp__description { padding-block: var(--space-8); }

/* Sticky mobile CTA bar — only visible < 768px */
.sticky-cta {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  gap: var(--space-3);
  align-items: center;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}
.sticky-cta__price { font-weight: 700; font-size: var(--text-base); color: var(--apple-dark); flex: 1; }
.sticky-cta__price-old { font-size: var(--text-xs); color: var(--apple-dark-4); text-decoration: line-through; display: block; line-height: 1; }
.sticky-cta__actions { display: flex; gap: var(--space-2); }
@media (max-width: 767px) {
  .sticky-cta { display: flex; }
  .pdp { padding-bottom: 96px; }
}
[data-theme="dark"] .sticky-cta { background: rgba(28, 28, 30, 0.88); border-color: rgba(255, 255, 255, 0.10); }

/* =========================================================================
   Prose — for admin-curated HTML (article body, product full description)
   ========================================================================= */
.prose {
  font-size: var(--text-base);
  color: var(--apple-dark-2);
  line-height: var(--leading-body);
}
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--text-2xl); color: var(--apple-dark); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose h3 { font-size: var(--text-xl);  color: var(--apple-dark); margin-top: var(--space-6); margin-bottom: var(--space-2); }
.prose h4 { font-size: var(--text-lg);  color: var(--apple-dark); margin-top: var(--space-4); }
.prose p  { margin: 0 0 var(--space-4); }
.prose a  { color: var(--apple-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--apple-blue-dark); }
.prose strong { color: var(--apple-dark); font-weight: 700; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin: 0 0 var(--space-4); }
.prose ul li, .prose ol li { margin-bottom: var(--space-2); }
.prose blockquote {
  border-inline-start: 4px solid var(--apple-blue);
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 113, 227, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--apple-dark);
  margin: 0;
}
.prose img {
  border-radius: var(--radius-md);
  margin-block: var(--space-4);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-4);
  font-size: var(--text-sm);
}
.prose th, .prose td {
  padding: var(--space-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: right;
}
.prose th { font-weight: 600; color: var(--apple-dark); background: rgba(0, 0, 0, 0.02); }
.prose code {
  background: var(--apple-gray-2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  direction: ltr;
}
.prose hr { border: 0; border-top: 1px solid rgba(0, 0, 0, 0.08); margin-block: var(--space-6); }

/* =========================================================================
   Article / blog reading layout
   ========================================================================= */
.article-hero { padding-block: var(--space-8) var(--space-4); }
.article-hero__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  margin: 0 0 var(--space-3);
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.article-hero__excerpt {
  font-size: var(--text-lg);
  color: var(--apple-dark-2);
  margin: 0 0 var(--space-4);
  max-width: 60ch;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  color: var(--apple-dark-3);
  font-size: var(--text-sm);
}
.article-meta__sep { color: var(--apple-gray-3); }
.author-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: .35rem .75rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.04);
  font-size: var(--text-sm);
}
.author-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--apple-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-xs);
}

.article-hero__image {
  border-radius: var(--radius-xl);
  margin-block: var(--space-6);
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body { max-width: 720px; margin-inline: auto; }

.article-foot {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Featured blog card (first article on /blog/) */
.blog-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: var(--space-8);
  transition: transform .35s var(--apple-spring), box-shadow .35s var(--apple-spring);
}
.blog-feature:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10); }
[data-theme="dark"] .blog-feature { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
@media (min-width: 768px) { .blog-feature { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.blog-feature__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--apple-gray-2);
}
.blog-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--apple-spring); }
.blog-feature:hover .blog-feature__media img { transform: scale(1.03); }
.blog-feature__eyebrow {
  font-size: var(--text-sm);
  color: var(--apple-blue);
  font-weight: 500;
  text-transform: none;
  margin: 0 0 var(--space-2);
}
.blog-feature__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  margin: 0 0 var(--space-3);
  line-height: var(--leading-tight);
}
.blog-feature__excerpt { color: var(--apple-dark-2); margin: 0 0 var(--space-4); }

/* =========================================================================
   Info cards — contact / about info blocks
   ========================================================================= */
.info-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
[data-theme="dark"] .info-card { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
.info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 113, 227, 0.10);
  color: var(--apple-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card__title { font-size: var(--text-base); font-weight: 600; margin: 0; }
.info-card__value { font-size: var(--text-lg); font-weight: 600; color: var(--apple-dark); margin: 0; word-break: break-word; }
.info-card__sub { font-size: var(--text-sm); color: var(--apple-dark-3); margin: 0; }
.info-card a { color: inherit; }
.info-card a:hover { color: var(--apple-blue); }

/* =========================================================================
   Alert (form feedback, banners)
   ========================================================================= */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(0, 113, 227, 0.08);
  color: var(--apple-blue-dark);
  font-size: var(--text-sm);
  border: 1px solid rgba(0, 113, 227, 0.18);
  margin-bottom: var(--space-4);
}
.alert--success { background: rgba(52, 199, 89, 0.12); color: #1e7a3a; border-color: rgba(52, 199, 89, 0.30); }
.alert--error   { background: rgba(255, 59, 48, 0.10); color: #a8201a; border-color: rgba(255, 59, 48, 0.30); }
.alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }

/* =========================================================================
   Pagination
   ========================================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.pagination__link, .pagination__current {
  min-width: 44px;
  min-height: 44px;
  padding: 0 .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 600;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--apple-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: background .2s var(--apple-ease),
              border-color .2s var(--apple-ease),
              color .2s var(--apple-ease),
              transform .15s var(--apple-ease),
              box-shadow .2s var(--apple-ease);
}
.pagination__link:hover {
  background: var(--apple-gray);
  color: var(--apple-blue-dark);
  border-color: rgba(0, 113, 227, 0.40);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.12);
}
.pagination__link:active { transform: scale(0.97); }
.pagination__current {
  background: var(--apple-dark);
  color: #fff;
  border-color: var(--apple-dark);
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.18);
}
.pagination__ellipsis {
  color: var(--apple-dark-3);
  padding: 0 .25rem;
  font-weight: 600;
}
[data-theme="dark"] .pagination__link {
  background: var(--apple-gray-2);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--apple-dark);
}
[data-theme="dark"] .pagination__link:hover {
  background: var(--apple-gray-3);
  color: #fff;
  border-color: rgba(0, 113, 227, 0.50);
}

/* =========================================================================
   Empty state
   ========================================================================= */
.empty-state {
  padding: var(--space-12) var(--space-4);
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .empty-state { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.10); }
.empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.empty-state__icon svg { width: 28px; height: 28px; color: var(--apple-dark-3); }
.empty-state h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.empty-state p  { margin: 0 0 var(--space-4); color: var(--apple-dark-3); }

/* =========================================================================
   404 hero
   ========================================================================= */
.error-hero {
  padding-block: var(--space-16);
  text-align: center;
}
.error-hero__numeral {
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(135deg, var(--apple-blue), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-hero__title { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-2xl); }
.error-hero__sub   { margin: 0 0 var(--space-6); color: var(--apple-dark-2); }
.error-hero__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================================
   Value props — 3-col home block
   ========================================================================= */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}
.value-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform .35s var(--apple-spring),
              border-color .25s var(--apple-ease);
}
.value-card:hover { transform: translateY(-3px); border-color: rgba(0, 113, 227, 0.30); }
[data-theme="dark"] .value-card { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 113, 227, 0.10);
  color: var(--apple-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.value-card__icon svg { width: 24px; height: 24px; }
.value-card h3 { margin: 0; font-size: var(--text-base); font-weight: 600; }
.value-card p  { margin: 0; font-size: var(--text-sm); color: var(--apple-dark-3); }

/* =========================================================================
   Container variants
   ========================================================================= */
.container--reading { max-width: 760px; }

/* =========================================================================
   Stat row (about page numbers)
   ========================================================================= */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  padding: var(--space-6);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .stats-row { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
.stat__value {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--apple-dark);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label { font-size: var(--text-sm); color: var(--apple-dark-3); margin: var(--space-2) 0 0; }

/* =========================================================================
   Helpers used inline frequently
   ========================================================================= */
.full-bleed { grid-column: 1 / -1; }

/* =========================================================================
   Cart — header trigger, drawer, cart page, checkout, card add-to-cart
   ========================================================================= */

/* Header cart link + count badge */
.nav-actions { display: flex; align-items: center; gap: var(--space-1); }
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  color: var(--apple-dark);
  transition: background .2s var(--apple-ease);
}
.cart-link:hover { background: rgba(0, 0, 0, 0.05); color: var(--apple-dark); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-accent);
  color: #fff;
  font-size: var(--text-2xs);
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid rgba(245, 245, 247, 0.92);
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .cart-count { border-color: rgba(0, 0, 0, 0.6); }
.cart-count[hidden] { display: none; }

/* Product-card add-to-cart button */
.card-add-form { margin-top: auto; padding-top: var(--space-1); }
.card-add {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: .5rem .75rem;
  border-radius: var(--radius-full);
  background: var(--apple-dark);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .2s var(--apple-ease), transform .15s var(--apple-ease);
}
.card-add svg { width: 16px; height: 16px; }
.card-add:hover { background: #000; color: #fff; }
.card-add:active { transform: scale(0.98); }
.card-add--out {
  background: var(--apple-gray-2);
  color: var(--apple-dark-3);
  cursor: not-allowed;
}
.card-add.is-added { background: var(--apple-green); }
[data-theme="dark"] .card-add { background: var(--apple-blue); }
[data-theme="dark"] .card-add:hover { background: var(--apple-blue-dark); }

/* Quantity stepper (cart line + product page) */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-full);
  background: #fff;
  overflow: hidden;
}
[data-theme="dark"] .qty-stepper { background: var(--apple-gray-3); border-color: rgba(255, 255, 255, 0.14); }
.qty-stepper__form { display: inline-flex; margin: 0; }
.qty-stepper__btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--apple-dark);
  transition: background .2s var(--apple-ease);
}
.qty-stepper__btn:hover { background: rgba(0, 0, 0, 0.05); }
.qty-stepper__btn:active { transform: scale(0.94); }
.qty-stepper__btn svg { width: 16px; height: 16px; }
.qty-stepper__input {
  width: 46px;
  height: 40px;
  border: 0;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 600;
  background: transparent;
  color: var(--apple-dark);
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper__input:focus { outline: none; }

/* Cart page layout */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (min-width: 900px) { .cart-grid { grid-template-columns: 1fr 340px; } }

.cart-lines { display: grid; gap: var(--space-3); }
.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .cart-line { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
.cart-line__media {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--apple-gray-2);
  display: block;
}
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--apple-dark-4); }
.cart-line__ph svg { width: 28px; height: 28px; }
.cart-line__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-line__title { font-weight: 600; color: var(--apple-dark); font-size: var(--text-base); line-height: var(--leading-tight); }
.cart-line__title:hover { color: var(--apple-blue); }
.cart-line__brand { font-size: var(--text-xs); color: var(--apple-dark-3); }
.cart-line__unit { font-size: var(--text-sm); color: var(--apple-dark-2); margin-top: 2px; }
.cart-line__controls { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.cart-line__total { font-weight: 700; color: var(--apple-dark); font-size: var(--text-base); white-space: nowrap; }
.cart-line__remove-form { margin: 0; }
.cart-line__remove {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--apple-dark-3);
  transition: background .2s var(--apple-ease), color .2s var(--apple-ease);
}
.cart-line__remove:hover { background: rgba(255, 59, 48, 0.10); color: var(--apple-red); }
.cart-line__remove svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .cart-line {
    grid-template-columns: 64px 1fr;
    grid-template-areas: "media main" "controls controls";
    gap: var(--space-3);
  }
  .cart-line__media { width: 64px; height: 64px; grid-area: media; }
  .cart-line__main { grid-area: main; }
  .cart-line__controls {
    grid-area: controls;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: var(--space-3);
  }
}

/* Cart page summary card (solid — sits on the gray page) */
.cart-summary {
  padding: var(--space-5);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
[data-theme="dark"] .cart-summary { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
@media (min-width: 900px) { .cart-summary { position: sticky; top: calc(var(--header-h) + var(--space-4)); } }
.cart-summary__title { margin: 0; font-size: var(--text-lg); font-weight: 700; }
.cart-summary__row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-base); }
.cart-summary__amount { font-weight: 700; font-size: var(--text-xl); }
.cart-summary__note { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); color: var(--apple-dark-3); margin: 0; }
.cart-summary__note svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--apple-dark-3); }
.cart-summary__clear-form { margin: 0; text-align: center; }
.cart-summary__clear {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0 auto;
  color: var(--apple-dark-3);
  font-size: var(--text-sm);
  padding: var(--space-2);
}
.cart-summary__clear:hover { color: var(--apple-red); }
.cart-summary__clear svg { width: 14px; height: 14px; }

/* Cart drawer (slide-in overlay) */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cart-drawer[data-open="true"] { display: block; animation: drawer-fade .3s var(--apple-ease-out); }
.cart-drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(92vw, 420px);
  background: var(--apple-gray);
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
  animation: cart-in .4s var(--apple-spring);
}
@keyframes cart-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
[data-theme="dark"] .cart-drawer__panel { background: var(--apple-gray-2); }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.cart-drawer__title { margin: 0; font-size: var(--text-lg); font-weight: 700; display: flex; align-items: center; gap: var(--space-2); }
.cart-drawer__title svg { width: 20px; height: 20px; }
.cart-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
}
.cart-drawer__close:hover { background: rgba(0, 0, 0, 0.1); }
.cart-drawer__close svg { width: 20px; height: 20px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-5); }
.cart-drawer__list { display: grid; gap: var(--space-4); }
.cart-drawer__empty { text-align: center; padding: var(--space-10) var(--space-4); display: grid; gap: var(--space-3); justify-items: center; color: var(--apple-dark-3); }
.cart-drawer__foot {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  gap: var(--space-2);
  background: var(--apple-gray);
}
[data-theme="dark"] .cart-drawer__foot { background: var(--apple-gray-2); }
.cart-drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.cart-drawer__subtotal strong { font-size: var(--text-lg); }

/* Drawer line item (built by JS) */
.cart-ditem { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-3); align-items: start; }
.cart-ditem__media { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--apple-gray-2); }
.cart-ditem__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-ditem__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.cart-ditem__top { display: flex; gap: var(--space-2); justify-content: space-between; align-items: flex-start; }
.cart-ditem__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--apple-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-ditem__remove { flex: 0 0 auto; color: var(--apple-dark-4); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); }
.cart-ditem__remove:hover { color: var(--apple-red); background: rgba(255, 59, 48, 0.1); }
.cart-ditem__remove svg { width: 15px; height: 15px; }
.cart-ditem__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.cart-ditem__price { font-weight: 700; font-size: var(--text-sm); white-space: nowrap; }
.cart-ditem .qty-stepper__btn { width: 32px; height: 32px; }
.cart-ditem .qty-stepper__input { width: 38px; height: 32px; font-size: var(--text-sm); }

/* Product page buy row */
.pdp__buy { display: flex; align-items: stretch; gap: var(--space-3); }
.pdp__buy .qty-stepper { flex: 0 0 auto; }
.pdp__buy .qty-stepper__btn, .pdp__buy .qty-stepper__input { height: 48px; }
.pdp__buy .qty-stepper__btn { width: 44px; }
.pdp__buy .btn { flex: 1; min-height: 48px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.sticky-cta__actions form { display: flex; margin: 0; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1fr 360px; } }
.checkout-form { display: grid; gap: var(--space-5); }
.checkout-fieldset {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: 0;
  background: #fff;
}
[data-theme="dark"] .checkout-fieldset { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
.checkout-fieldset legend { font-weight: 600; padding-inline: var(--space-2); color: var(--apple-dark); }
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 560px) { .checkout-row { grid-template-columns: 1fr; } }
.checkout-submit { min-height: 52px; font-size: var(--text-base); }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin: 0; }
.checkout-secure svg { width: 14px; height: 14px; }

.order-summary {
  padding: var(--space-5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  background: #fff;
}
[data-theme="dark"] .order-summary { background: var(--apple-gray-2); border-color: rgba(255, 255, 255, 0.08); }
@media (min-width: 900px) { .order-summary { position: sticky; top: calc(var(--header-h) + var(--space-4)); } }
.order-summary__title { margin: 0 0 var(--space-3); font-size: var(--text-lg); font-weight: 700; }
.order-summary__list {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0 0 var(--space-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  gap: var(--space-2);
}
.order-summary__item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-2); align-items: baseline; font-size: var(--text-sm); }
.order-summary__qty { color: var(--apple-dark-3); font-variant-numeric: tabular-nums; }
.order-summary__name { color: var(--apple-dark-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-summary__price { font-weight: 600; white-space: nowrap; }
.order-summary__total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--text-base); }
.order-summary__total strong { font-size: var(--text-xl); font-weight: 700; }
.order-summary__back { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-3); color: var(--apple-blue); }
.order-summary__back svg { width: 14px; height: 14px; }

.checkout-done { max-width: 560px; margin: var(--space-12) auto; text-align: center; display: grid; gap: var(--space-3); justify-items: center; padding: var(--space-8) var(--space-4); }
.checkout-done__icon { width: 72px; height: 72px; border-radius: var(--radius-full); background: rgba(52, 199, 89, 0.15); color: #1e7a3a; display: inline-flex; align-items: center; justify-content: center; }
.checkout-done__icon svg { width: 36px; height: 36px; }
.checkout-done h1 { margin: 0; }
.checkout-done__num { font-size: var(--text-base); color: var(--apple-dark-2); margin: 0; }
.checkout-done__msg { color: var(--apple-dark-3); margin: 0; max-width: 46ch; }
.checkout-done__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; margin-top: var(--space-3); }

/* =========================================================================
   Mobile refinements (≤640px) — phone polish for the landing page
   -------------------------------------------------------------------------
   The shared auto-fit grids collapse to a single full-width column on phones,
   which makes the home page a long sparse scroll of oversized cards. These
   overrides restore the dense, app-like two-up layout phones expect.
   ========================================================================= */
@media (max-width: 640px) {
  /* Tighter vertical rhythm — less dead air between sections */
  .section    { padding-block: var(--space-8); }
  .section--lg { padding-block: var(--space-10); }

  /* Hero — smaller band, full-width stacked CTAs for easy thumb reach */
  .hero { padding-block: var(--space-10); }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero__panel { min-height: 0; padding: var(--space-5); }

  /* Section head — title and "see all" action stack neatly */
  .section-head { margin-bottom: var(--space-4); }
  .section-head__action { align-self: flex-start; }

  /* Product card grids → two-up (the standard mobile store layout) */
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .card-body { padding: var(--space-3); }

  /* Home category tiles → two-up */
  .home-tiles { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .home-tiles .tile__title { font-size: var(--text-base); }
  .home-tiles .tile__body { padding: var(--space-3); }

  /* Trust strip → 2×2 tiles, icon stacked above the text */
  .trust-strip { grid-template-columns: 1fr 1fr; gap: var(--space-4); padding: var(--space-4); }
  .trust-strip__item { flex-direction: column; align-items: flex-start; gap: var(--space-2); }

  /* Brand logos → compact three-up wall (was a tall single stack) */
  .logo-strip { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .logo-strip__item { min-height: 72px; padding: var(--space-3); }
  .logo-strip__item img { max-height: 36px; }

  /* CTA band — full-width stacked actions */
  .cta-band { padding: var(--space-8) var(--space-5); }
  .cta-band__actions { flex-direction: column; width: 100%; }
  .cta-band__actions .btn { width: 100%; }

  /* Footer — brand block spans full width, link columns sit two-up */
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-4); }
  .site-footer .footer-grid > section:first-child { grid-column: 1 / -1; }
}

/* Very small phones (≤360px) — keep two-up but loosen the gutters a touch */
@media (max-width: 360px) {
  .grid-4, .home-tiles { gap: var(--space-2); }
  .container { padding-inline: var(--space-3); }
}
