/* ============ BK MOTO — Tokens & globals ============ */
:root {
  /* palette — light (bone) */
  --bone: #F4F1EA;
  --bone-2: #EAE5DA;
  --paper: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --steel: #3A3A3A;
  --concrete: #6E6A63;
  --concrete-2: #A8A29E;
  --hairline: #1A1A1A14;
  --blood: #E60023;
  --blood-2: #B8001C;
  --blood-soft: #FCE7EB;
  --ok: #1f7a3a;
  --warn: #d97706;

  /* surface roles — light by default */
  --bg: var(--bone);
  --bg-2: var(--bone-2);
  --surface: var(--paper);
  --text: var(--ink);
  --text-muted: var(--concrete);
  --line: #1A1A1A1A;
  --line-strong: #1A1A1A;
  --accent: var(--blood);
  --accent-ink: #FFFFFF;

  /* type */
  --f-display: 'Anton', 'Oswald', 'Archivo Black', sans-serif;
  --f-body: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* radii (mostly squared — racing feel) */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-pill: 999px;
}

[data-theme='dark'] {
  --bg: #0A0A0A;
  --bg-2: #141414;
  --surface: #181818;
  --text: #F4F1EA;
  --text-muted: #A8A29E;
  --line: #ffffff1a;
  --line-strong: #ffffff;
  --blood-soft: #2A0008;
  --hairline: #ffffff14;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* Type helpers */
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: 0.005em; line-height: 0.95; text-transform: uppercase; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

/* Layout */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }

/* ============ Announcement bar ============ */
.announce {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 0;
  overflow: hidden;
}
.announce-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.announce-track > span { display: inline-flex; align-items: center; gap: 12px; }
.announce-track .dot { color: var(--blood); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.header-logo { display: flex; align-items: center; justify-self: center; }
.header-logo img { height: 64px; width: auto; max-width: none; }
@media (max-width: 1100px) { .header-logo img { height: 48px; } }
[data-theme='dark'] .header-logo img { filter: invert(1) hue-rotate(180deg); }
.header-left { display: flex; align-items: center; gap: 4px; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.nav-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  position: relative;
  color: var(--text);
}
.nav-link:hover { color: var(--blood); }
.nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--blood);
}
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  position: relative;
  color: var(--text);
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn .badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--blood); color: #fff;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; line-height: 1;
}

/* Search bar inline */
.search-input {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 9px 14px; border-radius: var(--r-sm);
  min-width: 220px;
}
.search-input input { border: 0; background: transparent; outline: none; flex: 1; font-size: 13px; }
.search-input input::placeholder { color: var(--text-muted); }

/* ============ Sale banner ============ */
.sale-banner {
  background: var(--ink); color: var(--bone);
  position: relative; overflow: hidden;
  border: 1px solid var(--ink);
}
[data-theme='dark'] .sale-banner { background: #050505; border-color: #050505; }
.sale-banner-bg {
  position: absolute; inset: 0;
  display: flex; gap: 32px;
  align-items: center;
  white-space: nowrap;
  opacity: 0.07;
  pointer-events: none;
  animation: marquee 28s linear infinite;
}
.sale-banner-tick {
  font-family: var(--f-display);
  font-size: 72px;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-transform: uppercase;
}
.sale-banner-inner {
  position: relative; z-index: 1;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.sale-banner-meta {
  display: flex; flex-direction: column; gap: 20px;
  align-items: flex-start;
}
@media (max-width: 800px) {
  .sale-banner-inner { grid-template-columns: 1fr; padding: 36px 28px; gap: 24px; }
  .sale-banner-tick { font-size: 52px; }
}

/* Cat strip under header */
.catstrip {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.catstrip-inner {
  display: flex; gap: 10px; padding: 10px 0; overflow-x: auto; align-items: center;
}
.catstrip-spacer { flex: 1; }
.catstrip a {
  white-space: nowrap;
  font-family: var(--f-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.catstrip a.hot {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform .12s ease, background .15s;
}
.catstrip a.hot:hover { transform: translateY(-1px); }
.catstrip a.hot .kbd {
  font-size: 10px;
  background: var(--ink); color: var(--bone);
  padding: 3px 7px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
[data-theme='dark'] .catstrip a.hot .kbd { background: var(--bone); color: var(--ink); }

.catstrip a.hot.sale {
  background: var(--blood); color: #fff; border-color: var(--blood);
  position: relative;
}
.catstrip a.hot.sale .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: hotPulse 1.6s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 0 0 #ffffff80; opacity: 1; }
  50%      { box-shadow: 0 0 0 6px #ffffff00; opacity: .6; }
}
.catstrip a.hot.sale .kbd { background: #ffffff; color: var(--blood); }

.catstrip a.hot.new {
  background: var(--ink); color: var(--bone); border-color: var(--ink);
}
[data-theme='dark'] .catstrip a.hot.new { background: var(--bone); color: var(--ink); border-color: var(--bone); }
[data-theme='dark'] .catstrip a.hot.new .kbd { background: var(--ink); color: var(--bone); }

.catstrip a.catstrip-quiet {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 12px;
}
.catstrip a.catstrip-quiet:hover { color: var(--text); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--ink); color: var(--bone);
  transition: transform .12s ease, background .15s;
  font-weight: 600;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--blood); color: #fff; }
.btn.primary:hover { background: var(--blood-2); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--text); color: var(--bg); }
.btn.sm { padding: 9px 14px; font-size: 11px; }
.btn.lg { padding: 17px 28px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ============ Cards / product cards ============ */
.card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
}
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }

/* Divided grid — like a tabular catalog */
.card-grid.divided {
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card-grid.divided > .pcard {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  margin: 0;
}
.card-grid.divided .pcard-thumb {
  aspect-ratio: 4/5;
  border: 0;
  background: var(--bg-2);
}
.card-grid.divided .pcard-meta { padding-top: 12px; }
.card-grid.divided .pcard-name { font-size: 13px; }
.card-grid.divided .pcard-price .now { font-size: 18px; }
.card-grid.divided .pcard-quick { display: none; }
.card-grid.divided > .pcard:hover {
  background: var(--bg-2);
  z-index: 1;
}

/* ============ Product list (rows) ============ */
.product-list {
  display: grid;
  gap: 16px;
}
.product-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.product-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 20px #00000010;
}

.product-row-thumb {
  width: 220px;
  aspect-ratio: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.product-row-thumb svg,
.product-row-thumb img,
.product-row-thumb > div { width: 100%; height: 100%; display: block; }
.product-row-thumb .pcard-badges { top: 10px; left: 10px; }
.product-row-thumb .pcard-badge { font-size: 9px; padding: 3px 6px; }

/* Wishlist heart overlay on image */
.product-row-fav {
  position: absolute;
  left: 10px; bottom: 10px;
  width: 36px; height: 36px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .15s;
  z-index: 2;
}
.product-row-fav:hover { transform: scale(1.06); }
.product-row-fav.on { background: var(--blood); color: #fff; border-color: var(--blood); }

/* Body: 2-col on desktop (info | actions), 1-col below */
.product-row-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 32px;
  align-items: start;
}

.product-row-main { cursor: pointer; min-width: 0; }
.product-row-main .brand {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-muted);
}
.product-row-main .name {
  font-family: var(--f-display); font-size: 26px; text-transform: uppercase;
  letter-spacing: -0.005em; line-height: 1.02;
  margin: 6px 0 10px;
}

.product-row-stars { margin-bottom: 14px; }

.product-row-price-block { margin: 0 0 12px; }
.product-row-price {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
}
.product-row-price .now {
  font-family: var(--f-display); font-size: 36px; line-height: 1;
}
.product-row-price .was {
  font-family: var(--f-mono); font-size: 12px; text-decoration: line-through;
  color: var(--text-muted);
}
.product-row-price .off {
  display: inline-block;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  background: var(--blood); color: #fff; padding: 3px 8px; letter-spacing: .12em;
}
.product-row-msi {
  font-size: 11px; color: var(--text-muted); margin-top: 4px;
  letter-spacing: .04em;
}

.product-row-info {
  display: grid; gap: 6px; margin-bottom: 14px;
  font-size: 13px; color: var(--text-muted);
}
.product-row-info strong { color: var(--ok); letter-spacing: .04em; }
.product-row-ship { font-family: var(--f-body); }

.product-row-stock {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
}
.product-row-stock.stock { color: var(--ok); }
.product-row-stock.stock::before { content: '● '; }
.product-row-stock.low { color: var(--blood); font-weight: 600; }
.product-row-stock.out { color: var(--blood); }

.product-row-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.product-row-tag {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 7px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-muted);
}

.product-row-actions {
  display: flex; flex-direction: column; gap: 10px;
  align-self: stretch;
  justify-content: center;
}
.btn.block { width: 100%; }

/* ---- Responsive: Amazon-style mobile layout ---- */
@media (max-width: 900px) {
  .product-row {
    grid-template-columns: 38% minmax(0, 1fr);
    gap: 18px; padding: 18px;
  }
  .product-row-thumb { width: 100%; }
  .product-row-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-row-main .name { font-size: 18px; margin: 4px 0 8px; }
  .product-row-price .now { font-size: 28px; }
  .product-row-stars { margin-bottom: 10px; }
  .product-row-actions { gap: 8px; }
  .product-row-actions .btn.lg { padding: 13px 18px; font-size: 12px; }
  .product-row-tags { display: none; }
}

@media (max-width: 480px) {
  .product-row {
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 14px; padding: 14px;
  }
  .product-row-main .brand { font-size: 9px; }
  .product-row-main .name { font-size: 15px; line-height: 1.1; }
  .product-row-price .now { font-size: 22px; }
  .product-row-price .was { font-size: 10px; }
  .product-row-msi { font-size: 10px; }
  .product-row-info { font-size: 11px; gap: 4px; margin-bottom: 10px; }
  .product-row-stock { font-size: 10px; }
  .product-row-fav { width: 30px; height: 30px; left: 6px; bottom: 6px; }
  .product-row-actions .btn.lg { padding: 11px 12px; font-size: 11px; letter-spacing: .1em; }
  .product-row-stars { font-size: 10px; }
}

.pcard { position: relative; }
.pcard-thumb {
  position: relative; aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.pcard-thumb svg { width: 100%; height: 100%; display: block; }
.pcard .grid-bg { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.pcard-badge {
  background: var(--ink); color: var(--bone);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 8px; line-height: 1;
}
.pcard-badge.blood { background: var(--blood); color: #fff; }
.pcard-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.pcard-fav:hover { transform: scale(1.08); }
.pcard-fav.on { background: var(--blood); color: #fff; border-color: var(--blood); }
.pcard-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.pcard:hover .pcard-quick { opacity: 1; transform: translateY(0); }
.pcard-meta { padding-top: 12px; display: grid; gap: 4px; }
.pcard-brand { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.pcard-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; padding-top: 2px; }
.pcard-price .now { font-family: var(--f-display); font-size: 22px; }
.pcard-price .was { font-family: var(--f-mono); font-size: 11px; text-decoration: line-through; color: var(--text-muted); }
.pcard-stars { display: inline-flex; gap: 2px; align-items: center; font-family: var(--f-mono); font-size: 10px; color: var(--text-muted); }

/* Card variant: industrial */
.pcard.industrial .pcard-thumb { border-radius: 0; border-width: 1px 1px 1px 1px; border-color: var(--line-strong); }
.pcard.industrial .pcard-meta { padding: 12px; border: 1px solid var(--line-strong); border-top: 0; }
.pcard.industrial .pcard-name { text-transform: uppercase; font-family: var(--f-mono); letter-spacing: 0.08em; font-size: 12px; }

/* Card variant: minimal */
.pcard.minimal .pcard-thumb { border: 0; background: var(--bg-2); }
.pcard.minimal .pcard-name { font-family: var(--f-display); font-size: 18px; text-transform: uppercase; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bone);
  min-height: 620px;
  display: flex; align-items: flex-end;
}
[data-theme='dark'] .hero { background: #050505; }
.hero-art { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; padding: 60px 0; width: 100%; }
.hero-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blood); margin-bottom: 16px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(60px, 11vw, 180px); line-height: 0.86;
  margin: 0; text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero h1 .stroke { -webkit-text-stroke: 2px var(--bone); color: transparent; }
.hero h1 .blood { color: var(--blood); }
.hero-sub {
  max-width: 480px; margin-top: 28px;
  font-size: 16px; line-height: 1.5; color: #ffffffb0;
}
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap;
}
.hero-stats .s-num { font-family: var(--f-display); font-size: 42px; line-height: 1; color: var(--bone); }
.hero-stats .s-lab { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #ffffff90; margin-top: 4px; }
.hero-side {
  position: absolute; right: 32px; top: 32px; bottom: 32px; width: 38%;
  border: 1px solid #ffffff20;
  background: #00000050;
  display: grid; place-items: center;
  z-index: 1;
  overflow: hidden;
}
.hero-side svg { width: 80%; height: auto; }

/* Hero photo variant — full-bleed rider image */
.hero-rider {
  background: #050505;
  border-color: #ffffff15;
  padding: 0;
}
.hero-rider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.hero-rider::before {
  /* subtle vignette to bind image into hero */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%),
              linear-gradient(90deg, rgba(0,0,0,.25) 0%, transparent 25%);
  z-index: 1; pointer-events: none;
}
.hero-rider-label {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--bone);
}
.hero-rider-tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em;
  color: var(--blood); text-transform: uppercase;
}
.hero-rider-name {
  font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 36px);
  text-transform: uppercase; line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.hero-rider-price {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  color: #ffffffb0; margin-top: 4px;
}
.hero-spec {
  position: absolute; right: 32px; bottom: 32px;
  font-family: var(--f-mono); font-size: 10px; color: #ffffff60; letter-spacing: 0.14em; text-transform: uppercase;
  text-align: right;
  z-index: 3;
}
@media (max-width: 900px) { .hero-side { display: none; } }

/* Hero variants */
.hero.flat {
  background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line);
}
.hero.flat h1 .stroke { -webkit-text-stroke: 2px var(--text); }
.hero.flat .hero-sub { color: var(--text-muted); }
.hero.flat .hero-side { border-color: var(--line); background: var(--surface); }
.hero.flat .hero-stats .s-num { color: var(--text); }
.hero.flat .hero-stats .s-lab { color: var(--text-muted); }
.hero.flat .hero-spec { color: var(--text-muted); }

.hero.split { min-height: 560px; }
.hero.split .hero-side { width: 48%; }

/* ============ Section ============ */
.section { padding: 80px 0; }
.section.tight { padding: 48px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-family: var(--f-display); font-size: clamp(36px, 5vw, 64px); line-height: 0.95;
  margin: 0; text-transform: uppercase;
}
.section-head .lead { color: var(--text-muted); max-width: 380px; }

/* ============ Categories grid ============ */
.cats {
  display: grid; gap: 12px;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 540px;
}
.cat {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .2s;
}
.cat:hover { transform: translateY(-2px); }
.cat svg.cat-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-label {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.cat-label h3 {
  font-family: var(--f-display); font-size: clamp(28px, 4vw, 48px); margin: 0;
  text-transform: uppercase; letter-spacing: -0.005em;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.cat-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: rgba(255,255,255,.7); }
.cat:nth-child(1) { grid-row: span 2; }
@media (max-width: 800px) {
  .cats { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: auto; }
  .cat:nth-child(1) { grid-row: auto; grid-column: span 2; }
  .cat { min-height: 200px; }
}

/* ============ Brand strip ============ */
.brand-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.brand-strip > div {
  padding: 28px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 22px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--line);
  transition: color .15s;
}
.brand-strip > div:last-child { border-right: 0; }
.brand-strip > div:hover { color: var(--text); }
@media (max-width: 800px) { .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .brand-strip > div:nth-child(3n) { border-right: 0; }
}

/* ============ Footer ============ */
.footer {
  background: var(--ink); color: var(--bone);
  margin-top: 80px;
}
[data-theme='dark'] .footer { background: #050505; }
.footer-top { padding: 80px 0 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #ffffff60; margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: #ffffffb8; font-size: 14px; }
.footer ul a:hover { color: var(--blood); }
.footer-brand .display { font-size: 56px; line-height: .9; color: var(--bone); margin-bottom: 14px; }
.footer-logo {
  display: block;
  height: auto;
  width: 280px;
  max-width: 100%;
  margin-bottom: 18px;
  /* In the dark footer, invert black text to white but keep red enso red */
  filter: invert(1) hue-rotate(180deg);
}
.footer-brand p { color: #ffffff80; max-width: 340px; font-size: 14px; }
.footer-bottom {
  padding: 24px 0; border-top: 1px solid #ffffff14;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #ffffff60;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ============ Drawer (mini cart, filters mobile) ============ */
.drawer-scrim {
  position: fixed; inset: 0; background: #00000080; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  background: var(--bg); color: var(--text);
  z-index: 101;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,.0,.2,1);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-family: var(--f-display); font-size: 24px; margin: 0; text-transform: uppercase; letter-spacing: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }

/* Modal */
.modal-scrim {
  position: fixed; inset: 0; background: #000000a0; z-index: 110;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
  padding: 20px;
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg); color: var(--text);
  max-width: 980px; width: 100%; max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line-strong);
  position: relative;
  transform: scale(.96); transition: transform .2s;
}
.modal-scrim.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; background: var(--bg); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}

/* Toast */
.toast-stack { position: fixed; bottom: 24px; left: 24px; z-index: 200; display: grid; gap: 8px; }
.toast {
  background: var(--ink); color: var(--bone);
  padding: 14px 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
  border-left: 3px solid var(--blood);
  animation: toastIn .25s ease-out;
  min-width: 240px;
}
@keyframes toastIn { from { transform: translateX(-12px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Line items */
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-thumb { width: 80px; height: 80px; background: var(--surface); border: 1px solid var(--line); }
.line-thumb svg { width: 100%; height: 100%; }
.line-info .name { font-size: 14px; font-weight: 500; }
.line-info .brand { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.line-info .var { font-family: var(--f-mono); font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.line-right { text-align: right; }
.line-right .price { font-family: var(--f-display); font-size: 20px; }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
}
.qty button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.qty button:hover { background: var(--bg-2); }
.qty input, .qty .val { width: 36px; text-align: center; border: 0; background: transparent; font-family: var(--f-mono); font-size: 12px; }

/* Filters sidebar */
.filters {
  position: sticky; top: 88px;
  align-self: start;
  border: 1px solid var(--line);
  background: var(--surface);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-track { background: transparent; }
.filters::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.filters::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* Filters toggle button — hidden on desktop, shown on mobile */
.filters-toggle {
  display: none;
  width: 100%;
  padding: 14px 18px;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
}
[data-theme='dark'] .filters-toggle { background: var(--bone); color: var(--ink); }
.filters-count {
  background: var(--blood); color: #fff;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0;
  min-width: 22px;
  display: inline-block;
  text-align: center;
}
.filters-chev {
  font-size: 22px;
  line-height: 1;
  font-family: var(--f-display);
}
.filters-body { padding: 20px; }

@media (min-width: 901px) {
  .filters-body { padding: 20px; }
}

.filter-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-block:last-child { border-bottom: 0; }
.filter-block h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 12px; }
.checkbox { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 13px; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--blood); }
.checkbox .count { margin-left: auto; color: var(--text-muted); font-family: var(--f-mono); font-size: 11px; }

/* Range slider styled */
.price-range { display: grid; gap: 8px; }
.price-range-inputs { display: flex; gap: 8px; align-items: center; }
.price-range-inputs .field {
  flex: 1; border: 1px solid var(--line); padding: 8px 10px; font-family: var(--f-mono); font-size: 12px;
}

/* Inputs */
.field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 14px;
  font-size: 14px;
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color .15s;
}
.field:focus { border-color: var(--ink); }
[data-theme='dark'] .field:focus { border-color: var(--bone); }
.field.error { border-color: var(--blood); }
.field-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 6px; color: var(--text-muted); }
.field-err { color: var(--blood); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 6px; display: block; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.tab {
  padding: 14px 20px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab.on { color: var(--text); border-color: var(--blood); }
.tab:hover { color: var(--text); }

/* Swatches & chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  background: var(--surface);
  transition: all .15s;
}
.chip:hover { border-color: var(--line-strong); }
.chip.on { background: var(--ink); color: var(--bone); border-color: var(--ink); }
[data-theme='dark'] .chip.on { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip.disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

.swatch-row { display: flex; gap: 10px; }
.swatch { width: 36px; height: 36px; border: 1px solid var(--line); cursor: pointer; position: relative; }
.swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
[data-theme='dark'] .swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--bone); }

/* Stepper (checkout) */
.stepper { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.step { flex: 1; padding: 18px 0; display: flex; gap: 12px; align-items: center; }
.step .n {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; font-weight: 700;
}
.step .lab { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.step.on .n { background: var(--blood); color: #fff; border-color: var(--blood); }
.step.done .n { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.step.done .lab { color: var(--text-muted); }
.step .lab .sub { display: block; font-size: 10px; letter-spacing: 0.12em; color: var(--text-muted); }

/* PDP layout */
.pdp { display: grid; grid-template-columns: 1.2fr minmax(0, 1fr); gap: 60px; padding: 40px 0; }
@media (max-width: 1000px) { .pdp { grid-template-columns: 1fr; gap: 32px; } }
.pdp-gallery { display: grid; gap: 12px; max-width: 580px; }
.pdp-main {
  aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden;
  max-height: 580px;
}
.pdp-main svg, .pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pdp-thumb { aspect-ratio: 1; border: 1px solid var(--line); cursor: pointer; background: var(--surface); overflow: hidden; }
.pdp-thumb.on { border-color: var(--ink); }
[data-theme='dark'] .pdp-thumb.on { border-color: var(--bone); }
@media (max-width: 1000px) {
  .pdp-gallery { max-width: 100%; margin: 0 auto; }
  .pdp-main { max-height: 420px; aspect-ratio: 1; }
}
@media (max-width: 480px) {
  .pdp-main { max-height: 360px; }
}
.pdp-title { font-family: var(--f-display); font-size: clamp(36px, 4.5vw, 56px); line-height: 0.95; margin: 8px 0 0; text-transform: uppercase; }
.pdp-meta { display: flex; gap: 16px; align-items: center; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; }
.pdp-price .now { font-family: var(--f-display); font-size: 48px; line-height: 1; }
.pdp-price .was { font-family: var(--f-mono); font-size: 14px; text-decoration: line-through; color: var(--text-muted); }
.pdp-price .off { background: var(--blood); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; padding: 4px 8px; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table td:first-child { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); width: 40%; }

/* Account sidebar */
.acc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 40px 0; }
.acc-nav { display: grid; gap: 4px; align-self: start; position: sticky; top: 100px; }
.acc-nav-mobile { display: none; padding: 0 0 16px; }
.acc-nav-list { display: contents; }
.acc-nav-select {
  appearance: none; -webkit-appearance: none;
  width: 100%;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.acc-nav a, .acc-nav button {
  text-align: left; padding: 12px 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border-left: 2px solid transparent;
  color: var(--text-muted);
}
.acc-nav a.on, .acc-nav button.on { color: var(--text); border-color: var(--blood); background: var(--bg-2); }
.acc-nav a:hover, .acc-nav button:hover { color: var(--text); }
@media (max-width: 880px) {
  .acc-layout { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .acc-nav { position: static; gap: 0; }
  .acc-nav > div:first-child { display: none; }
  .acc-nav-mobile { display: block; }
  .acc-nav-list { display: none; }
}

/* Order card */
.order {
  border: 1px solid var(--line); padding: 20px; display: grid; gap: 12px;
}
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-status { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; }
.order-status.delivered { background: var(--ok); color: #fff; }
.order-status.transit { background: var(--warn); color: #fff; }
.order-status.pending { background: var(--steel); color: var(--bone); }

/* Misc */
.divider { height: 1px; background: var(--line); margin: 32px 0; }
.tag-line { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-line .tg { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; background: var(--bg-2); }

/* Autocomplete dropdown */
.autocomplete { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border: 1px solid var(--line-strong); margin-top: 4px; z-index: 60; max-height: 380px; overflow: auto; }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.ac-item:hover { background: var(--bg-2); }
.ac-item .ac-thumb { width: 40px; height: 40px; background: var(--bg-2); }
.ac-item .ac-thumb svg { width: 100%; height: 100%; }
.ac-item .ac-name { font-size: 13px; }
.ac-item .ac-brand { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.ac-item .ac-price { margin-left: auto; font-family: var(--f-display); font-size: 18px; }

/* Heart animation */
@keyframes heartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.heart-pop { animation: heartPop .35s ease; }

/* ATC flying chip */
.fly-cart {
  position: fixed; z-index: 90; pointer-events: none;
  background: var(--blood); color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  box-shadow: 0 8px 24px #00000040;
  transition: all .65s cubic-bezier(.5, -0.2, .5, 1.2);
}

/* Brushy decoration */
.enso { position: relative; display: inline-block; }
.enso::after {
  content: ''; position: absolute; inset: -8px -14px;
  background: radial-gradient(ellipse, transparent 35%, var(--blood) 38%, var(--blood) 42%, transparent 46%);
  transform: rotate(-12deg);
  pointer-events: none;
}

/* Diagonal ribbon (corner) */
.ribbon {
  position: absolute; top: 0; right: 0;
  background: var(--blood); color: #fff;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 36px;
  transform: rotate(45deg) translate(28px, -8px);
  transform-origin: top right;
}

/* Utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 12px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.pb-32 { padding-bottom: 32px; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
/* ---- Shop page layout (PLP) ---- */
.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; gap: 16px; }
  .filters {
    position: static; max-height: none; overflow: visible;
    border: 1px solid var(--line-strong);
  }
  .filters-toggle { display: flex; }
  .filters-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height .3s ease, padding .25s ease;
  }
  .filters.open .filters-body {
    max-height: 80vh;
    overflow-y: auto;
    padding: 8px 20px 20px;
    border-top: 1px solid var(--line);
  }
}

/* ---- Cart layout ---- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
}
.cart-row {
  display: grid;
  grid-template-columns: 120px 1fr 140px 120px;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .cart-row { grid-template-columns: 70px 1fr; gap: 14px; padding: 18px 0; }
  .cart-row > *:nth-child(3),
  .cart-row > *:nth-child(4) { grid-column: 2; }
  .cart-row > *:nth-child(1) { grid-row: 1 / span 3; align-self: start; }
  .cart-row > *:nth-child(1) > div,
  .cart-row > *:nth-child(1) { width: 70px !important; height: 70px !important; }
  .cart-row .qty { width: max-content; }
}

/* ---- Checkout layout ---- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
}
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .checkout-layout > aside {
    position: static !important;
    order: -1; /* show order summary above on mobile too — easier scan */
  }
}

/* ---- Login (auth) responsive ---- */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 200px);
}
.auth-form-wrap {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.auth-form-wrap form {
  display: grid;
  gap: 16px;
  min-height: 360px;
  align-content: start;
}
@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; min-height: auto; }
  .login-layout > div:first-child { padding: 40px 24px !important; }
  .login-layout > div:first-child h2 { font-size: 44px !important; }
  .login-layout > div:first-child svg { display: none; }
  .login-layout > div:last-child { padding: 32px 20px 48px !important; place-content: start !important; }
  .auth-form-wrap form { min-height: 0; }
}
@media (max-width: 540px) {
  .login-layout > div:last-child { padding: 24px 16px 40px !important; }
}

/* ---- Checkout form padding ---- */
.checkout-form-section {
  display: grid;
  gap: 20px;
  padding: 0;
}
@media (max-width: 900px) {
  .checkout-form-section { padding: 0; gap: 16px; }
  .checkout-form-section h2 { font-size: 24px !important; }
}

/* ---- Account orders cards (Mis pedidos) — fix tight padding ---- */
.order {
  border: 1px solid var(--line);
  padding: 24px;
  display: grid; gap: 14px;
  background: var(--bg);
  transition: border-color .15s;
}
.order:hover { border-color: var(--line-strong); }
.order-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
@media (max-width: 720px) {
  .order { padding: 18px; }
  .order-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .order-head > div { width: 100%; }
  .order-head > div:last-child { justify-content: space-between; }
}

/* ---- Common 2-col split ---- */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .split-2 { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* About page: timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .timeline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .timeline-grid { grid-template-columns: 1fr; } }

/* About page: big stats row */
.stats-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
@media (max-width: 900px) {
  .stats-row-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row-4 > div:nth-child(2) { border-right: 0 !important; }
}
@media (max-width: 480px) {
  .stats-row-4 { grid-template-columns: 1fr; }
  .stats-row-4 > div { border-right: 0 !important; border-bottom: 1px solid var(--line); }
}

/* Blog hero article */
.blog-hero-article {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .blog-hero-article { grid-template-columns: 1fr; gap: 24px; }
}

/* Contact (stores + map) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Quick view modal ---- */
.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.quickview-media {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; align-items: stretch; justify-content: stretch;
  overflow: hidden;
}
.quickview-media > div { flex: 1; display: flex; align-items: center; justify-content: center; }
@media (max-width: 720px) {
  .quickview-grid { grid-template-columns: 1fr; min-height: auto; }
  .quickview-media { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 1; }
}

/* ============================================================ */
/* ADMIN PANEL                                                  */
/* ============================================================ */

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 80px);
  background: var(--bg-2);
}

.admin-sidebar {
  background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column;
  border-right: 1px solid #ffffff10;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
}
[data-theme='dark'] .admin-sidebar { background: #050505; }

.admin-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #ffffff10;
  display: flex; flex-direction: column; gap: 6px;
}
.admin-brand img {
  width: 100%; height: auto;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
  filter: invert(1) hue-rotate(180deg);
}
.admin-brand-tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em;
  color: var(--blood); text-transform: uppercase;
}

.admin-user {
  padding: 16px 20px;
  display: flex; gap: 12px; align-items: center;
  border-bottom: 1px solid #ffffff10;
  color: var(--bone);
}

.admin-avatar {
  width: 38px; height: 38px;
  background: var(--blood); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .05em;
}
.admin-avatar.sm { width: 32px; height: 32px; font-size: 11px; background: var(--bg-2); color: var(--text); }

.admin-nav {
  flex: 1; padding: 12px 0;
  display: flex; flex-direction: column;
  gap: 0;
}
.admin-nav-section {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em;
  color: #ffffff50; text-transform: uppercase;
  padding: 14px 20px 6px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffffff90;
  text-align: left;
  border-left: 2px solid transparent;
  cursor: pointer;
}
.admin-nav-item:hover { background: #ffffff08; color: var(--bone); }
.admin-nav-item.on {
  background: #ffffff10; color: var(--bone);
  border-left-color: var(--blood);
}
.admin-nav-icon {
  display: inline-flex; width: 16px; height: 16px;
  align-items: center; justify-content: center;
}
.admin-nav-icon svg { width: 14px; height: 14px; }

.admin-nav-logout { color: var(--blood) !important; }
.admin-nav-logout:hover { color: #fff !important; background: var(--blood) !important; }

.admin-side-foot {
  padding: 12px 0;
  border-top: 1px solid #ffffff10;
}

/* ---- main content ---- */
.admin-main {
  padding: 32px 40px;
  min-width: 0;
}

.admin-page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.admin-page-head h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 52px);
  margin: 6px 0 0; line-height: .95;
  text-transform: uppercase; letter-spacing: -0.005em;
}

/* ---- KPI cards ---- */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-kpi {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 20px;
}
.admin-kpi-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em;
  color: var(--text-muted); text-transform: uppercase;
}
.admin-kpi-val {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1; margin: 10px 0 8px;
}
.admin-kpi-meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.admin-delta {
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  padding: 3px 6px;
}
.admin-delta.up { background: #ecfdf5; color: #15803d; }
.admin-delta.down { background: #fef2f2; color: var(--blood); }
[data-theme='dark'] .admin-delta.up { background: #052e1a; color: #4ade80; }
[data-theme='dark'] .admin-delta.down { background: #2a0008; color: #f87171; }

/* ---- 2-col / 3-col layouts ---- */
.admin-row-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.admin-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---- generic card ---- */
.admin-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 20px;
}
.admin-card.no-pad { padding: 0; }
.admin-card-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; margin-bottom: 4px;
}
.admin-card-head h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.admin-alert {
  border-color: var(--warn);
  background: linear-gradient(180deg, color-mix(in srgb, var(--warn) 8%, var(--bg)), var(--bg));
}

/* ---- table ---- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead th {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  background: var(--bg-2);
  position: sticky; top: 0; z-index: 1;
}
.admin-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table tbody tr:hover { background: var(--bg-2); }
.admin-table tbody tr:last-child td { border-bottom: 0; }

.admin-table-toolbar {
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

/* ---- pills & inline editors ---- */
.cat-pill {
  display: inline-block;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.stock-pill {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  padding: 4px 8px; display: inline-block;
}
.stock-pill.ok { background: #ecfdf5; color: #15803d; }
.stock-pill.low { background: #fffbeb; color: #b45309; }
.stock-pill.out { background: #fef2f2; color: var(--blood); }
[data-theme='dark'] .stock-pill.ok { background: #052e1a; color: #4ade80; }
[data-theme='dark'] .stock-pill.low { background: #2a1c00; color: #fbbf24; }
[data-theme='dark'] .stock-pill.out { background: #2a0008; color: #f87171; }

.coupon-code {
  font-family: var(--f-mono); font-size: 13px; font-weight: 700;
  padding: 6px 10px;
  background: var(--ink); color: var(--bone);
  letter-spacing: .08em;
}
[data-theme='dark'] .coupon-code { background: var(--bone); color: var(--ink); }

.status-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}
.status-toggle .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
}
.status-toggle.on .dot { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.status-toggle.off .dot { background: var(--text-muted); }

.inline-edit-display {
  padding: 4px 6px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
}
.inline-edit-display:hover { border-color: var(--line); background: var(--bg-2); }
.inline-edit {
  width: 100px;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  font-family: var(--f-mono);
  background: var(--bg);
  color: var(--text);
}
[data-theme='dark'] .inline-edit { border-color: var(--bone); }

.ic-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  font-size: 14px;
  color: var(--text-muted);
}
.ic-btn:hover { background: var(--bg-2); color: var(--text); }
.ic-btn-label { display: none; }

/* ---- admin tabs ---- */
.admin-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.admin-tab {
  padding: 12px 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  cursor: pointer;
}
.admin-tab.on { color: var(--text); border-color: var(--blood); }
.admin-tab:hover { color: var(--text); }

/* ---- responsive ---- */
.admin-nav-mobile { display: none; padding: 12px 16px; border-bottom: 1px solid #ffffff10; }
.admin-nav-select {
  width: 100%;
  background: #ffffff10;
  color: var(--bone);
  border: 1px solid #ffffff20;
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--bone) 50%), linear-gradient(135deg, var(--bone) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.admin-nav-select option, .admin-nav-select optgroup {
  background: var(--ink); color: var(--bone);
}

@media (max-width: 1100px) {
  .admin-row-2 { grid-template-columns: 1fr; }
  .admin-row-3 { grid-template-columns: 1fr 1fr; }
  .admin-kpi-grid { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 24px; }
}
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static; height: auto;
    border-right: 0; border-bottom: 1px solid #ffffff10;
  }
  .admin-brand img { max-height: 32px; }
  .admin-user { padding: 12px 16px; }
  .admin-nav { display: none; }
  .admin-side-foot {
    display: flex; flex-direction: row; gap: 8px; padding: 12px 16px;
    border-top: 1px solid #ffffff10;
  }
  .admin-side-foot .admin-nav-item {
    flex: 1;
    padding: 10px 12px;
    border-left: 0;
    background: #ffffff10;
    color: var(--bone);
    text-align: center;
    justify-content: center;
    font-size: 10px;
  }
  .admin-side-foot .admin-nav-item.admin-nav-logout {
    background: var(--blood); color: #fff;
  }
  .admin-nav-mobile { display: block; }
  .admin-main { padding: 24px 16px; }

  /* Tables → labeled card rows */
  .admin-table thead { display: none; }
  .admin-table { display: block; }
  .admin-table tbody, .admin-table tr, .admin-table td { display: block; }
  .admin-table tbody tr {
    padding: 16px;
    border: 1px solid var(--line);
    margin-bottom: 12px;
    background: var(--bg);
  }
  .admin-table tbody tr:hover { background: var(--bg); }
  .admin-table tbody tr:last-child { margin-bottom: 0; }
  .admin-table tbody td {
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline);
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: left;
  }
  .admin-table tbody td:last-child { border-bottom: 0; padding-bottom: 0; }
  .admin-table tbody td:first-child { padding-top: 0; }
  .admin-table tbody td[data-label]::before {
    content: attr(data-label);
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  /* Cells without a label span full width */
  .admin-table tbody td:not([data-label]) {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Hide checkbox-only header cell on mobile (bulk select is a desktop affordance) */
  .admin-table tbody td.bulk-select-cell {
    display: none;
  }
  /* Action cell becomes a row of proper labeled buttons */
  .admin-table tbody td.actions-cell {
    grid-template-columns: 1fr;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    display: block;
  }
  .admin-table tbody td.actions-cell > .row {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px;
    justify-content: flex-start;
  }
  .admin-table tbody td.actions-cell .ic-btn {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text);
  }
  .admin-table tbody td.actions-cell .ic-btn .ic-btn-label {
    display: inline;
  }
  .admin-table tbody td.actions-cell .ic-btn[data-variant="danger"] {
    border-color: var(--blood);
    color: var(--blood);
  }
  .admin-table tbody td.actions-cell .btn { flex: 1; }

  .admin-table-toolbar {
    flex-direction: column; align-items: stretch;
  }
  .admin-table-toolbar .search-input { max-width: none !important; }

  .admin-row-3 { grid-template-columns: 1fr; }
  .admin-page-head { flex-direction: column; align-items: stretch; }
  .admin-page-head > div:last-child { width: 100%; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .admin-kpi-grid { grid-template-columns: 1fr; }
}

/* ---- Product image uploader (admin drawer) ---- */
.product-image-uploader {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.product-image-preview {
  width: 140px; height: 140px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.product-image-empty {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.product-image-actions {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
@media (max-width: 540px) {
  .product-image-uploader { grid-template-columns: 1fr; }
  .product-image-preview { width: 100%; aspect-ratio: 1; height: auto; }
}

.no-pad { padding: 0 !important; }

/* ---- Page header (consistent across wishlist, search, etc.) ---- */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.page-title {
  font-size: clamp(40px, 7vw, 96px);
  margin: 6px 0 0; line-height: .9;
}
@media (max-width: 720px) {
  .page-header { gap: 12px; flex-direction: row; align-items: baseline; }
}

/* ============================================================ */
/* RESPONSIVE — mobile/tablet                                   */
/* ============================================================ */

/* Helpers shown only at certain breakpoints */
.mobile-only { display: none !important; }
.hide-on-mobile { display: inline-flex; }

/* ---- Mobile menu drawer ---- */
.mobile-drawer-scrim {
  position: fixed; inset: 0;
  background: #00000080;
  z-index: 110;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.mobile-drawer-scrim.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: min(340px, 88vw);
  background: var(--bg); color: var(--text);
  z-index: 111;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-nav {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 8px 0;
}
.mobile-drawer-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  font-family: var(--f-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  cursor: pointer;
  border-bottom: 1px solid var(--hairline);
}
.mobile-drawer-nav a.on { color: var(--blood); }
.mobile-drawer-nav a .arr { font-size: 16px; color: var(--text-muted); }
.mobile-drawer-divider { height: 16px; }
.mobile-drawer-foot {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

/* ---- Mobile search field below header ---- */
.mobile-search { display: none; padding: 10px 0 14px; }
.mobile-search .search-input { width: 100%; min-width: 0; }

/* ============== <= 1100px ============== */
@media (max-width: 1100px) {
  .wrap { padding: 0 24px; }
  .header-inner { gap: 16px; }
  .nav-link { padding: 8px 10px; font-size: 10px; letter-spacing: .12em; }
  .search-input { min-width: 0; }
  .hero h1 { font-size: clamp(54px, 9vw, 120px); }
  .hero { min-height: 540px; }
  .hero-side { width: 36%; }
  .section { padding: 64px 0; }
  .section-head { gap: 16px; }
}

/* ============== <= 900px (tablet) ============== */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section.tight { padding: 36px 0; }

  /* Hero — no side image, more focused */
  .hero { min-height: 480px; align-items: center; }
  .hero-side { display: none; }
  .hero-spec { display: none; }
  .hero h1 { font-size: clamp(48px, 12vw, 96px); }
  .hero-content { padding: 48px 0; }
  .hero-stats { gap: 24px; }
  .hero-stats .s-num { font-size: 32px; }

  /* Shop grid */
  .wrap.section > div[style*="gridTemplateColumns: '260px 1fr'"],
  .wrap.section > div[style*="grid-template-columns: 260px 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* PDP gallery layout already stacks at 1000 */

  /* Account sidebar already stacks at 880 */
  .acc-nav { position: static; }

  /* Newsletter section */
  section[style*="background:var(--ink)"] .wrap[style*="grid"] {
    grid-template-columns: 1fr !important;
  }

  /* About team / values */
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ============== <= 760px (mobile) ============== */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .section.tight { padding: 28px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: clamp(32px, 8vw, 48px); }
  .section-head .lead { max-width: none; }

  /* Header — show hamburger + mobile search, hide desktop nav + inline search */
  .mobile-only { display: inline-flex !important; }
  .hide-on-mobile { display: none !important; }
  .header-nav-desktop { display: none; }
  .header-search-wrap { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 8px; padding: 10px 0; }
  .header-logo { justify-self: center; }
  .header-logo img { height: 36px !important; }
  .header-left, .header-right { gap: 0; }
  .icon-btn { width: 38px; height: 38px; }
  .mobile-search { display: block; }

  /* Catstrip — fewer/smaller buttons */
  .catstrip a.hot { padding: 7px 12px; font-size: 11px; }
  .catstrip a.hot .kbd { font-size: 9px; padding: 2px 5px; }
  .catstrip-quiet { display: none; }
  .catstrip-spacer { display: none; }

  /* Announce — smaller */
  .announce { font-size: 10px; padding: 6px 0; }

  /* HERO — fully stack & lighter */
  .hero { min-height: 380px; }
  .hero h1 { font-size: clamp(44px, 13vw, 80px); line-height: 0.9; }
  .hero h1 .stroke { -webkit-text-stroke-width: 1.5px; }
  .hero-sub { font-size: 14px; margin-top: 20px; }
  .hero-cta { margin-top: 20px; gap: 8px; }
  .hero-cta .btn { padding: 12px 18px; font-size: 11px; }
  .hero-stats { gap: 18px; margin-top: 28px; }
  .hero-stats > div { min-width: 0; }
  .hero-stats .s-num { font-size: 28px; }
  .hero-stats .s-lab { font-size: 9px; }

  /* Card grids → 2 cols */
  .card-grid { gap: 16px; }
  .card-grid:not(.divided) { grid-template-columns: repeat(2, 1fr) !important; }
  .card-grid.divided { grid-template-columns: repeat(2, 1fr) !important; gap: 0; }
  .card-grid.divided > .pcard { padding: 12px; }

  /* Product card text — smaller */
  .pcard-name { font-size: 13px; }
  .pcard-price .now { font-size: 18px; }
  .pcard-fav { width: 30px; height: 30px; }
  .pcard-badge { font-size: 9px; padding: 3px 6px; }

  /* Categories grid */
  .cats {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    min-height: auto !important;
    gap: 8px;
  }
  .cat { min-height: 160px; }
  .cat:nth-child(1) { grid-row: auto !important; grid-column: span 2 !important; min-height: 220px; }
  .cat-label h3 { font-size: 22px; }
  .cat-label { left: 14px; right: 14px; bottom: 14px; }

  /* Brand strip */
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
  .brand-strip > div {
    padding: 18px 8px; font-size: 15px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .brand-strip > div:nth-child(3n) { border-right: 0; }

  /* Sale banner */
  .sale-banner-inner { padding: 28px 20px; gap: 18px; }
  .sale-banner-tick { font-size: 44px; }

  /* PLP — toolbar wrap */
  .product-list .product-row { padding: 14px 0; }

  /* Shop layout: stack filters + results */
  .wrap.section > div[style*="grid-template-columns: 260px 1fr"],
  .wrap.section > div[style*="gridTemplateColumns: '260px 1fr'"],
  .wrap.section > div[style*="gridTemplateColumns: '260px 1fr 1fr'"],
  .wrap.section > div[style*="gridTemplateColumns:'260px 1fr'"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .filters {
    position: static !important;
    max-height: none;
    padding: 16px;
  }
  .filters > .filter-block:nth-child(n+3) { display: none; }
  .filters.expanded > .filter-block { display: block; }
  .filters-toggle-mobile { display: block !important; }

  /* PDP price */
  .pdp-price .now { font-size: 38px; }
  .pdp-title { font-size: clamp(28px, 7vw, 40px); }

  /* Tabs — horizontal scroll */
  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; padding: 12px 16px; font-size: 10px; }

  /* Stepper */
  .stepper { gap: 0; }
  .step { padding: 12px 8px; gap: 8px; }
  .step .lab { font-size: 10px; }
  .step .lab .sub { display: none; }
  .step .n { width: 24px; height: 24px; font-size: 10px; }

  /* Cart layout */
  .wrap.section > div[style*="grid-template-columns: '1fr 380px'"],
  .wrap.section > div[style*="gridTemplateColumns: '1fr 380px'"],
  .wrap.section > div[style*="gridTemplateColumns:'1fr 380px'"],
  .wrap.section > div[style*="gridTemplateColumns: \"1fr 380px\""],
  .wrap.section > div[style*="gridTemplateColumns:'1fr 380px'"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* cart line rows */
  .wrap.section [style*="grid-template-columns: 120px 1fr 140px 120px"],
  .wrap.section [style*="gridTemplateColumns: '120px 1fr 140px 120px'"] {
    grid-template-columns: 80px 1fr !important;
  }
  .wrap.section [style*="grid-template-columns: 120px 1fr 140px 120px"] > *:nth-child(3),
  .wrap.section [style*="gridTemplateColumns: '120px 1fr 140px 120px'"] > *:nth-child(3),
  .wrap.section [style*="grid-template-columns: 120px 1fr 140px 120px"] > *:nth-child(4),
  .wrap.section [style*="gridTemplateColumns: '120px 1fr 140px 120px'"] > *:nth-child(4) {
    grid-column: 2 !important;
  }

  /* Hero stats wrap */
  .hero-stats { flex-wrap: wrap; }
  .hero-stats > div { flex-basis: 40%; }

  /* About hero / blog hero — smaller numbers */
  section[class="section"] [style*="grid-template-columns: repeat(4, 1fr)"],
  section[class="section"] [style*="gridTemplateColumns: 'repeat(4, 1fr)'"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Hero stats container - prevent ugly stacking */
  .hero-rider-label { left: 14px; right: 14px; bottom: 14px; }
  .hero-rider-name { font-size: 20px; }

  /* Footer */
  .footer-top { padding: 48px 0 32px; gap: 32px; }
  .footer-brand .footer-logo { width: 220px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 9px; }

  /* Drawer mini-cart */
  .drawer { width: 100%; }

  /* Modal — quick view */
  .modal-scrim { padding: 0; }
  .modal { max-height: 100vh; }
  .modal [style*="grid-template-columns: '1fr 1fr'"],
  .modal [style*="gridTemplateColumns: '1fr 1fr'"] {
    grid-template-columns: 1fr !important;
  }

  /* Login page */
  body > #app section[style*="grid-template-columns: '1fr 1fr'"],
  #app section[style*="gridTemplateColumns: '1fr 1fr'"],
  #app section[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }

  /* Hero split & flat */
  .hero.split, .hero.flat { min-height: 380px; }

  /* Contact stores list and map */
  .wrap.section > div[style*="grid-template-columns: '1fr 1.2fr'"],
  .wrap.section > div[style*="gridTemplateColumns: '1fr 1.2fr'"] {
    grid-template-columns: 1fr !important;
  }

  /* About manifesto + team — uses inline 1fr 1fr */
  section.section > .wrap[style*="grid-template-columns: '1fr 1fr'"],
  section.section > .wrap[style*="gridTemplateColumns: '1fr 1fr'"],
  section.section > .wrap[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Newsletter section in home */
  section[style*="80px 0"] > .wrap { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Order card */
  .order-head { flex-direction: column; align-items: flex-start; }

  /* Drawer-style filter button */
}

/* ============== <= 480px ============== */
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .section { padding: 36px 0; }

  .header-logo img { height: 30px !important; }
  .icon-btn { width: 36px; height: 36px; }

  .hero h1 { font-size: clamp(40px, 14vw, 64px); }
  .hero-stats > div { flex-basis: 45%; }

  /* Cards — go single column on tiny screens */
  .card-grid:not(.divided) { grid-template-columns: 1fr !important; }
  .card-grid.divided { grid-template-columns: 1fr !important; }

  /* Categories: 1 col except hero */
  .cats { grid-template-columns: 1fr !important; }
  .cat:nth-child(1) { grid-column: auto !important; }

  /* PDP price big */
  .pdp-price .now { font-size: 32px; }

  /* Section heads */
  .section-head h2 { font-size: clamp(28px, 9vw, 40px); }

  /* Brand strip more compact */
  .brand-strip { grid-template-columns: repeat(2, 1fr); }
  .brand-strip > div:nth-child(2n) { border-right: 0; }
  .brand-strip > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .brand-strip > div:last-child { border-right: 0; }

  /* Sale banner text */
  .sale-banner-tick { font-size: 32px; }

  /* Hero rider label */
  .hero-rider-name { font-size: 16px; }

  /* Stepper */
  .stepper { overflow-x: auto; }
  .step { min-width: 90px; }

  /* Footer cols */
  .footer-top { grid-template-columns: 1fr !important; }

  /* About big numbers */
  section.section [style*="grid-template-columns: repeat(4, 1fr)"],
  section.section [style*="gridTemplateColumns: 'repeat(4, 1fr)'"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Cart line text — smaller */
  .wrap.section [style*="grid-template-columns: 120px"] {
    grid-template-columns: 60px 1fr !important;
  }

  /* PLP product row mobile */
  .product-row { padding: 12px 0; }
}

/* ============== Touch behavior ============== */
@media (hover: none) {
  /* On touch, quick-view button visible always */
  .pcard-quick { opacity: 1; transform: translateY(0); }
}
