/* SECOND LOOK — replica of the reference boards.
   Every color below was pixel-sampled from the boards with ffmpeg:
   bg #030B12→#04101B, sidebar #09131B, active pill #101921, search #0C151C,
   rail #071119, card text bg #0D1113, lime #D3EA2C, discount chip #232B16,
   inactive pill #111B23, foot strip #0C1925. */

:root {
  --bg: #040D16;
  --bg-deep: #030B12;
  --panel: #09131B;
  --panel-2: #071119;
  --card: #0D1216;
  --raise: #101921;
  --pill: #111B23;
  --line: rgba(255, 255, 255, 0.07);
  --lime: #D3EA2C;
  --lime-ink: #131A04;
  --chip-olive: #232B16;
  --text: #F2F5F7;
  --text-2: #97A1AB;
  --text-3: #7E8891; /* AA (4.9:1+) on every surface it appears on */
  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --r-card: 16px;
  --r-panel: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: radial-gradient(120% 100% at 50% 0%, #06121D 0%, var(--bg-deep) 60%, #020810 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button { font-family: var(--font); cursor: pointer; }
a { color: var(--text); text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ================= SHELL ================= */
.shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  gap: 36px;
  max-width: 1672px;
  margin: 0 auto;
  padding: 14px 48px 24px 16px;
  min-height: 100vh;
}

/* ================= SIDEBAR ================= */
.sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 26px 16px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 14px;
  height: calc(100vh - 38px);
  min-height: 640px;
}
.wordmark {
  display: block;
  padding: 4px 18px 26px;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.04em;
  line-height: 1.02;
}
.wordmark span { display: block; position: relative; }
.swoosh { position: absolute; width: 27px; height: 11px; bottom: 2px; margin-left: 3px; }

.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--text-2);
  font-size: 15px; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.side-link svg { width: 21px; height: 21px; }
.side-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.side-link.active { color: var(--text); background: var(--raise); }

.side-divider { height: 1px; background: var(--line); margin: 16px 10px; }

.user-card {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
}
.user-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.user-meta { flex: 1; min-width: 0; }
.user-name { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; }
.user-sub { display: block; font-size: 12px; color: var(--text-3); }
.chev { width: 16px; height: 16px; color: var(--text-2); }
.verified { width: 15px; height: 15px; stroke-width: 2; }
.verified.sm { width: 13px; height: 13px; display: inline; vertical-align: -2px; }

/* ================= MAIN / TOPBAR ================= */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 22px;
  padding: 6px 0 18px;
}
.m-brand { display: none; }
.search {
  display: flex; align-items: center; gap: 10px;
  flex: 0 1 494px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 20px;
  color: var(--text-3);
}
.search svg { width: 19px; height: 19px; }
.search input {
  flex: 1; min-width: 0;
  background: none; border: none;
  color: var(--text);
  font-family: var(--font); font-size: 15px;
}
.search input:focus { outline: none; } /* the wrapper carries the ring instead */
.search:focus-within { border-color: var(--lime); }
.search input::placeholder { color: var(--text-3); }
.cats { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cat {
  background: none; border: none;
  color: var(--text-2);
  font-size: 14.5px; font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.cat:hover { color: var(--text); }
.cat.active { background: var(--chip-olive); color: var(--lime); font-weight: 600; }
.top-icons { display: flex; gap: 8px; }
.icon-btn {
  position: relative;
  background: none; border: none;
  color: var(--text);
  padding: 8px;
  border-radius: 12px;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.05); }
.icon-btn svg { width: 22px; height: 22px; }
.badge[hidden] { display: none; }
.badge {
  position: absolute; top: 1px; right: 0;
  background: var(--lime); color: var(--lime-ink);
  font-size: 10.5px; font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ================= VIEWS ================= */
.view { display: none; }
.view.active { display: block; animation: view-in 0.45s var(--ease); }
@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .view.active { animation: none; }
}

/* ================= HOME ================= */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 0 20px;
  align-items: start;
}
.home-left { min-width: 0; grid-column: 1; grid-row: 1; }
.home-grid .rail { grid-column: 2; grid-row: 1 / 3; }
.home-grid .row-head { grid-column: 1; grid-row: 2; }
.home-grid .picks { grid-column: 1 / -1; grid-row: 3; }
.home-grid .feature-strip { grid-column: 1 / -1; grid-row: 4; }

.hero-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: linear-gradient(90deg, #0C1319 0%, #0D151A 45%, #10181D 100%);
  border: 1px solid var(--line);
  min-height: 393px;
  display: flex;
}
.hero-img {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 63%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero-copy {
  position: relative;
  padding: 44px 44px 34px;
  max-width: 46%;
  display: flex; flex-direction: column;
}
.hero-copy h1 {
  margin: 44px 0 0;
  font-size: clamp(30px, 2.9vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.hero-copy p {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
}
.btn-lime {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  align-self: flex-start;
  margin-top: 26px;
  background: var(--lime);
  color: var(--lime-ink);
  border: none;
  border-radius: 999px;
  font-size: 15.5px; font-weight: 600;
  padding: 14px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s;
}
.btn-lime svg { width: 18px; height: 18px; stroke-width: 2; }
.btn-lime:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(211, 234, 44, 0.25); }
.btn-lime:active { transform: translateY(0) scale(0.98); }
.btn-wide { align-self: stretch; width: 100%; margin-top: 18px; padding: 15px 26px; }

.community {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  color: var(--text-2);
  font-size: 13.5px; line-height: 1.35;
  padding-top: 28px;
}
.community img { height: 34px; border-radius: 999px; }

/* row head */
.row-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 26px 2px 16px;
}
.row-head h2 {
  margin: 0;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.08em;
}
.view-all {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-2); font-size: 14px;
}
.view-all:hover { color: var(--text); }
.view-all svg { width: 15px; height: 15px; }

/* product cards */
.picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 296px));
  justify-content: flex-start;
  gap: 20px;
  margin-top: 16px;
}
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  text-align: left;
  padding: 0;
  color: var(--text);
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.card-media { display: block; position: relative; aspect-ratio: 292 / 126; background: #0A0F13; overflow: hidden; }
.card.tall .card-media { aspect-ratio: 249 / 164; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.heart {
  position: absolute; top: 12px; right: 12px;
  background: rgba(10, 14, 18, 0.35);
  border: 1.4px solid rgba(255, 255, 255, 0.75);
  color: rgba(255, 255, 255, 0.9);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
  z-index: 2;
}
.heart svg { width: 17px; height: 17px; }
@media (prefers-reduced-motion: no-preference) {
  .heart:hover { transform: scale(1.1); }
}
.heart[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.heart[aria-pressed="true"] svg { fill: var(--lime-ink); }
@media (prefers-reduced-motion: no-preference) {
  .heart.pop { animation: heart-pop 0.35s var(--ease); }
}
@keyframes heart-pop { 50% { transform: scale(1.3); } }
.card-body { display: block; padding: 14px 16px 16px; }
.card-name { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; margin: 0; }
.card-sub { display: block; color: var(--text-2); font-size: 13px; margin: 3px 0 0; }
.card-price { display: flex; align-items: center; gap: 9px; margin-top: 9px; flex-wrap: wrap; row-gap: 4px; }
.card-price .now { font-size: 18px; font-weight: 700; }
.card-price s { color: var(--text-3); font-size: 14px; }
.chip-off {
  background: var(--chip-olive);
  color: var(--lime);
  font-size: 12px; font-weight: 600;
  border-radius: 999px;
  padding: 5px 10px;
}
.card-price .chip-off { margin-left: auto; }

/* feature strip */
.feature-strip {
  margin-top: 24px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 8px;
}
.feature {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 22px;
  font-size: 13px; color: var(--text-2); line-height: 1.4;
}
.feature + .feature { border-left: 1px solid var(--line); }
.feature b { display: block; color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.f-icon {
  width: 44px; height: 44px; flex: none;
  border: 1.4px solid rgba(151, 190, 60, 0.55);
  color: #B9CF57;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.f-icon svg { width: 20px; height: 20px; }

/* ================= TRY-ON RAIL ================= */
.rail {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 26px 24px;
  position: sticky;
  top: 14px;
}
.rail-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: 0.01em; }
.rail-title em { font-style: normal; color: var(--lime); }
.rail-sub { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.rail-label {
  margin: 24px 0 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-2);
}
.athletes { display: flex; gap: 20px; }
.athlete {
  padding: 3px;
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.athlete img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.athlete:hover { transform: scale(1.06); }
.athlete.selected { border-color: var(--lime); }
.spec-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px;
}
.spec-label {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-2);
}
.spec-label svg { width: 17px; height: 17px; color: #C77AB6; }
.spec-row:first-of-type .spec-label svg { color: #6FB1E8; }
.spec-select {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--pill);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13.5px; font-weight: 500;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 150px;
  transition: border-color 0.2s;
}
.spec-select:hover { border-color: rgba(255, 255, 255, 0.2); }
.spec-select svg { width: 15px; height: 15px; color: var(--text-2); }
.fits { display: flex; gap: 8px; }
.fit {
  flex: 1;
  background: var(--pill);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 500;
  border-radius: 999px;
  padding: 10px 6px;
  transition: all 0.2s;
}
.fit:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }
.fit.selected { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 600; }

/* ================= DISCOVER ================= */
.disc-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.disc-left { min-width: 0; }
.results-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 6px 2px 18px;
}
.results-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.results-count { color: var(--text-2); font-size: 14px; font-weight: 400; margin-left: 10px; }
.sort { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pill);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13.5px; font-weight: 500;
  border-radius: 999px;
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.filter-pill:hover { border-color: rgba(255, 255, 255, 0.2); }
.filter-pill svg { width: 14px; height: 14px; color: var(--text-2); }
.clear-all { background: none; border: none; color: var(--lime); font-size: 13.5px; font-weight: 600; margin-left: 6px; }
.clear-all:hover { text-decoration: underline; }
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.seller-rail { text-align: center; }
.seller-head { margin: 0 0 18px; font-size: 16px; font-weight: 600; text-align: left; }
.seller-avatar { position: relative; width: 104px; margin: 8px auto 0; }
.seller-avatar img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--lime); padding: 3px; }
.seller-star {
  position: absolute; right: 2px; bottom: 4px;
  width: 24px; height: 24px;
  background: var(--lime);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.seller-star svg { width: 13px; height: 13px; stroke: none; }
.seller-name { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 19px; font-weight: 700; }
.seller-rating { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 14.5px; }
.seller-rating .star { width: 16px; height: 16px; stroke: none; }
.seller-rating span { color: var(--text-2); }
.seller-blurb { margin: 10px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

/* ================= PRODUCT ================= */
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); margin: 4px 2px 16px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumb-here { color: var(--text); }
.prod-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.gallery-main {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0A0F13;
}
.gallery-main img { width: 100%; height: 548px; object-fit: cover; }
.heart.big { width: 42px; height: 42px; top: 16px; right: 16px; }
.thumbs { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.thumb-nav {
  width: 36px; height: 36px; flex: none;
  background: var(--pill);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.thumb-nav svg { width: 16px; height: 16px; }
.thumb-strip { flex: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumb-strip img { width: 100%; aspect-ratio: 640 / 110; object-fit: cover; }

.prod-info {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 26px 26px 24px;
}
.chip-vintage {
  display: inline-block;
  border: 1.4px solid var(--lime);
  color: var(--lime);
  font-size: 12.5px; font-weight: 600;
  border-radius: 999px;
  padding: 5px 14px;
}
.prod-title-row { display: flex; justify-content: space-between; gap: 18px; margin-top: 14px; }
.prod-title-row h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.prod-price { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.prod-price .now { font-size: 28px; font-weight: 700; }
.prod-price s { color: var(--text-3); font-size: 17px; margin-left: 6px; }
.detail-rows { margin-top: 20px; border-top: 1px solid var(--line); }
.d-row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.d-row > svg { width: 21px; height: 21px; color: var(--text-2); }
.d-row b { display: block; font-size: 14.5px; font-weight: 600; }
.d-row span { color: var(--text-2); font-size: 13px; }
.d-row div { flex: 1; }
.d-link { color: var(--lime); font-size: 13px; font-weight: 500; white-space: nowrap; }
.d-link:hover { text-decoration: underline; }
.wear { margin-top: 18px; font-size: 14px; }
.wear b { font-size: 14.5px; }
.wear p { margin: 5px 0 0; color: var(--text-2); font-size: 13.5px; }
.sold-by {
  margin-top: 18px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.sold-label { color: var(--text-2); font-size: 12.5px; }
.sold-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sold-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sold-row div { flex: 1; }
.sold-row b { display: flex; align-items: center; gap: 5px; font-size: 14.5px; }
.sold-row span { color: var(--text-2); font-size: 12.5px; }
.buy-row { display: flex; gap: 12px; margin-top: 22px; }
.btn-buy { flex: 1; margin-top: 0; padding: 16px 26px; font-size: 16px; }
.btn-buy svg { width: 19px; height: 19px; }
.heart.circle {
  position: static;
  width: 52px; height: 52px;
  background: none;
  border: 1.4px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
}
.view-product .feature-strip { margin-top: 22px; }

/* ================= TOAST / TABBAR ================= */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200;
  transform: translate(-50%, 80px);
  background: var(--lime); color: var(--lime-ink);
  font-size: 14px; font-weight: 600;
  border-radius: 999px;
  padding: 13px 22px;
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
  pointer-events: none;
  max-width: min(90vw, 480px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.tabbar { display: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1280px) {
  .home-grid { grid-template-columns: 1fr 300px; }
  .picks, .results { grid-template-columns: repeat(3, 1fr); }
  .cats { display: none; }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; padding: 14px 16px 96px; }
  .sidebar { display: none; }
  .home-grid, .disc-grid { grid-template-columns: 1fr; }
  .home-grid .rail, .home-grid .row-head, .home-left,
  .home-grid .picks, .home-grid .feature-strip { grid-column: 1; grid-row: auto; }
  .home-grid .rail { margin-top: 16px; }
  .home-grid .row-head { margin-top: 26px; }
  .rail { position: static; }
  .picks, .results { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: 1fr; }
  .gallery-main img { height: auto; aspect-ratio: 782 / 548; }
  .feature-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature + .feature { border-left: none; }
  .hero-copy { max-width: 60%; padding: 30px; }
  .hero-copy h1 { margin-top: 10px; }

  .tabbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150;
    display: flex;
    background: rgba(9, 19, 27, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px 6px;
  }
  .tab {
    flex: 1;
    background: none; border: none;
    color: var(--text-2);
    font-size: 11px; font-weight: 500;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 6px 0;
  }
  .tab svg { width: 21px; height: 21px; }
  .tab.active { color: var(--lime); }
}
@media (max-width: 640px) {
  .shell { padding: 10px 14px 96px; }
  .topbar { flex-wrap: wrap; gap: 14px; padding-bottom: 8px; }
  .m-brand {
    display: block;
    font-weight: 800; font-size: 21px; letter-spacing: 0.04em; line-height: 1.02;
    order: 0;
  }
  .m-brand span { display: block; position: relative; }
  .search { flex: 1 1 100%; order: 2; }
  .top-icons { margin-left: auto; order: 1; }
  .icon-btn:first-child { display: none; } /* mobile board header shows only the bag */
  .cats {
    display: flex; order: 3; flex: 1 1 100%;
    margin: 0; overflow-x: auto; padding-bottom: 4px;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: none; }
  .picks, .results { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-media, .card.tall .card-media { aspect-ratio: 407 / 200; }
  .hero-card { flex-direction: column; min-height: 0; }
  .hero-img { position: relative; width: 100%; height: 230px; order: 2;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 25%); }
  .hero-copy { max-width: none; padding: 26px 22px 0; }
  .hero-copy h1 { margin-top: 0; font-size: 30px; }
  .community { display: none; }
  .results-head { flex-wrap: wrap; }
  .results-head h1 { font-size: 21px; }
  .feature-strip { grid-template-columns: 1fr; }
  .prod-title-row { flex-direction: column; }
  .prod-price { text-align: left; }
}
