/* Store shops, order pages and the store dashboard.
   A clean sports-nutrition look: a light grey band with a faint pattern of kit (shakers, dumbbells,
   scoops) across the top, the shop's own colour for its banner and buttons, rounded product tiles. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --page: #ffffff;
  --band: #eef1f4;          /* the patterned band across the top */
  --tile: #ffffff;
  --soft: #f2f4f6;          /* product picture boxes, quiet panels */
  --soft-2: #f6f7f9;
  --ink: #15181d;
  --ink-2: #3a414b;
  --muted: #4a535e;
  --muted-2: #5b6470;
  --line: #e3e6ea;
  --field: #c9cfd6;
  --accent: #20242b;        /* the shop's own colour, set by the page */
  --on-accent: #ffffff;
  --link: #15181d;
  --good: #1f6b3a;
  --good-soft: #e3f4ea;
  --warn: #7a4f00;
  --warn-soft: #fff3d6;
  --bad: #a61b12;
  --bad-soft: #fdecec;
  --info: #1a44b8;
  --info-soft: #e6eefb;
  --focus: #2b6cff;
  --radius: 18px;
  --condensed: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; min-height: 100vh; background: var(--page); }
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
p { margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--condensed); line-height: 1.02; margin: 0; }
h1 { font-size: 44px; font-weight: 700; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
small, .small { font-size: 14px; line-height: 1.4; }
.muted { color: var(--muted); }
.hidden, [hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: #cfdcff; }
.icon { flex: none; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 22px; }

/* ---- the patterned band (a faint pattern of sports kit) ----------------------------------- */
.band { position: relative; background: var(--band); isolation: isolate; }
.band::before, .hero-card::before, .foot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/kit-ink.svg") 0 0 / 180px 180px repeat; opacity: 0.07;
}
/* the customer-facing pages (front page, shop, order) have the kit drawn in solid colours */
.band.colourful::before { background-image: url("img/kit-colour.svg"); background-size: 360px 360px; opacity: 0.22; }

/* ---- buttons, chips, fields -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--field);
  background: var(--tile); color: var(--ink); font: 600 16px/1.1 var(--sans); cursor: pointer; text-decoration: none;
  transition: transform 80ms ease, background-color 120ms ease;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; padding: 0 10px; }
.btn.quiet:hover { text-decoration: underline; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn.big { min-height: 56px; font-size: 17px; }
.btn.danger { border-color: #e3a9a9; color: var(--bad); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 2px 0 8px; }
.chip {
  flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field);
  background: var(--tile); color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.chip[disabled] { color: #9aa1aa; border-style: dashed; cursor: not-allowed; }
.chip.out { border-style: dashed; color: var(--muted); }

label { display: block; font-weight: 600; margin: 0 0 14px; }
label .hint, .hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], select, textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--field); border-radius: 12px; background: var(--tile); color: var(--ink);
  font: 400 16px/1.3 var(--sans);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(43, 108, 255, 0.25); }
input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.error { color: var(--bad); font-weight: 500; }
.error:empty { display: none; }
.notice { border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; background: var(--info-soft); color: var(--info); border: 1px solid transparent; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: #8f1d14; border-color: #f3c4c4; font-weight: 500; }
.notice.good { background: var(--good-soft); color: var(--good); }
.notice.row { display: flex; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--field); border-radius: 999px; background: var(--tile); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font: 600 22px/1 var(--sans); color: var(--ink); cursor: pointer; border-radius: 999px; }
.stepper button[disabled] { color: #b5bbc3; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 11px; border-radius: 999px; font: 600 13px/1.3 var(--sans); background: #eef1f4; color: var(--ink-2); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.noimg { width: 100%; height: 100%; display: grid; place-items: center; font: 700 40px/1 var(--condensed); color: #b8bfc7; background: var(--soft); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 100; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(21, 24, 29, 0.25); }

/* ---- the shop ---------------------------------------------------------------------------- */
/* A strip in the shop's own colour: how customers get their order */
.promo { background: var(--accent); color: var(--on-accent); }
.promo .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 40px; padding-top: 9px; padding-bottom: 9px; font-size: 15px; font-weight: 500; }
.promo span { display: inline-flex; align-items: center; gap: 8px; }

.shop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding-top: 20px; padding-bottom: 14px; }
.who { display: flex; flex-direction: column; line-height: 1.05; text-decoration: none; color: var(--ink); min-width: 0; }
.who b { font: 700 34px/1.02 var(--condensed); overflow-wrap: anywhere; }
.who span { font-size: 14px; color: var(--muted); margin-top: 3px; }
.shop-search { flex: 1 1 380px; position: relative; margin: 0; }
.shop-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.shop-search input { margin: 0; height: 50px; border-radius: 999px; padding-left: 48px; border: 1px solid #d5dae0; font-size: 16px; }
.basket-btn { min-height: 50px; padding: 0 20px; background: var(--ink); border-color: var(--ink); color: #fff; }
.basket-btn:hover { border-color: var(--ink); }
.basket-btn .count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: inline-grid; place-items: center; font-size: 13px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 0; padding-bottom: 6px; }
.pills::-webkit-scrollbar { display: none; }

.hero { padding-top: 18px; padding-bottom: 44px; }
.hero-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; background: var(--accent); color: var(--on-accent); }
.hero-card::before { background-image: url("img/kit-white.svg"); opacity: 0.12; }
.pale-accent .hero-card::before { background-image: url("img/kit-ink.svg"); opacity: 0.08; }
.hero-card .inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 52px 56px; }
.hero-card h1 { font-size: clamp(42px, 5.4vw, 68px); line-height: 0.95; margin: 0; }
.hero-card p { font-size: 19px; line-height: 1.5; max-width: 560px; margin: 18px 0 0; }
.hero-card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-card .btn { min-height: 52px; font-size: 17px; }
.hero-card .btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.hero-card .btn.ghost { background: transparent; border: 2px solid var(--on-accent); color: var(--on-accent); }
.hero-art { justify-self: center; width: min(100%, 400px); height: auto; }
.pale-accent .hero-art { filter: invert(1); }
.closed-note { margin: 16px 0 0; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin: 0 0 20px; }
.section-head h2 { font-size: 40px; }
.results-line { color: var(--muted); margin: 0; font-size: 16px; }
.results-line .btn { margin-left: 6px; vertical-align: baseline; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 32px 20px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 0; padding: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.tile .pic { position: relative; aspect-ratio: 1 / 1; background: var(--soft); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.tile .pic img { width: 74%; height: 74%; object-fit: contain; mix-blend-mode: multiply; transition: transform 160ms ease; }
.tile:hover .pic img { transform: scale(1.04); }
.tile .note { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.tile .brand { font-size: 14px; color: var(--muted-2); font-weight: 500; margin-top: 6px; }
.tile .name { font-weight: 600; font-size: 18px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .price { font-weight: 600; font-size: 21px; margin-bottom: 6px; }
.tile .price .from { font-size: 15px; font-weight: 500; color: var(--muted); margin-right: 4px; }
.tile .cta { display: flex; align-items: center; justify-content: center; margin-top: auto; min-height: 46px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; }
.tile.out .price { color: var(--muted); }
.tile.out .cta { background: var(--soft); color: var(--muted); }
.more { display: flex; justify-content: center; margin: 32px 0 0; }
.section-head .results-line { margin-right: auto; }
.per-page { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.per-page span { margin-right: 4px; }
.per-page .chip, .pager .pages .chip { min-height: 38px; min-width: 44px; padding: 0 12px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 36px 0 0; }
.pager .pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager .gap { color: var(--muted); padding: 0 2px; }
.empty-state { padding: 20px 0; max-width: 520px; }

.brands-section { margin-top: 72px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.brand-tile { min-height: 74px; border: 1px solid var(--line); border-radius: 14px; background: var(--tile); color: var(--ink); font: 700 21px/1.1 var(--condensed); padding: 8px 12px; cursor: pointer; text-align: center; }
.brand-tile:hover { border-color: var(--ink-2); }
.brand-tile[aria-pressed="true"] { border: 2px solid var(--accent); }

.trust { margin-top: 64px; background: var(--soft); border-radius: 22px; padding: 36px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px; }
.trust div { display: flex; flex-direction: column; gap: 6px; }
.trust .ic { width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.pale-accent .trust .ic { color: var(--ink); }
.trust b { font-size: 18px; font-weight: 600; }
.trust p { margin: 0; color: var(--muted); line-height: 1.5; }

.foot { position: relative; isolation: isolate; overflow: hidden; margin-top: 80px; background: var(--ink); color: #fff; }
.foot::before { background-image: url("img/kit-white.svg"); opacity: 0.05; }
.foot .cols4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px; padding-top: 52px; padding-bottom: 28px; }
.foot b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.foot .shop-name { font: 700 28px/1.05 var(--condensed); margin-bottom: 8px; }
.foot p { margin: 0 0 6px; color: #c3c9d1; }
.foot a { color: #c3c9d1; }
.foot a:hover { color: #fff; }
.foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #2c3139; padding-top: 18px; padding-bottom: 30px; color: #a9b0b9; font-size: 14px; }
.foot :focus-visible { outline-color: #fff; }

/* the basket, always to hand once there's something in it */
.basket-bar { position: fixed; z-index: 30; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(520px, calc(100vw - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 600 17px/1 var(--sans); cursor: pointer; box-shadow: 0 12px 34px rgba(21, 24, 29, 0.28); }
.has-basket main { padding-bottom: 40px; }

/* ---- sheets (product, basket) ---------------------------------------------------------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--tile); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(21, 24, 29, 0.45); }
dialog .close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: #fff; font: 500 26px/1 var(--sans); cursor: pointer; color: var(--ink); z-index: 2; }
.sheet { width: min(1000px, 100vw); margin: auto; border-radius: 24px; max-height: min(92vh, 940px); overflow: auto; }
.sheet .inner { padding: 28px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.product .pic { background: var(--soft); aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 22px; overflow: hidden; }
.product .pic img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.product .brand { color: var(--muted-2); font-weight: 600; margin: 4px 0 4px; font-size: 15px; }
.product h2 { font-size: 46px; line-height: 1; padding-right: 48px; }
.product .price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 6px; }
.product .price { font: 700 44px/1 var(--condensed); }
.opt-label { font-weight: 600; margin: 16px 0 8px; font-size: 17px; }
.opt-label span { font-weight: 500; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.stock { margin: 0; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--good); }
.stock.low { color: var(--warn); }
.stock.none { color: var(--bad); }
.add-row { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.add-row .btn { flex: 1; min-height: 54px; font-size: 17px; }
.add-row .stepper button { height: 50px; }
.ways-box { border: 1px solid var(--line); border-radius: 18px; margin-top: 18px; overflow: hidden; }
.ways-box div { display: flex; gap: 14px; padding: 14px 18px; align-items: flex-start; }
.ways-box div + div { border-top: 1px solid var(--line); }
.ways-box .icon { color: var(--accent); margin-top: 2px; }
.pale-accent .ways-box .icon { color: var(--ink); }
.ways-box b { display: block; }
.ways-box span { color: var(--muted); font-size: 15px; }
details.nutrition { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; width: 24px; height: 24px; border: 1.5px solid var(--field); border-radius: 50%; display: grid; place-items: center; font-weight: 600; line-height: 1; flex: none; }
details[open] summary::before { content: "−"; }
details.nutrition div { white-space: pre-wrap; color: var(--muted); font-size: 15px; }

.drawer { margin: 0 0 0 auto; width: min(480px, 100vw); height: 100vh; max-height: 100vh; overflow: auto; border-radius: 22px 0 0 22px; }
.drawer .inner { padding: 26px 24px 40px; }
.drawer h2 { margin-bottom: 14px; padding-right: 50px; font-size: 34px; }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .thumb { width: 68px; height: 68px; background: var(--soft); border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.line .thumb img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.line .what b { display: block; line-height: 1.25; font-weight: 600; }
.line .what span { color: var(--muted); font-size: 14px; }
.line .money { font-weight: 600; text-align: right; }
.line .controls { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; }
.line .controls .stepper button { width: 40px; height: 40px; }
.line.plain { grid-template-columns: 1fr auto; }
.line.plain .controls { grid-column: 1 / 3; }
.line.gone .what b { text-decoration: line-through; color: var(--muted); }
.choose { display: grid; gap: 10px; margin: 18px 0 10px; }
.choice { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; border: 1.5px solid var(--field); border-radius: 14px; padding: 14px 16px; cursor: pointer; font-weight: 400; margin: 0; background: #fff; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.choice b { display: block; font-weight: 600; }
.choice span { color: var(--muted); font-size: 14px; }
.choice .cost { font-weight: 600; }
.choice:has(input:checked) { border: 2px solid var(--accent); padding: 13.5px 15.5px; }
.totals { margin: 18px 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; align-items: baseline; }
.totals .total span:first-child { font-weight: 600; font-size: 18px; }
.totals .total span:last-child { font: 700 34px/1 var(--condensed); }
.fine { color: var(--muted); font-size: 14px; margin-top: 10px; }
.form-title { margin: 24px 0 12px; font-size: 24px; }
.drawer .btn.primary.wide { min-height: 56px; font-size: 17px; }

/* ---- the customer's order page ---------------------------------------------------------- */
.order-head .wrap { max-width: 760px; padding-top: 20px; padding-bottom: 20px; }
.order-head .who b { font-size: 30px; }
.order-page { max-width: 760px; margin: 0 auto; padding: 30px 24px 70px; }
.status-line { font: 700 clamp(42px, 8vw, 64px)/0.95 var(--condensed); margin: 6px 0 10px; }
.order-page .lead { font-size: 18px; color: var(--ink-2); }
.progress { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 0; counter-reset: step; }
.progress li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 0 0 20px; position: relative; color: var(--muted); align-items: center; }
.progress li::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--field); display: grid; place-items: center; font-weight: 600; background: var(--page); z-index: 1; }
.progress li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--field); }
.progress li.done { color: var(--ink); }
.progress li.done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.progress li.done:not(:last-child)::after { background: var(--accent); }
.progress li.now { color: var(--ink); font-weight: 600; }
.progress li.now::before { border-color: var(--accent); color: var(--ink); }
.receipt { background: var(--tile); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 20px 0; }
.receipt h3 { font-size: 24px; margin-bottom: 6px; }
.receipt .item { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; }
.receipt .item + .item { border-top: 1px solid var(--line); }
.receipt .item small { display: block; color: var(--muted); }
.receipt .item.total { font-size: 18px; }
.shop-card { background: var(--soft); border-radius: 18px; padding: 20px 22px; margin-top: 24px; }
.shop-card h3 { font-size: 26px; margin-bottom: 6px; }
.shop-card p { margin: 0 0 6px; }

/* ---- the dashboard ---------------------------------------------------------------------- */
.dash-top .wrap { padding-top: 18px; }
.dash-top .top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.dash-top .store-name { font: 700 32px/1 var(--condensed); }
.dash-top select { width: auto; margin: 0; min-height: 40px; border-radius: 999px; }
.dash-top .who-am-i { font-size: 15px; color: var(--muted); }
.tabs { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px 3px; border: 0; border-bottom: 3px solid transparent; background: none; font: 500 16px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.pale-accent .tabs button[aria-current="page"] { border-bottom-color: var(--ink); }
.tabs .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 13px; font-weight: 600; display: inline-grid; place-items: center; }
.dash-main { padding-top: 26px; padding-bottom: 70px; }
.dash-main > h1 { margin-bottom: 8px; }
.dash-main > h1 + .muted { font-size: 17px; margin-bottom: 18px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel { background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel > h2:first-child, .panel > h3:first-child { margin-bottom: 10px; }
.panel .actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-bottom: 20px; }
.fact { background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.fact b { display: block; font: 700 44px/1.05 var(--condensed); }
.fact.bad b { color: var(--bad); }
.fact span { color: var(--muted); }
.shop-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.shop-link a.url { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: stretch; }
.trio .panel { margin: 0; display: flex; flex-direction: column; }
.trio .panel .actions { margin-top: auto; padding-top: 12px; }
.state { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0 0 8px; }
.state.good { color: var(--good); }
.state.warn { color: var(--warn); }
.state.bad { color: var(--bad); }
.setup { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.setup > li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.setup > li:first-child { border-top: 0; }
.setup > li::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--field); display: grid; place-items: center; font: 700 18px/1 var(--condensed); }
.setup > li.done::before { content: "✓"; background: var(--good); border-color: var(--good); color: #fff; }
.setup h3 { margin-bottom: 4px; font-size: 23px; }
.setup .actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#set-prices { scroll-margin-top: 16px; }

.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--tile); }
.table-wrap { overflow-x: auto; }
.list { width: 100%; border-collapse: collapse; font-size: 15px; }
.list th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 600; padding: 12px 12px; background: var(--soft-2); }
.list td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.list th:first-child, .list td:first-child { padding-left: 18px; }
.list th:last-child, .list td:last-child { padding-right: 18px; }
.list tr.click { cursor: pointer; }
.list tr.click:hover td { background: var(--soft-2); }
.list tr.selected td { background: color-mix(in srgb, var(--accent) 9%, #ffffff); }
.list tr.selected td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.list .num { font-weight: 600; white-space: nowrap; }
.list .cust b { display: block; font-weight: 600; }
.list .cust span { color: var(--muted-2); font-size: 14px; }
.list .where { display: flex; flex-wrap: wrap; gap: 6px; }
.panel .list td { border-top-color: var(--line); }
.panel .list th { background: transparent; padding-top: 4px; }

.orders-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.orders-layout.open { grid-template-columns: minmax(0, 1fr) 420px; }
.order-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tile); padding: 22px; }
.order-panel .close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font: 500 24px/1 var(--sans); cursor: pointer; color: var(--ink); }
.order-panel h2 { font-size: 34px; padding-right: 50px; margin-bottom: 12px; }
.order-panel .next { background: var(--soft-2); border-radius: 14px; padding: 16px; margin: 14px 0; }
.order-panel .next p { margin: 0 0 12px; color: var(--ink-2); }
.order-panel .next .btn { width: 100%; min-height: 52px; font-size: 17px; }
.order-panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.order-panel .choose { margin-top: 12px; }
.kv { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 12px; margin: 14px 0; font-size: 15px; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.order-panel .receipt { border-radius: 0; border: 0; border-top: 1px solid var(--line); padding: 10px 0 0; margin: 10px 0; }
.pad { padding: 18px 20px; margin: 0; }
.table-card .more-btn { margin: 14px 18px 18px; }
.log { font-size: 14px; color: var(--muted); }
.log div { padding: 6px 0; border-bottom: 1px solid var(--line); }

.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.result { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.result .thumb { width: 56px; height: 56px; background: var(--soft); border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.result .thumb img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.result b { display: block; line-height: 1.2; font-weight: 600; }
.result span { color: var(--muted); font-size: 14px; }

/* the till: products in a wide grid (no scrolling through a list), the order beside it */
.till-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.till-find { display: flex; flex-direction: column; gap: 12px; }
.till-find .shop-search { flex: none; }
.till-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.till-card { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 12px; background: var(--tile); }
.till-card .pic { height: 104px; background: var(--soft); border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.till-card .pic img { width: 80%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.till-card .brand { font-size: 13px; color: var(--muted-2); font-weight: 500; margin-top: 2px; }
.till-card .name { font-weight: 600; line-height: 1.25; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.till-card .buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.till-card .buy b { font-size: 17px; }
.till-card.out .buy b { color: var(--muted); font-size: 14px; font-weight: 500; }
.till-order { position: sticky; top: 16px; }
.till-order h2 { font-size: 30px; }
.till-order .totals .total span:last-child { font-size: 36px; }

.brands-list { display: grid; gap: 4px; }
.brands-list .check { margin: 0; padding: 8px 0; }
.qr-box { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.qr-box svg { width: 220px; height: 220px; background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 8px; }
.prints { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 4px; }
.prints .panel { margin: 0; }
.colour-row { display: flex; gap: 12px; align-items: center; }
.colour-row input[type="color"] { width: 60px; height: 48px; border: 1.5px solid var(--field); border-radius: 12px; padding: 4px; background: var(--tile); }
/* the shop's banner as customers will see it, changing as the colour is picked */
.band-preview { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; padding: 16px 22px; margin: 12px 0 4px; border-radius: 18px; background: var(--accent); color: var(--on-accent); max-width: 460px; }
.band-preview::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/kit-white.svg") 0 0 / 180px 180px repeat; opacity: 0.12; }
.pale-accent .band-preview::before { background-image: url("img/kit-ink.svg"); opacity: 0.08; }
.band-preview b { font: 700 26px/1.05 var(--condensed); }
.band-preview span { font-size: 15px; }

/* signing in, a new shop */
.signin-page { min-height: 100vh; padding: 8vh 20px 40px; }
.signin { max-width: 470px; margin: 0 auto; }
.signin .brand-line { display: flex; flex-direction: column; margin-bottom: 18px; color: var(--ink); text-decoration: none; width: fit-content; }
.signin .brand-line b { font: 700 34px/1 var(--condensed); }
.signin .brand-line span { color: var(--muted); font-size: 15px; }
.signin .panel { padding: 28px; box-shadow: 0 18px 50px rgba(21, 24, 29, 0.08); }
.signin .panel h1 { margin-bottom: 8px; }
.signin .btn.wide { min-height: 52px; }

.modal { width: min(580px, calc(100vw - 24px)); margin: auto; border-radius: 22px; max-height: 92vh; overflow: auto; }
.modal .inner { padding: 26px; }
.modal h2 { padding-right: 46px; margin-bottom: 12px; font-size: 32px; }
.modal .price { font: 700 40px/1 var(--condensed); }
/* the till's product picker: wide, flavours in columns, price and Add always in view */
.modal.picker { width: min(1000px, calc(100vw - 24px)); padding: 0; }
.picker .inner { padding: 26px 28px 8px; }
.picker .pick-head { display: flex; gap: 18px; align-items: center; margin-bottom: 6px; padding-right: 50px; }
.picker .pick-head .pic { width: 84px; height: 84px; flex: none; border-radius: 14px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.picker .pick-head .pic img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.picker .pick-head p { margin: 0; }
.picker .pick-head h2 { margin: 0; padding: 0; font-size: 34px; }
.picker .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.picker .opts .chip { min-height: 48px; padding: 6px 16px; white-space: normal; text-align: left; line-height: 1.2; font-size: 16px; border-radius: 14px; }
.picker .buy-bar { position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 28px; margin-top: 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 20px -14px rgba(21, 24, 29, 0.2); }
.picker .buy-bar .what { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.picker .buy-bar .price { font: 700 34px/1 var(--condensed); }
.picker .buy-bar .stock { font-size: 14px; }
.picker .buy-bar .chosen { color: var(--muted); font-size: 14px; }
.picker .buy-bar .btn { min-height: 54px; min-width: 220px; font-size: 17px; }
@media (max-width: 560px) {
  .picker .inner { padding: 20px 18px 4px; }
  .picker .buy-bar { padding: 14px 18px; }
  .picker .buy-bar .btn { flex: 1; min-width: 0; }
  .picker .opts { grid-template-columns: 1fr 1fr; }
}
.ticket { margin-top: 12px; }

/* ---- the front page (tropshipconnect.co.uk): TropShip Connect, in Tropicana's red ------------ */
.landing { --accent: #b5121b; --on-accent: #ffffff; }
.landing .shop-head { padding-bottom: 0; }
.landing .shop-head .basket-btn { margin-left: auto; }
.landing .hero { padding-bottom: 56px; }
.landing main > section { margin-top: 64px; }
.landing main > section:first-child { margin-top: 56px; }
.landing main h2 { font-size: 40px; margin-bottom: 14px; }
.intro p { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 820px; margin: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.landing main > section.features { margin-top: 30px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.feature b { font-size: 19px; font-weight: 600; }
.feature span:not(.ic) { color: var(--muted); line-height: 1.5; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; display: grid; gap: 4px; max-width: 860px; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 22px 62px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font: 700 22px/1 var(--condensed); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 2px; width: 2px; background: var(--line); }
.steps b { font-size: 19px; font-weight: 600; }
.steps span { color: var(--muted); line-height: 1.5; }
.partners { background: var(--soft); border-radius: 22px; padding: 36px 40px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; margin-top: 8px; }
.partner { background: #fff; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.partner img { height: 64px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.partner p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; border-radius: 22px; padding: 36px 40px; background: var(--ink); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/kit-white.svg") 0 0 / 180px 180px repeat; opacity: 0.06; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: #c3c9d1; max-width: 560px; }
.landing .foot { margin-top: 72px; }
/* the front page's banner: white, with brand logos stuck on like stickers */
.hero-card.light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(21, 24, 29, 0.06); }
.hero-card.light::before { background-image: url("img/kit-ink.svg"); opacity: 0.045; }
.hero-card.light p { color: var(--ink-2); }
.hero-card.light .btn:not(.primary) { background: #fff; }
.stickers { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 430; justify-self: center; }
.sticker { position: absolute; display: block; background: #fff; padding: 12px 16px; border: 0; border-radius: 16px; box-sizing: border-box;
  box-shadow: 0 10px 24px rgba(21, 24, 29, 0.16), 0 0 0 1px rgba(21, 24, 29, 0.05); transition: transform 140ms ease, box-shadow 140ms ease; }
.sticker img { display: block; width: 100%; height: auto; }
.sticker.photo { padding: 0; overflow: hidden; }
.sticker.photo img { height: 100%; object-fit: cover; }
button.sticker { cursor: pointer; font: inherit; }
button.sticker:hover { box-shadow: 0 16px 32px rgba(21, 24, 29, 0.22), 0 0 0 1px rgba(21, 24, 29, 0.05); translate: 0 -3px; }
.s-grenade { left: 0.7%; top: 3.3%; width: 38.2%; transform: rotate(-6deg); }
.s-c4 { left: 42.1%; top: 0; width: 21.1%; transform: rotate(8deg); padding: 12px 14px; }
.s-applied { left: 66.1%; top: 2.8%; width: 30.4%; transform: rotate(-4deg); }
.s-barebells { left: 0; top: 28.8%; width: 32.1%; transform: rotate(5deg); padding: 10px 12px; }
.s-ghost { left: 34.6%; top: 24.2%; width: 28.6%; transform: rotate(-7deg); border: 5px solid #fff; }
.s-myprotein { left: 67.1%; top: 26%; width: 22.9%; transform: rotate(6deg); }
.s-on { left: 1.1%; top: 54%; width: 36.8%; transform: rotate(-3deg); }
.s-per4m { left: 40.4%; top: 55.8%; width: 31.4%; transform: rotate(4deg); }
.s-neutonic { left: 83.6%; top: 45.6%; width: 14.3%; aspect-ratio: 200 / 458; transform: rotate(9deg); border: 5px solid #fff; }
.s-usn { left: 2.1%; top: 74.9%; width: 28.6%; transform: rotate(-3deg); }
.s-bsn { left: 35%; top: 72.6%; width: 16.4%; transform: rotate(6deg); padding: 8px; }
.s-bulk { left: 54.6%; top: 76.7%; width: 26.8%; transform: rotate(-5deg); border: 5px solid #fff; }
@media (max-width: 860px) {
  .stickers { max-width: 440px; margin-top: 8px; }
  .sticker { padding: 8px 10px; border-radius: 12px; }
}
@media (max-width: 560px) {
  .landing main h2 { font-size: 32px; }
  .intro p { font-size: 17px; }
  .partners, .cta-band { padding: 26px 22px; }
  .partner img { height: 52px; }
}

/* ---- printing (the QR counter poster and shelf strips) ------------------------------------ */
.print-area { display: none; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block; }
  .poster { position: relative; width: 210mm; height: 296mm; overflow: hidden; background: #fff; color: var(--ink); font-family: var(--sans); page-break-after: always; break-after: page; }
  .poster .top { position: relative; isolation: isolate; overflow: hidden; background: var(--accent); color: var(--on-accent); padding: 14mm 16mm 50mm; }
  .poster .top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/kit-white.svg") 0 0 / 48mm 48mm repeat; opacity: 0.12; }
  .pale-accent .poster .top::before { background-image: url("img/kit-ink.svg"); opacity: 0.08; }
  .poster .name { font: 700 12mm/1 var(--condensed); }
  .poster .powered { font-size: 4.6mm; opacity: 0.9; margin-top: 1mm; }
  .poster h1 { font: 700 20.5mm/0.92 var(--condensed); margin: 11mm 0 0; }
  .poster .sub { font-size: 5.8mm; line-height: 1.4; margin: 4mm 0 0; }
  .poster .qr { position: relative; width: 100mm; margin: -40mm auto 0; background: #fff; border-radius: 7mm; padding: 7mm 7mm 5mm; box-shadow: 0 4mm 12mm rgba(21, 24, 29, 0.18); text-align: center; }
  .poster .qr svg { width: 82mm; height: 82mm; display: block; margin: 0 auto; }
  .poster .qr b { display: block; font-size: 5.8mm; font-weight: 600; margin-top: 3.5mm; }
  .poster .points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5mm; padding: 9mm 14mm 0; text-align: center; }
  .poster .points.n2 { grid-template-columns: repeat(2, 1fr); padding-left: 30mm; padding-right: 30mm; }
  .poster .points div { display: flex; flex-direction: column; align-items: center; gap: 1.5mm; }
  .poster .points .ic { width: 15mm; height: 15mm; border-radius: 4mm; background: #eef1f4; color: var(--accent); display: grid; place-items: center; }
  .pale-accent .poster .points .ic { color: var(--ink); }
  .poster .points .ic svg { width: 8mm; height: 8mm; }
  .poster .points b { font-size: 5.6mm; font-weight: 600; }
  .poster .points span { font-size: 4.4mm; color: var(--ink-2); }
  .poster .url { position: absolute; left: 0; right: 0; bottom: 0; height: 19mm; display: grid; place-items: center; background: #eef1f4; font-size: 5.4mm; font-weight: 600; overflow-wrap: anywhere; padding: 0 10mm; text-align: center; }
  .strips { display: grid; grid-template-columns: 1fr; gap: 2.6mm; padding: 9mm 8mm; }
  .strip-print { display: grid; grid-template-columns: 44mm 1fr; height: 42mm; border: 0.3mm dashed #aeb6bf; overflow: hidden; break-inside: avoid; color: var(--ink); }
  .strip-print .code { position: relative; isolation: isolate; overflow: hidden; background: var(--accent); display: grid; place-items: center; }
  .strip-print .code::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/kit-white.svg") 0 0 / 40mm 40mm repeat; opacity: 0.12; }
  .strip-print .code div { background: #fff; border-radius: 3.5mm; padding: 2mm; }
  .strip-print svg { width: 29mm; height: 29mm; display: block; }
  .strip-print .words { display: flex; flex-direction: column; justify-content: center; gap: 1.5mm; padding: 0 7mm; }
  .strip-print b { font: 700 10.5mm/0.95 var(--condensed); }
  .strip-print span { font-size: 4.7mm; line-height: 1.3; color: var(--ink-2); }
  .strip-print small { font-size: 3.9mm; font-weight: 600; color: var(--muted-2); }
}

/* ---- smaller screens ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .orders-layout.open { grid-template-columns: minmax(0, 1fr); }
  .order-panel { position: fixed; inset: 0; z-index: 50; max-height: none; border-radius: 0; border: 0; padding: 22px 20px 40px; box-shadow: 0 0 0 100vmax rgba(21, 24, 29, 0.0); }
  .till-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 860px) {
  .till-layout { grid-template-columns: 1fr; }
  .till-order { position: static; }
  .hero-card .inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero-art { display: none; }
}
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; gap: 16px; }
  .product .pic { aspect-ratio: auto; height: 30vh; }
  .product h2 { font-size: 36px; }
  .product .price { font-size: 38px; }
  .sheet .add-row { position: sticky; bottom: 0; background: var(--tile); padding: 12px 0 14px; margin: 18px -2px 0; box-shadow: 0 -10px 12px -10px rgba(0, 0, 0, 0.12); }
  .sheet { width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 94vh; }
  .sheet .inner { padding: 22px 18px; }
  .drawer { border-radius: 0; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .qr-box { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 32px; }
  .trust { padding: 26px 22px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 38px; }
  .promo .wrap { gap: 2px 18px; font-size: 14px; }
  .promo .wide-only { display: none; }
  .shop-head { padding-top: 16px; gap: 12px; }
  .who { flex: 1 1 0; }
  .who b { font-size: 27px; }
  .basket-btn { min-height: 46px; padding: 0 16px; }
  .shop-head .shop-search { flex-basis: 100%; order: 3; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .shop-search input { height: 48px; }
  .hero { padding-top: 12px; padding-bottom: 28px; }
  .hero-card { border-radius: 20px; }
  .hero-card .inner { padding: 28px 22px; }
  .hero-card h1 { font-size: 40px; }
  .hero-card p { font-size: 16px; }
  .hero-card .btn.ghost, .hero-card.light .actions .btn + .btn { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .tile .pic { border-radius: 16px; }
  .tile .note { top: 8px; left: 8px; font-size: 12px; padding: 3px 9px; }
  .tile .name { font-size: 16px; }
  .tile .price { font-size: 18px; }
  .tile .cta { min-height: 42px; font-size: 15px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .brand-tile { min-height: 56px; font-size: 18px; }
  .fields2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .dash-top .store-name { font-size: 27px; }
  .dash-top .who-am-i { display: none; }
  .panel { padding: 18px; }
  .fact b { font-size: 36px; }
  .till-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list .hide-small { display: none; }
  .list .badge { white-space: normal; }
  .list th, .list td { padding-left: 8px; padding-right: 8px; }
  .foot .cols4 { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
