/* ============================================================
   ON Store v4  -  Design System
   ============================================================
   Single source of truth for tokens, primitives and components.
   Inspired by Polaris (Shopify) but with ON Store identity:
   dark surface + crimson brand + Space Grotesk display.
   Loaded on every page via <link rel="stylesheet" href="/assets/store.css">
   ============================================================ */

/* ============================================================
   1. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: rgba(232, 0, 29, .35); color: #fff; }

/* ============================================================
   2. TOKENS
   ============================================================ */
:root {
  /* Surfaces - dark by default */
  --bg:          #060606;
  --surface-0:   #0a0a0a;
  --surface-1:   #111;
  --surface-2:   #161616;
  --surface-3:   #1c1c1c;
  --surface-4:   #232323;
  --surface-glass: rgba(10, 10, 10, .72);

  /* Borders */
  --border:        #1f1f1f;
  --border-strong: #2a2a2a;
  --border-brand:  rgba(232, 0, 29, .4);

  /* Text */
  --text:        #ededed;
  --text-strong: #ffffff;
  --text-muted:  #8a8a8a;
  --text-subtle: #5a5a5a;
  --text-on-brand: #ffffff;

  /* Brand: ON Store crimson */
  --brand:       #e8001d;
  --brand-2:     #ff2d4a;
  --brand-soft:  rgba(232, 0, 29, .12);
  --brand-glow:  rgba(232, 0, 29, .28);

  /* Semantic */
  --success:      #10b981;
  --success-soft: rgba(16, 185, 129, .12);
  --warn:         #f59e0b;
  --warn-soft:    rgba(245, 158, 11, .12);
  --danger:       #ef4444;
  --danger-soft:  rgba(239, 68, 68, .12);
  --info:         #3b82f6;
  --info-soft:    rgba(59, 130, 246, .12);
  --gold:         #f0c040;

  /* Spacing scale (4px base) */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  20px;
  --s-6:  24px;
  --s-7:  32px;
  --s-8:  40px;
  --s-9:  48px;
  --s-10: 64px;
  --s-11: 80px;
  --s-12: 96px;

  /* Radii */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 1px rgba(0, 0, 0, .2);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, .35);
  --shadow-3: 0 10px 32px rgba(0, 0, 0, .45);
  --shadow-brand: 0 8px 28px var(--brand-glow);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, .5), 0 0 0 1px var(--border-strong);

  /* Motion */
  --ease:        cubic-bezier(.22, 1, .36, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 150ms;
  --dur:      250ms;
  --dur-slow: 450ms;

  /* Layout */
  --container:   1240px;
  --container-narrow: 960px;
  --header-h: 72px;
  --header-h-mobile: 56px;

  /* Typography ramps */
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --body:    'Inter', -apple-system, sans-serif;

  --fs-1:  11px;  /* micro */
  --fs-2:  12px;  /* tiny */
  --fs-3:  13px;  /* small */
  --fs-4:  14px;  /* base */
  --fs-5:  16px;  /* lg */
  --fs-6:  18px;  /* xl */
  --fs-7:  22px;  /* 2xl */
  --fs-8:  28px;  /* 3xl */
  --fs-9:  36px;  /* 4xl */
  --fs-10: 48px;  /* 5xl */
  --fs-11: 64px;  /* 6xl - hero */
}

/* ============================================================
   3. TYPOGRAPHY UTILITIES
   ============================================================ */
.t-display    { font-family: var(--display); letter-spacing: -.02em; }
.t-body       { font-family: var(--body); }
.t-mono       { font-family: ui-monospace, 'SF Mono', Consolas, monospace; }

.t-1  { font-size: var(--fs-1); }
.t-2  { font-size: var(--fs-2); }
.t-3  { font-size: var(--fs-3); }
.t-4  { font-size: var(--fs-4); }
.t-5  { font-size: var(--fs-5); }
.t-6  { font-size: var(--fs-6); }
.t-7  { font-size: var(--fs-7); }
.t-8  { font-size: var(--fs-8); }
.t-9  { font-size: var(--fs-9); }
.t-10 { font-size: var(--fs-10); }
.t-11 { font-size: var(--fs-11); }

.t-thin    { font-weight: 300; }
.t-normal  { font-weight: 400; }
.t-medium  { font-weight: 500; }
.t-semi    { font-weight: 600; }
.t-bold    { font-weight: 700; }
.t-black   { font-weight: 800; }

.t-strong  { color: var(--text-strong); }
.t-base    { color: var(--text); }
.t-muted   { color: var(--text-muted); }
.t-subtle  { color: var(--text-subtle); }
.t-brand   { color: var(--brand); }
.t-success { color: var(--success); }
.t-warn    { color: var(--warn); }
.t-danger  { color: var(--danger); }
.t-gold    { color: var(--gold); }

.t-up      { text-transform: uppercase; letter-spacing: .08em; }
.t-tight   { letter-spacing: -.025em; line-height: 1.05; }
.t-snug    { line-height: 1.2; }
.t-relaxed { line-height: 1.6; }

.t-strike  { text-decoration: line-through; }
.t-tnum    { font-variant-numeric: tabular-nums; }
.t-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container        { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-4); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-4); }
@media (min-width: 768px) {
  .container, .container-narrow { padding: 0 var(--s-6); }
}

.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.items-c   { align-items: center; }
.items-s   { align-items: flex-start; }
.items-e   { align-items: flex-end; }
.items-base{ align-items: baseline; }
.justify-c { justify-content: center; }
.justify-b { justify-content: space-between; }
.justify-e { justify-content: flex-end; }
.flex-1    { flex: 1; min-width: 0; }
.grow-0    { flex-grow: 0; }
.shrink-0  { flex-shrink: 0; }
.wrap      { flex-wrap: wrap; }

.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }
.gap-7 { gap: var(--s-7); }
.gap-8 { gap: var(--s-8); }

.grid     { display: grid; }
.grid-1   { grid-template-columns: 1fr; }
.grid-2   { grid-template-columns: repeat(2, 1fr); }
.grid-3   { grid-template-columns: repeat(3, 1fr); }
.grid-4   { grid-template-columns: repeat(4, 1fr); }
.grid-fit { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-fit-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid-fit-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.hidden { display: none !important; }
.block  { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.inset-0  { inset: 0; }

.text-c { text-align: center; }
.text-l { text-align: left; }
.text-r { text-align: right; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-1 { margin-bottom: var(--s-1); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }
.p-3 { padding: var(--s-3); }
.p-4 { padding: var(--s-4); }
.p-5 { padding: var(--s-5); }
.p-6 { padding: var(--s-6); }

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .md\:grid-2 { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
}
@media (max-width: 480px) {
  .grid-fit { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   5. APP HEADER
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.app-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
  height: var(--header-h-mobile);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
@media (min-width: 900px) {
  .app-header-inner { height: var(--header-h); padding: 0 var(--s-6); gap: var(--s-6); }
}

.app-logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.app-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 2px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.app-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.app-logo-text {
  font-family: var(--display);
  font-size: var(--fs-6);
  font-weight: 700;
  letter-spacing: -.03em;
}
.app-logo-text b { color: var(--brand); }
@media (max-width: 540px) { .app-logo-text { display: none; } }

.app-nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: 1;
}
@media (max-width: 720px) { .app-nav { display: none; } }

.app-nav a {
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-3);
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
}
.app-nav a:hover { color: var(--text-strong); background: var(--surface-2); }
.app-nav a.active { color: var(--text-strong); background: var(--surface-3); }

.app-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }

.app-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  transition: all var(--dur) var(--ease);
}
.app-icon-btn:hover { background: var(--surface-2); color: var(--text-strong); }
.app-icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}
.app-icon-btn .badge:empty,
.app-icon-btn .badge[data-count="0"] { display: none; }

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0 var(--s-5);
  height: 44px;
  border-radius: var(--r);
  font-family: var(--display);
  font-size: var(--fs-4);
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn:disabled,
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn:not(:disabled):active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--brand-glow), 0 0 0 1px var(--brand-2);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); border-color: #333; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text-strong); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, .25);
}

.btn-sm { height: 36px; padding: 0 var(--s-4); font-size: var(--fs-3); border-radius: var(--r-sm); }
.btn-lg { height: 56px; padding: 0 var(--s-6); font-size: var(--fs-5); border-radius: var(--r-lg); }
.btn-xl { height: 64px; padding: 0 var(--s-7); font-size: var(--fs-6); border-radius: var(--r-lg); }
.btn-full { width: 100%; }
.btn-icon { padding: 0; width: 44px; }

.btn-loading { color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   7. CARDS
   ============================================================ */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  overflow: hidden;
}
.card-pad   { padding: var(--s-5); }
.card-pad-lg { padding: var(--s-6); }
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-3); }
.card-elevated { box-shadow: var(--shadow-2); }

/* Section: card with header + body for forms */
.section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  margin-bottom: var(--s-5);
}
.section-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.section-num {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: var(--fs-4);
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}
.section-title {
  font-family: var(--display);
  font-size: var(--fs-6);
  font-weight: 700;
  letter-spacing: -.02em;
  flex: 1;
}
.section-icon { color: var(--text-muted); font-size: var(--fs-5); }

/* ============================================================
   8. FORM CONTROLS
   ============================================================ */
.field { position: relative; }
.field-row {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }
.field-row.cols-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) {
  .field-row.cols-2,
  .field-row.cols-3 { grid-template-columns: 1fr; }
}

.field-label {
  display: block;
  font-size: var(--fs-2);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-strong);
  font-size: var(--fs-4);
  font-weight: 500;
  border-radius: var(--r);
  padding: 13px var(--s-4);
  outline: none;
  transition: all var(--dur) var(--ease);
  font-variant-numeric: tabular-nums;
}
.input::placeholder,
.field input::placeholder { color: var(--text-subtle); font-weight: 400; }
.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  background: var(--surface-1);
}
.field input[aria-invalid="true"],
.field.invalid input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
  animation: shake 400ms var(--ease);
}
@keyframes shake {
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.field-icon {
  position: absolute;
  right: var(--s-4);
  top: 38px;
  color: var(--text-muted);
  font-size: var(--fs-4);
  pointer-events: none;
  transition: color var(--dur);
}
.field-icon.success { color: var(--success); }
.field-icon.danger  { color: var(--danger); }
.field-icon.loading { animation: spin 800ms linear infinite; }

.field-help { font-size: var(--fs-2); color: var(--text-muted); margin-top: var(--s-2); }
.field-error { font-size: var(--fs-2); color: var(--danger); margin-top: var(--s-2); font-weight: 600; }

/* Phone field with country code */
.phone-wrap { display: flex; gap: var(--s-2); width: 100%; }
.phone-cc {
  flex: 0 0 84px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-strong);
  font-size: var(--fs-4);
  border-radius: var(--r);
  padding: 13px var(--s-3);
  text-align: center;
  font-weight: 700;
  outline: none;
  transition: border-color var(--dur) var(--ease);
  min-width: 0;
}
.phone-cc:focus { border-color: var(--brand); }
.phone-num { flex: 1 1 auto; min-width: 0; }

/* ============================================================
   9. BADGES, TAGS, PILLS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 4px var(--s-2);
  border-radius: var(--r-sm);
  font-size: var(--fs-1);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--surface-3);
  color: var(--text);
}
.badge-brand   { background: var(--brand-soft); color: var(--brand); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn    { background: var(--warn-soft); color: var(--warn); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); }
.badge-gold    { background: rgba(240, 192, 64, .12); color: var(--gold); }
.badge-solid-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px var(--s-3);
  font-size: var(--fs-3);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.tag:hover { color: var(--text-strong); border-color: var(--border-strong); }
.tag.active {
  color: var(--text-on-brand);
  background: var(--brand);
  border-color: var(--brand);
}

/* Pill (used for variant/size selection) */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: var(--s-2) var(--s-4);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-3);
  font-weight: 600;
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

/* ============================================================
   10. PRICE BLOCK
   ============================================================ */
.price-block {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.price-now {
  font-family: var(--display);
  font-size: var(--fs-9);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.price-orig {
  font-size: var(--fs-5);
  color: var(--text-subtle);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.price-save {
  font-size: var(--fs-2);
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px var(--s-3);
  border-radius: var(--r-sm);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================================
   11. PRODUCT CARD (homepage grid)
   ============================================================ */
.product-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}
.product-card-media {
  position: relative;
  aspect-ratio: 1;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--s-4);
  transition: transform 600ms var(--ease);
}
.product-card:hover .product-card-media img { transform: scale(1.06); }

.product-card-badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: var(--brand);
  color: #fff;
  font-family: var(--display);
  font-size: var(--fs-1);
  font-weight: 800;
  padding: 4px var(--s-3);
  border-radius: var(--r-sm);
  letter-spacing: .06em;
  z-index: 2;
  box-shadow: var(--shadow-1);
}
.product-card-fav {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--dur) var(--ease);
}
.product-card:hover .product-card-fav { opacity: 1; transform: translateY(0); }
.product-card-fav:hover { color: var(--brand); }

.product-card-body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.product-card-store {
  font-size: var(--fs-1);
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.product-card-title {
  font-family: var(--display);
  font-size: var(--fs-4);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -.01em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--fs-2);
  color: var(--text-muted);
}
.product-card-rating .stars { color: var(--gold); letter-spacing: .5px; }

.product-card-prices {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-2);
}
.product-card-price {
  font-family: var(--display);
  font-size: var(--fs-6);
  font-weight: 800;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.product-card-orig {
  font-size: var(--fs-3);
  color: var(--text-subtle);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.product-card-cta {
  margin: 0 var(--s-4) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 40px;
  background: var(--surface-3);
  color: var(--text-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  font-family: var(--display);
  font-size: var(--fs-3);
  font-weight: 700;
  transition: all var(--dur) var(--ease);
}
.product-card-cta:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: var(--brand);
  color: #fff;
}

/* ============================================================
   12. SKELETON / LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1400ms ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .15);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }

/* ============================================================
   13. TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  top: var(--s-5);
  right: var(--s-5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  pointer-events: none;
  max-width: calc(100vw - var(--s-8));
}
@media (max-width: 560px) { .toast-container { top: auto; bottom: var(--s-5); left: var(--s-5); right: var(--s-5); } }

.toast {
  pointer-events: auto;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-strong);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r);
  font-size: var(--fs-3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  box-shadow: var(--shadow-3);
  animation: toastIn 350ms var(--ease) backwards;
  min-width: 280px;
  max-width: 420px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.danger  { border-left: 4px solid var(--danger);  }
.toast.warn    { border-left: 4px solid var(--warn);    }
.toast.info    { border-left: 4px solid var(--info);    }
.toast.success i { color: var(--success); }
.toast.danger  i { color: var(--danger); }
.toast.warn    i { color: var(--warn); }
.toast.info    i { color: var(--info); }
.toast.leaving { animation: toastOut 280ms var(--ease) forwards; }

@keyframes toastIn  { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(-12px) scale(.96); } }

/* ============================================================
   14. MODAL / OVERLAY
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  animation: fadeIn 250ms var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-3);
  animation: modalIn 350ms var(--ease);
}
@keyframes modalIn { from { transform: translateY(20px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-head {
  padding: var(--s-5) var(--s-6) var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.modal-title {
  font-family: var(--display);
  font-size: var(--fs-6);
  font-weight: 800;
  letter-spacing: -.02em;
  flex: 1;
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}
.modal-close:hover { background: var(--surface-3); color: var(--text-strong); }
.modal-body { padding: 0 var(--s-6) var(--s-6); }

/* ============================================================
   15. PROMO STRIP
   ============================================================ */
.promo-strip {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: var(--fs-3);
  font-weight: 700;
  letter-spacing: .04em;
  padding: var(--s-2) var(--s-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.promo-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  animation: stripShine 4s ease-in-out infinite;
}
@keyframes stripShine { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(100%); } }

/* ============================================================
   16. HERO
   ============================================================ */
.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-9);
  background:
    radial-gradient(ellipse at top, rgba(232, 0, 29, .12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(255, 45, 74, .08) 0%, transparent 50%),
    var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--border-brand);
  border-radius: var(--r-pill);
  font-size: var(--fs-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--s-5);
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: var(--s-5);
  background: linear-gradient(180deg, var(--text-strong) 0%, #888 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title b { color: var(--brand); -webkit-background-clip: initial; background: none; }
.hero-sub {
  max-width: 640px;
  margin: 0 auto var(--s-7);
  font-size: var(--fs-5);
  color: var(--text-muted);
  line-height: 1.6;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--s-9);
  margin-top: var(--s-9);
  padding-top: var(--s-7);
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--display);
  font-size: var(--fs-9);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: var(--fs-2);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: var(--s-1);
}
@media (max-width: 720px) {
  .hero { padding: var(--s-9) 0 var(--s-7); }
  .hero-stats { gap: var(--s-6); }
  .hero-stat-num { font-size: var(--fs-7); }
}

/* ============================================================
   17. SECTION HEADERS / DIVIDERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin: var(--s-9) 0 var(--s-5);
}
.section-header-title {
  font-family: var(--display);
  font-size: var(--fs-8);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text-strong);
}
.section-header-sub {
  font-size: var(--fs-3);
  color: var(--text-muted);
  margin-top: var(--s-1);
}
.section-header-link {
  font-size: var(--fs-3);
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  white-space: nowrap;
}
.section-header-link:hover { gap: var(--s-3); }

/* ============================================================
   18. TRUST BAR
   ============================================================ */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-align: left;
}
.trust-item i {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-5);
  flex-shrink: 0;
}
.trust-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trust-item-title { font-size: var(--fs-3); font-weight: 700; color: var(--text-strong); }
.trust-item-sub { font-size: var(--fs-2); color: var(--text-muted); }
@media (max-width: 720px) {
  .trust-bar { grid-template-columns: 1fr 1fr; padding: var(--s-4); }
}

/* ============================================================
   19. ANIMATIONS
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.anim-in { animation: fadeUp 600ms var(--ease) backwards; }
.anim-d-1 { animation-delay: 80ms; }
.anim-d-2 { animation-delay: 160ms; }
.anim-d-3 { animation-delay: 240ms; }
.anim-d-4 { animation-delay: 320ms; }
.anim-d-5 { animation-delay: 400ms; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.pulse { animation: pulse 1800ms ease-in-out infinite; }

/* ============================================================
   20. SCROLLBAR (subtle dark theme)
   ============================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--r-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--surface-4); }

/* ============================================================
   21. 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;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
