/* CAPTAIN store. Brand: 60% Captain Black background, 30% Soft White content, 10% Active Lime highlights; gold replaces lime on premium products.
   Type: Poppins headings, Inter body and product names, Teko for banner headings only. */
:root {
  --page: 1920px; --gutter: clamp(16px, 2.5vw, 40px);
  --bg: #0A0D0F; --accent: #D6DE23; --black: #0A0D0F; --panel: #14191D; --panel2: #1B2125; --line: #2A3237;
  --white: #F1F1EF; --muted: #A3ABAF; --lime: #D6DE23; --gold: #D3B166;
  --ok: #5FD08A; --warn: #F2B544; --bad: #FF6B5E;
  --display: "Poppins", system-ui, sans-serif; --product: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --condensed: "Teko", "Arial Narrow", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, .h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(28px, 7vw, 48px); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: 22px; }
h3, .h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-family: var(--display); font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--black); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.testbar { background: #3A2E0B; color: var(--warn); font-size: 13px; text-align: center; padding: 6px 12px; }
.flash { max-width: calc(var(--page) - 2 * var(--gutter)); margin: 12px auto 0; padding: 10px 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); width: calc(100% - 2 * var(--gutter)); }
.flash.ok { border-color: rgba(95,208,138,.5); }
.flash.bad { border-color: rgba(255,107,94,.6); }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr { max-width: var(--page); margin: 0 auto; padding: 10px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.admin-hdr { display: flex; }
.logo { display: flex; align-items: center; color: var(--white); text-decoration: none; }
.logo svg { height: 26px; width: auto; min-width: 70px; }
.search { position: relative; display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; background: none; border: 0; padding: 9px 14px; outline: none; }
.search button { background: none; border: 0; padding: 0 12px; cursor: pointer; color: var(--muted); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; z-index: 30; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; text-decoration: none; }
.suggest a:hover, .suggest a.on { background: var(--panel2); }
.suggest .small { color: var(--muted); }
.icons { display: flex; gap: 2px; }
.icon-btn { position: relative; padding: 8px; border-radius: 8px; color: var(--white); display: grid; place-items: center; text-decoration: none; }
.icon-btn:hover { background: var(--panel); }
.icon-btn svg { width: 22px; height: 22px; }
.count { position: absolute; top: 2px; right: 0; background: var(--lime); color: var(--black); font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
nav.cats { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 8px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
nav.cats::-webkit-scrollbar { display: none; }
nav.cats a { white-space: nowrap; border: 1px solid transparent; border-radius: 999px; padding: 5px 12px; font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--muted); text-decoration: none; }
nav.cats a:hover { color: var(--white); }
nav.cats a.on { color: var(--white); border-color: var(--line); }
@media (max-width: 560px) {
  .hdr { grid-template-columns: auto auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .icons { justify-self: end; }
}

main { max-width: var(--page); margin: 0 auto; padding: 16px var(--gutter) 64px; display: grid; gap: 28px; }
.page-h { font-size: clamp(24px, 5vw, 36px); }
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.narrow { max-width: 480px; width: 100%; justify-self: center; display: grid; gap: 14px; }
.center { text-align: center; }
.right { text-align: right; }
.grow { flex: 1; min-width: 120px; }
.stack { display: grid; gap: 12px; }
.inline { display: inline; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 11px 18px; font-family: var(--display); font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--lime); color: var(--black); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: none; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: 13px; min-height: 36px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }

/* home */
.hero { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); padding: clamp(22px, 5vw, 48px); display: grid; gap: 16px; position: relative; overflow: hidden; }
.hero .eyebrow { font-family: var(--display); font-weight: 600; color: var(--accent); letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }
.hero p { color: var(--muted); max-width: 46ch; }
.hero .mark { position: absolute; right: -30px; bottom: -40px; width: 220px; color: var(--accent); opacity: .14; pointer-events: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; text-decoration: none; }
.tile:hover { border-color: var(--accent); }
.tile svg { width: 40px; height: 40px; }
.tile span { font-family: var(--display); font-weight: 600; }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.promise div { border-top: 2px solid var(--lime); padding-top: 10px; }
.promise b { font-family: var(--display); display: block; }
.promise span { color: var(--muted); font-size: 13px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.banner-wh { display: grid; gap: 10px; border: 1px solid var(--lime); border-radius: 16px; padding: 20px; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card:hover { border-color: var(--muted); }
.card-link { display: grid; grid-template-rows: auto 1fr; text-decoration: none; height: 100%; }
.card.soldout .pimg > :not(.tag) { opacity: .45; }
.pimg { aspect-ratio: 1; display: grid; place-items: center; position: relative; background: var(--panel2); overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pimg svg.glyph { width: 58%; height: 58%; }
.pimg .tag { position: absolute; top: 8px; left: 8px; z-index: 1; }
.cbody { padding: 10px 12px 12px; display: grid; gap: 4px; align-content: start; }
.brand { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--display); font-weight: 600; }
.pname { font-family: var(--product); font-weight: 600; font-size: 21px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; text-decoration: none; }
.pname.sm { font-size: 19px; }
.price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.price b { font-family: var(--display); font-size: 17px; }
.price.big b { font-size: 26px; }
.price s { color: var(--muted); font-size: 13px; }
.price .off, .lime { color: var(--accent); }
.price .off { font-size: 13px; font-weight: 600; }
.premium .price .off, .premium .brand { color: var(--gold); }
.stars { color: var(--accent); display: inline-flex; gap: 3px; align-items: center; font-weight: 600; }
.premium .stars { color: var(--gold); }
.pdp.premium .btn.primary { background: var(--gold); border-color: var(--gold); }
.pdp.premium .sw.on, .pdp.premium .chip input:checked + span { border-color: var(--gold); color: var(--gold); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; font-family: var(--display); padding: 2px 8px; border-radius: 999px; background: var(--lime); color: var(--black); text-transform: uppercase; letter-spacing: .04em; }
.pill.gold { background: var(--gold); }
.pill.grey { background: var(--line); color: var(--white); }
.pill.ok { background: rgba(95,208,138,.16); color: var(--ok); }
.pill.warn { background: rgba(242,181,68,.16); color: var(--warn); }
.pill.bad { background: rgba(255,107,94,.16); color: var(--bad); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }

/* listing */
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.filters { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; position: sticky; top: 110px; }
.filters > summary { display: none; }
.filter-form { display: grid; gap: 16px; }
.fgroup { display: grid; gap: 6px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; min-height: 28px; }
.chk input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span:not(.sr-only) { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 44px; text-align: center; font-size: 14px; display: block; }
.chip input:checked + span { border-color: var(--accent); color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.chip.size span:not(.sr-only) { min-width: 52px; padding: 10px 12px; }
.chip.out span:not(.sr-only) { opacity: .4; text-decoration: line-through; }
.chip.out input { cursor: not-allowed; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.select, .input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-height: 44px; }
textarea.input { min-height: 0; }
.select:focus, .input:focus { border-color: var(--accent); outline: none; }
.input.otp { font-size: 22px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; color: var(--muted); }
.prefix .input { border-radius: 0 8px 8px 0; }
@media (max-width: 800px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; padding: 0; border: 0; background: none; }
  .filters > summary { display: inline-flex; list-style: none; }
  .filters > summary::-webkit-details-marker { display: none; }
  .filters[open] > summary { margin-bottom: 12px; }
  .filters[open] .filter-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
}
@media (min-width: 801px) { .filters:not([open]) > .filter-form { display: grid; } }

/* product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .pdp { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 8px; position: sticky; top: 110px; }
@media (max-width: 800px) { .gallery { position: static; } }
.gallery .main { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; background: var(--panel2); display: grid; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main .pimg { height: 100%; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); padding: 0; cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { display: grid; gap: 18px; }
.buybox .pname { font-size: clamp(34px, 7vw, 46px); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; text-decoration: none; min-height: 40px; }
.sw.on { border-color: var(--accent); }
.sw i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.badges div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--muted); }
.badges b { display: block; font-family: var(--display); font-size: 14px; color: var(--white); }
details.acc { border-top: 1px solid var(--line); padding: 12px 0; }
details.acc summary { cursor: pointer; font-family: var(--display); font-weight: 600; }
details.acc ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
details.acc > p, details.acc > .tbl-wrap { margin-top: 8px; }
.spec { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.reviews { display: grid; gap: 12px; }
.review { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; }
.review-form { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }

/* panels, forms, tables */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; align-content: start; }
.panel.inset { background: var(--bg); }
.sticky { position: sticky; top: 110px; }
@media (max-width: 800px) { .sticky { position: static; } }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .pimg { border-radius: 8px; }
.line a { text-decoration: none; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-items: center; }
.qty button { background: none; border: 0; width: 38px; height: 38px; cursor: pointer; font-size: 18px; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { width: 30px; text-align: center; }
.sum { display: grid; gap: 6px; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum .tot { border-top: 1px solid var(--line); padding-top: 8px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 13px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.field.wide { grid-column: 1 / -1; }
.radio { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--accent); }
.radio input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.newaddr[data-hidden] { display: none; }
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
td.r, th.r { text-align: right; }
.nowrap { white-space: nowrap; }
.note { border-left: 3px solid var(--lime); padding: 8px 12px; background: rgba(214,222,35,.06); font-size: 14px; border-radius: 0 8px 8px 0; }
.note.warn { border-color: var(--warn); background: rgba(242,181,68,.07); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty h1, .empty h2 { color: var(--white); }
.mark-sm { width: 56px; color: var(--accent); }
.track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; counter-reset: s; }
.track li { font-size: 13px; font-family: var(--display); font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; }
.track li.done { border-color: var(--accent); color: var(--white); }
.track li.on { border-color: var(--accent); color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { border-left: 2px solid var(--line); padding-left: 10px; }
.order-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.order-row:last-child { border-bottom: 0; }
.addr { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.prose { display: grid; gap: 12px; }
.prose h2 { margin-top: 12px; font-size: 20px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.prose a { color: var(--accent); }
.sim { border-color: var(--warn); }
.wish-item { display: grid; gap: 6px; }

/* footer */
footer { border-top: 1px solid var(--line); }
.foot { max-width: var(--page); margin: 0 auto; padding: 24px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; font-size: 14px; color: var(--muted); }
.foot b { color: var(--white); font-family: var(--display); display: block; margin-bottom: 6px; }
.foot a, .foot span { display: block; padding: 2px 0; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot .tag-line { color: var(--accent); font-family: var(--display); font-weight: 600; margin-top: 4px; }

/* admin */
body.admin main { max-width: var(--page); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.kpi b { font-family: var(--display); font-size: 24px; display: block; }
a.kpi { text-decoration: none; }
a.kpi:hover { border-color: var(--accent); }
.kpi span { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { border-bottom: 2px solid transparent; padding: 8px 12px; font-family: var(--display); font-weight: 600; color: var(--muted); white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--white); border-color: var(--accent); }
.grid-edit .input { width: 92px; padding: 6px 8px; min-height: 36px; text-align: right; }
.photos { display: flex; gap: 12px; flex-wrap: wrap; }
.photos figure { margin: 0; width: 130px; display: grid; gap: 4px; }
.photos img { width: 130px; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.sticky-bar { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); }

/* stage 3 */
.ret-row { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.ret-row:first-of-type { border-top: 0; padding-top: 0; }
.ret-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: end; border-top: 1px solid var(--line); padding-top: 12px; }
.ret-line:first-of-type { border-top: 0; padding-top: 0; }
form:has(input[name="kind"][value="return"]:checked) .xonly { display: none; }
.docs { display: flex; gap: 8px; flex-wrap: wrap; }
fieldset.panel legend { float: left; width: 100%; margin-bottom: 4px; }
.photos-sm { display: flex; gap: 8px; flex-wrap: wrap; }
.photos-sm img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.chkcol { width: 32px; }

/* stage 4: wholesale */
nav.cats a.wh { color: var(--accent); }
nav.cats.wnav a.retail { margin-left: auto; color: var(--muted); }
.upper { text-transform: uppercase; }
.wsteps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.wsteps li { font-size: 12px; font-family: var(--display); font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.wsteps li.on { border-color: var(--accent); color: var(--accent); }
.wsteps li.done { background: var(--line); color: var(--white); }
.wsteps li a { color: inherit; text-decoration: none; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.wprod { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.wprod .pimg { width: 52px; flex: none; border-radius: 6px; }
.matrix th, .matrix td { padding: 6px; }
.matrix td { min-width: 64px; }
.matrix td input { width: 58px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px; text-align: center; display: block; margin: 0 auto 2px; }
.matrix td input:focus { border-color: var(--accent); outline: none; }
.matrix td input:disabled { opacity: .35; }
.matrix td.na { color: var(--line); }
.sw-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 6px; border: 1px solid var(--line); }
.qtyin { width: 80px; min-height: 36px; padding: 6px 8px; text-align: right; }
.pay-box { border-color: var(--accent); }
.ship-fields { margin-top: 4px; }
form:has([data-toggle-ship]:checked) .ship-fields { display: none; }
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .wprod .pimg { display: none; }
  .wtable td, .wtable th { padding: 8px 6px; }
}

/* stage 5 */
.bar { display: block; height: 8px; background: var(--panel2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lime); border-radius: 4px; }
.funnel { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.funnel .bar { grid-column: 1 / -1; }
.panel.row { display: flex; align-items: end; }
.panel.row .field { min-width: 160px; }

/* Signed-in wholesale shops: shop name in the header, own price on cards and product pages */
.shopname { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; max-width: 220px; }
.shopname:hover { background: var(--panel); }
.shopname svg { width: 20px; height: 20px; flex: none; }
.shopname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .shopname span { display: none; } }
.shopprice { flex-wrap: wrap; }
.shopbox { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--lime); border-radius: 12px; }
.offerbar { background: var(--lime); color: #0B0D0E; padding: 10px 16px; border-radius: 10px; font-weight: 600; margin: 12px 0; }
.offerbar a { color: inherit; }
.slabs { font-size: 13px; }

/* Sign in: tabs and "or" divider, Google button */
.signin-tabs { margin-bottom: 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1F1F1F; border-color: #DADCE0; }
.btn.google:hover { background: #F2F2F2; }
.askrole { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.askrole a { color: var(--white); font-weight: 600; }

/* Store mode strip: wholesale store / sales team store */
.modebar { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 8px 20px; background: var(--panel2); border-top: 1px solid var(--line); font-size: 14px; }
.modebar .mode { color: var(--accent); font-weight: 600; margin-right: auto; }
.modebar a { color: var(--white); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.modebar a.on, .modebar a:hover { border-bottom-color: var(--accent); }
.teamprice { display: grid; gap: 2px; font-size: 13px; }
.teamprice b { font-size: 15px; }
.linkbtn { background: none; border: 0; padding: 2px 0; color: var(--muted); font: inherit; cursor: pointer; border-bottom: 2px solid transparent; }
.linkbtn:hover { color: var(--white); border-bottom-color: var(--accent); }
.choice { display: grid; gap: 4px; text-decoration: none; color: var(--white); }
.choice:hover { border-color: var(--accent); }
.permgroup { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; }
.permgroup legend { color: var(--muted); font-size: 13px; padding: 0 4px; }
.reqrow { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.datatbl td { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secpanel { margin-top: 6px; } .secpanel dl { margin: 8px 0; }

/* Tab bars that scroll sideways: arrows and faded edges when the tabs don't fit */
.navscroll { position: relative; max-width: var(--page); margin: 0 auto; }
.navscroll > nav.cats { max-width: none; margin: 0; padding-left: 16px; padding-right: 16px; scroll-behavior: auto; }
.navscroll > nav.cats.dragging { cursor: grabbing; user-select: none; }
.navscroll > nav.cats.dragging a { pointer-events: none; }
.navarrow { position: absolute; top: 0; bottom: 8px; width: 44px; border: 0; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; padding: 0 8px; }
.navarrow.left { left: 0; justify-content: flex-start; background: linear-gradient(90deg, var(--bg) 45%, transparent); }
.navarrow.right { right: 0; justify-content: flex-end; background: linear-gradient(270deg, var(--bg) 45%, transparent); }
.navarrow:hover { color: var(--accent); }
.navscroll.at-start .navarrow.left, .navscroll.at-end .navarrow.right, .navscroll.fits .navarrow { display: none; }
.modebar-wrap { max-width: none; }
.modebar-wrap .navarrow { bottom: 0; }
.modebar-wrap .navarrow.left { background: linear-gradient(90deg, var(--panel2) 45%, transparent); }
.modebar-wrap .navarrow.right { background: linear-gradient(270deg, var(--panel2) 45%, transparent); }
nav.modebar { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
nav.modebar::-webkit-scrollbar, nav.cats::-webkit-scrollbar { display: none; }
nav.modebar .mode, nav.modebar a, nav.modebar form { white-space: nowrap; flex: none; }

/* Category tiles with a photo: picture fills the tile, name on a dark band at the bottom */
.tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile.photo { position: relative; padding: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; border-color: transparent; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile.photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: #fff; font-size: 16px; line-height: 1.2;
  background: linear-gradient(to top, rgba(10,13,15,.92) 0%, rgba(10,13,15,.65) 55%, rgba(10,13,15,0) 100%); }
.tile.photo:hover { border-color: var(--accent); }
.tile.photo:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile.photo span { font-size: 14px; } }
.catphoto { min-width: 170px; vertical-align: top; }
.catphoto .stack { gap: 4px; margin-top: 4px; }
.catthumb { width: 96px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.catthumb img { width: 100%; height: 100%; object-fit: cover; }
.catthumb svg { width: 44px; height: 44px; }
/* Tiles without a photo yet: same shape as photo tiles, larger centred icon, name at the bottom */
.tiles .tile:not(.photo) { aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; background: linear-gradient(160deg, var(--panel2), var(--panel)); }
.tiles .tile:not(.photo) svg { width: 64px; height: 64px; align-self: center; margin-top: 28%; opacity: .9; }
.tiles .tile:not(.photo) span { font-size: 16px; line-height: 1.2; }
.catactions { vertical-align: top; min-width: 170px; }
.catactions > form, .catactions details { margin-bottom: 6px; }
.catactions summary.danger { color: #FF6B6B; cursor: pointer; font-size: 13px; font-weight: 600; }

/* ---------- Home page sliding banners (Admin → Banners) ----------
   Edge to edge and tall (16:9, at most 82% of the screen height); text sits at the bottom centre by default;
   dots bottom centre; pause and arrows bottom right. */
body { overflow-x: clip; }
.bslider { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: -16px; background: var(--panel); overflow: hidden; }
.btrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.btrack::-webkit-scrollbar { display: none; }
.bslide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: grid; align-items: center; min-height: clamp(420px, 56.25vw, 82vh); overflow: hidden; }
.bslide[class*="pos-bottom"] { align-items: end; }
.bmedia { position: absolute; inset: 0; }
.bmedia picture, .bmedia img, .bmedia video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bslide.has-media.show-text .bmedia::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,13,15,.85) 0%, rgba(10,13,15,.5) 40%, rgba(10,13,15,0) 70%); }
.bslide.has-media.show-text.pos-right .bmedia::after { background: linear-gradient(270deg, rgba(10,13,15,.85) 0%, rgba(10,13,15,.5) 40%, rgba(10,13,15,0) 70%); }
.bslide.has-media.show-text.pos-center .bmedia::after { background: rgba(10,13,15,.45); }
.bslide.has-media.show-text[class*="pos-bottom"] .bmedia::after { background: linear-gradient(0deg, rgba(10,13,15,.8) 0%, rgba(10,13,15,.4) 32%, rgba(10,13,15,0) 58%); }
.bcopy { position: relative; z-index: 1; display: grid; gap: 14px; width: min(760px, 100%); padding: 48px clamp(20px, 6vw, 96px); }
.bslide[class*="pos-bottom"] .bcopy { padding-bottom: clamp(72px, 7vw, 104px); }
.bslide.pos-center .bcopy, .bslide.pos-bottom-center .bcopy { margin-inline: auto; text-align: center; justify-items: center; }
.bslide.pos-center .bcopy .row, .bslide.pos-bottom-center .bcopy .row { justify-content: center; }
.bslide.pos-right .bcopy, .bslide.pos-bottom-right .bcopy { margin-left: auto; text-align: right; justify-items: end; }
.bslide.pos-right .bcopy .row, .bslide.pos-bottom-right .bcopy .row { justify-content: flex-end; }
.bcopy .eyebrow { font-family: var(--display); font-weight: 600; color: var(--accent); letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }
.bcopy .btitle { font-size: clamp(36px, 5.4vw, 92px); text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
.bcopy p { color: var(--muted); max-width: 52ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); }
.bslide.has-media .bcopy p { color: #E4E7E8; }
.bcopy .row { gap: 10px; }
.bcopy .btn { border-radius: 999px; padding-inline: 22px; }
.bslide.has-media .bcopy .btn:not(.primary) { background: var(--white); color: var(--black); border-color: var(--white); }
.bslide .mark { position: absolute; right: -30px; bottom: -40px; width: 260px; color: var(--accent); opacity: .12; pointer-events: none; }
.bcover { position: absolute; inset: 0; z-index: 2; }
.bcover:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.bdots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 26px; z-index: 3; display: flex; gap: 8px; }
.bdots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(241,241,239,.45); cursor: pointer; transition: width .2s, background .2s; }
.bdots button[aria-current="true"] { width: 22px; background: var(--white); }
.bctrl { position: absolute; right: clamp(16px, 2.5vw, 40px); bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.bctrl button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; position: relative; padding: 0; }
.bnav { background: rgba(241,241,239,.85); }
.bnav:hover { background: var(--white); }
.bnav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-left: 2px solid var(--black); border-bottom: 2px solid var(--black); }
.bnav.prev::before { transform: translate(-35%, -50%) rotate(45deg); }
.bnav.next::before { transform: translate(-65%, -50%) rotate(-135deg); }
.bplay { background: transparent; }
.bplay:hover { background: rgba(241,241,239,.15); }
.bplay::before, .bplay::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 4px; height: 14px; background: var(--white); border-radius: 1px; }
.bplay::before { left: 16px; } .bplay::after { left: 24px; }
.bplay[aria-pressed="true"]::after { display: none; }
.bplay[aria-pressed="true"]::before { left: 17px; width: 0; height: 0; background: none; border-radius: 0; border-left: 13px solid var(--white); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.bctrl button:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
@media (max-width: 640px) {
  .bslide { min-height: min(130vw, 640px); }
  .bslide.has-media { align-items: end; }
  .bslide.has-media.show-text .bmedia::after, .bslide.has-media.show-text.pos-right .bmedia::after, .bslide.has-media.show-text.pos-center .bmedia::after { background: linear-gradient(0deg, rgba(10,13,15,.9) 0%, rgba(10,13,15,.55) 40%, rgba(10,13,15,0) 72%); }
  .bcopy { padding: 32px 20px 72px; }
  .bnav { display: none; }
  .bctrl { right: 8px; bottom: 10px; }
  .bdots { bottom: 26px; }
}
@media (prefers-reduced-motion: no-preference) { .btrack { scroll-behavior: smooth; } }
/* Admin → Banners thumbnails */
.bthumb { width: 160px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
/* Footer: company details folded under "Captain" with a small arrow */
.foot-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.foot-more summary::-webkit-details-marker { display: none; }
.foot-more summary b { margin-bottom: 0; }
.foot-more summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.foot-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.foot-more summary:hover b, .foot-more summary:hover::after { color: var(--accent); border-color: var(--accent); }
.foot-more[open] summary { margin-bottom: 6px; }
/* Wide screens: home featured products in full rows (10 → one row of 10, or two rows of 5);
   category tiles stretch so they share full rows instead of leaving a lone tile on a second row. */
@media (min-width: 1000px) { .grid.featured { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1700px) { .grid.featured { grid-template-columns: repeat(10, 1fr); } }
@media (min-width: 1500px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
@media (min-width: 1100px) and (max-width: 1499px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
/* Banner text sized like large sportswear sites: compact heading, small line, small pill buttons. */
.bcopy { gap: 10px; }
.bcopy .btitle { font-size: clamp(26px, 3vw, 56px); line-height: 1; letter-spacing: -.005em; }
.bcopy p { font-size: clamp(13px, .9vw, 16px); line-height: 1.45; }
.bcopy .eyebrow { font-size: 11px; }
.bcopy .row { margin-top: 6px; gap: 8px; }
.bcopy .btn { padding: 8px 18px; font-size: 14px; min-height: 0; line-height: 1.3; }
.bslide[class*="pos-bottom"] .bcopy { padding-bottom: clamp(64px, 5vw, 84px); }
.bcopy { width: min(900px, 100%); }
.bcopy p { max-width: 72ch; }
/* Line under the heading: a little wider than the heading, like the reference (about 540 px on a computer). */
.bcopy p { max-width: 34em; }
.bslide.pos-center .bcopy p, .bslide.pos-bottom-center .bcopy p { margin-inline: auto; }
/* Text block is as wide as its heading; the line under it (18 px) wraps inside that width and never sticks out past it. */
.bcopy:has(.btitle) { width: fit-content; max-width: 100%; }
.bcopy:has(.btitle) p, .bcopy:has(.btitle) .eyebrow { width: 0; min-width: 100%; max-width: none; }
.bcopy p { font-size: 18px; line-height: 1.4; }
@media (max-width: 640px) { .bcopy p { font-size: 16px; } }
/* Banner heading in the condensed Teko face (tall, narrow, heavy), like big sportswear campaign banners. */
.bcopy .btitle { font-family: var(--product); font-weight: 700; font-size: clamp(48px, 5vw, 96px); line-height: .85; letter-spacing: 0; text-transform: uppercase; margin-bottom: 2px; }
@media (max-width: 640px) { .bcopy .btitle { font-size: 52px; } }
/* Set by banner-slider.js: the line under the heading stays on one line, shrunk to fit
   no more than ~2–3 letters past each side of the heading. */
.bcopy:has(.btitle) p.fit { width: auto; min-width: 0; max-width: none; white-space: nowrap; }
@media (min-width: 641px) { .bcopy .btitle { font-size: clamp(60px, 5vw, 96px); } }
/* Tighter text block (heading, line, button) placed as low as the dots allow. */
.bcopy { gap: 4px; }
.bcopy .btitle { margin-bottom: 0; }
.bcopy .row { margin-top: 10px; }
.bslide[class*="pos-bottom"] .bcopy { padding-bottom: 46px; }
.bdots { bottom: 18px; }
.bctrl { bottom: 10px; }
@media (max-width: 640px) {
  .bslide.has-media .bcopy, .bslide[class*="pos-bottom"] .bcopy { padding-bottom: 42px; }
  .bdots { bottom: 16px; }
  .bctrl { bottom: 6px; }
}
/* Messages ("Password saved.", "Added to cart" …) float over the page as a small popup and fade away,
   so they never push the page down. Problems stay up longer. Tap to close sooner. */
.flash { position: fixed; z-index: 1000; top: 16px; left: 50%; transform: translateX(-50%); margin: 0; width: auto; min-width: min(320px, calc(100vw - 32px)); max-width: min(560px, calc(100vw - 32px));
  padding: 12px 18px; border-radius: 12px; background: #1B2125; box-shadow: 0 12px 32px rgba(0,0,0,.45); text-align: center; cursor: pointer;
  animation: flash-in .25s ease-out, flash-out .4s ease-in 4s forwards; }
.flash.bad { animation: flash-in .25s ease-out, flash-out .4s ease-in 8s forwards; }
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes flash-out { to { opacity: 0; transform: translate(-50%, -12px); visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: flash-out .01s linear 5s forwards; } .flash.bad { animation: flash-out .01s linear 9s forwards; } }

/* ---------- Home "Shop by category": one sliding row on computers and tablets; on phones 6 tiles then "Show all". ---------- */
.tilerow { position: relative; }
.tilerow .tiles { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 12px) / 4); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.tilerow .tiles::-webkit-scrollbar { display: none; }
.tilerow .tile { scroll-snap-align: start; aspect-ratio: 4 / 5; align-content: space-between; }
.tilerow .tiles.dragging { cursor: grabbing; user-select: none; } .tilerow .tiles.dragging a { pointer-events: none; }
@media (min-width: 1100px) { .tilerow .tiles { grid-auto-columns: calc((100% - 5 * 12px) / 6); } }
@media (min-width: 1500px) { .tilerow .tiles { grid-auto-columns: calc((100% - 7 * 12px) / 8); } }
.tarrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(241,241,239,.9); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.tarrow:hover { background: var(--white); }
.tarrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-left: 2px solid var(--black); border-bottom: 2px solid var(--black); }
.tarrow.left { left: -14px; } .tarrow.left::before { transform: translate(-35%, -50%) rotate(45deg); }
.tarrow.right { right: -14px; } .tarrow.right::before { transform: translate(-65%, -50%) rotate(-135deg); }
.tilerow.at-start .tarrow.left, .tilerow.at-end .tarrow.right, .tilerow.fits .tarrow { display: none; }
.tmore { display: none; }
@media (max-width: 640px) {
  .tilerow .tiles { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 8px; overflow: visible; scroll-snap-type: none; }
  .tilerow .tile { aspect-ratio: 4 / 5; padding: 10px; }
  .tilerow .tile svg { width: 32px; height: 32px; }
  .tilerow .tile span, .tilerow .tile.photo span { font-size: 12.5px; line-height: 1.2; }
  .tilerow .tile.photo span { padding: 24px 8px 8px; }
  .tarrow { display: none; }
  .tilerow.limit:not(.open) .tile:nth-child(n+7) { display: none; }
  .tilerow.limit .tmore { display: flex; justify-content: center; width: 100%; margin-top: 10px; }
}
@media (max-width: 640px) { .tilerow .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tilerow .tile { min-width: 0; } .tilerow .tile span { overflow-wrap: anywhere; } }
main > section:has(.tilerow) { min-width: 0; }
.tilerow, .tilerow .tiles { min-width: 0; width: 100%; }
@media (max-width: 640px) {
  .tilerow .tiles .tile span, .tilerow .tiles .tile.photo span { font-size: 12px; overflow-wrap: normal; word-break: normal; hyphens: none; }
  .tilerow .tiles .tile { padding: 8px; }
  .tilerow .tiles .tile.photo { padding: 0; }
}

/* ---------- Type: readable, premium sizes (Teko removed) ---------- */
/* Product names: clean Inter, normal case, two lines at most on cards. */
.pname { font-family: var(--product); font-weight: 600; font-size: 15px; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.card .pname { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pname.sm { font-size: 14px; }
.buybox .pname { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.005em; }
.price b { font-size: 16px; font-weight: 600; }
.brand { font-size: 10.5px; letter-spacing: .12em; }
/* Banner heading: condensed and heavy, but clearly readable. */
.bcopy .btitle { font-family: var(--condensed); font-weight: 700; line-height: .85; letter-spacing: 0; }

/* Phones: one step smaller everywhere, like premium sportswear apps. */
@media (max-width: 640px) {
  html, body { font-size: 14px; }
  h1, .page-h { font-size: 24px; }
  h2 { font-size: 18px; }
  h3, .h3 { font-size: 15px; }
  .sec-head h2 { font-size: 18px; }
  nav.cats a { font-size: 13px; }
  .hdr input { font-size: 14px; }
  .btn { font-size: 13.5px; }
  .btn.sm { font-size: 12.5px; }
  .small, .cbody .small { font-size: 12px; }
  .cbody { padding: 8px 10px 10px; gap: 3px; }
  .pname { font-size: 13px; line-height: 1.3; }
  .pname.sm { font-size: 13px; }
  .buybox .pname { font-size: 21px; }
  .brand { font-size: 9.5px; }
  .price b { font-size: 14px; }
  .price s, .price .off { font-size: 11.5px; }
  .price.big b { font-size: 22px; }
  .foot { font-size: 13px; }
  .foot b { font-size: 13px; }
  .banner-wh h2 { font-size: 18px; }
  .banner-wh p { font-size: 13px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 13.5px; }
  .bcopy .btitle { font-size: 44px; }
  .tilerow .tiles .tile span, .tilerow .tiles .tile.photo span { font-size: 11.5px; }
}
@media (max-width: 640px) { .bcopy .btitle { font-size: 52px; } }
/* Phones: heading, line and button all within 60% of the screen width, with tight line spacing. */
@media (max-width: 640px) {
  .bcopy { gap: 2px; }
  .bcopy .btitle { line-height: .82; }
  .bcopy:has(.btitle) p { width: 0; min-width: 100%; white-space: normal; font-size: 12.5px; line-height: 1.25; margin-top: 2px; }
  .bcopy .row { margin-top: 8px; }
  .bcopy .btn { padding: 6px 16px; font-size: 13px; }
}
@media (max-width: 640px) { .bcopy:has(.btitle) p.fit { width: auto; min-width: 0; white-space: nowrap; } }
/* Phones: heading 45% of the screen; heading, line and button packed close together. */
@media (max-width: 640px) {
  .bcopy { gap: 0; }
  .bcopy .btitle { line-height: .78; }
  .bcopy:has(.btitle) p { margin-top: 1px; line-height: 1.15; }
  .bcopy .row { margin-top: 6px; }
}
/* Phones: banner button scaled to the smaller text. */
@media (max-width: 640px) { .bcopy .btn { padding: 4px 12px; font-size: 11px; line-height: 1.3; } .bcopy .row { margin-top: 5px; } }

/* ---------- Phone menu: icon in the header opens a panel from the right (no sliding bars on phones) ---------- */
.menu-btn { display: none; }
.drawer { display: none; }
@media (max-width: 640px) {
  .menu-btn { display: inline-flex; }
  /* The bars that slid sideways are replaced by the menu. */
  nav.cats, .navscroll:has(> nav.cats), nav.modebar, .navscroll:has(> nav.modebar) { display: none !important; }
  /* Wishlist and account move into the menu; the header keeps cart and menu. */
  .hdr .icons a[href="/wishlist"], .hdr .icons a[href="/account"] { display: none; }
  .drawer { position: fixed; inset: 0; z-index: 900; display: block; visibility: hidden; pointer-events: none; }
  .drawer:target, .drawer.open { visibility: visible; pointer-events: auto; }
  .drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
  .drawer:target .drawer-scrim, .drawer.open .drawer-scrim { opacity: 1; }
  .drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--bg); border-left: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 32px; transform: translateX(100%); transition: transform .28s ease; }
  .drawer:target .drawer-panel, .drawer.open .drawer-panel { transform: none; }
  .drawer-top { display: flex; justify-content: flex-end; padding: 6px 0 14px; margin-right: -8px; }
  .drawer-close svg { width: 24px; height: 24px; }
  .mlist { display: grid; }
  .mrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--white); text-decoration: none;
    font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
  .mrow svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
  .mrow.on, .mrow:hover { color: var(--accent); }
  .mnote { color: var(--muted); font-size: 15px; line-height: 1.35; margin: 26px 0 12px; }
  .mbtns { display: flex; gap: 8px; flex-wrap: wrap; }
  .mbtns .btn { border-radius: 999px; padding: 9px 18px; font-size: 14px; }
  .mutils { display: grid; gap: 2px; margin-top: 26px; }
  .mutil { display: flex; align-items: center; gap: 14px; padding: 9px 0; color: var(--white); text-decoration: none; font-weight: 500; font-size: 15px; }
  .mutil svg { width: 22px; height: 22px; flex: none; }
  .mutil:hover { color: var(--accent); }
  .msignout .linkbtn { font-size: 15px; color: var(--muted); padding: 0; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .drawer-panel, .drawer-scrim { transition: none; } }
/* Phone menu: smaller, lighter type and icons. */
@media (max-width: 640px) {
  .mrow { font-size: 15px; font-weight: 500; padding: 8px 0; }
  .mrow svg { width: 14px; height: 14px; }
  .drawer-close svg { width: 20px; height: 20px; }
  .mnote { font-size: 12.5px; margin: 20px 0 10px; }
  .mbtns .btn { padding: 6px 14px; font-size: 12.5px; }
  .mutils { margin-top: 20px; }
  .mutil { font-size: 13px; gap: 12px; padding: 7px 0; }
  .mutil svg { width: 18px; height: 18px; }
  .msignout .linkbtn { font-size: 13px; }
}
/* Phones: a small down arrow under the 6 tiles opens the rest (flips up when open). */
@media (max-width: 640px) {
  .tilerow.limit .tmore { display: flex; width: 36px; height: 28px; margin: 6px auto 0; padding: 0; border: 0; background: none; cursor: pointer; align-items: center; justify-content: center; }
  .tmore::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .tilerow.open .tmore::before { transform: translateY(2px) rotate(-135deg); }
  .tmore:hover::before { border-color: var(--accent); }
}
/* Phones: tighter spacing between home sections; the featured products start straight after the categories. */
@media (max-width: 640px) {
  main { gap: 16px; }
  .sec-head { margin-bottom: 8px; }
  .tilerow.limit .tmore { height: 22px; margin-top: 2px; }
  .featured-sec .sec-head h2 { display: none; }
  .featured-sec .sec-head { justify-content: flex-end; margin-bottom: 6px; }
  .featured-sec .sec-head .btn { border: 0; background: none; padding: 0; min-height: 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
}
/* Featured products: no heading; a small "See all" link on the right. */
.featured-sec .sec-head { justify-content: flex-end; margin-bottom: 8px; }
.featured-sec .sec-head .btn { border: 0; background: none; padding: 0; min-height: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.featured-sec .sec-head .btn:hover { color: var(--accent); }

/* ---------- Product cards: image-led, clean text underneath (no boxed card) ---------- */
.card { background: none; border: 0; border-radius: 0; overflow: visible; }
.card:hover { border-color: transparent; }
.card .pimg { aspect-ratio: var(--photo-r); border-radius: 12px; background: #F5F5F5; }
.card .pimg img { transition: transform .4s ease; }
.card:hover .pimg img { transform: scale(1.04); }
.card .pimg svg.glyph { width: 38%; height: 38%; opacity: .85; }
.card.soldout .pimg > :not(.tag) { opacity: .55; }
.card .pimg .tag { top: 10px; left: 10px; background: rgba(10,13,15,.82); color: var(--white); border: 0; font-size: 10px; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; }
.card .pimg .tag.gold { background: var(--gold); color: var(--black); }
.card .cbody { padding: 10px 2px 0; gap: 2px; display: grid; }
.card .brand { display: none; }
.card.premium .brand { display: block; order: 0; color: var(--gold); font-size: 10px; }
.card .pname { order: 1; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--white); }
.card .cbody > .small { order: 2; color: var(--muted); font-size: 12.5px; }
.card .cbody > .price, .card .cbody > .shopprice, .card .cbody > .teamprice { order: 3; margin-top: 4px; }
.card .price b { font-size: 14px; font-weight: 600; }
.card .price s, .card .price .small { font-size: 12px; }
.grid { gap: 28px 16px; }
.card-link:focus-visible { outline: none; } .card-link:focus-visible .pimg { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (max-width: 640px) {
  .grid, .grid.featured { gap: 20px 10px; }
  .card .pimg { border-radius: 10px; }
  .card .cbody { padding-top: 8px; }
  .card .pname { font-size: 13px; }
  .card .cbody > .small { font-size: 12px; }
  .card .price b { font-size: 13.5px; }
  .card .pimg .tag { top: 8px; left: 8px; font-size: 9px; padding: 3px 7px; }
}
/* Photos shot on white melt into the soft grey tile, so every card has the same seamless background. */
.card .pimg img { mix-blend-mode: multiply; }

/* Colour dots on product cards (replace "4 colours"). */
.card .cmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cswatches { display: inline-flex; align-items: center; gap: 6px; }
.cswatch-row { display: inline-flex; align-items: center; gap: 6px; }
.csw { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
  box-shadow: 0 0 0 1px rgba(241,241,239,.28); cursor: pointer; transition: box-shadow .15s, transform .15s; flex: none; }
.csw:hover { transform: scale(1.12); }
.csw.on { box-shadow: 0 0 0 1px var(--black), 0 0 0 2.5px var(--white); }
.csw-more { font-size: 11.5px; color: var(--muted); margin-left: 1px; }
.csw-name { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .csw { width: 13px; height: 13px; } .cswatch-row { gap: 7px; } }
/* Colour swatches: small rounded rectangles. */
.csw { width: 14px; height: 9px; border-radius: 2px; }
.csw.on { box-shadow: 0 0 0 1px var(--black), 0 0 0 2px var(--white); }
.csw:hover { transform: none; box-shadow: 0 0 0 1px var(--black), 0 0 0 2px var(--muted); }
.csw.on:hover { box-shadow: 0 0 0 1px var(--black), 0 0 0 2px var(--white); }
.cswatch-row { gap: 5px; }
@media (max-width: 640px) { .csw { width: 13px; height: 8px; } .cswatch-row { gap: 5px; } }
/* Bigger invisible tap area around each small swatch. */
.csw { position: relative; }
.csw::after { content: ""; position: absolute; inset: -7px -2px; }
/* Computers (mouse): colour swatches appear only while the pointer is on the product's text. Phones keep them visible. */
@media (hover: hover) and (pointer: fine) {
  .card .cswatches { opacity: 0; transition: opacity .15s; }
  .card .cbody:hover .cswatches, .card .cbody:focus-within .cswatches { opacity: 1; }
}
/* Colour swatches without borders; the chosen colour gets a thin line underneath instead. */
.csw, .csw:hover, .csw.on, .csw.on:hover { box-shadow: none; }
.csw::before { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; border-radius: 1px; background: transparent; }
.csw.on::before { background: var(--white); }
.csw:hover::before { background: var(--muted); }
.csw.on:hover::before { background: var(--white); }
.csw.dark, .csw.dark:hover, .csw.dark.on { box-shadow: inset 0 0 0 1px rgba(241,241,239,.22); }
/* Phones and touch screens: no colour boxes on product cards (the product page shows every colour). */
@media (max-width: 640px), (hover: none) {
  .card .cswatches { display: none; }
  .card .cmeta:not(:has(.stars)) { display: none; }
}

/* One-click wishlist heart on product cards (top-right of the photo). */
.card { position: relative; }
.cwish { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.cwish-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.88); color: var(--black); box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s, background .15s; }
.cwish-btn:hover { background: #fff; transform: scale(1.06); }
.cwish-btn svg { width: 17px; height: 17px; grid-area: 1 / 1; }
.cwish-btn svg + svg { display: none; }
.cwish-btn[aria-pressed="true"] svg:first-child { display: none; }
.cwish-btn[aria-pressed="true"] svg + svg { display: block; }
.cwish-btn[aria-pressed="true"] svg + svg path { fill: #E5312F; stroke: #E5312F; }
.cwish-btn.pop { transform: scale(1.18); }
@media (max-width: 640px) { .cwish { top: 6px; right: 6px; } .cwish-btn { width: 30px; height: 30px; } .cwish-btn svg { width: 15px; height: 15px; } }
.cwish-btn[aria-pressed="true"] svg + svg path { fill: var(--black); stroke: var(--black); }
/* Wishlist heart: just the icon, no circle or background. */
.cwish-btn, .cwish-btn:hover { background: none; box-shadow: none; border-radius: 0; color: var(--black); }
.cwish-btn svg { width: 20px; height: 20px; }
.cwish-btn:hover { transform: scale(1.1); }
@media (max-width: 640px) { .cwish-btn svg { width: 18px; height: 18px; } }
/* Product names on cards: always one line, so every price lines up; long names fade out at the end. */
.card .pname { display: block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: clip;
  -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 100%); mask-image: linear-gradient(to right, #000 78%, transparent 100%); }
/* Category tile names: one line on every tile; long names fade out at the end. */
.tile .tname { display: block; font-style: normal; white-space: nowrap; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, #000 75%, transparent 100%); mask-image: linear-gradient(to right, #000 75%, transparent 100%); }
/* Second slider (after the featured products): same look, sits in the page flow. */
.bslider.mid { margin-top: 8px; }
/* Product cards: the colour line has a fixed height, so every price sits at the same level. */
.card .cmeta { height: 18px; overflow: hidden; align-items: center; }
/* Premium is shown by the gold badge on the photo, so the text lines stay level with other cards. */
.card.premium .brand { display: none; }

/* ---------- Light mode (sun/moon icon in the header; remembered on this device) ---------- */
:root[data-theme="light"] {
  --bg: #F6F6F3; --panel: #FFFFFF; --panel2: #EFEFEB; --line: #DEDED8;
  --white: #15181A; --muted: #5C6469; --accent: #6E7600;
  --ok: #1E8A4C; --warn: #A66A00; --bad: #C7372B; color-scheme: light;
}
:root[data-theme="light"] .testbar { background: #FFF3D1; color: #7A5200; }
:root[data-theme="light"] .flash { box-shadow: 0 12px 32px rgba(0,0,0,.14); }
:root[data-theme="light"] .card .pimg { background: #EBEBE6; }
:root[data-theme="light"] .tile { background: var(--panel); }
:root[data-theme="light"] .drawer-scrim { background: rgba(0,0,0,.35); }
:root[data-theme="light"] .csw.dark { box-shadow: none; }
:root[data-theme="light"] .tmore::before { border-color: var(--muted); }
/* Banners stay dark in both modes (text sits on photos and videos). */
.bslider { background: #14191D; color: #F1F1EF; --white: #F1F1EF; --muted: #A3ABAF; --accent: #D6DE23; }
/* Badges on photos keep light text on their dark pill. */
.card .pimg .tag { color: #F1F1EF; }

/* Sun/moon button */
.theme-btn { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
@media (max-width: 640px) { .theme-btn svg { width: 20px; height: 20px; } }
/* Dark mode shows the sun (tap for light); light mode shows the moon (tap for dark). */
.theme-btn .sun { display: block; } .theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; } :root[data-theme="light"] .theme-btn .moon { display: block; }

/* ---------- Light mode, clean retail palette: white page, #F5F5F5 image backgrounds, near-black text, no lime ---------- */
:root[data-theme="light"] {
  --bg: #FFFFFF; --panel: #FFFFFF; --panel2: #F5F5F5; --line: #E5E5E5;
  --white: #111111; --muted: #707072; --accent: #111111; --lime: #111111; --gold: #8A6D1F;
}
/* Things that sat on lime now sit on black, with white text. */
:root[data-theme="light"] .btn.primary { background: #111111; color: #FFFFFF; border-color: #111111; border-radius: 999px; }
:root[data-theme="light"] .btn.primary:hover { background: #3A3A3A; border-color: #3A3A3A; }
:root[data-theme="light"] .btn:not(.primary) { border-radius: 999px; border-color: #CACACB; background: #FFFFFF; }
:root[data-theme="light"] .btn:not(.primary):hover { border-color: #111111; }
:root[data-theme="light"] .count, :root[data-theme="light"] .skip, :root[data-theme="light"] .pill:not(.gold):not(.grey):not(.ok):not(.warn):not(.bad) { background: #111111; color: #FFFFFF; }
:root[data-theme="light"] .pill.gold { color: #FFFFFF; }
:root[data-theme="light"] .offerbar { background: #F5F5F5; color: #111111; border-radius: 0; font-weight: 500; }
:root[data-theme="light"] .note { background: #F5F5F5; }
:root[data-theme="light"] .banner-wh, :root[data-theme="light"] .shopbox { border-color: #E5E5E5; background: #F5F5F5; }
:root[data-theme="light"] .testbar { background: #F5F5F5; color: #111111; }
:root[data-theme="light"] .card .pimg, :root[data-theme="light"] .pimg { background: #F5F5F5; }
:root[data-theme="light"] .tile { background: #F5F5F5; border-color: #F5F5F5; }
:root[data-theme="light"] .tile:hover { border-color: #111111; }
:root[data-theme="light"] .search { background: #F5F5F5; border-color: #F5F5F5; }
:root[data-theme="light"] .search input { background: transparent; }
:root[data-theme="light"] .price .off { color: #111111; }
/* Lime parts of icons (category icons, saved heart) become white or black. */
:root[data-theme="light"] .tile svg [fill="#D6DE23"] { fill: #FFFFFF; }
:root[data-theme="light"] .tile svg [stroke="#D6DE23"] { stroke: #FFFFFF; }
:root[data-theme="light"] svg[fill="#D6DE23"] { fill: #111111; stroke: #111111; }
/* Banners stay dark; in light mode their buttons are white pills with black text. */
:root[data-theme="light"] .bslider { --lime: #FFFFFF; --accent: #FFFFFF; }
:root[data-theme="light"] .bslider .btn.primary { background: #FFFFFF; color: #111111; border-color: #FFFFFF; }
:root[data-theme="light"] .bslider .btn.primary:hover { background: #E5E5E5; border-color: #E5E5E5; }
:root[data-theme="light"] .bdots button[aria-current="true"] { background: #FFFFFF; }
:root[data-theme="light"] .tarrow { background: #FFFFFF; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.btn.armed, .btn.ghost.armed, .btn.ghost.danger.armed { background: var(--bad); border-color: var(--bad); color: #fff; white-space: nowrap; }
form .confirm-note { display: none; }

/* ---------- Admin side menu: always visible on computers; slide-in panel from the menu icon on phones and tablets ---------- */
.admin-menu-btn { display: none; }
body.admin.with-side .admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
body.admin.with-side .admin-shell > main { max-width: none; width: 100%; margin: 0; min-width: 0; }
.aside { position: sticky; top: 63px; height: calc(100vh - 63px); overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line); background: var(--bg); padding: 14px 12px 28px; scrollbar-width: thin; }
.aside-top { display: none; }
.aside-nav { display: grid; gap: 14px; }
.aside-group { display: grid; gap: 1px; }
.aside-label { font-family: var(--display); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 10px 4px; }
.aside-link { display: block; padding: 7px 10px; border-radius: 8px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 13.5px; border-left: 2px solid transparent; }
.aside-link:hover { background: var(--panel); }
.aside-link.on { background: var(--panel); border-left-color: var(--lime); color: var(--white); }
.aside-scrim { display: none; }
@media (max-width: 999px) {
  .admin-menu-btn { display: inline-flex; margin-right: 4px; }
  body.admin.with-side .admin-shell { display: block; }
  .aside { position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: min(82vw, 300px); z-index: 950; border-right: 1px solid var(--line);
    transform: translateX(-100%); transition: transform .26s ease; padding-top: 6px; }
  .aside.open { transform: none; }
  .aside-top { display: flex; justify-content: flex-end; padding: 2px 0 8px; }
  .aside-close svg { width: 20px; height: 20px; }
  .aside-scrim { position: fixed; inset: 0; z-index: 940; background: rgba(0,0,0,.55); }
  .aside-scrim.show { display: block; }
  body.admin-menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .aside { transition: none; } }
/* Icon buttons (admin menu, close, theme): plain icon, no box or border. */
button.icon-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; box-shadow: none; }
button.icon-btn:focus:not(:focus-visible) { outline: none; }
button.icon-btn { padding: 8px; }
button.icon-btn:hover { background: none; opacity: .8; }
/* Admin header on phones: the menu icon never shrinks; the staff name moves into the menu (My account). */
.admin-menu-btn { flex: none; }
.admin-menu-btn svg { width: 22px; height: 22px; flex: none; }
.admin-hdr .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .admin-hdr { gap: 8px; }
  .admin-hdr > a.small.muted { display: none; }
  .admin-hdr > form { margin-left: auto; }
}

/* Admin → Reports */
.rangebar { display: grid; gap: 10px; }
.rangebar .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-link { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--white); background: var(--panel2); }
.chip-link:hover { border-color: var(--muted); }
.chip-link.on { background: var(--lime); color: var(--black); border-color: var(--lime); }
.rangebar form { gap: 10px; align-items: end; flex-wrap: wrap; }
.rangebar .field { min-width: 150px; }
a.kpi { text-decoration: none; color: inherit; display: block; }
.kpi .small.muted { display: block; margin-top: 2px; }
td.bad { color: var(--bad); }
@media (max-width: 640px) { .rangebar .field { min-width: 0; flex: 1; } .kpi b { font-size: 20px; } }
.rangebar form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.rangebar form .field { min-width: 0; }
.rangebar form .input { width: 100%; min-width: 0; }

/* Reports → Sales team: professional layout */
.rep-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.rep-title { font-size: 20px; letter-spacing: -.01em; }
.rep-sep { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.kpi > span:first-child { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.kpi-hero { background: linear-gradient(135deg, var(--panel) 0%, var(--panel2) 100%); border-color: var(--lime); }
.kpi-hero b { font-size: 28px; }
.kpi-warn { border-color: var(--warn); }
.delta { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.delta .muted { font-weight: 400; }
.leaderboard { display: grid; gap: 10px; }
.lb-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel2); display: grid; gap: 10px; }
.lb-card.lb-top { border-color: var(--lime); }
.lb-who { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; }
.lb-who b { display: block; font-family: var(--display); font-size: 15px; }
.lb-role { font-size: 12px; color: var(--muted); }
.lb-rank { width: 22px; text-align: center; font-family: var(--display); font-weight: 700; color: var(--muted); }
.lb-top .lb-rank { color: var(--lime); }
.lb-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 13px; }
.lb-avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.lb-total { text-align: right; } .lb-total b { font-size: 20px; }
.lb-share { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.lb-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.lb-stat span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lb-stat b { font-size: 14px; font-weight: 600; }
.rep-people { display: flex; gap: 8px; flex-wrap: wrap; }
.person-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--panel); }
.person-chip.muted { padding-left: 12px; }
.rep-table tfoot td { border-top: 2px solid var(--line); padding-top: 10px; }
@media (max-width: 640px) {
  .lb-who { grid-template-columns: auto auto 1fr; } .lb-total { grid-column: 1 / -1; text-align: left; padding-left: 34px; }
  .lb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-hero b { font-size: 24px; }
}
.lb-stat b { white-space: nowrap; }
.lb-stat b span { display: inline; font-size: inherit; text-transform: none; letter-spacing: 0; }

/* Admin → Regional prices */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.rp-table td { vertical-align: top; }
.rp-in { width: 110px; text-align: right; }
.rp-normal { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.rp-table tr.rp-set td:first-child { box-shadow: inset 3px 0 0 var(--lime); }

/* Reports: Total / B2B / B2C switch and split bar */
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); width: fit-content; max-width: 100%; overflow-x: auto; }
.seg a { padding: 8px 16px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a.on { background: var(--lime); color: var(--black); }
.seg a:not(.on):hover { color: var(--white); }
.split-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--panel2); margin: 6px 0 14px; }
.split-bar i { display: block; height: 100%; }
.split-bar .b2b { background: var(--lime); } .split-bar .b2c { background: #4FA3FF; }

.export-box { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
.export-box > .small.muted:first-child { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

/* Phones: no footer link columns (they are in the menu); one small legal line instead. */
.foot-legal { display: none; }
@media (max-width: 640px) {
  footer .foot { display: none; }
  .foot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 16px var(--gutter) 22px; font-size: 12px; color: var(--muted); }
  .foot-legal a { color: var(--muted); text-decoration: none; }
  .foot-legal a:hover { color: var(--white); }
}

/* Footer: five equal columns, headings on one line, links one per line without wrapping. */
@media (min-width: 641px) {
  .foot { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 28px; align-items: start; }
  .foot > div, .foot > details { display: grid; align-content: start; gap: 2px; }
  .foot b { margin: 0 0 8px; line-height: 20px; font-size: 14px; }
  .foot-more summary { height: 20px; margin-bottom: 8px; }
  .foot-more summary b { margin: 0; }
  .foot a, .foot span { padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .foot-more span { white-space: normal; }
  .foot-bar { max-width: var(--page); margin: 0 auto; padding: 14px var(--gutter) 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
}
@media (min-width: 641px) and (max-width: 900px) { .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .foot-bar { display: none; } }

/* Phones: banner text at large-sportswear-app sizes: big heading, readable line, proper tap-size button. */
@media (max-width: 640px) {
  .bcopy:has(.btitle) { width: min(88vw, 100%); }
  .bcopy:has(.btitle) p, .bcopy:has(.btitle) p.fit { width: auto; min-width: 0; max-width: 82vw; white-space: normal; font-size: 15px; line-height: 1.35; margin: 6px auto 0; }
  .bslide.pos-bottom-left .bcopy p, .bslide.pos-left .bcopy p { margin-left: 0; }
  .bslide.pos-bottom-right .bcopy p, .bslide.pos-right .bcopy p { margin-right: 0; }
  .bcopy .btitle { line-height: .88; }
  .bcopy .row { margin-top: 14px; }
  .bcopy .btn { padding: 9px 22px; font-size: 15px; line-height: 1.3; }
  .bslide[class*="pos-bottom"] .bcopy, .bslide.has-media .bcopy { padding-bottom: 52px; }
}

/* ---------- Banner text: the same sizes on every banner (no per-banner shrinking) ----------
   Admin limits keep text short enough to fit: heading 24 characters, line 40, small top line 30. */
.bcopy, .bcopy:has(.btitle) { width: min(900px, 100%); gap: 0; }
.bcopy .btitle { font-size: clamp(56px, 5vw, 88px); line-height: .9; white-space: normal; text-wrap: balance; margin: 0; }
.bcopy .eyebrow { font-size: 12px; margin-bottom: 6px; }
.bcopy p, .bcopy:has(.btitle) p, .bcopy:has(.btitle) p.fit { width: auto; min-width: 0; max-width: 100%; font-size: 18px; line-height: 1.3; margin: 8px 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bslide.pos-center .bcopy p, .bslide.pos-bottom-center .bcopy p { margin-inline: auto; }
.bcopy .row { margin-top: 16px; }
.bcopy .btn { padding: 10px 24px; font-size: 15px; line-height: 1.3; }
@media (max-width: 640px) {
  .bcopy, .bcopy:has(.btitle) { width: 100%; padding-left: 20px; padding-right: 20px; }
  .bcopy .btitle { font-size: 32px; line-height: .92; }
  .bcopy .eyebrow { font-size: 10.5px; margin-bottom: 4px; }
  .bcopy p, .bcopy:has(.btitle) p, .bcopy:has(.btitle) p.fit { font-size: 14px; margin-top: 6px; max-width: 100%; }
  .bcopy .row { margin-top: 12px; }
  .bcopy .btn { padding: 8px 20px; font-size: 14px; }
  .bslide[class*="pos-bottom"] .bcopy, .bslide.has-media .bcopy { padding-bottom: 46px; }
}

.char-count { display: block; text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.char-count.over { color: var(--bad); font-weight: 600; }
/* Banner heading always on one line (the 24-character limit makes sure it fits); wider text area on computers. */
.bcopy, .bcopy:has(.btitle) { width: min(1200px, 100%); }
.bcopy .btitle { white-space: nowrap; text-wrap: nowrap; }
/* Phones: header hides on scroll down, returns on scroll up (menu.js). */
@media (max-width: 640px) {
  header.top { transition: transform .25s ease; will-change: transform; }
  header.top.hdr-hidden { transform: translateY(-100%); }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { header.top { transition: none; } }

/* Sales closed: "Back soon" in place of buy buttons */
.back-soon { flex: 1; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; background: var(--panel2); color: var(--white); font-family: var(--display); font-size: 14.5px; }
.sales-switch.is-closed { border-color: var(--warn); }

/* Light mode paused: hide the sun/moon icon (the light palette is still being chosen). */
.theme-btn { display: none !important; }
.back-soon-page { display: grid; gap: 14px; padding: 40px 0 60px; }

/* ---------- Product page gallery (4:5 photos). Desktop: thumbnails left, one big photo that fits the screen; phone: full-width swipe with dots. ---------- */
.pdp { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: clamp(24px, 3vw, 56px); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; position: sticky; top: 140px; }
.gallery.multi { grid-template-columns: 76px minmax(0, calc((100vh - 215px) * var(--photo-r))); justify-content: center; }
.gallery .stage { position: relative; width: 100%; max-width: calc((100vh - 245px) * var(--photo-r)); justify-self: center; }
.gallery .main { aspect-ratio: var(--photo-r); display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; border: 0; border-radius: 14px; background: #F5F5F5; outline: none; }
.gallery .main::-webkit-scrollbar { display: none; }
.gallery .main > img, .gallery .main > .pimg, .gallery .main > svg { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; mix-blend-mode: multiply; }
.gallery .main:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 215px); overflow-y: auto; scrollbar-width: none; }
.gallery .thumbs button { width: 76px; height: calc(76px / var(--photo-r)); border-radius: 8px; border: 1px solid transparent; background: #F5F5F5; opacity: .7; transition: opacity .15s, border-color .15s; }
.gallery .thumbs button:hover { opacity: 1; }
.gallery .thumbs button.on { opacity: 1; border-color: var(--white); }
.gallery .thumbs img { mix-blend-mode: multiply; }
.gnav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #0A0D0F; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.gnav.prev { left: 12px; } .gnav.next { right: 12px; }
.stage:hover .gnav { opacity: 1; }
.gallery.at-start .gnav.prev, .gallery.at-end .gnav.next { opacity: 0 !important; pointer-events: none; }
.gallery .dots { display: none; }
@media (max-width: 800px) {
  .pdp { grid-template-columns: 1fr; gap: 18px; }
  .gallery, .gallery.multi { grid-template-columns: 1fr; position: static; margin: 0 calc(-1 * var(--gutter)); }
  .gallery .thumbs, .gnav { display: none; }
  .gallery .stage { max-width: none; }
  .gallery .main { border-radius: 0; }
  .gallery .dots { display: flex; justify-content: center; gap: 6px; position: absolute; left: 0; right: 0; bottom: 12px; }
  .gallery .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(10,13,15,.28); transition: width .2s, background .2s; }
  .gallery .dots i.on { width: 18px; border-radius: 3px; background: #0A0D0F; }
}
/* ---------- Product listing (page 2): fixed columns so 4:5 photos stay a good size. ---------- */
.grid, .grid.featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid, .grid.featured { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid, .grid.featured { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .grid, .grid.featured { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Product photo shape (width / height): 1 = square 1:1, 0.8 = portrait 4:5. Photos are centre-cropped to this. */
:root { --photo-r: 1; }
/* Phone listing, Nike style: photos run edge to edge with thin gaps and square corners; text sits just under. */
@media (max-width: 640px) {
  .grid, .grid.featured { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); gap: 22px 4px; }
  .card .pimg { border-radius: 0; }
  .card .cbody { padding: 8px 10px 0; }
}

/* ======================= Nike-style product listing and product page (2026-11-14) ======================= */
/* Square corners on product photos everywhere (cards, big photo, thumbnails). */
.card .pimg, .gallery .main, .gallery .thumbs button { border-radius: 0; }

/* ---- Filters: plain list of sections; each opens with an arrow and holds tick boxes ---- */
@media (min-width: 801px) {
  .filters { background: none; border: 0; border-radius: 0; padding: 0 8px 0 0; max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: thin; }
  .fbtns .btn.primary { display: none; }
}
.filter-form { display: grid; gap: 0; }
.fsec { border-bottom: 1px solid var(--line); }
.fsec:first-of-type { border-top: 1px solid var(--line); }
.fsec > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 15px; }
.fsec > summary::-webkit-details-marker { display: none; }
.fsec > summary svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .2s; flex: none; }
.fsec[open] > summary svg { transform: rotate(-90deg); }
.fsec-body { display: grid; gap: 4px; padding: 0 0 16px; }
.fsec .chk { font-size: 14px; gap: 10px; }
.fsec .chk input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--muted); border-radius: 3px; background: transparent; display: grid; place-items: center; cursor: pointer; }
.fsec .chk input:checked { background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0D0F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--white); }
.fsec .chk input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.fbtns { padding-top: 14px; }

/* ---- Product page layout: name/price on the right on desktop; above the photo on phones ---- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 400px); grid-template-areas: "gallery head" "gallery buy"; grid-template-rows: auto 1fr; column-gap: clamp(24px, 3.5vw, 64px); row-gap: 0; justify-content: center; align-items: start; }
.pdp-head { grid-area: head; display: grid; gap: 2px; padding-bottom: 22px; }
.gallery { grid-area: gallery; }
.buybox { grid-area: buy; display: grid; gap: 22px; align-content: start; }
.pdp-head .pname { font-family: var(--body, Inter, sans-serif); font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: 0; text-transform: none; margin: 0; }
.psub { color: var(--muted); font-size: 16px; }
.pprice { display: grid; gap: 2px; margin-top: 14px; }
.pprice .price.big b { font-size: 18px; font-weight: 600; }
.pdp-crumb { margin-bottom: 18px; }

/* Gallery: thumbnails exactly as tall as the big photo (top and bottom lines match). */
.gallery.multi { grid-template-columns: 96px minmax(0, calc((100vh - 245px) * var(--photo-r))); }
.gallery .thumbs { height: var(--th, auto); max-height: none; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; overflow: hidden; align-items: flex-end; }
.gallery .thumbs button { width: var(--ts, 76px); height: var(--ts, 76px); flex: none; }
.gallery .main { cursor: zoom-in; }
.zlens { position: absolute; display: none; pointer-events: none; background: rgba(255,255,255,.28); outline: 1px solid rgba(255,255,255,.6); }
.zpane { position: absolute; top: 0; left: calc(100% + 24px); width: 100%; height: 100%; display: none; pointer-events: none; z-index: 30; background-color: #F5F5F5; background-repeat: no-repeat; background-size: 250%; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.gallery.zooming .zlens, .gallery.zooming .zpane { display: block; }
.gallery.zooming .gnav { opacity: 0 !important; }

/* Colour choice as product photos (Nike style). */
.ctiles { display: flex; gap: 8px; flex-wrap: wrap; }
.ctile { width: 70px; height: 70px; background: #F5F5F5; border: 1px solid transparent; display: grid; place-items: center; overflow: hidden; }
.ctile img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ctile i { width: 60%; height: 60%; border-radius: 50%; display: block; }
.ctile:hover { border-color: var(--muted); }
.ctile.on { border-color: var(--white); outline: 1px solid var(--white); }

/* Sizes: big buttons in a grid. */
.sizeform { display: grid; gap: 12px; }
.sizeform .h3, .pincheck .h3 { font-family: var(--body, Inter, sans-serif); font-size: 16px; font-weight: 500; margin: 0; }
.sizeguide { font-size: 14px; color: var(--white); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sizes .chip { display: block; }
.sizes .chip span:not(.sr-only) { border-radius: 4px; padding: 14px 6px; font-size: 15px; min-width: 0; border-color: var(--line); }
.sizes .chip:hover span:not(.sr-only) { border-color: var(--white); }
.sizes .chip input:checked + span { border-color: var(--white); color: var(--white); outline: 1px solid var(--white); }

/* Add to Bag and Favourite: large pill buttons. */
.btn.round { text-transform: none; letter-spacing: 0; border-radius: 999px; min-height: 58px; font-size: 16px; font-family: var(--body, Inter, sans-serif); font-weight: 500; }
.btn.block { width: 100%; }
.btn.outline { background: transparent; border: 1.5px solid var(--line); color: var(--white); }
.btn.outline:hover { border-color: var(--white); }
.btn.outline svg { width: 22px; height: 22px; }
.favform { margin-top: -10px; }

/* Description, delivery check and promises: quiet and simple. */
.pdesc p { margin: 0 0 12px; line-height: 1.7; }
.pdesc ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pincheck { display: grid; gap: 6px; }
.pincheck p { margin: 0; }
.pinbox { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 6px 0 14px; margin-top: 8px; }
.pinbox:focus-within { border-color: var(--white); }
.pinbox input { flex: 1; min-width: 0; background: none; border: 0; color: var(--white); font: inherit; font-size: 16px; padding: 14px 0; outline: none; }
.pinbox button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 500; padding: 10px; cursor: pointer; }
.pinbox input:valid:not(:placeholder-shown) + button { color: var(--white); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.perks li svg { width: 22px; height: 22px; flex: none; }
.perks li span { flex: 1; }
.perks a { color: var(--white); font-weight: 500; }
.accs details.acc { padding: 0; }
.accs details.acc:last-child { border-bottom: 1px solid var(--line); }
.accs details.acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 22px 0; font-size: 18px; font-weight: 500; font-family: var(--body, Inter, sans-serif); }
.accs details.acc > summary::-webkit-details-marker { display: none; }
.accs details.acc > summary svg { width: 20px; height: 20px; transform: rotate(90deg); transition: transform .2s; }
.accs details.acc[open] > summary svg { transform: rotate(-90deg); }
.accs details.acc > :not(summary) { margin: 0 0 20px; }

/* Full-screen photos (tap or click). Pinch-zoom works on phones. */
.lightbox { position: fixed; inset: 0; z-index: 200; background: #F5F5F5; overflow-y: auto; display: grid; justify-items: center; gap: 4px; touch-action: pan-x pan-y pinch-zoom; }
.lightbox img { width: min(100%, 100vh); height: auto; display: block; mix-blend-mode: multiply; }
.lb-close { position: fixed; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0A0D0F; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
html.lb-open, html.lb-open body { overflow: hidden; }

/* Phone bar: Add to Bag stays at the bottom while the main button is off screen. */
.buybar { display: none; }

@media (max-width: 800px) {
  .pdp { grid-template-columns: 1fr; grid-template-areas: "head" "gallery" "buy"; grid-template-rows: none; row-gap: 0; }
  .pdp-crumb { display: none; }
  .pdp-head { padding: 4px 0 18px; }
  .pdp-head .pname { font-size: 22px; }
  .gallery { margin-bottom: 18px; }
  .gallery .main { cursor: default; }
  .ctiles { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .ctile { width: 96px; height: 96px; flex: none; }
  .sizes { grid-template-columns: 1fr 1fr; }
  .buybar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(10,13,15,.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
  .buybar.show { transform: none; }
  .buybar .btn.round { min-height: 52px; }
}
.gallery { z-index: 2; }
@media (max-width: 800px) { .gallery { z-index: auto; } }
@media (max-width: 800px) {
  .gallery, .gallery.multi { grid-template-columns: 1fr; }
  .gallery .thumbs, .zlens, .zpane { display: none !important; }
}

/* ======================= Round 3 (2026-11-14): Nike sizes, whole photos, square tiles ======================= */
/* Whole product always visible: photos are fitted inside the square, never cut. The soft grey fills the sides. */
.card .pimg img, .gallery .main > img, .gallery .thumbs img, .ctile img, .tile.photo img, .catthumb img { object-fit: contain; }
.card .pimg, .gallery .main, .gallery .thumbs button, .ctile { background: #F5F5F5; }
.tile.photo { background: #F5F5F5; }
.tile.photo img { mix-blend-mode: multiply; }
/* Square corners on category cards too. */
.tile, .tiles .tile, .tilerow .tile, .tile.photo, .catthumb { border-radius: 0; }

/* Product page at Nike's size, centred: thumbnails, photo up to 560px, buy column 380px. */
.pdp { --mw: min(560px, calc(100vh - 245px)); grid-template-columns: auto minmax(300px, 380px); justify-content: center; column-gap: 40px; }
.gallery.single { grid-template-columns: var(--mw); }
.gallery.multi { grid-template-columns: 72px var(--mw); gap: 14px; justify-content: start; }
.gallery .stage { max-width: none; width: var(--mw); }
.gallery .thumbs { justify-content: flex-start; align-items: flex-end; }
.gallery .thumbs button { opacity: 1; border: 1px solid transparent; }
.gallery .thumbs button:hover, .gallery .thumbs button.on { border-color: var(--white); }
.pdp-crumb { max-width: calc(72px + 14px + 560px + 40px + 380px); margin-left: auto; margin-right: auto; }

/* Filters: long lists scroll inside their section; colour dots. */
.fscroll { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.fdot { width: 16px; height: 16px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* Complete your kit: one sliding row (4 on desktop), no empty spaces. */
.slide-sec .sec-head { display: flex; align-items: center; justify-content: space-between; }
.slide-nav { display: flex; gap: 10px; }
.snav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--panel2); color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.snav:disabled { opacity: .35; cursor: default; }
.grid.slide { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0; }
.grid.slide::-webkit-scrollbar { display: none; }
.grid.slide > .card { scroll-snap-align: start; }
@media (max-width: 1099px) { .grid.slide { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }

@media (max-width: 800px) {
  .pdp { grid-template-columns: 1fr; column-gap: 0; }
  .gallery.multi, .gallery.single { grid-template-columns: 1fr; }
  .gallery .stage { width: auto; }
  /* Colour photos: three equal tiles across; more than three scroll sideways (no scrollbar); two leave the third space empty. */
  .ctiles { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0; padding: 0; scroll-snap-type: x mandatory; }
  .ctiles::-webkit-scrollbar { display: none; }
  .ctile { width: auto; height: auto; aspect-ratio: 1; scroll-snap-align: start; }
  .slide-nav { display: none; }
  .grid.slide { grid-auto-columns: 70%; gap: 4px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
}
.pdp-crumb { width: 100%; box-sizing: border-box; }
@media (max-width: 800px) { .gallery, .gallery.multi, .gallery.single { margin-bottom: 18px; } }

/* ======================= Round 4 (2026-11-14) ======================= */
/* Search: a bar only on the home page; elsewhere an icon opens it as a full-width row under the header. */
.hdr.nohome .search { display: none; grid-column: 1 / -1; order: 3; }
header.top.searching .hdr.nohome .search { display: flex; }
.search-btn svg { width: 22px; height: 22px; }
/* Category photo cards: photo fills the card, no border. */
.tile.photo, .tile.photo:hover { border: 0; outline: 0; }
.tile.photo img, .catthumb img { object-fit: cover; mix-blend-mode: normal; }
/* Main photo arrows at the bottom-right, always shown on desktop (Nike style); phones swipe instead. */
.gnav { top: auto; bottom: 18px; transform: none; opacity: 1; width: 44px; height: 44px; font-size: 24px; }
.gnav.prev { left: auto; right: 72px; }
.gnav.next { right: 18px; }
.gallery.at-start .gnav.prev, .gallery.at-end .gnav.next { opacity: .45 !important; pointer-events: none; }
/* Phone: category cards line up with the product list below: edge to edge, same thin gap. */
@media (max-width: 640px) {
  .tilerow .tiles { width: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); gap: 4px; }
}
/* Phone: categories slide sideways in one row (swipe, no arrows or "more" button); smaller gap before the products. */
@media (max-width: 800px) {
  .tilerow .tiles { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 8px) / 3.25); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tilerow .tiles::-webkit-scrollbar { display: none; }
  .tilerow .tile { scroll-snap-align: start; }
  .tilerow.limit:not(.open) .tile:nth-child(n+7) { display: flex; }
  .tilerow.limit .tmore, .tilerow .tarrow { display: none !important; }
  main > section:has(.tilerow) + .featured-sec { margin-top: -14px; }
}

/* Orders: bulk shipping bar and booking progress */
.bulkbar { display: grid; gap: 10px; }
.bulkbar .row.wrap { flex-wrap: wrap; gap: 8px; }
.progress { height: 10px; background: var(--panel2, #222); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.progress i { display: block; height: 100%; background: var(--lime, #D6DE23); transition: width .4s; }
/* Pages without the search bar (all but home): logo on the left, icons on the right. */
@media (min-width: 561px) { .hdr.nohome .icons { grid-column: 3; justify-self: end; } }

/* Cart: pincode box for the delivery charge */
.cartpin { display: grid; gap: 4px; padding: 6px 0 2px; }
.cartpin .pinbox { margin-top: 2px; }
.cartpin .pinbox input { padding: 10px 0; font-size: 15px; }

/* Product page photos: each slide carries its own soft-grey backing, so white photo backgrounds blend into the
   same grey in every browser (Safari does not blend images with the background of a sliding container). */
.gallery .main > .slide { flex: 0 0 100%; width: 100%; height: 100%; background: #F5F5F5; isolation: isolate; scroll-snap-align: start; }
.gallery .main > .slide > img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.lightbox .lbs { width: min(100%, 100vh); background: #F5F5F5; isolation: isolate; }
.lightbox .lbs img { width: 100%; }

/* ======================= Light mode, adidas-style (test only; see light_mode_test) =======================
   White page, pure black type, cool greys; square corners; black rectangular buttons with bold capitals.
   No green or lime anywhere: our secondary gold marks highlights and good news. */
html.theme-on .theme-btn { display: inline-flex !important; align-items: center; justify-content: center; }
html.light-adidas[data-theme="light"] {
  --bg: #FFFFFF; --panel: #FFFFFF; --panel2: #ECEFF1; --line: #D3D7DA;
  --white: #000000; --muted: #767677; --accent: #000000; --lime: #000000;
  --gold: #B8913A; --gold-ink: #7A5E1C;
  --ok: #7A5E1C; --warn: #8A5A00; --bad: #D0021B; --r: 0px; color-scheme: light;
}
/* Product photos on adidas's cool light grey */
html.light-adidas[data-theme="light"] .card .pimg, html.light-adidas[data-theme="light"] .pimg, html.light-adidas[data-theme="light"] .gallery .main,
html.light-adidas[data-theme="light"] .gallery .main > .slide, html.light-adidas[data-theme="light"] .gallery .thumbs button, html.light-adidas[data-theme="light"] .ctile,
html.light-adidas[data-theme="light"] .tile.photo, html.light-adidas[data-theme="light"] .lightbox, html.light-adidas[data-theme="light"] .lightbox .lbs { background: #ECEFF1; }
/* Buttons: black rectangles, bold capitals, an arrow on the main one; secondary is a black outline */
html.light-adidas[data-theme="light"] .btn { border-radius: 0; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-family: var(--body); }
html.light-adidas[data-theme="light"] .btn.primary { background: #000000; color: #FFFFFF; border: 0; box-shadow: 3px 3px 0 #FFFFFF, 4px 4px 0 #000000; }
html.light-adidas[data-theme="light"] .btn.primary:hover { background: #000000; color: #B8913A; }
html.light-adidas[data-theme="light"] .btn.primary:not([disabled])::after { content: "→"; margin-left: 10px; font-weight: 400; }
html.light-adidas[data-theme="light"] .btn:not(.primary) { background: #FFFFFF; color: #000000; border: 1px solid #000000; }
html.light-adidas[data-theme="light"] .btn:not(.primary):hover { color: #7A5E1C; border-color: #7A5E1C; }
html.light-adidas[data-theme="light"] .btn.round { border-radius: 0; min-height: 52px; }
html.light-adidas[data-theme="light"] .btn[disabled] { background: #ECEFF1; color: #767677; box-shadow: none; }
/* Inputs, cards and boxes: square, thin grey lines, black when focused */
html.light-adidas[data-theme="light"] .input, html.light-adidas[data-theme="light"] .select, html.light-adidas[data-theme="light"] .pinbox, html.light-adidas[data-theme="light"] .search { border-radius: 0; border-color: #767677; }
html.light-adidas[data-theme="light"] .pinbox:focus-within, html.light-adidas[data-theme="light"] .input:focus { border-color: #000000; }
html.light-adidas[data-theme="light"] .search { background: #ECEFF1; border-color: #ECEFF1; }
html.light-adidas[data-theme="light"] .panel, html.light-adidas[data-theme="light"] .note, html.light-adidas[data-theme="light"] .flash, html.light-adidas[data-theme="light"] .chip span, html.light-adidas[data-theme="light"] .sizes .chip span:not(.sr-only) { border-radius: 0; }
html.light-adidas[data-theme="light"] .note { background: #ECEFF1; border-left: 3px solid #B8913A; }
/* Sizes and colours: selected = black outline */
html.light-adidas[data-theme="light"] .sizes .chip span:not(.sr-only) { border-color: #D3D7DA; }
html.light-adidas[data-theme="light"] .sizes .chip:hover span:not(.sr-only) { border-color: #000000; }
html.light-adidas[data-theme="light"] .sizes .chip input:checked + span { background: #000000; color: #FFFFFF; outline: 0; border-color: #000000; }
html.light-adidas[data-theme="light"] .ctile.on { border-color: #000000; outline: 1px solid #000000; }
/* Category bar: active is a black underline, no pill */
html.light-adidas[data-theme="light"] nav.cats a { border-radius: 0; border: 0; border-bottom: 2px solid transparent; }
html.light-adidas[data-theme="light"] nav.cats a.on { border-bottom-color: #000000; font-weight: 700; }
html.light-adidas[data-theme="light"] nav.cats a.wh { color: #7A5E1C; font-weight: 700; }
/* Gold instead of green: good-news text, success notes, badges, counters */
html.light-adidas[data-theme="light"] .ok, html.light-adidas[data-theme="light"] .small.ok { color: #7A5E1C; }
html.light-adidas[data-theme="light"] .flash.ok { border-color: #B8913A; }
html.light-adidas[data-theme="light"] .pill.ok { background: rgba(184,145,58,.14); color: #7A5E1C; }
html.light-adidas[data-theme="light"] .lime { color: #7A5E1C; }
html.light-adidas[data-theme="light"] .count { background: #B8913A; color: #000000; }
html.light-adidas[data-theme="light"] .pill:not(.gold):not(.grey):not(.ok):not(.warn):not(.bad) { background: #000000; color: #FFFFFF; border-radius: 0; }
html.light-adidas[data-theme="light"] .card .pimg .tag { background: #FFFFFF; color: #000000; border-radius: 0; font-weight: 700; }
html.light-adidas[data-theme="light"] .card .pimg .tag.gold, html.light-adidas[data-theme="light"] .pill.gold { background: #B8913A; color: #000000; }
html.light-adidas[data-theme="light"] .price .off { color: #D0021B; }
html.light-adidas[data-theme="light"] .price s { color: #767677; }
html.light-adidas[data-theme="light"] .dots i.on, html.light-adidas[data-theme="light"] .gallery .dots i.on { background: #000000; }
html.light-adidas[data-theme="light"] svg[fill="#D6DE23"] { fill: #000000; stroke: #000000; }
html.light-adidas[data-theme="light"] .tile svg [fill="#D6DE23"] { fill: #B8913A; }
html.light-adidas[data-theme="light"] .tile svg [stroke="#D6DE23"] { stroke: #B8913A; }
html.light-adidas[data-theme="light"] .tile { background: #ECEFF1; border-color: #ECEFF1; border-radius: 0; }
/* Filters: tick boxes black when ticked */
html.light-adidas[data-theme="light"] .fsec .chk input { border-color: #000000; border-radius: 0; }
html.light-adidas[data-theme="light"] .fsec .chk input:checked { background-color: #000000; border-color: #000000; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
/* Header, footer and the phone buy bar */
html.light-adidas[data-theme="light"] header.top { background: #FFFFFF; border-bottom-color: #D3D7DA; }
html.light-adidas[data-theme="light"] .buybar { background: rgba(255,255,255,.97); border-top-color: #D3D7DA; }
html.light-adidas[data-theme="light"] .testbar { background: #ECEFF1; color: #000000; }
/* Banners stay dark in both modes; their main button turns white with black text */
html.light-adidas[data-theme="light"] .bslider .btn.primary { background: #FFFFFF; color: #000000; box-shadow: none; }
html.light-adidas[data-theme="light"] .bslider .btn.primary:hover { color: #7A5E1C; }

/* ======================= Light mode, Nike-style with our gold (test only) =======================
   White page, near-black #111 type, Nike greys; rounded pill buttons; photos on #F5F5F5. Gold replaces green and lime. */
html.light-nike[data-theme="light"] {
  --bg: #FFFFFF; --panel: #FFFFFF; --panel2: #F5F5F5; --line: #E5E5E5;
  --white: #111111; --muted: #707072; --accent: #111111; --lime: #111111;
  --gold: #B8913A; --ok: #7A5E1C; --warn: #8A5A00; --bad: #D30005; color-scheme: light;
}
html.light-nike[data-theme="light"] .card .pimg, html.light-nike[data-theme="light"] .pimg, html.light-nike[data-theme="light"] .gallery .main,
html.light-nike[data-theme="light"] .gallery .main > .slide, html.light-nike[data-theme="light"] .gallery .thumbs button, html.light-nike[data-theme="light"] .ctile,
html.light-nike[data-theme="light"] .tile.photo, html.light-nike[data-theme="light"] .lightbox, html.light-nike[data-theme="light"] .lightbox .lbs { background: #F5F5F5; }
/* Buttons: black pills (white text), outline pills for the rest; hover goes grey like Nike */
html.light-nike[data-theme="light"] .btn { border-radius: 999px; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 500; }
html.light-nike[data-theme="light"] .btn.primary { background: #111111; color: #FFFFFF; border: 1px solid #111111; }
html.light-nike[data-theme="light"] .btn.primary:hover { background: #707072; border-color: #707072; }
html.light-nike[data-theme="light"] .btn:not(.primary) { background: #FFFFFF; color: #111111; border: 1.5px solid #CACACB; }
html.light-nike[data-theme="light"] .btn:not(.primary):hover { border-color: #111111; }
html.light-nike[data-theme="light"] .btn[disabled] { background: #E5E5E5; border-color: #E5E5E5; color: #9E9EA0; }
/* Inputs and boxes: soft corners, thin grey lines */
html.light-nike[data-theme="light"] .input, html.light-nike[data-theme="light"] .select, html.light-nike[data-theme="light"] .pinbox { border-radius: 8px; border-color: #CACACB; }
html.light-nike[data-theme="light"] .pinbox:focus-within, html.light-nike[data-theme="light"] .input:focus { border-color: #111111; }
html.light-nike[data-theme="light"] .search { background: #F5F5F5; border-color: #F5F5F5; border-radius: 999px; }
html.light-nike[data-theme="light"] .note { background: #F5F5F5; border-left: 3px solid #B8913A; border-radius: 8px; }
/* Sizes: grey outline, black outline when chosen (Nike) */
html.light-nike[data-theme="light"] .sizes .chip span:not(.sr-only) { border-color: #E5E5E5; border-radius: 6px; background: #FFFFFF; }
html.light-nike[data-theme="light"] .sizes .chip:hover span:not(.sr-only), html.light-nike[data-theme="light"] .sizes .chip input:checked + span { border-color: #111111; color: #111111; outline: 0; }
html.light-nike[data-theme="light"] .ctile { border-radius: 6px; }
html.light-nike[data-theme="light"] .ctile.on { border-color: #111111; outline: 1px solid #111111; }
/* Category bar: plain text, active in bold with a black underline */
html.light-nike[data-theme="light"] nav.cats a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
html.light-nike[data-theme="light"] nav.cats a.on { border-bottom-color: #111111; font-weight: 600; }
html.light-nike[data-theme="light"] nav.cats a.wh { color: #7A5E1C; font-weight: 600; }
/* Gold instead of green */
html.light-nike[data-theme="light"] .ok, html.light-nike[data-theme="light"] .small.ok, html.light-nike[data-theme="light"] .lime { color: #7A5E1C; }
html.light-nike[data-theme="light"] .flash.ok { border-color: #B8913A; }
html.light-nike[data-theme="light"] .pill.ok { background: rgba(184,145,58,.14); color: #7A5E1C; }
html.light-nike[data-theme="light"] .count { background: #B8913A; color: #111111; }
html.light-nike[data-theme="light"] .price .off { color: #7A5E1C; font-weight: 600; }
html.light-nike[data-theme="light"] .price s { color: #707072; }
html.light-nike[data-theme="light"] .card .pimg .tag { background: #FFFFFF; color: #111111; }
html.light-nike[data-theme="light"] .card .pimg .tag.gold, html.light-nike[data-theme="light"] .pill.gold { background: #B8913A; color: #111111; }
html.light-nike[data-theme="light"] .pill:not(.gold):not(.grey):not(.ok):not(.warn):not(.bad) { background: #111111; color: #FFFFFF; }
html.light-nike[data-theme="light"] svg[fill="#D6DE23"] { fill: #111111; stroke: #111111; }
html.light-nike[data-theme="light"] .tile { background: #F5F5F5; border-color: #F5F5F5; }
html.light-nike[data-theme="light"] .tile svg [fill="#D6DE23"] { fill: #B8913A; }
html.light-nike[data-theme="light"] .tile svg [stroke="#D6DE23"] { stroke: #B8913A; }
html.light-nike[data-theme="light"] .fsec .chk input { border-color: #111111; border-radius: 4px; }
html.light-nike[data-theme="light"] .fsec .chk input:checked { background-color: #111111; border-color: #111111; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
html.light-nike[data-theme="light"] header.top { background: #FFFFFF; border-bottom-color: #E5E5E5; }
html.light-nike[data-theme="light"] .buybar { background: rgba(255,255,255,.97); border-top-color: #E5E5E5; }
html.light-nike[data-theme="light"] .testbar { background: #F5F5F5; color: #111111; }
html.light-nike[data-theme="light"] .gallery .dots i.on { background: #111111; }
html.light-nike[data-theme="light"] .bslider .btn.primary { background: #FFFFFF; color: #111111; border-color: #FFFFFF; }
html.light-nike[data-theme="light"] .bslider .btn.primary:hover { background: #E5E5E5; border-color: #E5E5E5; }

/* Product page: heart on the photo (top-right), just the icon; Buy Now and Add to Bag stacked. */
.gallery .stage .pwish { top: 12px; right: 12px; z-index: 6; }
.pwish .cwish-btn, .pwish .cwish-btn:hover { width: 40px; height: 40px; background: none; box-shadow: none; border-radius: 0; color: var(--black); }
.pwish .cwish-btn svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .gallery .stage .pwish { top: 10px; right: 10px; } .pwish .cwish-btn, .pwish .cwish-btn:hover { width: 36px; height: 36px; } }
