/* Store shops, order pages and the store dashboard.
   One signature: shelf-edge price tickets with a heavy nutrition-label rule. Everything else stays quiet. */

@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: #eef0f2;
  --tile: #ffffff;
  --ink: #20242b;
  --muted: #5d6571;
  --line: #d9dde2;
  --field: #b6bdc6;
  --soft: #f6f7f8;
  --accent: #20242b;      /* the store's own colour, set by the page */
  --on-accent: #ffffff;
  --link: #20242b;
  --good: #116336;
  --good-soft: #dff1e5;
  --warn: #7a4f00;
  --warn-soft: #fff0d1;
  --bad: #a1241b;
  --bad-soft: #fde5e2;
  --info: #1d4a8f;
  --info-soft: #e5edf9;
  --focus: #2b6cff;
  --rule: 6px;
  --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.05; margin: 0; }
h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.01em; }
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; }

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

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

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--field);
  background: var(--tile); color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.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 12px;
  border: 1.5px solid var(--field); border-radius: 8px; 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); }
input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.error { color: var(--bad); font-weight: 500; }
.notice { border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; background: var(--info-soft); color: var(--info); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.good { background: var(--good-soft); color: var(--good); }

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

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 13px/1.4 var(--sans); background: #e6e9ec; color: var(--ink); 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); }

/* ---- the price ticket ------------------------------------------------------------------- */
.ticket { background: var(--tile); border-top: var(--rule) solid var(--ink); padding: 8px 12px 12px; }
.ticket .price { font: 700 30px/1 var(--condensed); letter-spacing: -0.01em; }
.ticket .price .from { font-size: 17px; font-weight: 600; margin-right: 4px; }
.ticket .name { font-weight: 600; line-height: 1.25; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---- the shop ---------------------------------------------------------------------------- */
/* The band across the top is the shop's own colour (dark grey until it picks one). */
.bar { position: sticky; top: 0; z-index: 20; background: var(--accent); color: var(--on-accent); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.bar .who { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.bar .who img { height: 38px; width: auto; max-width: 128px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px 6px; }
.bar .who .noimg { display: none; }
.bar .who b { font: 700 22px/1 var(--condensed); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.basket-btn { position: relative; }
.basket-btn .count { min-width: 26px; height: 26px; border-radius: 13px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: 14px; padding: 0 6px; }
.basket-btn.primary .count { background: var(--on-accent); color: var(--accent); }
.bar .basket-btn { background: transparent; color: var(--on-accent); border-color: var(--on-accent); }
.bar .basket-btn .count { background: var(--on-accent); color: var(--accent); }
.bar .basket-btn.primary { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.bar .basket-btn.primary .count { background: var(--accent); color: var(--on-accent); }
.bar :focus-visible { outline-color: var(--on-accent); }

/* An optional photo of the shop (its front, its counter) straight under the band */
.cover { margin: 18px 0 0; border-radius: 12px; overflow: hidden; background: var(--soft); }
.cover img { display: block; width: 100%; aspect-ratio: 16 / 7; max-height: 340px; object-fit: cover; object-position: 50% 35%; }
.hero.has-cover { padding-top: 0; }
.hero.has-cover .sign { margin-top: 26px; font-size: clamp(46px, 7.5vw, 84px); } /* (the photo is the big thing) */

.hero { padding: 36px 0 18px; }
.sign { font: 700 clamp(50px, 10.5vw, 112px)/0.9 var(--condensed); letter-spacing: -0.02em; margin: 0; overflow-wrap: anywhere; }
.powered { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 26px; max-width: 760px; }
.way { border-top: 3px solid var(--ink); padding-top: 10px; }
.way b { display: block; font: 600 22px/1.1 var(--condensed); }
.way span { color: var(--muted); }

.finder { position: sticky; top: 64px; z-index: 10; background: var(--page); padding: 12px 0 4px; }
.finder .search { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.finder input[type="search"] { margin: 0; font-size: 17px; }
.finder select { margin: 0; width: auto; min-width: 150px; }
.results-line { color: var(--muted); margin: 6px 0 14px; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 16px; }
.tile { display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.tile .pic { aspect-ratio: 1 / 1; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.tile .pic img { width: 82%; height: 82%; object-fit: contain; }
.tile .ticket { flex: 1; }
.tile:hover .pic img { transform: scale(1.03); transition: transform 160ms ease; }
.tile.out .price { color: var(--muted); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; font: 700 44px/1 var(--condensed); color: #c3c9d0; background: var(--soft); }
.more { display: flex; justify-content: center; margin: 26px 0 10px; }
.empty-state { padding: 40px 0; max-width: 520px; }

.foot { margin-top: 56px; border-top: var(--rule) solid var(--ink); background: var(--tile); }
.foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 26px 20px 34px; }
.foot b { font: 700 22px/1.1 var(--condensed); display: block; margin-bottom: 4px; }
.foot p { margin: 0; color: var(--muted); }

/* ---- sheets (product, basket) ---------------------------------------------------------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--tile); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 23, 28, 0.45); }
dialog .close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--soft); font: 600 26px/1 var(--sans); cursor: pointer; color: var(--ink); z-index: 2; }
.sheet { width: min(860px, 100vw); margin: auto; border-radius: 14px; max-height: min(92vh, 900px); overflow: auto; }
.sheet .inner { padding: 22px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.product .pic { background: var(--soft); aspect-ratio: 1 / 1; display: grid; place-items: center; border-radius: 10px; }
.product .pic img { width: 84%; height: 84%; object-fit: contain; }
.product .brand { color: var(--muted); font-weight: 500; margin: 2px 0 2px; }
.product h2 { font-size: 34px; padding-right: 44px; }
.product .ticket { padding-left: 0; margin: 16px 0 12px; }
.product .ticket .price { font-size: 46px; }
.opt-label { font-weight: 600; margin: 14px 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.stock { margin: 12px 0 16px; font-weight: 500; }
.stock.low { color: var(--warn); }
.stock.none { color: var(--bad); }
.add-row { display: flex; gap: 12px; align-items: center; }
.add-row .btn { flex: 1; }
details.nutrition { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
details summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; gap: 8px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; width: 22px; height: 22px; border: 1.5px solid var(--field); border-radius: 50%; display: grid; place-items: center; font-weight: 600; line-height: 1; }
details[open] summary::before { content: "−"; }
details.nutrition div { white-space: pre-wrap; color: var(--muted); font-size: 14px; }

.drawer { margin: 0 0 0 auto; width: min(460px, 100vw); height: 100vh; max-height: 100vh; overflow: auto; }
.drawer .inner { padding: 22px 22px 40px; }
.drawer h2 { margin-bottom: 16px; padding-right: 50px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .thumb { width: 64px; height: 64px; background: var(--soft); border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.line .thumb img { width: 86%; height: 86%; object-fit: contain; }
.line .what b { display: block; line-height: 1.25; }
.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.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 8px; }
.choice { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 400; margin: 0; }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.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-color: var(--ink); }
.totals { margin: 18px 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .total { border-top: var(--rule) solid var(--ink); margin-top: 8px; padding-top: 10px; font: 700 30px/1 var(--condensed); }
.fine { color: var(--muted); font-size: 14px; margin-top: 10px; }
.mt { margin-top: 22px; }
.form-title { margin: 22px 0 12px; }

.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 100; max-width: calc(100vw - 32px); }

/* ---- the customer's order page ---------------------------------------------------------- */
.bar.order-bar .wrap { max-width: 720px; }
.order-page { max-width: 720px; margin: 0 auto; padding: 28px 20px 60px; }
.order-page .shop-name { font: 700 26px/1 var(--condensed); text-decoration: none; color: inherit; display: inline-flex; gap: 10px; align-items: center; }
.order-page .shop-name img { height: 34px; width: auto; }
.status-line { font: 700 clamp(40px, 8vw, 64px)/0.95 var(--condensed); margin: 26px 0 8px; letter-spacing: -0.015em; }
.progress { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 0; counter-reset: step; }
.progress li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 0 0 18px; position: relative; color: var(--muted); }
.progress li::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; 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: 30px; bottom: 0; width: 2px; background: var(--field); }
.progress li.done { color: var(--ink); }
.progress li.done::before { content: "✓"; background: var(--ink); border-color: var(--ink); color: #fff; }
.progress li.now { color: var(--ink); font-weight: 600; }
.progress li.now::before { border-color: var(--ink); color: var(--ink); }
.receipt { background: var(--tile); border-top: var(--rule) solid var(--ink); padding: 16px 18px; margin: 18px 0; }
.receipt .item { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; }
.receipt .item small { display: block; color: var(--muted); }

/* ---- the dashboard ---------------------------------------------------------------------- */
.dash-top { background: var(--tile); border-bottom: 1px solid var(--line); }
.dash-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; flex-wrap: wrap; }
.dash-top .store-name { font: 700 28px/1 var(--condensed); }
.dash-top select { width: auto; margin: 0; min-height: 40px; }
.tabs { border-bottom: 1px solid var(--line); background: var(--tile); }
.tabs .wrap { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; }
.tabs button { flex: none; min-height: 50px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none; font: 600 16px/1 var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.dash-main { padding-top: 22px; padding-bottom: 60px; }
.panel { background: var(--tile); border-top: 3px solid var(--ink); padding: 20px; margin-bottom: 18px; }
.panel > h2:first-child, .panel > h3:first-child { margin-bottom: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.fact { background: var(--tile); padding: 14px 16px; }
.fact b { display: block; font: 700 34px/1 var(--condensed); }
.fact span { color: var(--muted); }
.setup { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.setup > li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.setup > li:first-child { border-top: 0; }
.setup > li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--field); display: grid; place-items: center; font: 700 17px/1 var(--condensed); }
.setup > li.done::before { content: "✓"; background: var(--good); border-color: var(--good); color: #fff; }
.setup h3 { margin-bottom: 4px; }
.setup .actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.list { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--ink); }
.list td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tr.click { cursor: pointer; }
.list tr.click:hover td { background: var(--soft); }
.list .num { font: 700 20px/1 var(--condensed); }
.table-wrap { overflow-x: auto; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.result { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result .thumb { width: 54px; height: 54px; background: var(--soft); border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.result .thumb img { width: 86%; height: 86%; object-fit: contain; }
.result b { display: block; line-height: 1.2; }
.result span { color: var(--muted); font-size: 14px; }
.qr-box { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.qr-box svg { width: 220px; height: 220px; background: #fff; }
.colour-row { display: flex; gap: 10px; align-items: center; }
.colour-row input[type="color"] { width: 56px; height: 48px; border: 1.5px solid var(--field); border-radius: 8px; padding: 4px; background: var(--tile); }
.logo-preview { height: 64px; width: auto; max-width: 200px; object-fit: contain; background: var(--soft); padding: 6px; border-radius: 8px; }
.cover-preview { display: block; width: min(100%, 420px); aspect-ratio: 16 / 7; object-fit: cover; border-radius: 8px; background: var(--soft); margin: 4px 0 12px; }
/* the band as customers will see it, changing as the colour is picked */
.band-preview { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; margin: 12px 0 4px; border-radius: 8px; background: var(--accent); color: var(--on-accent); max-width: 420px; }
.band-preview img { height: 32px; width: auto; max-width: 110px; object-fit: contain; background: #fff; border-radius: 5px; padding: 2px 5px; }
.band-preview b { font: 700 21px/1 var(--condensed); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.look-part + .look-part { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.signin { max-width: 440px; margin: 8vh auto 40px; padding: 0 20px; }
.signin .panel { padding: 26px; }
.modal { width: min(560px, calc(100vw - 24px)); margin: auto; border-radius: 14px; max-height: 92vh; overflow: auto; }
.modal .inner { padding: 22px; }
.modal h2 { padding-right: 46px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 10px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.log { font-size: 14px; color: var(--muted); }
.log div { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---- printing (QR counter cards and shelf strips) ---------------------------------------- */
.print-area { display: none; }
@media print {
  @page { margin: 10mm; }
  html, body { background: #fff; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block; }
  .card-print { width: 105mm; height: 148mm; border-top: 7mm solid #000; padding: 8mm 8mm 0; page-break-after: always; font-family: var(--sans); color: #000; }
  .card-print h1 { font: 700 15mm/0.95 var(--condensed); margin: 0 0 4mm; }
  .card-print p { font-size: 4.6mm; line-height: 1.35; margin: 0 0 3mm; }
  .card-print svg { width: 52mm; height: 52mm; margin: 2mm 0 3mm; }
  .card-print .url { font: 600 4mm/1.2 var(--sans); overflow-wrap: anywhere; }
  .strips { display: grid; grid-template-columns: 1fr; gap: 6mm; }
  .strip-print { display: grid; grid-template-columns: 30mm 1fr; gap: 5mm; align-items: center; border-top: 4mm solid #000; padding: 3mm 2mm 0; height: 40mm; page-break-inside: avoid; color: #000; }
  .strip-print svg { width: 30mm; height: 30mm; }
  .strip-print b { font: 700 9mm/1 var(--condensed); display: block; }
  .strip-print span { font-size: 4.2mm; line-height: 1.3; }
}

/* ---- small screens ---------------------------------------------------------------------- */
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; gap: 14px; }
  .product .pic { aspect-ratio: auto; height: 26vh; }
  .product h2 { font-size: 30px; }
  .product .ticket { margin: 10px 0 6px; }
  .product .ticket .price { font-size: 40px; }
  .sheet .add-row { position: sticky; bottom: 0; background: var(--tile); padding: 12px 0 14px; margin: 0 -2px; box-shadow: 0 -10px 12px -10px rgba(0,0,0,.12); }
  .sheet { width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 94vh; }
  .cols { grid-template-columns: 1fr; }
  .qr-box { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .ticket { padding: 6px 8px 10px; }
  .ticket .price { font-size: 26px; }
  .fields2 { grid-template-columns: 1fr; }
  .finder .search { grid-template-columns: 1fr; }
  .finder select { width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .bar .who b { font-size: 20px; }
  .bar .who img { height: 34px; max-width: 150px; }
  .bar .who.has-logo b { display: none; } /* (the logo says whose shop it is; the name is just below) */
  .hero { padding-top: 22px; }
  .cover { margin: 0 -14px; border-radius: 0; }
  .cover img { aspect-ratio: 16 / 10; }
  .hero.has-cover .sign { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
