/* Monochrome, dark by default. The only colour is BBDbuy orange on buy buttons. */
:root {
  --bg: #F3F3F1;
  --surface: #FFFFFF;
  --surface-2: #E7E7E4;
  --text: #121212;
  --muted: #62625E;
  --line: rgba(18, 18, 18, .12);
  --btn: #121212;
  --btn-text: #FFFFFF;
  --buy: #F36906;
  --wordmark: rgba(18, 18, 18, .07);
  --logo-filter: none;
  /* sign-up banner: white in light mode, dark in dark mode */
  --promo-bg: #FFFFFF; --promo-text: #121212; --promo-ink: #121212; --promo-glow: rgba(243, 105, 6, .2); --promo-pic: grayscale(1) contrast(1.05);

  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --wide: "wdth" 125;
  --r: 8px;
  --page: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --surface: #1B1B1B; --surface-2: #252525; --text: #F5F5F3; --muted: #9B9B96;
    --line: rgba(255, 255, 255, .1); --btn: #F5F5F3; --btn-text: #121212; --wordmark: rgba(255, 255, 255, .06); --logo-filter: invert(1);
    --promo-bg: #14100C; --promo-text: #FFFFFF; --promo-ink: #FFF1E2; --promo-glow: rgba(243, 105, 6, .42); --promo-pic: grayscale(1) brightness(.75) contrast(1.15);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --surface: #1B1B1B; --surface-2: #252525; --text: #F5F5F3; --muted: #9B9B96;
  --line: rgba(255, 255, 255, .1); --btn: #F5F5F3; --btn-text: #121212; --wordmark: rgba(255, 255, 255, .06); --logo-filter: invert(1);
  --promo-bg: #14100C; --promo-text: #FFFFFF; --promo-ink: #FFF1E2; --promo-glow: rgba(243, 105, 6, .42); --promo-pic: grayscale(1) brightness(.75) contrast(1.15);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--btn); color: var(--btn-text); padding: 8px 14px; border-radius: var(--r); z-index: 50; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Wide heavy uppercase headings carry the gym-brand feel. */
.display, h1, h2 {
  font-family: var(--display); font-variation-settings: var(--wide); font-weight: 900;
  text-transform: uppercase; line-height: .95; letter-spacing: -.01em; margin: 0;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { margin: 0; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 50ch; margin: 18px 0 0; }

[data-gender] { display: none !important; } /* Women switched off for now, see WOMEN in app.js */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r); font: 600 .98rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.btn--solid { background: var(--btn); color: var(--btn-text); }
.btn--solid:hover { opacity: .86; }
.btn--line { background: transparent; color: var(--text); border-color: var(--text); }
.btn--line:hover { background: var(--surface-2); }
.btn--buy { background: var(--buy); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn--wide { width: 100%; }

/* ---------- header ---------- */
.strip { border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.strip ul { list-style: none; margin: 0 auto; padding: 9px var(--gutter); max-width: var(--page); display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap; }
.strip a { color: var(--text); font-weight: 600; }
.head { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font: 900 1.25rem/1 var(--display); font-variation-settings: var(--wide); text-transform: uppercase; text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.head__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cur select { height: 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--text); font: 600 .88rem var(--body); padding: 0 8px; cursor: pointer; }
.head__search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: var(--r); padding: 0 12px; height: 40px; width: 240px; }
.head__search input { border: 0; background: none; color: var(--text); font: inherit; font-size: .92rem; width: 100%; outline: none; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.iconbtn { width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line); background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: var(--surface-2); }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme .sun { display: none; }
  :root:not([data-theme]) .theme .moon { display: block; }
}

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section { padding-top: 0; }
.section[hidden] + .section { padding-top: clamp(48px, 7vw, 88px); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head p { color: var(--muted); margin: 10px 0 0; }
.more { font-weight: 600; white-space: nowrap; }

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.pagehead { padding: clamp(40px, 6vw, 72px) 0 28px; }
.hero__search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 32px; height: 56px; padding: 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.hero__search:focus-within { border-color: var(--text); }
.hero__search input { flex: 1; border: 0; background: none; color: var(--text); font: inherit; font-size: 1.05rem; outline: none; min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Category tiles: black-and-white product photo with the name on top. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #1B1B1B;
  display: grid; place-items: center; text-decoration: none; border: 1px solid var(--line);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; filter: grayscale(1); opacity: .35; }
.tile span { position: relative; font: 900 clamp(1.4rem, 2.4vw, 2rem)/1 var(--display); font-variation-settings: var(--wide); text-transform: uppercase; color: #fff; text-align: center; padding: 0 12px; }
.tile small { position: absolute; bottom: 12px; left: 14px; color: rgba(255,255,255,.75); font-weight: 600; font-size: .85rem; }
.tile:hover img { opacity: .5; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }
.row:has(> .empty) { display: block; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card:hover { border-color: var(--text); }
.card__img { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font: 900 1.1rem var(--display); font-variation-settings: var(--wide); text-transform: uppercase; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--btn); color: var(--btn-text); font: 800 .68rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px; }
.tag--top { background: linear-gradient(135deg, #F59E0B, #FDE68A); color: #2A1A00; }
.chips .tag { position: static; align-self: center; }
.save { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
[data-save][aria-pressed="true"] .icon { fill: currentColor; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card__cat { color: var(--muted); font-size: .8rem; font-weight: 600; }
.card__meta { align-items: center; min-height: 16px; margin-bottom: 4px; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; }
.card__rating { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.card__rating small { color: var(--muted); font-weight: 600; }
.card__title { font: 800 1rem/1.2 var(--display); font-variation-settings: var(--wide); text-transform: uppercase; text-decoration: none; }
.card__title::after { content: ""; position: absolute; inset: 0; } /* whole card opens the find */
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.price { font: 800 1.15rem/1 var(--display); font-variation-settings: var(--wide); }
.card .btn { position: relative; z-index: 1; }
.card .save { z-index: 1; }

.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 56px 16px; border: 1px dashed var(--line); border-radius: var(--r); }

/* ---------- sign-up banner: a campaign banner, dark in both themes ---------- */
.promo {
  --promo: #F36906;
  position: relative; isolation: isolate; overflow: hidden; color: var(--promo-text);
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px clamp(18px, 3vw, 40px);
  min-height: 128px; padding: 18px clamp(18px, 3vw, 32px);
  border: 1.5px solid var(--promo); border-radius: 6px;
  background: radial-gradient(90% 160% at 0% 100%, var(--promo-glow), transparent 60%), var(--promo-bg);
}
.promo__link { position: absolute; inset: 0; z-index: 2; }
.promo__badge {
  margin: 0; transform: rotate(-7deg); text-align: center; text-transform: uppercase;
  font: 400 clamp(1.7rem, 3.6vw, 2.6rem)/.86 "Shrikhand", var(--display); color: var(--promo-ink);
  text-shadow: 2px 2px 0 var(--promo), 3px 3px 0 var(--promo), 0 0 22px var(--promo-glow);
}
.promo__badge::after { content: "✦"; position: absolute; right: -14px; bottom: -6px; font-size: .5em; color: var(--promo-ink); text-shadow: none; }
.promo__offer { margin: 0; font: italic 900 clamp(1.35rem, 3vw, 2.2rem)/1 var(--display); font-variation-settings: "wdth" 100; text-transform: uppercase; letter-spacing: -.01em; }
.promo__offer b { color: var(--promo); }
.promo__code { margin: 8px 0 0; font: 600 .8rem/1.3 var(--body); opacity: .7; }
.promo__pics { --pad: 18px; align-self: stretch; margin-block: calc(-1 * var(--pad)); z-index: -1; overflow: hidden; display: flex; justify-content: flex-end; mask-image: linear-gradient(to right, transparent, #000 45%); }
.promo__pics img { height: 100%; max-height: 150px; aspect-ratio: 1; object-fit: contain; padding: 8px 0; filter: var(--promo-pic); margin-left: -6%; }
.promo__cta { position: relative; z-index: 1; }
.promo:hover { border-color: #FF8A33; }
.product__info .promo { grid-template-columns: auto auto minmax(0, 1fr); min-height: 112px; margin-top: 4px; }
.product__info .promo__cta { display: none; }
.product__info .promo__pics { max-width: 36%; }
/* Home: right under the hero. Finds: a slim strip above the filters, so the products still show first. */
.join { margin-block: 20px 4px; }
.join--slim { margin-block: 0 18px; }
.join--slim .promo { min-height: 0; padding: 12px clamp(16px, 3vw, 28px); }
.join--slim .promo__pics { --pad: 12px; }
.join--slim .promo__badge { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.join--slim .promo__offer { font-size: clamp(1.15rem, 2.4vw, 1.6rem); }
@media (max-width: 560px) {
  .promo { grid-template-columns: auto 1fr; padding: 16px; gap: 12px 18px; }
  .promo__cta { grid-column: 1 / -1; width: 100%; min-height: 42px; }
  .promo__badge { font-size: 1.5rem; }
  .promo__pics { position: absolute; inset: 0 0 70px auto; margin: 0; width: 46%; } /* 70px = button row, so the pictures stop above it */
  .join--slim .promo { padding: 12px 14px; }
}

/* ---------- how to order ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: s; }
.steps li { counter-increment: s; padding: 24px 24px 0 0; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 900 2.2rem/1 var(--display); font-variation-settings: var(--wide); margin-bottom: 14px; }
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- how-to-order guide page (/how) ---------- */
.guide__steps { list-style: none; margin: 0 0 40px; padding: 0; counter-reset: g; display: grid; gap: 14px; }
.gstep {
  counter-increment: g; display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: 20px 40px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 32px);
}
.gstep:not(:has(.gstep__shot)) { grid-template-columns: 1fr; }
.gstep__text { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-content: start; }
.gstep__text::before {
  content: counter(g); grid-row: span 9; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--buy); color: #fff; font: 900 1.2rem/1 var(--display);
}
.gstep h2 { font: 800 clamp(1.15rem, 2.2vw, 1.45rem)/1.2 var(--body); text-transform: none; letter-spacing: 0; margin: 8px 0 10px; }
.gstep p, .gstep__marks { margin: 0 0 10px; color: var(--muted); max-width: 60ch; }
.gstep b { color: var(--text); }
.gstep__marks { padding-left: 0; list-style: none; counter-reset: m; display: grid; gap: 8px; }
.gstep__marks li { counter-increment: m; display: flex; gap: 10px; align-items: baseline; }
.gstep__marks li::before { content: counter(m); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--buy); color: var(--text); font: 800 .75rem/1 var(--body); }
.gstep__shot { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55); }
.guide__more { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }
@media (max-width: 760px) {
  .gstep { grid-template-columns: 1fr; }
  .gstep__shot { max-width: 340px; justify-self: center; }
}

/* ---------- social / discord blocks ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; align-items: start; }
.panel h3 { font: 900 1.5rem/1 var(--display); font-variation-settings: var(--wide); text-transform: uppercase; }
.panel p { margin: 0; color: var(--muted); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); max-width: 780px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 66ch; }

/* ---------- finds page ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 700 .82rem/1 var(--body); text-transform: uppercase; letter-spacing: .03em; padding: 11px 16px; border-radius: var(--r); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.filters { display: grid; gap: 14px; }
.pills:has(.pillrow) { display: grid; gap: 8px; }
.pillrow { display: flex; flex-wrap: wrap; gap: 8px; }
.pillrow--sub { padding-left: 14px; border-left: 2px solid var(--line); }
.pillrow--sub .pill { padding: 8px 13px; font-size: .76rem; background: transparent; }
.pillrow--sub .pill[aria-pressed="true"] { background: var(--btn); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; padding: 16px 0; margin: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar__right { display: flex; gap: 10px; align-items: center; }
.field { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.field input, .field select { border: 0; background: none; color: var(--text); font: inherit; font-size: .92rem; outline: none; }
.field select { cursor: pointer; }
.count { color: var(--muted); font-size: .92rem; }

/* ---------- product page ---------- */
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: .9rem; padding: 24px 0; }
.crumbs a { color: var(--text); font-weight: 600; text-decoration: none; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.product__img { aspect-ratio: 1; background: var(--surface-2); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; gap: 10px; min-width: 0; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.thumb[aria-pressed="true"] { border: 2px solid var(--text); }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.rate__avg { font-weight: 700; }
.rate__stars { display: flex; }
.rate__stars button { background: none; border: 0; padding: 2px 3px; font-size: 1.6rem; line-height: 1; color: var(--line); cursor: pointer; }
.rate__stars button[aria-pressed="true"] { color: var(--text); }
.rate__stars:hover button { color: var(--text); }
.rate__stars button:hover ~ button { color: var(--line); }
.rate .hint { flex-basis: 100%; }
.product__info { display: flex; flex-direction: column; gap: 14px; }
.product__info h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.product__price { font: 900 2rem/1 var(--display); font-variation-settings: var(--wide); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface-2); border-radius: 4px; padding: 6px 10px; font-size: .82rem; font-weight: 600; text-decoration: none; }
a.chip:hover { text-decoration: underline; }
.howbox { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.howbox h3 { font-size: 1rem; margin-bottom: 8px; }
.howbox ol { margin: 0 0 10px; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.howbox a { font-weight: 700; font-size: .92rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.product__note { color: var(--muted); margin: 0; font-size: 1.02rem; }
.product__actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.product__actions .btn--buy { min-height: 54px; font-size: 1.05rem; }
.product__actions .iconbtn { width: 54px; height: 54px; }
.hint { font-size: .9rem; color: var(--muted); margin: 0; }
.hint a { color: var(--text); font-weight: 700; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 88px); overflow: hidden; }
.foot__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 48px; }
.foot h4 { margin: 0 0 12px; font-size: .95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot p { color: var(--muted); margin: 12px 0 0; max-width: 46ch; font-size: .92rem; }
.foot__mark { font: 900 min(9vw, 7.4rem)/.85 var(--display); font-variation-settings: var(--wide); text-transform: uppercase; color: var(--wordmark); white-space: nowrap; margin: 48px 0 -0.08em; text-align: center; letter-spacing: -.02em; }

/* ---------- brands: official logo in muted grey under the name, like a product subtitle ---------- */
.brand { --bh: 13px; display: inline-flex; align-items: center; max-width: 100%; min-height: var(--bh); color: var(--muted); text-decoration: none; }
.brand img { height: calc(var(--bh) * var(--s, 1)); width: auto; max-width: 100%; object-fit: contain; object-position: left center; filter: var(--logo-filter); opacity: .6; }
.brand--text { font: 800 calc(var(--bh) * .9)/1 var(--display); font-variation-settings: var(--wide); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
a.brand:hover img { opacity: .9; }
a.brand.brand--text:hover { color: var(--text); }
.card__body > .brand { --bh: 14px; margin-top: 5px; }
.place__info .brand { --bh: 13px; }
.place__info .brand img { object-position: center; }
.toprow__main .brand { --bh: 11px; }
.product__name { display: grid; gap: 12px; justify-items: start; }
.product__name .brand { --bh: 24px; }
.brandwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); gap: 12px; }
.brandwall .brand {
  --bh: 1.3rem; justify-content: center; height: clamp(110px, 14vw, 150px); padding: 22px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s ease;
}
.brandwall .brand:hover { border-color: var(--text); }
.brandwall .brand img { height: auto; max-height: 100%; max-width: 78%; object-position: center; opacity: 1; }
.brandbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.brandbtn { --bh: 15px; display: inline-flex; align-items: center; height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; }
.brandbtn .brand { --bh: 15px; }
.brandbtn .brand img { opacity: .45; }
.brandbtn:hover .brand img { opacity: .8; }
.brandbtn[aria-pressed="true"] { border-color: var(--text); }
.brandbtn[aria-pressed="true"] .brand { color: var(--text); }
.brandbtn[aria-pressed="true"] .brand img { opacity: 1; }

/* ---------- men / women switch ---------- */
.seg { display: flex; height: 40px; border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; color: var(--muted); font: 700 .82rem/1 var(--body); padding: 0 12px; border-radius: 5px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }
.mobile-nav .seg { height: 34px; flex: none; }
.mobile-nav { align-items: center; }

/* ---------- top products podium ---------- */
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: clamp(8px, 2vw, 20px); }
.place { display: flex; flex-direction: column; min-width: 0; text-align: center; }
.place--1 { order: 2; } .place--2 { order: 1; } .place--3 { order: 3; }
.place__img { display: block; aspect-ratio: 1; width: min(100%, 280px); margin: 0 auto; }
.place__img img { width: 100%; height: 100%; object-fit: contain; }
.place__img .noimg { background: var(--surface-2); border-radius: var(--r); }
.place__info { display: grid; justify-items: center; gap: 8px; padding: 14px 4px 16px; }
.place__title { font: 800 1rem/1.2 var(--display); font-variation-settings: var(--wide); text-transform: uppercase; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.place__step { display: grid; place-items: start center; padding-top: 10px; border-radius: var(--r) var(--r) 0 0; }
.place__step span { font: 900 clamp(2.6rem, 6vw, 4.6rem)/1 var(--display); font-variation-settings: var(--wide); }
.place--1 .place__step { height: clamp(110px, 16vw, 170px); background: linear-gradient(170deg, #FDE68A, #F59E0B 55%, #B45309); color: #2A1A00; }
.place--2 .place__step { height: clamp(80px, 11vw, 120px); background: linear-gradient(170deg, #F1F5F9, #CBD5E1 55%, #64748B); color: #1E2733; }
.place--3 .place__step { height: clamp(56px, 8vw, 84px); background: linear-gradient(170deg, #FDBA74, #C2410C 60%, #7C2D12); color: #fff; }
.podium + .toplist { border-top: 2px solid var(--text); }
.toplist { list-style: none; margin: 0; padding: 0; counter-reset: rank 3; }
.toplist:empty { display: none; }
.toprow { counter-increment: rank; position: relative; display: grid; grid-template-columns: 48px 56px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toprow::before { content: counter(rank); font: 900 1.5rem/1 var(--display); font-variation-settings: var(--wide); color: var(--muted); }
.toprow__img { width: 56px; height: 56px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.toprow__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.toprow__main { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.toprow__title { font: 800 .95rem/1.2 var(--display); font-variation-settings: var(--wide); text-transform: uppercase; text-decoration: none; }
.toprow__title::after { content: ""; position: absolute; inset: 0; }
.toprow .btn { position: relative; z-index: 1; }

/* ---------- QC photos on a find ---------- */
.qc { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; justify-items: start; }
.qc__head { display: flex; justify-content: space-between; align-items: baseline; width: 100%; gap: 12px; }
.qc__head h3 { margin: 0; font: 900 1.1rem/1 var(--display); font-variation-settings: var(--wide); text-transform: uppercase; }
.qc__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.qc__thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.qc__thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.viewer { border: 0; padding: 0; background: none; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.viewer::backdrop { background: rgba(0, 0, 0, .88); }
.viewer[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.viewer img { max-width: min(100vw - 32px, 1000px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: var(--r); }
.viewer__bar { display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff; font-weight: 700; }
.viewer__bar .iconbtn { color: #fff; border-color: rgba(255, 255, 255, .3); font-size: 1.6rem; }

@media (max-width: 760px) {
  .head__right .seg { display: none; }
  .place__info { padding: 10px 0 12px; gap: 6px; }
  .place__title { font-size: .72rem; }
  .place .price { font-size: .9rem; }
  .toprow { grid-template-columns: 28px 48px 1fr auto; gap: 4px 10px; }
  .toprow::before { grid-row: span 2; font-size: 1.1rem; }
  .toprow__img { grid-row: span 2; width: 48px; height: 48px; }
  .toprow .price { grid-column: 3; grid-row: 2; font-size: .95rem; }
  .toprow .btn { grid-column: 4; grid-row: 1 / span 2; }
  .tile span { font-size: 1rem; }
}

/* ---------- motion and glow (all of it switches off for reduced motion) ---------- */
@view-transition { navigation: auto; }
.btn, .pill, .iconbtn, .seg button, .save, .chip, a.brand, .thumb, .qc__thumbs button {
  transition: transform .14s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .25s ease, opacity .18s ease, filter .18s ease;
}
.btn:active, .pill:active, .iconbtn:active, .seg button:active, .save:active, a.brand:active, .thumb:active, .qc__thumbs button:active { transform: scale(.95); }
.btn--buy { box-shadow: 0 6px 18px -8px rgba(243, 105, 6, .75); }
.btn--buy:hover { box-shadow: 0 8px 26px -6px rgba(243, 105, 6, .9), 0 0 0 4px rgba(243, 105, 6, .14); }
/* Buy buttons react like a shop's add-to-cart: a darker wave spreads from where the pointer enters (app.js sets
   --mx/--my and .is-hot), a light runs along the edge while hovered, the button presses in and rings on click. */
@property --wave { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.btn--buy { position: relative; isolation: isolate; transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease, filter .18s ease; }
.btn--buy::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #A84300; pointer-events: none;
  clip-path: circle(var(--wave) at var(--mx, 50%) var(--my, 50%)); transition: --wave .35s ease-out;
}
.btn--buy.is-hot::after { --wave: 150%; transition: --wave .55s cubic-bezier(.4, 0, .2, 1); }
.btn--buy::before {
  content: ""; position: absolute; inset: -3px; border-radius: calc(var(--r) + 3px); padding: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 214, 180, .95) 50%, transparent 60%) 150% 0 / 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .15s ease;
}
.btn--buy:hover::before { opacity: 1; animation: edge 2.2s linear infinite; }
@keyframes edge { to { background-position: -50% 0; } }
.btn--buy:active { transform: scale(.97); filter: brightness(.85); transition-duration: .07s; }
.btn--buy.ring { animation: ring .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes ring {
  from { outline: 1.5px solid rgba(243, 105, 6, .9); outline-offset: 0; }
  to { outline: 1.5px solid rgba(243, 105, 6, 0); outline-offset: 12px; }
}
.promo__cta { animation: breathe 3.2s ease-in-out infinite; }
.promo:hover .promo__cta { animation: none; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 6px 18px -8px rgba(243, 105, 6, .75), 0 0 0 0 rgba(243, 105, 6, 0); }
  50% { box-shadow: 0 10px 30px -6px rgba(243, 105, 6, .9), 0 0 0 6px rgba(243, 105, 6, .12); }
}
.card { transition: border-color .2s ease, translate .25s ease, box-shadow .25s ease; }
.card:hover { translate: 0 -3px; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .5); }
.card__img img, .place__img img { transition: transform .35s ease; }
.card:hover .card__img img, .place__img:hover img { transform: scale(1.04); }
.tile { transition: border-color .2s ease; }
.tile img { transition: opacity .3s ease, transform .4s ease; }
.tile:hover img { transform: scale(1.05); }
.save.pop svg { animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 40% { transform: scale(1.35); } }
.row { scroll-behavior: smooth; }
/* Scroll reveal: app.js adds .rv when a card is drawn and .in once it is on screen. */
.rv { opacity: 0; transform: translateY(16px); }
.rv.in { opacity: 1; transform: none; transition: opacity .5s ease var(--d, 0ms), transform .5s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), border-color .2s ease, translate .25s ease, box-shadow .25s ease; }
/* Podium: the steps rise third, second, then first. */
.place.rv { opacity: 1; transform: none; }
.place.rv .place__step { clip-path: inset(100% 0 0 0); }
.place.rv .place__img, .place.rv .place__info { opacity: 0; transform: translateY(10px); }
.place.rv.in .place__step { clip-path: inset(0); transition: clip-path .7s cubic-bezier(.2, .8, .2, 1) var(--rise); }
.place.rv.in .place__img, .place.rv.in .place__info { opacity: 1; transform: none; transition: opacity .5s ease calc(var(--rise) + .35s), transform .5s ease calc(var(--rise) + .35s); }
.place--3 { --rise: 0ms; } .place--2 { --rise: 150ms; } .place--1 { --rise: 300ms; }
.viewer[open] img { animation: zoomin .22s ease; }
@keyframes zoomin { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .row { grid-auto-columns: calc((100% - 32px) / 3); }
  .cur select { height: 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--text); font: 600 .88rem var(--body); padding: 0 8px; cursor: pointer; }
.head__search { display: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .head .wrap { height: 60px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .row { grid-auto-columns: 46%; gap: 10px; }
  .card__body { padding: 10px 12px 12px; }
  .card__title { font-size: .88rem; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__foot .btn { width: 100%; }
  .product, .foot__cols { grid-template-columns: 1fr; }
  .head__cta { display: none; }
  .logo { font-size: 1.05rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .toolbar__right { width: 100%; }
  .toolbar__right .field:first-child { flex: 1; }
  .toolbar__right .field:first-child input { width: 100%; }
  .strip ul { gap: 4px 20px; }
  .mobile-nav { display: flex !important; }
}
.mobile-nav { display: none; gap: 16px; overflow-x: auto; padding: 0 var(--gutter) 12px; font-weight: 600; font-size: .86rem; }
.mobile-nav a { text-decoration: none; white-space: nowrap; }

/* Phones, finds page: categories and brands scroll sideways in one row each, so the finds come into view sooner. */
@media (max-width: 560px) {
  body[data-page="finds"] .pagehead { padding: 22px 0 16px; }
  body[data-page="finds"] .pagehead .lead { display: none; }
  body[data-page="finds"] .filters { gap: 10px; }
  body[data-page="finds"] .pillrow, body[data-page="finds"] .brandbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  body[data-page="finds"] .pillrow > *, body[data-page="finds"] .brandbar > * { flex: none; }
  body[data-page="finds"] .toolbar { margin: 14px 0; padding: 12px 0; }
}
