/* Velora Sports website: the clean app look (owner's choice A, aimed at the Nike / Adidas apps, 3 Nov).
   Loaded last, over page.css. White page, soft grey behind every product, one sans for everything, orange only for the
   actions that matter. Phone first: icon tiles in a grid, filters in a panel, a bar at the bottom. Nothing scrolls sideways.
   Dark is still there behind the switch in the bar ([data-theme="dark"]). Icons: Tabler Icons (MIT), tools/icons. */

:root, :root[data-theme="light"] {
  --bg: #FFFFFF; --bg-2: #F5F5F5; --bg-3: #EDEDED; --ink: #111111; --ink-2: #6F6F72; --line: #E5E5E5;
  --accent: #FF6A00; --accent-ink: #1A0B00; --accent-text: #B84300;
  --sc-canvas: var(--bg); --sc-surface: var(--bg-2); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-2);
  --in: #007D48; --few: #A15C00; --radius: 14px; color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0D0C0B; --bg-2: #1A1816; --bg-3: #24211E; --ink: #F5F4F0; --ink-2: #A8A39A; --line: #2B2825;
  --accent-text: #FF8A3D;
  --sc-canvas: var(--bg); --sc-surface: var(--bg-2); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-2);
  --in: #5BD69A; --few: #FFB547; color-scheme: dark;
}
html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--sc-font-text); }
.sc-grain { display: none; }

/* one sans for everything: headings are bold sentence case, not tall capitals */
.display, .catpage__title h2, .plate h3, .how__steps h3, .how > h2 {
  font-family: var(--sc-font-text) !important; text-transform: none !important; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12;
}

/* ---------------------------------------------------------------- the bar */
.bar { background: color-mix(in oklab, var(--bg) 92%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.mark span { font-weight: 700; letter-spacing: -0.01em; }
.mark small, .size-pill__k { color: var(--ink-2); }
.index a { font-weight: 500; }
.size-pill { box-shadow: inset 0 0 0 1px var(--line); }
.theme-btn { box-shadow: inset 0 0 0 1px var(--line); }
.menu-open .index { background: var(--bg) !important; box-shadow: 0 1px 0 var(--line), 0 24px 40px rgb(0 0 0 / 0.12) !important; }
.pill-accent { background: var(--accent); color: var(--accent-ink); }
.pill-line { color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 30%, transparent); }

/* ---------------------------------------------------------- the news line */
.strip { margin-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); padding: 11px var(--sc-gutter); background: var(--bg-2); text-align: center; }
.strip p { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.4; }

/* ------------------------------------------------------------ hey champion */
.home, :root[data-theme="light"] .home { background: var(--bg); color: var(--ink); padding: 28px var(--sc-gutter) 8px; }
.home__in { max-width: 1200px; margin: 0 auto; display: grid; gap: 30px; justify-items: stretch; text-align: left; }
.home__hi { text-align: center; }
.home__hi h2, :root[data-theme="light"] .home__hi h2 {
  font: 700 clamp(1.9rem, 8vw, 3.4rem)/1.05 var(--sc-font-text); letter-spacing: -0.035em; text-transform: none; white-space: nowrap; color: var(--ink);
}
.home__hi p, :root[data-theme="light"] .home__hi p { margin-top: 6px; font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.home__label, :root[data-theme="light"] .home__label {
  margin: 0 0 12px; font: 600 1.05rem/1.2 var(--sc-font-text); letter-spacing: -0.01em; text-transform: none; color: var(--ink); text-align: left;
}
.home__block--picks { max-width: none; }
.home__picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none; margin: 0; }
.home__nav { display: block; }
.home__nav .home__label + .cat-tiles { margin-bottom: 26px; }
.cat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cat-tile {
  width: 100%; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 6px;
  border: 0; border-radius: var(--radius); background: var(--bg-2); color: var(--ink); cursor: pointer;
  font: 500 13px/1.2 var(--sc-font-text); text-align: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color 160ms ease, transform 140ms ease;
}
.cat-tile .ic { width: 28px; height: 28px; }
.cat-tile:active { transform: scale(0.97); }
.cat-tile[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.cat-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .cat-tile:hover { background: var(--bg-3); } .cat-tile[aria-pressed="true"]:hover { background: var(--ink); } }

/* ------------------------------------------------------- product cards (Nike-style) */
.pcard, :root[data-theme="light"] .pcard, :root[data-theme="light"] .home__picks .pcard, .home__picks .pcard, .catpage .pcard {
  background: transparent !important; box-shadow: none !important; border-radius: 0; overflow: visible; cursor: pointer;
  color: var(--ink); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-2);
}
.pcard__pic { border-radius: 10px; background-color: var(--bg-2) !important; }
.pcard__pic.is-cut { background-color: var(--bg-2) !important; background-image: none !important; }
.pcard__pic.is-cut img { filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.16)); }
.pcard__pic.is-shirt { background-color: #2A1A10 !important; }
.pcard__pic.is-none, .pcard__pic.is-none span, .pcard__pic.is-none small { color: var(--ink-2); }
.pcard__body { padding: 10px 2px 0 !important; gap: 2px; }
.pcard__brand { font-size: 12px; color: var(--ink-2); }
.pcard__name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.pcard__meta { font-size: 13px; color: var(--ink-2); }
.pcard__state { font-size: 12px !important; }
.pcard__foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.pcard__price { font-size: 15px; font-weight: 600; }
.pcard__price s { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.pcard__foot .pill-accent { display: none; }
.pcard__foot .pill-line { min-height: 32px; padding: 0 12px; font-size: 13px; }
/* the top picks: three small cards on one screen */
.home__picks .pcard__body { padding: 8px 0 0 !important; }
.home__picks .pcard__name { font-size: 13px; }
.home__picks .pcard__state { display: none; }
.home__picks .pcard__price { font-size: 13px; }
.home__picks .pcard__pic { border-radius: 8px; }

/* ------------------------------------------------------------ the items */
.catpage, .catpage--inline, :root[data-theme="light"] .catpage { background: var(--bg) !important; color: var(--ink); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-2); }
.catpage__bar, :root[data-theme="light"] .catpage__bar { background: color-mix(in oklab, var(--bg) 94%, transparent) !important; box-shadow: 0 1px 0 var(--line) !important; }
.catpage--inline .catpage__title h2 { font-size: 1.35rem; }
.catpage__tools { flex-direction: row !important; align-items: center; gap: 10px !important; }
.catpage__tools .search { flex: 1; min-width: 0; }
.search input, :root[data-theme="light"] .search input { background: var(--bg-2) !important; color: var(--ink); box-shadow: none !important; height: 48px; }
.search input::placeholder { color: var(--ink-2); }
.filter-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); color: var(--ink); font: 600 14px/1 var(--sc-font-text); max-width: 46%;
}
.filter-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.filter-btn[hidden] { display: none; }
.filter-btn.is-on { background: var(--ink); color: var(--bg); }
.filter-sheet { padding: 20px var(--sc-gutter) calc(24px + env(safe-area-inset-bottom, 0px)); }
.filter-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-sheet__head h2 { font: 700 1.2rem/1.2 var(--sc-font-text); }
.filter-sheet .catpage__subs { flex-wrap: wrap !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; gap: 8px; }
.filter-sheet .chip { background: var(--bg-2) !important; color: var(--ink) !important; box-shadow: none !important; min-height: 44px; }
.filter-sheet .chip[aria-pressed="true"] { background: var(--ink) !important; color: var(--bg) !important; }
.pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 26px 12px !important; }
@media (min-width: 760px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 1080px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 34px 18px !important; } }
.catpage__show .store__wall, .catpage__show .jr, .catpage__show .rack--pegs { border-radius: 12px; }
.catpage__show.is-wide .jr { border-radius: 0; }
.catpage__empty { color: var(--ink-2); }
.catpage__empty a { color: var(--accent-text) !important; }
.catpage__back { min-height: 40px; }

/* ------------------------------------------------------ how to order, visit */
section.ground-chalk, :root[data-theme="light"] section.ground-chalk { background: var(--bg) !important; color: var(--ink); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-2); }
.how > h2 { font-size: clamp(1.5rem, 4vw, 2.2rem) !important; }
.how__steps { border-top: 1px solid var(--line); }
.how__steps li { border-bottom-color: var(--line); }
.how__steps h3 { font-size: 1.1rem !important; }
.close, :root[data-theme="light"] .close { background: var(--bg); }
.plate, .plate--order, :root[data-theme="light"] .plate, :root[data-theme="light"] .plate--order { background: var(--bg-2) !important; box-shadow: none !important; }
.plate h3 { font-size: 1.4rem !important; }
.spec, .spec div { border-color: var(--line) !important; }
.foot-name, :root[data-theme="light"] .foot-name { font: 700 1.3rem/1.2 var(--sc-font-text); text-transform: none; color: var(--ink); letter-spacing: -0.02em; }
.imprint { color: var(--ink-2); }

/* ------------------------------------------------------------ phone */
.tabbar { display: none; }
@media (max-width: 760px) {
  .menu-btn, .size-pill, .bar .basket-btn { display: none !important; }
  .bar { grid-template-columns: 1fr auto; }
  .mark span { display: inline !important; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in oklab, var(--bg) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 -1px 0 var(--line);
  }
  .tabbar a, .tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    border: 0; background: none; color: var(--ink-2); font: 500 12px/1 var(--sc-font-text); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .tabbar .ic { width: 24px; height: 24px; }
  .tabbar [aria-current="true"] { color: var(--ink); }
  .tabbar__count { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font: 700 11px/18px var(--sc-font-text); text-align: center; }
  .tabbar__count[hidden] { display: none; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .live-note { bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; }
  .catpage--inline .catpage__bar { padding-block: 10px; }
}
@media (min-width: 761px) {
  .home { padding-top: 44px; }
  .home__in { gap: 44px; }
  .cat-tiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .home__picks { gap: 18px; }
}

/* the state colours, set once for the whole page (light and dark) */
.pcard__state.state-in { color: var(--in) !important; }
.pcard__state.state-few { color: var(--few) !important; }

/* displays stay dark scenes: their buttons keep light text; dark mode keeps its bright state colours; 44px buttons */
.catpage__show .pill-line { color: #F2F1EA !important; box-shadow: inset 0 0 0 1px rgb(242 241 234 / 0.4) !important; }
:root[data-theme="dark"] .pcard__state.state-in { color: #5BD69A !important; }
:root[data-theme="dark"] .pcard__state.state-few { color: #FFB547 !important; }
.catpage__back { min-height: 44px !important; }

/* "All items" in sections: a heading row across the grid, then four cards */
.pgroup { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); list-style: none; }
.pgrid > .pgroup:first-child { border-top: 0; padding-top: 4px; }
.pgroup h3 { font: 700 1.2rem/1.2 var(--sc-font-text); letter-spacing: -0.015em; }
.pgroup__n { font-size: 13px; color: var(--ink-2); }
.pgroup__all { margin-left: auto; min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 600 14px/1 var(--sc-font-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
@media (hover: hover) and (pointer: fine) { .pgroup__all:hover { color: var(--accent-text); } }

/* ---------------------------------------------------- the shop front (curtain) */
.curtain { margin-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); overflow: hidden; background: #0B0807; }
.curtain picture, .curtain__img { display: block; width: 100%; height: auto; }
.curtain__img { transform-origin: 50% 82%; will-change: transform; }
.curtain + .strip { margin-top: 0; }
@media (min-width: 761px) { .curtain__img { max-height: calc(100svh - var(--bar-h)); object-fit: cover; } }

/* ==================================================== every screen (3 Nov, owner's check) */
/* prices: the price, then the old one smaller, grey and apart; never touching */
.spot__price, [data-p-price], .jr-look__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.spot__price s, .jr-look__price s, .label-line s { margin-left: 0 !important; font-size: 0.72em; font-weight: 500; color: var(--ink-2) !important; text-decoration-thickness: 1.5px; }
/* a button that can't be used yet looks quiet, not like a faded orange */
.pill-accent[aria-disabled="true"], .pill-accent:disabled { background: var(--bg-3) !important; color: var(--ink-2) !important; opacity: 1 !important; }

/* the boot / ball close-up: white panel, the piece on a soft grey stage (dark mode keeps it dark) */
:root[data-theme="light"] .spot { background: var(--bg); color: var(--ink); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-2); --few: var(--few); }
:root[data-theme="light"] .spot__panel { background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
:root[data-theme="light"] .spot[data-kind="shelf"] .spot__stage, :root[data-theme="light"] .spot[data-kind="hanger"] .spot__stage {
  background: radial-gradient(90% 80% at 50% 38%, #FFFFFF 0%, #ECECEC 70%, #E2E2E2 100%) !important; }
:root[data-theme="light"] .spot .opt { background: var(--bg-2); color: var(--ink); }
:root[data-theme="light"] .spot .opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
:root[data-theme="light"] .spot .opt[aria-pressed="true"] .few { color: #FFB547; }
:root[data-theme="light"] .spot__note { color: var(--few); }
.spot .opt small.few, .sheet .opt small.few { color: var(--few); }
.spot__panel h2.display { font-size: clamp(1.8rem, 6vw, 2.4rem) !important; }

/* the jersey close-up: the shirt stays on its wallpaper; its details on the page colour */
:root[data-theme="light"] .jr-look { background: var(--bg); color: var(--ink); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-2); }
:root[data-theme="light"] .jr-look .opt { background: var(--bg-2); color: var(--ink); }
:root[data-theme="light"] .jr-look .opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.jr-look__panel h2 { font-family: var(--sc-font-text) !important; text-transform: none !important; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.8rem, 6vw, 2.4rem) !important; }

/* sheets (size picker, basket, credits) */
.sheet { background: var(--bg) !important; color: var(--ink); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-2); }
.sheet .opt { background: var(--bg-2); color: var(--ink); }
.sheet .opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fields input, .fields textarea { background: var(--bg-2) !important; color: var(--ink) !important; }
.fields .help { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.line { background: var(--bg-2) !important; }
.basket .sheet-in { overflow-y: auto; overscroll-behavior: contain; }
.basket .lines { flex: none; overflow: visible; }
.basket-head h2 { font: 700 1.3rem/1.2 var(--sc-font-text); }

/* the size finder: the page colour, a plain heading */
.finder, :root[data-theme="light"] .finder { background: var(--bg) !important; color: var(--ink); --sc-ink: var(--ink); --sc-ink-soft: var(--ink-2); }
.finder__bar { background: color-mix(in oklab, var(--bg) 94%, transparent) !important; box-shadow: 0 1px 0 var(--line) !important; }
.finder__bar h2, .finder h2, .finder h3 { font-family: var(--sc-font-text) !important; text-transform: none !important; font-weight: 700; letter-spacing: -0.02em; }
.finder .chip { background: var(--bg-2); color: var(--ink); }
.fit__input { background: var(--bg-2) !important; box-shadow: none !important; }

/* light close-ups: the bottom bar, the counter and the close buttons on a light page */
:root[data-theme="light"] .spot__actions { background: var(--bg) !important; box-shadow: 0 -1px 0 var(--line) !important; }
:root[data-theme="light"] .spot__count { color: rgb(17 17 17 / 0.62) !important; }
:root[data-theme="light"] .jr-look__close { background: rgb(17 17 17 / 0.8); color: #FFFFFF; }
:root[data-theme="light"] .jr-size { background: var(--bg-2); color: var(--ink); }
:root[data-theme="light"] .jr-size[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* jersey boxes: crest + backdrop layers are set on the element itself (shop.js) */
.pcard__pic.is-shirt { background-size: cover, auto 92%, cover; }
