/* SAM. — Design Tokens & System
 * Translated from React design system to production CSS
 */

:root {
  /* Color — Default (Studio warm) */
  --ink: #0E0E10;
  --ink-2: #2A2A2E;
  --ink-3: #5C5C63;
  --ink-4: #9A9AA3;
  --line: #E6E4DE;
  --line-2: #D8D5CC;
  --bg: #F4F1EA;
  --surface: #FFFFFF;
  --surface-2: #FAF8F2;
  --accent: #FF5A1F;
  --accent-ink: #1A0E07;
  --accent-soft: #FFE6D7;
  --positive: #1F7A4D;
  --warn: #B45309;
  --negative: #B42318;
  --info: #1F5FA8;

  /* Type */
  --font-display: "Archivo", "Archivo Black", system-ui, sans-serif;
  --font-sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radii */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

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

  /* Shadow */
  --sh-1: 0 1px 0 rgba(14,14,16,0.04), 0 1px 2px rgba(14,14,16,0.04);
  --sh-2: 0 4px 16px rgba(14,14,16,0.06), 0 1px 2px rgba(14,14,16,0.04);
  --sh-3: 0 18px 40px rgba(14,14,16,0.10), 0 2px 6px rgba(14,14,16,0.06);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  font-size: 14px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ── Typography ── */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0;
}
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
.body { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: transform 80ms ease, background 120ms ease, color 120ms ease;
  white-space: nowrap;
  background: transparent;
  color: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); color: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn-quiet { background: var(--surface-2); color: var(--ink); }
.btn-quiet:hover { background: var(--line); }
.btn-sm { padding: 8px 14px; font-size: 11px; }
.btn-lg { padding: 16px 28px; font-size: 14px; }
.btn-pill { border-radius: var(--r-pill); }
.btn-icon { width: 40px; height: 40px; padding: 0; }
.btn-block { width: 100%; }
.btn-danger { background: var(--negative); color: white; }
.btn-danger:hover { background: #8E1B12; }

/* ── Inputs ── */
.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,14,16,0.08); }
.input::placeholder { color: var(--ink-4); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235C5C63' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

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

/* ── Chips / Tags ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.chip-solid { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip button { background: none; border: none; cursor: pointer; padding: 0; display: flex; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: var(--r-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-new { background: var(--accent); color: var(--accent-ink); }
.badge-sale { background: var(--ink); color: var(--surface); }
.badge-low { background: var(--warn); color: white; }
.badge-back { background: var(--positive); color: white; }
.badge-out { background: var(--line); color: var(--ink-3); }
.badge-delivered { background: var(--positive); color: white; }
.badge-returned { background: var(--ink-3); color: white; }
.badge-pending { background: var(--warn); color: white; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.card-flat {
  background: var(--surface);
  border: 1px solid var(--line);
}

/* ── Wordmark ── */
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .dot { color: var(--accent); }

/* ── Stripe bar ── */
.stripe-bar {
  height: 16px;
  background-image: repeating-linear-gradient(
    -68deg,
    var(--ink) 0 6px,
    transparent 6px 14px
  );
}

/* ── Layout utilities ── */
.container { max-width: 1440px; margin: 0 auto; }
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.center { align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--ink-3); }
.tiny { font-size: 11px; }
.small { font-size: 12px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none; }

/* ── Grid system ── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Top bar ── */
.top-bar {
  background: var(--ink);
  color: var(--surface);
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.top-bar-left { display: flex; gap: 16px; align-items: center; }
.top-bar-right { display: flex; gap: 16px; }
.top-bar-item { display: inline-flex; align-items: center; gap: 6px; }

/* ── Main nav ── */
.main-nav {
  background: var(--surface);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: 24px; margin-left: 16px; flex: 1; }
.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 120ms ease;
}
.nav-link:hover, .nav-link.active { border-bottom-color: var(--accent); }
.nav-link.sale { color: var(--accent); }

.nav-search {
  position: relative;
  flex: 0 1 320px;
}
.nav-search .input {
  padding-left: 38px;
  height: 38px;
  background: var(--surface-2);
  border: none;
}
.nav-search .search-icon {
  position: absolute;
  left: 14px;
  top: 11px;
}
.nav-actions { display: flex; gap: 4px; align-items: center; }
.nav-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  border-radius: var(--r-sm);
}
.nav-action-btn:hover { background: var(--surface-2); }
.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}
.nav-badge-accent { background: var(--accent); color: var(--accent-ink); }
.nav-badge-ink { background: var(--ink); color: var(--surface); }

/* ── Mobile nav toggle ── */
.mobile-menu-btn { display: none; }

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: var(--surface);
  padding: 48px 40px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand-text { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #C8C8CE; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social-icon {
  width: 32px; height: 32px;
  border: 1px solid #3A3A3F;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #C8C8CE;
  transition: border-color 120ms ease;
}
.footer-social-icon:hover { border-color: var(--accent); }
.footer-column-title { margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 13px; color: #C8C8CE; transition: color 120ms ease; }
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #2A2A2E;
  margin-top: 40px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6B6B72;
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--surface);
  overflow: hidden;
  min-height: 620px;
  display: flex;
}
.hero-content {
  flex: 1;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-visual {
  flex: 1.2;
  position: relative;
  background: var(--accent);
}
.hero-visual-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-68deg, rgba(0,0,0,0.06) 0 10px, transparent 10px 60px);
}
.hero-visual-shoe {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-title { font-size: clamp(40px, 12vw, 168px); line-height: 0.86; }
.hero-subtitle { margin-top: 24px; font-size: 16px; max-width: 380px; color: #C8C8CE; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; }
.hero-products { display: flex; gap: 32px; font-size: 12px; color: #9A9AA3; }
.hero-price-tag {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Section containers ── */
.section { padding: 64px 40px; max-width: 100%; overflow-x: hidden; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.section-title { font-size: clamp(24px, 6vw, 44px); margin: 8px 0 0; }

/* ── Category cards ── */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
  padding: 20px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 120ms ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card-title { font-size: clamp(22px, 5vw, 36px); line-height: 0.95; }
.category-card-shoe { position: absolute; right: -20px; bottom: -20px; }

/* ── Value props strip ── */
.value-strip {
  background: var(--ink);
  color: var(--surface);
  padding: 40px;
  overflow-x: hidden;
}
.value-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.value-item-sub { font-size: 13px; color: #C8C8CE; margin-top: 4px; }

/* ── Product card ── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.product-card-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.product-card-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 120ms ease;
}
.product-card-wish:hover { transform: scale(1.1); }
.product-card-image {
  background: var(--surface-2);
  padding: 16px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-info { padding: 14px; }
.product-card-cat { text-transform: uppercase; letter-spacing: 0.08em; }
.product-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
  line-height: 1.2;
}
.product-card-colors { display: flex; gap: 4px; margin-top: 6px; align-items: center; }
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-block;
}
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}
.price-current {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}
.price-was {
  text-decoration: line-through;
  color: var(--ink-3);
  font-size: 13px;
}

/* ── Stars ── */
.stars { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.stars svg { display: block; }
.star-count { font-size: 12px; color: var(--ink-3); }

/* ── Size box ── */
.size-box {
  width: 52px;
  height: 44px;
  border: 1.5px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms ease, background 120ms ease;
}
.size-box:hover:not(.disabled) { border-color: var(--ink); }
.size-box.selected { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.size-box.disabled {
  background: var(--surface-2);
  color: var(--ink-4);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Color swatch ── */
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
  cursor: pointer;
  padding: 0;
  transition: box-shadow 120ms ease;
}
.color-swatch.selected { box-shadow: 0 0 0 2px var(--ink); }

/* ── Pill ── */
.pill {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease;
}
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ── Breadcrumbs ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-3);
  padding: 20px 40px 0;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .current { color: var(--ink); }

/* ── Filter sidebar ── */
.filter-section { border-bottom: 1px solid var(--line); padding: 20px 0; }
.filter-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checkbox.checked { background: var(--ink); }

/* ── Price range ── */
.price-histogram { display: flex; align-items: flex-end; gap: 2px; height: 40px; margin-bottom: 8px; }
.price-histogram-bar { flex: 1; background: var(--line-2); }
.price-histogram-bar.active { background: var(--ink); }
.price-range-track { position: relative; height: 16px; }
.price-range-track .track { position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.price-range-track .track-active { position: absolute; top: 7px; height: 2px; background: var(--ink); }
.price-range-thumb {
  position: absolute;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  cursor: grab;
}

/* ── Checkout ── */
.checkout-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-steps { display: flex; gap: 24px; align-items: center; }
.checkout-step { display: flex; align-items: center; gap: 8px; }
.checkout-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
}
.checkout-step-num.done { background: var(--ink); color: var(--surface); }
.checkout-step-num.active { background: var(--ink); color: var(--surface); }
.checkout-step-num.pending { background: var(--line); color: var(--ink-3); }
.checkout-step-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.checkout-step-divider { width: 32px; height: 1px; background: var(--line); margin-left: 16px; }

/* ── Order tracking ── */
.tracking-timeline { display: flex; justify-content: space-between; position: relative; margin-bottom: 32px; }
.tracking-line { position: absolute; top: 14px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.tracking-line-active { position: absolute; top: 14px; left: 8%; height: 2px; background: var(--ink); }
.tracking-step { position: relative; text-align: center; flex: 1; }
.tracking-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 4px solid var(--surface);
}
.tracking-dot.done { background: var(--ink); }
.tracking-dot.active { background: var(--accent); }
.tracking-dot.pending { background: var(--line); }

/* ── Account sidebar ── */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px; max-width: 1280px; margin: 0 auto; }
.account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: background 120ms ease;
}
.account-nav-item:hover { background: var(--surface-2); }
.account-nav-item.active { background: var(--ink); color: var(--surface); }

/* ── Auth split layout ── */
.auth-layout { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-brand {
  background: var(--ink);
  color: var(--surface);
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-form {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-inner { max-width: 380px; width: 100%; margin: 0 auto; }
.auth-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  margin-bottom: 32px;
}
.auth-toggle-btn {
  flex: 1;
  font-size: 13px;
  border-radius: var(--r-pill);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 120ms ease, color 120ms ease;
}
.auth-toggle-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.auth-toggle-btn:not(.active) { background: transparent; color: var(--ink-3); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── 404 page ── */
.error-page { background: var(--surface); border-bottom: 1px solid var(--line); padding: 80px 40px; position: relative; overflow: hidden; }
.error-title { font-size: 200px; line-height: 0.86; letter-spacing: -0.04em; }
.error-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-visual-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-68deg, var(--bg) 0 8px, transparent 8px 24px);
  opacity: 0.7;
}

/* ── Empty states ── */
.empty-state {
  padding: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Loyalty card ── */
.loyalty-card {
  padding: 32px;
  background: var(--accent);
  color: var(--accent-ink);
  position: relative;
  overflow: hidden;
}
.loyalty-card .eyebrow { color: var(--accent-ink); }
.loyalty-card-bg {
  position: absolute;
  right: -40px;
  bottom: -40px;
  opacity: 0.15;
}

/* ── Newsletter card ── */
.newsletter-card {
  padding: 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ── Sam Club (account) ── */
.sam-club-card {
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.sam-club-progress {
  height: 6px;
  background: #2A2A2E;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 16px;
}
.sam-club-progress-fill { height: 100%; background: var(--accent); }

/* ── Confirmation hero ── */
.confirm-hero {
  background: var(--ink);
  color: var(--surface);
  padding: 64px 40px;
}
.confirm-delivery-card {
  background: var(--accent);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* ── Alert banners ── */
.alert {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: var(--r-md);
  margin-bottom: 24px;
}
.alert-accent { background: var(--accent-soft); border: none; }
.alert-positive { background: #D1FAE5; }
.alert-negative { background: #FEE2E2; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Flash messages ── */
.flash {
  padding: 14px 20px;
  margin: 16px 40px;
  border-radius: var(--r-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flash-success { background: #D1FAE5; color: #065F46; }
.flash-error { background: #FEE2E2; color: #991B1B; }
.flash-warning { background: #FEF3C7; color: #92400E; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.page-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
}
.page-num:hover { background: var(--surface-2); }
.page-num.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* ── Cookie consent ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner-text { font-size: 13px; color: #C8C8CE; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Editorial split ── */
.editorial-split {
  background: var(--surface);
  padding: 80px 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.editorial-split-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}
.editorial-title {
  font-size: clamp(32px, 8vw, 80px);
  margin: 12px 0 24px;
  line-height: 0.95;
}
.editorial-visual {
  background: var(--bg);
  padding: 48px;
  border-radius: var(--r-md);
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Loyalty + Newsletter grid ── */
.loyalty-newsletter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
}
.loyalty-card-wide { min-height: 280px; }
.loyalty-title {
  font-size: clamp(32px, 6vw, 64px);
  margin-top: 8px;
  max-width: 400px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero { flex-direction: column; min-height: auto; }
  .hero-content { padding: 40px 24px; }
  .hero-title { font-size: 80px; }
  .hero-visual { min-height: 300px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .value-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section { padding: 40px 24px; }
  .section-title { font-size: 32px; }
  .account-layout { grid-template-columns: 1fr; padding: 24px 16px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }

  /* PDP */
  #pdpGrid { grid-template-columns: 1fr !important; padding: 16px !important; gap: 16px !important; }
  .pdp-thumbs { flex-direction: row !important; order: 2; overflow-x: auto; }
  .pdp-main-image { min-height: 360px !important; }
  .pdp-buy-col .display { font-size: 32px !important; }
}

@media (max-width: 768px) {
  .top-bar { padding: 6px 16px; font-size: 10px; }
  .top-bar-left { flex-wrap: wrap; gap: 8px; }
  .top-bar-right { display: none; }
  .main-nav { padding: 12px 16px; gap: 12px; flex-wrap: wrap; position: relative; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 10;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 12px 0;
    gap: 0;
    margin-left: 0;
  }
  .nav-links[style*="flex"] {
    display: flex !important;
  }
  .nav-link {
    padding: 12px 0;
    border-bottom: none;
    font-size: 15px;
  }
  .nav-link:hover, .nav-link.active { border-bottom: none; color: var(--accent); }
  .nav-search { flex: 1; min-width: 0; order: 2; }
  .nav-search .input { height: 36px; font-size: 13px; }
  .nav-actions { order: 3; }
  .mobile-menu-btn { display: flex; }
  .hero { min-height: auto; }
  .hero-content { padding: 32px 16px; }
  .hero-title { font-size: 48px; line-height: 1; }
  .hero-subtitle { font-size: 14px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .hero-products { display: none; }
  .hero-price-tag { display: none; }
  .hero-visual { display: none; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-card { height: 180px; }
  .category-card-title { font-size: 22px; }
  .value-strip-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section { padding: 24px 16px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-title { font-size: 28px; }
  .breadcrumb { padding: 12px 16px 0; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .site-footer { padding: 32px 16px 16px; }
  .checkout-steps { display: none; }
  .cookie-banner { flex-direction: column; padding: 16px; }

  /* Product listing mobile */
  .listing-layout { grid-template-columns: 1fr !important; }
  .filter-sidebar { display: none; }

  /* Product detail mobile */
  .product-detail { flex-direction: column; }
  .product-gallery { max-width: 100%; }
  .product-info { padding: 16px; }

  /* Cart mobile */
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { flex-direction: column; align-items: flex-start; }

  /* Checkout mobile */
  .checkout-layout { grid-template-columns: 1fr; }

  /* Auth */
  .auth-form { padding: 20px 16px; }

  /* Account */
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { display: none; }

  /* Editorial split mobile */
  .editorial-split { padding: 40px 16px; }
  .editorial-split-inner { grid-template-columns: 1fr; gap: 24px; }
  .editorial-visual { height: 280px; padding: 24px; }

  /* Loyalty + Newsletter mobile */
  .loyalty-newsletter-grid { grid-template-columns: 1fr; }
  .loyalty-card-wide { min-height: auto; }

  /* Product card adjustments */
  .product-card-name { font-size: 13px; }
  .product-card-price { font-size: 13px; }

  /* ── PDP mobile ── */
  #pdpGrid { grid-template-columns: 1fr !important; padding: 16px !important; gap: 16px !important; }
  .pdp-thumbs { flex-direction: row !important; order: 2; overflow-x: auto; }
  .pdp-thumb { width: 56px !important; height: 56px !important; flex-shrink: 0; }
  .pdp-main-image { min-height: 300px !important; }
  #mainImage { max-width: 100% !important; max-height: 320px !important; }
  #sizeGrid { grid-template-columns: repeat(4, 1fr) !important; }
  .pdp-tab-content[data-tab="0"] { grid-template-columns: 1fr !important; gap: 24px !important; }
  .pdp-buy-col .display { font-size: 28px !important; }
  .pdp-buy-col h1.display { font-size: 32px !important; }
  div[style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  div[style*="grid-template-columns:repeat(2,1fr);gap:24px"] { grid-template-columns: 1fr !important; }
  div[style*="padding:0 40px"] { padding: 0 16px !important; }
  div[style*="padding:40px"] { padding: 16px !important; }

  /* ── Cart mobile ── */
  div[style*="grid-template-columns:1fr 420px"] { grid-template-columns: 1fr !important; gap: 16px !important; }
  div[style*="width:100px;height:100px"] { width: 72px !important; height: 72px !important; }

  /* ── Checkout mobile ── */
  div[style*="grid-template-columns:1fr 420px;gap:40px"] { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* ── Account mobile ── */
  .account-layout { grid-template-columns: 1fr; padding: 16px; }
  .account-sidebar { display: none; }
  div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  div[style*="font-size:56px"] { font-size: 32px !important; }
  div[style*="font-size:64px"] { font-size: 28px !important; }

  /* ── Order detail mobile ── */
  div[style*="grid-template-columns:1fr 1fr;gap:24px"] { grid-template-columns: 1fr !important; }
  div[style*="width:72px;height:72px"] { width: 56px !important; height: 56px !important; }
  div[style*="width:80px;height:80px"] { width: 56px !important; height: 56px !important; }

  /* ── Auth pages mobile ── */
  .auth-form { padding: 24px 16px !important; }
  .auth-form-inner { max-width: 100%; }
  div[style*="grid-template-columns:1fr 1fr;gap:12px"] { grid-template-columns: 1fr !important; }

  /* ── CMS pages mobile ── */
  div[style*="grid-template-columns:1fr 1fr;gap:48px"] { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* ── Error pages mobile ── */
  .error-page { padding: 40px 16px !important; }
  .error-title { font-size: 80px !important; }
  .error-visual { height: 200px !important; }
  div[style*="grid-template-columns:1fr 1fr;gap:64px"] { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* ── Admin mobile ── */
  div[style*="grid-template-columns:1.5fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:1.4fr 1fr"] { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* ── Global inline style overrides ── */
  h1.display, h2.display { font-size: 32px !important; }
  div[style*="font-size:96px"] { font-size: 36px !important; }
  div[style*="font-size:88px"] { font-size: 32px !important; }
  div[style*="font-size:80px"] { font-size: 28px !important; }
  div[style*="font-size:48px"] { font-size: 28px !important; }
  div[style*="font-size:44px"] { font-size: 28px !important; }
  div[style*="font-size:36px"] { font-size: 24px !important; }
  h1[style*="font-size:56px"] { font-size: 32px !important; }
  h1[style*="font-size:44px"] { font-size: 28px !important; }
  h2[style*="font-size:80px"] { font-size: 28px !important; }
  h2[style*="font-size:96px"] { font-size: 32px !important; }
  h3[style*="font-size:36px"] { font-size: 24px !important; }
  h3[style*="font-size:32px"] { font-size: 22px !important; }
  div[style*="font-size:200px"], div[style*="font-size:180px"], div[style*="font-size:160px"] { font-size: 80px !important; }

  /* ── Tables responsive ── */
  table { font-size: 12px; }
  th, td { padding: 8px 6px !important; }

  /* ── General overflow fix ── */
  .card { overflow: hidden; }
  img { max-width: 100%; height: auto; }

  /* ── Product listing mobile ── */
  div[style*="grid-template-columns:260px 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="font-size:64px"] { font-size: 28px !important; }

  /* ── Padding overrides ── */
  div[style*="padding:64px 40px"], div[style*="padding:80px 40px"], section[style*="padding:80px 40px"] { padding: 24px 16px !important; }
  div[style*="padding:0 40px 64px"] { padding: 0 16px 32px !important; }
  div[style*="padding:24px 40px 64px"] { padding: 16px !important; }
  div[style*="gap:64px"] { gap: 24px !important; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .hero-title { font-size: 36px; }
  .hero-content { padding: 24px 16px; }
  .btn-lg { padding: 14px 20px; font-size: 13px; }
  .main-nav { padding: 10px 12px; gap: 8px; }
  .nav-action-btn { width: 36px; height: 36px; }
  .section-title { font-size: 24px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { height: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar { justify-content: center; }

  /* Stat cards single column */
  div[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
  #sizeGrid { grid-template-columns: repeat(3, 1fr) !important; }

  /* All display fonts smaller */
  h1.display, h2.display { font-size: 28px !important; }
  .display[style*="font-size"] { font-size: 24px !important; }
}
