/* Hashfox shop engine: the shared stylesheet of every shop (served at /engine.css from the binary).
   A shop's own look goes in its STATIC_DIR/theme.css, loaded after this file: set the variables below
   there and override any rule you need. See README.md "Theming" for the list. */

:root {
  /* paper and surfaces */
  --bg: #faf8f4;
  --surface: #f2efe8;
  --surface-2: #e9e5dc;
  --line: #e1dcd1;
  --line-strong: #c9c2b4;
  /* text */
  --ink: #1c1b18;
  --ink-2: #3f3c35;
  --muted: #6f6a60;
  /* one accent per brand */
  --accent: #8a4b2f;
  --accent-hover: #6f3b24;
  --accent-soft: #f3e6df;
  --accent-text: #7a4229;
  /* states */
  --sale: #b2301f;
  --ok: #2e6b45;
  --warn: #8d5400;
  /* type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display-stretch: 100%;
  /* shape */
  --radius: 6px;
  --radius-s: 4px;
  --shadow: 0 1px 2px rgba(28, 27, 24, .05), 0 12px 32px -18px rgba(28, 27, 24, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* older names still used by shop overrides written before November 2026 */
  --soft: var(--surface);
  --soft-2: var(--surface-2);
  --brand: var(--accent);
  --brand-hover: var(--accent-hover);
  --brand-soft: var(--accent-soft);
  --brand-text: var(--accent-text);
  --dark: var(--ink);
  --dark-2: var(--ink-2);
  --font: var(--font-text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
s { color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.red { color: var(--sale); }
.ok { color: var(--ok); }
.warn { color: var(--warn); font-size: .875rem; font-weight: 600; }
svg { flex: none; }
.kicker { display: block; font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.block { margin-top: 48px; }
.narrow { max-width: 1040px; }
@media (min-width: 760px) { .wrap { padding: 0 28px; } .block { margin-top: 64px; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  background: var(--ink); color: var(--bg);
  border: 1.5px solid var(--ink); border-radius: var(--radius-s);
  font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 600; font-size: .95rem; letter-spacing: .02em; cursor: pointer;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.big { min-height: 54px; font-size: 1.02rem; padding: 0 28px; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn.block { display: flex; width: 100%; }
.btn.brand { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.brand:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.pill { border-radius: 999px; }

/* top strip + header */
.topbar { background: var(--surface); color: var(--ink-2); font-size: .82rem; border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--ink); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--accent-text); }
.topbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hdr { position: sticky; top: 0; z-index: 20; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . cart" "search search search"; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { grid-area: logo; display: inline-flex; align-items: center; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { height: 34px; width: auto; }
.wordmark { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; line-height: 1; }
.search { grid-area: search; position: relative; }
.search input {
  width: 100%; height: 44px; padding: 0 46px 0 14px;
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
  transition: border-color .2s, background .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--ink); }
.search button { position: absolute; right: 0; top: 0; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; border-radius: var(--radius-s); }
.search button:hover { color: var(--accent-text); }
.cart-link { grid-area: cart; position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 8px 2px; color: var(--ink); }
.cart-link:hover { color: var(--accent-text); }
.cart-label { display: none; }
.cart-n {
  position: absolute; top: 0; left: 16px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .7rem; font-weight: 700; line-height: 19px; text-align: center;
  font-variant-numeric: tabular-nums;
}

.cats { border-top: 1px solid var(--line); background: var(--bg); }
.cats-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats-in::-webkit-scrollbar { display: none; }
.cats a { flex: none; position: relative; padding: 11px 10px 9px; font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.cats a:hover { color: var(--ink); border-color: var(--line-strong); }
.cats a.on { color: var(--ink); border-color: var(--ink); }
.cats a.hot { color: var(--accent-text); }
.cats a.hot.on { border-color: var(--accent); }
.cats a.origin { color: var(--muted); }
.cats a.origin.on, .cats a.origin:hover { color: var(--ink); }

@media (min-width: 760px) {
  .hdr-in { grid-template-columns: auto minmax(0, 520px) auto; grid-template-areas: "logo search cart"; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
  .logo img { height: 40px; }
  .wordmark { font-size: 1.7rem; }
  .cart-label { display: inline; }
  .cart-n { left: 14px; }
  .cats a { padding: 13px 12px 11px; }
}

/* hero: an editorial opener. A shop adds its photo in theme.css (background on .hero-sport-in). */
.hero-sport { margin-top: 20px; }
.hero-sport-in { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); color: var(--ink); padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px); min-height: clamp(300px, 46vw, 560px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-sport-in > * { position: relative; }
.hero-copy { max-width: 30ch; }
.hero-copy .kicker { margin-bottom: 14px; }
.hero-sport-in h1 { margin: 0 0 14px; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); font-weight: 600; line-height: .98; letter-spacing: -.025em; }
.hero-sport-in p { margin: 0 0 22px; color: var(--ink-2); max-width: 44ch; font-size: 1.05rem; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta .link { font-weight: 600; border-bottom: 1.5px solid var(--line-strong); padding-bottom: 1px; }
.hero-cta .link:hover { border-color: var(--accent-text); }
.hero-facts { margin: 0; padding: 14px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line-strong); margin-top: 26px; }
.hero-facts li { display: flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--accent-text); }
@media (min-width: 760px) {
  .hero-sport { margin-top: 28px; }
  .hero-sport-in { justify-content: center; }
  .hero-copy { max-width: 46%; }
  .hero-facts { position: absolute; left: clamp(20px, 5vw, 64px); right: clamp(20px, 5vw, 64px); bottom: 22px; margin: 0; }
}

/* banners: editorial tiles (admin > Banerat) */
.hero { margin-top: 20px; }
.slides { display: grid; gap: 14px; }
.slide { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 3; color: var(--ink); }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.slide:hover { color: var(--ink); }
.slide:hover img { transform: scale(1.025); }
.slide-text { position: absolute; inset: auto 0 0 0; padding: 20px; color: #fff; background: linear-gradient(to top, rgba(20, 18, 14, .78), rgba(20, 18, 14, 0)); }
.slide-text h2 { font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); letter-spacing: -0.015em; max-width: 22ch; }
.slide-text p { color: rgba(255, 255, 255, .86); margin: 6px 0 12px; max-width: 44ch; font-size: .95rem; }
.slide-text .btn { background: var(--bg); border-color: var(--bg); color: var(--ink); min-height: 40px; padding: 0 16px; font-size: .9rem; }
.slide-text .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.dots { display: none; }
@media (min-width: 760px) {
  .slides { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .slide { aspect-ratio: 3 / 2; }
  .slides > .slide:only-child { grid-column: 1 / -1; aspect-ratio: 5 / 2; }
  .slide-text { padding: 28px 30px; }
}

/* category tiles */
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 0 16px; scroll-snap-type: x proximity; }
.tiles::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.tile-ic { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--surface); color: var(--accent-text); display: grid; place-items: center; overflow: hidden; transition: background .25s, color .25s; }
.tile-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile-ic svg { width: 30px; height: 30px; }
.tile:hover .tile-ic img { transform: scale(1.04); }
.tile:hover { color: var(--ink); }
.tile > span:last-child { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tile span { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.tile small { display: block; color: var(--muted); font-family: var(--font-text); font-weight: 400; text-transform: none; font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile:hover > span:last-child { border-color: var(--ink); }
@media (min-width: 600px) { .tiles { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; } }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.sec-head h2 { display: flex; align-items: baseline; gap: 10px; }
.sec-head a { color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.sec-head a:hover { color: var(--accent-text); }

/* product rows and grids */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }
@media (min-width: 600px) { .row { grid-auto-columns: 31%; } }
@media (min-width: 960px) { .row { grid-auto-columns: calc((100% - 80px) / 5); gap: 20px; margin: 0; padding-left: 0; padding-right: 0; } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.card:hover { color: var(--ink); }
.card-img { position: relative; aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--line-strong); }
.ph.big { font-size: 6rem; aspect-ratio: 1; }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 3px; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.badge.sale { background: var(--sale); color: #fff; }
.badge.out { left: auto; right: 10px; background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-brand { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; min-height: 1.1em; }
.card h3 { font-family: var(--font-text); font-stretch: 100%; font-size: .95rem; font-weight: 500; line-height: 1.35; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.price b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.05rem; font-weight: 600; }
.price s { font-size: .82rem; order: 2; }

/* promo tiles (kept for shops that use them) */
.promo { display: grid; gap: 14px; }
.promo-tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 16 / 9; color: var(--ink); }
.promo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 50%; transition: transform .8s var(--ease); }
.promo-tile:hover img { transform: scale(1.03); }
.promo-tile:hover { color: var(--ink); }
.promo-text { position: absolute; inset: 0; width: 64%; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; background: linear-gradient(to right, rgba(242, 239, 232, .92) 40%, rgba(242, 239, 232, 0)); }
.promo-text small { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); }
.promo-text b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: clamp(1.25rem, .9rem + 1.6vw, 1.9rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; max-width: 12ch; }
.promo-text .btn { margin-top: 10px; }
.promo-tile.dark { background: var(--ink); color: #fff; }
.promo-tile.dark:hover { color: #fff; }
.promo-tile.dark .promo-text { background: linear-gradient(to right, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, 0)); }
@media (min-width: 760px) { .promo { grid-template-columns: 1fr 1fr; gap: 18px; } .promo-tile { aspect-ratio: 2 / 1; } .promo-text { padding: 28px 32px; } }

/* facts strip (payment, delivery, originals) */
.perks { display: grid; gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.perks div { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.perks div:last-child { border-bottom: 0; }
.perks svg { grid-row: 1 / 3; width: 22px; height: 22px; color: var(--accent-text); }
.perks b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 600; font-size: 1rem; }
.perks span { color: var(--muted); font-size: .9rem; }
@media (min-width: 760px) {
  .perks { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .perks div { border-bottom: 0; padding: 20px 0; }
}

/* listing */
.list-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.list-head h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.list-head .muted { font-variant-numeric: tabular-nums; }
.filter-box { margin-bottom: 24px; }
.filter-box summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-s); border: 1.5px solid var(--ink); font-weight: 600; font-size: .9rem; cursor: pointer; list-style: none; }
.filter-box summary::-webkit-details-marker { display: none; }
.filter-box summary:hover { background: var(--ink); color: var(--bg); }
.filter-box[open] summary { margin-bottom: 12px; }
@media (min-width: 760px) { .filter-box summary { display: none; } }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.filters label { display: flex; flex-direction: column; gap: 5px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex: 1 1 140px; }
.filters input, .filters select, .checkout input, .checkout select, .checkout textarea {
  height: 42px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg); font-weight: 400; width: 100%; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.filters input:focus, .filters select:focus, .checkout input:focus, .checkout select:focus, .checkout textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.filters .btn { flex: 0 0 auto; }
.empty { text-align: center; padding: 64px 16px; background: var(--surface); border-radius: var(--radius); }
.empty p { font-size: 1.05rem; color: var(--ink-2); }
main.empty { margin: 40px auto; max-width: 560px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-s); font-weight: 600; font-variant-numeric: tabular-nums; border: 1px solid var(--line-strong); }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* product page */
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-text); }
.pd { display: grid; gap: 28px; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; } .pd-info { position: sticky; top: 150px; } }
.gallery-main { position: relative; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px; }
.thumb { flex: none; width: 72px; height: 72px; padding: 4px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb.on { border-color: var(--ink); }
.pd-brand { display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); margin-bottom: 8px; }
.pd-info h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; font-variant-numeric: tabular-nums; }
.pd-price b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.01em; }
.pd-price s { font-size: 1.05rem; }
.stock { font-weight: 600; font-size: .9rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok); }
.stock.no { color: var(--sale); }
.buy { display: flex; gap: 10px; flex-wrap: wrap; }
.buy .btn { flex: 1 1 200px; }
.qty { display: inline-flex; align-items: center; height: 54px; border-radius: var(--radius-s); border: 1.5px solid var(--line-strong); background: var(--bg); }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.qty button:hover { color: var(--accent-text); }
.qty input { width: 40px; border: 0; text-align: center; font-weight: 700; background: none; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sizes { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.sizes legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { display: inline-block; min-width: 52px; text-align: center; padding: 9px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); cursor: pointer; font-variant-numeric: tabular-nums; }
.size input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; }
.size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.size.out span { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.pd-perks { list-style: none; padding: 16px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; color: var(--ink-2); font-size: .92rem; }
.pd-perks li { display: flex; gap: 10px; align-items: flex-start; }
.pd-perks svg { width: 20px; height: 20px; color: var(--accent-text); margin-top: 1px; }
.pd-desc { margin-top: 28px; }
.pd-desc h2 { font-size: 1.05rem; margin-bottom: 10px; }
.pd-desc p { color: var(--ink-2); max-width: 62ch; }

/* cart and checkout */
.narrow h1 { margin-bottom: 24px; }
.cart { display: grid; gap: 24px; }
@media (min-width: 900px) { .cart { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .summary { position: sticky; top: 150px; } }
.cart-lines { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; grid-template-areas: "img info info x" "img qty total total"; align-items: center; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-img { grid-area: img; width: 72px; height: 72px; border-radius: var(--radius-s); background: var(--surface); overflow: hidden; align-self: start; }
.line-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.line-img .ph { font-size: 1.4rem; }
.line-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.line-qty { grid-area: qty; }
.line-qty input { width: 72px; height: 38px; padding: 0 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg); font-weight: 600; font-variant-numeric: tabular-nums; }
.line-qty input:focus { outline: none; border-color: var(--ink); }
.line-total { grid-area: total; justify-self: end; font-variant-numeric: tabular-nums; }
.line form:last-child { grid-area: x; justify-self: end; align-self: start; }
.x { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: var(--radius-s); background: none; color: var(--muted); cursor: pointer; }
.x:hover { background: var(--surface); color: var(--sale); }
.summary { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.summary.wide { margin: 24px 0; }
.sum-row, .sum-line { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sum-line { font-size: .9rem; color: var(--ink-2); }
.sum-line span { min-width: 0; }
.sum-line b { white-space: nowrap; font-weight: 500; }
.sum-row { padding-top: 10px; border-top: 1px solid var(--line-strong); }
.sum-row.total { font-size: 1.15rem; font-weight: 700; border-top-color: var(--ink); }
.sum-row.total b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 600; font-size: 1.3rem; }
.sum-row b { white-space: nowrap; }
.link-center { text-align: center; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 6px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.link-center:hover { color: var(--accent-text); }

.checkout { display: flex; flex-direction: column; gap: 14px; }
.checkout label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.checkout input, .checkout select { height: 48px; font-size: 1rem; }
.checkout textarea { height: auto; padding: 12px; font-size: 1rem; resize: vertical; }
.check { display: flex; flex-direction: row; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay { display: grid; grid-template-columns: 24px 1fr; gap: 0 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); color: var(--ink); }
.pay svg { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--accent-text); }
.pay b { font-weight: 600; }
.pay span { font-size: .88rem; color: var(--ink-2); }
.alert { margin: 0; padding: 12px 14px; border-radius: var(--radius-s); background: #f8e5e2; color: #7a1d12; font-weight: 600; }

.done { text-align: center; padding: 24px 0 8px; }
.done svg { color: var(--ok); margin: 0 auto 12px; }
.done h1 { margin-bottom: 10px; }
.done p { color: var(--ink-2); max-width: 46ch; margin: 0 auto; }

/* footer */
.ftr { margin-top: 80px; background: var(--surface); color: var(--ink-2); padding: 44px 0 24px; font-size: .92rem; border-top: 1px solid var(--line); }
.ftr a:hover { color: var(--accent-text); }
.ftr-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.ftr-grid > div:first-child, .ftr-grid > div:nth-child(4) { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } .ftr-grid > div:first-child, .ftr-grid > div:nth-child(4) { grid-column: auto; } }
.ftr h4 { margin: 0 0 12px; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ftr .logo { display: inline-flex; margin-bottom: 10px; }
.ftr .logo img { height: 34px; }
.ftr .wordmark { color: var(--ink); }
.ftr p.muted { color: var(--muted); max-width: 38ch; }
.ftr-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ftr-contact svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent-text); }
.ftr-contact a { overflow-wrap: anywhere; }
.ftr-social { display: flex; gap: 10px; margin-top: 16px; }
.ftr-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: border-color .2s, color .2s, background .2s; }
.ftr-social a:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.ftr-social svg { width: 20px; height: 20px; }
.ftr-bottom { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: .8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hf-mark { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.hf-mark:hover { color: var(--ink); }

.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #1f8f4e; color: #fff;
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease);
}
.wa:hover { color: #fff; transform: translateY(-2px); }

/* closed shop */
.soon { text-align: center; padding: 18vh 16px; background: none; }
.soon h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---- choices with their own price (a live supplier's product), spec tables, live prices, Europe checkout ---- */
.choices { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; width: 100%; }
.choices legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); cursor: pointer; }
.choice > span b { font-family: var(--font-display); font-stretch: var(--display-stretch); font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice.out > span { color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.pd-desc h3 { font-size: .95rem; margin: 22px 0 8px; }
.specs { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-s); max-width: 62ch; }
.specs > div { display: flex; justify-content: space-between; gap: 20px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.specs > div:last-child { border-bottom: 0; }
.specs > div:nth-child(odd) { background: var(--surface); }
.specs dt { color: var(--muted); flex: none; }
.specs dd { margin: 0; text-align: right; color: var(--ink-2); }
.live-note { color: var(--ok); font-size: .85rem; font-weight: 600; margin: 0 0 8px; }
@keyframes live-flash { from { background: var(--accent-soft); } to { background: transparent; } }
.live-flash { animation: live-flash 1.6s ease-out; border-radius: var(--radius-s); }
@media (prefers-reduced-motion: reduce) { .live-flash { animation: none; } }
.two-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.case { margin: 20px 0; border-top: 1px solid var(--line); padding-top: 14px; }
.case summary { cursor: pointer; font-weight: 600; }
.case form { margin-top: 12px; }
.track { margin-top: 8px; }
.pay-test { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
