/* Online shop — a modern supermarket storefront. Mobile first; light and dark follow the phone's setting.
   The client's own colours come in as --brand* variables (js/shop.js → applyBrand, from the business settings);
   the values below are the fallback (Gomok green + amber). */
:root {
  --brand: #17803d; --brand-ink: #ffffff; --brand-head: #17803d; --brand-head-ink: #ffffff; --brand-deep: #0f5a2b;
  --brand-soft: #e5f4ea; --brand-softer: #f1f9f4; --brand-line: #b9dfc6; --brand-strong: #11672f;
  --brand2: #f59e0b; --brand2-ink: #111827; --brand2-soft: #fdecc8; --brand2-strong: #92580a;
  --bg: #f1f2f5;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --text: #1b1e24;
  --muted: #5d6470;
  --line: #e2e5ea;
  --ok: #15803d; --ok-soft: #e7f6ec;
  --warn: #9a5b00; --warn-soft: #fff4dc;
  --bad: #c62828; --bad-soft: #fdecec;
  --info: #1d5fa8; --info-soft: #e8f0fb;
  --deal: #e11d48; --deal-2: #f43f5e;
  --wa: #128c4a;
  --gold: #b7791f; --gold-soft: #fdf3dc; --pink: #c2417a; --pink-soft: #fce8f1;
  --ft-bg: #1d2127; --ft-ink: #d4d8df; --ft-muted: #9aa1ad; --ft-line: #2e333b;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 2px 10px rgba(17, 24, 39, .05);
  --shadow-hover: 0 4px 10px rgba(17, 24, 39, .08), 0 12px 30px rgba(17, 24, 39, .1);
  --shadow-lg: 0 12px 44px rgba(10, 15, 25, .25);
  --radius: 14px;
  --radius-sm: 10px;
  --tabs-h: 62px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3cbc69; --brand-ink: #062112; --brand-head: #0b2a17; --brand-head-ink: #f8fafc; --brand-deep: #071d10;
    --brand-soft: #173222; --brand-softer: #13261b; --brand-line: #24553a; --brand-strong: #6fd396;
    --brand2-soft: #3a2c10; --brand2-strong: #f7c35a;
    --bg: #0f1115;
    --surface: #181b21;
    --surface-2: #20242c;
    --text: #e8eaef;
    --muted: #9aa1ad;
    --line: #2a2f38;
    --ok: #4ade80; --ok-soft: #12301f;
    --warn: #f0b955; --warn-soft: #3a2d12;
    --bad: #ff8a80; --bad-soft: #3d1c19;
    --info: #8cbaf2; --info-soft: #182a40;
    --deal: #f43f5e; --deal-2: #fb7185;
    --wa: #25a35a;
    --gold: #f2c25b; --gold-soft: #3a2f14; --pink: #f08cb7; --pink-soft: #3b1b2a;
    --ft-bg: #0b0d10; --ft-ink: #cfd4dc; --ft-muted: #8a919c; --ft-line: #22262d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 10px rgba(0, 0, 0, .25);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 44px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--font);
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
body.has-cartbar { padding-bottom: calc(var(--tabs-h) + 72px + env(safe-area-inset-bottom, 0px)); }
body.modal-open { overflow: hidden; }
img { max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ok { color: var(--ok); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-xl { width: 52px; height: 52px; stroke-width: 1.4; color: var(--muted); }
.pi { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────── header ───────────── */
.hd { position: sticky; top: 0; z-index: 30; background: var(--brand-head); color: var(--brand-head-ink); box-shadow: 0 2px 14px rgba(0, 0, 0, .18); padding-top: env(safe-area-inset-top, 0px); }
.hd::after { content: ""; display: block; height: 3px; background: var(--brand2); }
.hd-in {
  max-width: 1240px; margin: 0 auto; padding: 8px 12px 6px; display: grid; gap: 6px 6px; align-items: center;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "brand demo . acct cart" "search search search search search" "loc loc loc loc loc";
}
.hd-brand { grid-area: brand; display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; min-height: 44px; min-width: 0; max-width: 46vw; }
.hd-brand img { display: block; height: 40px; width: auto; max-width: 132px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px 7px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.hd-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; background: var(--brand2); color: var(--brand2-ink); }
.hd-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-brand.has-logo .hd-mark, .hd-brand.has-logo .hd-name { display: none; }
.demo-tag { grid-area: demo; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand2-ink); background: var(--brand2); padding: 3px 6px; border-radius: 6px; justify-self: start; }
.hd-loc { grid-area: loc; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 34px; padding: 2px 4px; border-radius: 10px; color: inherit; text-decoration: none; border: 1px solid transparent; }
@media (max-width: 879px) {
  .hd-loc .hl-t { flex-direction: row; gap: 5px; align-items: baseline; }
  .hd-loc .hl-t small { font-size: .8rem; }
  .hd-loc::after { content: "Change"; margin-left: auto; font-size: .78rem; font-weight: 700; text-decoration: underline; opacity: .9; }
}
.hd-loc:hover { border-color: rgba(255, 255, 255, .5); }
.hd-loc .ic { width: 18px; height: 18px; flex: none; opacity: .9; }
.hl-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.hl-t small { font-size: .7rem; opacity: .85; }
.hl-t b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-btn { display: flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 4px 8px; justify-content: center; border-radius: 10px; color: inherit; text-decoration: none; border: 1px solid transparent; background: transparent; font-weight: 700; font-size: .88rem; }
.hd-btn:hover { border-color: rgba(255, 255, 255, .5); }
.hd-btn .ic { width: 24px; height: 24px; }
#acctBtn { grid-area: acct; }
.hd-cart { grid-area: cart; position: relative; }
.hc-ic { position: relative; display: inline-flex; }
.hd-badge { position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--brand2); color: var(--brand2-ink); font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--brand-head); }
.hd-btn .hb-t { display: none; }
.hd-cart.bump .hc-ic { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }
.hd-search { grid-area: search; position: relative; display: flex; align-items: stretch; height: 46px; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.hd-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 8px 0 14px; font-size: 1rem; color: var(--text); border-radius: 12px 0 0 12px;
  -webkit-appearance: none; appearance: none; outline: none;
}
.hd-search:focus-within { box-shadow: 0 0 0 3px var(--brand2); }
.hd-search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 40px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.search-go { width: 54px; border: 0; border-radius: 0 12px 12px 0; background: var(--brand2); color: var(--brand2-ink); display: grid; place-items: center; }
.search-go .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.sugg { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; }
.sg-sec { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.sg-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 10px; min-height: 48px; border: 0; background: transparent; border-radius: 10px; text-align: left; color: inherit; text-decoration: none; }
.sg-item:hover, .sg-item:focus-visible { background: var(--surface-2); }
.sg-item .thumb { width: 40px; height: 40px; border-radius: 8px; }
.sg-name { flex: 1; min-width: 0; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-name em { color: var(--bad); font-style: normal; font-size: .8rem; }
.sg-price { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.sg-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); }
.sg-ic .pi { width: 20px; height: 20px; stroke-width: 1.8; }
.sg-all { width: 100%; display: flex; align-items: center; gap: 8px; justify-content: center; min-height: 46px; margin-top: 4px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--brand-strong); font-weight: 700; border-radius: 0 0 10px 10px; }
.sg-none { padding: 14px; color: var(--muted); }
.cat-nav { display: none; }
.netbar { background: var(--warn-soft); color: var(--warn); padding: 8px 16px; font-size: .875rem; border-bottom: 1px solid var(--line); text-align: center; }
.install-bar { max-width: 1240px; margin: 10px auto 0; padding: 10px 12px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); width: calc(100% - 24px); }
.ib-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; flex: none; }
.ib-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ib-t small { color: var(--muted); }

@media (min-width: 880px) {
  .hd-in { grid-template-columns: auto auto minmax(150px, auto) minmax(0, 1fr) auto auto; grid-template-areas: "brand demo loc search acct cart"; padding: 10px 20px; gap: 10px; }
  .hd-brand { max-width: 260px; }
  .hd-brand img { height: 46px; max-width: 170px; }
  .hd-search { height: 48px; }
  .hd-btn .hb-t { display: inline; }
  .hl-t b { font-size: .92rem; }
  .cat-nav { display: flex; gap: 2px; max-width: 1240px; margin: 0 auto; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .cat-nav::-webkit-scrollbar { display: none; }
  .cn-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: inherit; text-decoration: none; font-size: .86rem; font-weight: 600; padding: 9px 10px; border-radius: 8px 8px 0 0; opacity: .92; }
  .cn-link .ic { width: 16px; height: 16px; }
  .cn-link:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
  .cn-link.is-on { background: rgba(0, 0, 0, .18); opacity: 1; box-shadow: inset 0 -3px 0 var(--brand2); }
  .cn-deal { color: var(--brand2); }
}

/* ───────────── page ───────────── */
main { display: block; max-width: 1240px; margin: 0 auto; outline: none; min-height: 60vh; }
.page { padding: 12px 12px 20px; }
.page-narrow { max-width: 820px; margin: 0 auto; }
.page-hero { margin: 6px 0 14px; }
.page-hero p { margin: 2px 0 0; }
.h1 { font-size: 1.4rem; line-height: 1.2; margin: 4px 0 6px; letter-spacing: -.01em; }
.h2 { font-size: 1.1rem; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.h3 { font-size: 1rem; margin: 0 0 8px; }
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 2px 0 4px; }
.crumbs a, .crumbs .linkish { color: var(--muted); text-decoration: none; font-size: .82rem; }
.crumbs a:hover, .crumbs .linkish:hover { color: var(--brand-strong); text-decoration: underline; }
.crumbs .ic { width: 14px; height: 14px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 48px 16px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255, 255, 255, .4); border-top-color: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state p { margin: 0; max-width: 36ch; }
.empty-state b { color: var(--text); font-size: 1.05rem; }
.alert { background: var(--bad-soft); color: var(--bad); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; font-weight: 500; }
.info { background: var(--info-soft); color: var(--info); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0 0; }
.hint { margin: 8px 0 0; color: var(--brand-strong); font-weight: 600; font-size: .9rem; display: flex; gap: 6px; align-items: flex-start; }
.hint-warn { color: var(--warn); background: var(--warn-soft); padding: 10px 12px; border-radius: var(--radius-sm); }
.hint .ic { width: 18px; height: 18px; margin-top: 1px; }

/* skeletons */
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-hero { height: 180px; border-radius: 18px; margin-bottom: 12px; }
.sk-cat { height: 86px; }
.sk-title { height: 22px; width: 180px; margin: 8px 0; }
.sk-card { padding: 8px; gap: 8px; }
.sk-img { aspect-ratio: 1 / 1; }
.sk-l { height: 14px; width: 90%; }
.sk-s { height: 14px; width: 50%; }
.sk-b { height: 40px; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } .spinner { animation-duration: 2s; } * { scroll-behavior: auto !important; } }

/* ───────────── buttons, pills, chips ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700;
  text-decoration: none; transition: background .15s, transform .05s, box-shadow .15s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--brand) 60%, transparent); }
.btn-primary:hover:not([disabled]) { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-sm { min-height: 44px; padding: 6px 12px; font-size: .9rem; }
.btn-lg { min-height: 54px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--text); }
.linkish { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); white-space: nowrap; text-decoration: none; }
.pill[style] { background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 72%, var(--text)); }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }
.badge .ic { width: 16px; height: 16px; }
.badge-2 { background: var(--brand2-soft); color: var(--brand2-strong); }
.badge-soft { background: var(--surface-2); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.chips-l { font-size: .82rem; color: var(--muted); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .86rem; white-space: nowrap; color: var(--text); }
.chip:hover { border-color: var(--brand); }
.chip .ic { width: 16px; height: 16px; }
.chip.is-on, .bd-chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ───────────── product pictures (photo, or an icon on the category colour) ───────────── */
.thumb { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: #475569;
  background: linear-gradient(150deg, #f1f5f9, #e2e8f0);
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, #ffffff 70%, transparent) 0 34%, transparent 35%),
              linear-gradient(150deg, color-mix(in srgb, var(--c) 20%, var(--surface)), color-mix(in srgb, var(--c) 7%, var(--surface)));
  color: color-mix(in srgb, var(--c) 82%, #000); }
.ph .pi { width: 52%; height: 52%; }
@media (prefers-color-scheme: dark) {
  .ph { background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--c) 18%, transparent) 0 34%, transparent 35%),
                    linear-gradient(150deg, color-mix(in srgb, var(--c) 26%, #181b21), color-mix(in srgb, var(--c) 10%, #181b21));
        color: color-mix(in srgb, var(--c) 55%, #fff); }
}
.thumb-big { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.thumb-big .pi { width: 40%; height: 40%; stroke-width: 1.1; }

/* ───────────── product card ───────────── */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-hover); }
.grid .card { content-visibility: auto; contain-intrinsic-size: 170px 330px; }
.grid .card-img .thumb { aspect-ratio: 6 / 5; }
.card-img { position: relative; cursor: pointer; }
.card-img .thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; }
.b-off { position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--brand2); color: var(--brand2-ink); font-size: .74rem; font-weight: 800; padding: 3px 7px; border-radius: 6px; letter-spacing: .01em; }
.b-deal { position: absolute; left: 8px; bottom: 8px; right: 8px; z-index: 1; width: max-content; max-width: calc(100% - 16px); background: var(--deal); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 7px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-out { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; background: rgba(17, 24, 39, .78); color: #fff; font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.card.is-out .thumb { filter: grayscale(.9); opacity: .55; }
.card-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-name { font-size: .88rem; font-weight: 600; line-height: 1.25; margin: 0; }
.card-name .linkish { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.card-name .linkish:hover { color: var(--brand-strong); }
.card-unit { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.card-price strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.card-price s { font-size: .78rem; color: var(--muted); }
.ctl { margin-top: auto; padding-top: 8px; }
.soldout { color: var(--bad); font-weight: 600; font-size: .86rem; display: inline-flex; min-height: 44px; align-items: center; }
.card .soldout { width: 100%; justify-content: center; background: var(--surface-2); border-radius: 10px; color: var(--muted); }
.btn-add { width: 100%; min-height: 44px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); border: 0; padding: 6px 10px; font-weight: 800; font-size: .9rem; box-shadow: none; }
.btn-add .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.btn-add:hover { filter: brightness(1.08); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 4px; background: var(--brand-soft); color: var(--brand-strong); border: 1.5px solid var(--brand); border-radius: 10px; min-height: 44px; }
.st-btn { width: 42px; height: 42px; border: 0; background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; border-radius: 9px; flex: none; }
.st-btn:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.st-btn .ic { stroke-width: 2.6; }
.st-q { font-weight: 800; min-width: 3ch; text-align: center; white-space: nowrap; font-size: .95rem; color: var(--text); }
.stepper-sm { display: inline-flex; min-width: 132px; }
.stepper-lg { min-width: 180px; min-height: 52px; }
.stepper-lg .st-btn { height: 50px; width: 50px; }
.pm-ctl .btn-add { min-height: 52px; font-size: 1rem; }

/* ───────────── home ───────────── */
.page-home { display: flex; flex-direction: column; gap: 12px; }
.hero { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hero-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; min-height: 190px; display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; align-items: center; padding: 18px 16px 30px; color: #fff; position: relative; overflow: hidden; }
.slide::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.slide::after { content: ""; position: absolute; width: 160px; height: 160px; right: 40px; bottom: -110px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.sl-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.sl-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .95; }
.sl-kicker .ic { width: 15px; height: 15px; }
.slide h2 { margin: 0; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 900; }
.slide p { margin: 2px 0 8px; font-size: .88rem; opacity: .92; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sl-btn { min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #fff; color: #111827; border: 0; font-size: .88rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.sl-btn .ic { width: 16px; height: 16px; }
.sl-art { position: relative; z-index: 1; display: grid; place-items: center; }
.sl-logo { width: 100px; height: 100px; border-radius: 22px; background: #fff; display: grid; place-items: center; padding: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: rotate(-4deg); }
.sl-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sl-big { width: 92px; height: 92px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.sl-big .ic, .sl-big .pi { width: 52px; height: 52px; stroke-width: 1.5; }
.sl-prods { display: flex; }
.sl-prod { position: relative; margin-left: -22px; }
.sl-prod:first-child { margin-left: 0; }
.sl-prod .thumb { width: 64px; height: 64px; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.sl-prod:nth-child(2) { transform: translateY(-14px); }
.sl-prod:nth-child(n+3) { display: none; }
.sl-prod b { position: absolute; top: -8px; right: -6px; background: var(--deal); color: #fff; font-size: .68rem; padding: 2px 5px; border-radius: 6px; }
.sl-brand { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--brand2) 35%, transparent), transparent 45%), linear-gradient(120deg, var(--brand-head), var(--brand-deep)); color: var(--brand-head-ink); }
.sl-deals { background: linear-gradient(120deg, var(--deal), #be123c 60%, #9f1239); }
.sl-promo { background: linear-gradient(120deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); }
.sl-free { background: linear-gradient(120deg, #0f766e, #134e4a); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; z-index: 2; }
.hd-dot { width: 26px; height: 26px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.hd-dot::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .55); transition: width .25s; }
.hd-dot.is-on::before { width: 20px; background: #fff; }
@media (min-width: 720px) {
  .slide { min-height: 260px; grid-template-columns: minmax(0, 1fr) 260px; padding: 30px 40px 40px; }
  .slide h2 { font-size: 2.3rem; }
  .slide p { font-size: 1rem; }
  .sl-btn { min-height: 46px; padding: 8px 20px; font-size: .95rem; }
  .sl-logo { width: 200px; height: 150px; border-radius: 28px; padding: 16px; }
  .sl-big { width: 170px; height: 170px; }
  .sl-big .ic, .sl-big .pi { width: 96px; height: 96px; }
  .sl-prod .thumb { width: 116px; height: 116px; border-radius: 20px; }
  .sl-prod { margin-left: -30px; }
  .sl-prod:nth-child(n+3) { display: block; }
  .sl-prod b { font-size: .85rem; padding: 3px 7px; }
}

/* category tiles */
.cat-row, .cats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: var(--surface); border-radius: 16px; padding: 12px 8px; box-shadow: var(--shadow); }
.cats-grid { padding: 14px 10px; gap: 10px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); text-decoration: none; padding: 4px 2px 6px; border-radius: 12px; min-width: 0; }
.cat-tile:hover { background: var(--surface-2); }
.cat-tile:hover .ct-ic { transform: translateY(-2px); }
.ct-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s;
  background: var(--surface-2); background: color-mix(in srgb, var(--c) 15%, var(--surface)); color: var(--c); color: color-mix(in srgb, var(--c) 85%, var(--text)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 25%, transparent); }
.ct-ic .pi { width: 32px; height: 32px; stroke-width: 1.5; }
.ct-ic .ic { width: 28px; height: 28px; }
.ct-name { font-size: .76rem; font-weight: 700; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ct-n { display: none; font-size: .72rem; color: var(--muted); }
@media (min-width: 600px) { .cat-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } .cats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ct-n { display: block; } }
@media (min-width: 1000px) { .cat-row { grid-template-columns: repeat(10, minmax(0, 1fr)); } .cats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .ct-ic { width: 66px; height: 66px; } .ct-name { font-size: .82rem; } }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tr-item { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); min-width: 0; }
.tr-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.tr-item b { display: block; font-size: .84rem; line-height: 1.2; }
.tr-item small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* product rows */
#homeRows { display: flex; flex-direction: column; gap: 12px; }
.hsec { background: var(--surface); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rh-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rh-t .h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.rh-ic .ic { width: 18px; height: 18px; }
.rh-dot { width: 5px; height: 22px; border-radius: 3px; background: var(--c); flex: none; }
.rh-sub { font-size: .8rem; color: var(--muted); width: 100%; margin-top: -4px; }
.rh-acts { display: flex; gap: 4px 10px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.rh-more { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-weight: 700; font-size: .86rem; color: var(--brand-strong); text-decoration: none; min-height: 40px; padding: 0 4px; background: none; border: 0; }
.rh-more .ic { width: 16px; height: 16px; }
.hsec-deal { padding-top: 0; overflow: hidden; }
.hsec-deal .row-head { margin: 0 -12px 12px; padding: 8px 12px; background: linear-gradient(90deg, var(--deal), var(--deal-2)); color: #fff; }
.hsec-deal .rh-ic { background: rgba(255, 255, 255, .2); color: #fff; }
.hsec-deal .rh-more { color: #fff; }
.cd { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; }
.cd .ic { width: 16px; height: 16px; }
.cd b { font-variant-numeric: tabular-nums; font-weight: 800; }
.hsec-deal .cd { background: rgba(0, 0, 0, .18); padding: 3px 8px; border-radius: 8px; }
.hrow-wrap { position: relative; }
.hrow { display: grid; grid-auto-flow: column; grid-auto-columns: 146px; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 2px; overscroll-behavior-x: contain; }
.hrow::-webkit-scrollbar { display: none; }
.hrow > .card { scroll-snap-align: start; }
.hr-arrow { display: none; }
@media (min-width: 880px) {
  .hrow { grid-auto-columns: 184px; gap: 14px; }
  .hr-arrow { display: grid; place-items: center; position: absolute; top: 34%; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow-hover); opacity: 0; transition: opacity .2s; }
  .hr-l { left: -8px; } .hr-r { right: -8px; }
  .hrow-wrap:hover .hr-arrow { opacity: 1; }
}
.home-all { display: flex; justify-content: center; padding: 8px 0 4px; }

/* ───────────── list pages ───────────── */
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 0 8px; }
.list-head .h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.list-head .muted { font-size: .875rem; white-space: nowrap; }
.fbar { display: flex; flex-direction: column; gap: 6px; margin: 0 -12px 12px; padding: 8px 12px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.frow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; padding: 1px 0; }
.frow::-webkit-scrollbar { display: none; }
.frow-l { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); white-space: nowrap; padding-right: 2px; }
.frow-l .ic { width: 15px; height: 15px; }
.frow .chip { min-height: 38px; padding: 4px 12px; font-size: .84rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid-empty { grid-column: 1 / -1; }
.more { height: 1px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 880px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  .fbar { margin: 0 0 14px; border-radius: 14px; border: 1px solid var(--line); }
  .frow { flex-wrap: wrap; }
}

/* ───────────── branches ───────────── */
.branch-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.branch-tile {
  display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 16px; border-radius: 16px; color: var(--text);
  background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
.branch-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); }
.branch-tile.is-current { border-color: var(--brand); background: linear-gradient(0deg, var(--brand-softer), var(--surface) 70%); }
.bt-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bt-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.bt-name { font-size: 1.15rem; font-weight: 800; }
.bt-line { display: flex; gap: 8px; color: var(--muted); font-size: .9rem; align-items: flex-start; }
.bt-line .ic { width: 18px; height: 18px; margin-top: 2px; }
.bt-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.bt-go { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--brand-strong); font-weight: 800; font-size: .92rem; }

/* ───────────── cart bar + tabs ───────────── */
.cartbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px)); z-index: 25; padding: 8px 12px; pointer-events: none; }
.cartbar-btn {
  pointer-events: auto; width: 100%; max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 56px;
  border: 0; border-radius: 16px; padding: 8px 16px; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-lg); font-weight: 800; font-size: 1rem;
}
.cb-count { background: var(--brand2); color: var(--brand2-ink); border-radius: 999px; min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; font-size: .9rem; }
.cb-text { flex: 1; text-align: left; display: flex; flex-direction: column; line-height: 1.15; }
.cb-text small { font-size: .74rem; font-weight: 600; opacity: .9; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .06);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 700; min-height: 44px; }
.tab .ic { width: 23px; height: 23px; }
.tab[aria-current="page"] { color: var(--brand-strong); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tab-badge { position: absolute; top: 5px; left: calc(50% + 5px); background: var(--deal); color: #fff; font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.tab-badge-in { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand2); color: var(--brand2-ink); font-size: .72rem; font-weight: 800; }
@media (min-width: 960px) {
  .tabs, .cartbar { display: none !important; }
  body, body.has-cartbar { padding-bottom: 0; }
}

/* ───────────── pop-ups and the cart drawer ───────────── */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 20, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease-out; }
.sheet {
  background: var(--surface); width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: up .22s ease-out; padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head .h2 { min-width: 0; font-size: 1.08rem; }
.sheet-body { padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet-foot { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.foot-row > .btn-primary, .foot-row > .pm-ctl { flex: 1; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .6; } }
@keyframes side { from { transform: translateX(40px); opacity: .6; } }
@media (min-width: 680px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { max-width: 580px; border-radius: 20px; max-height: 88vh; }
  .sheet-product { max-width: 920px; }
  .overlay-cart { justify-content: flex-end; align-items: stretch; padding: 0; }
  .sheet-cart { max-width: 460px; max-height: none; height: 100%; border-radius: 20px 0 0 20px; animation: side .22s ease-out; }
}
.sheet-cart { height: 94dvh; }

/* product details */
.pd { display: grid; gap: 16px; }
.pd-img { position: relative; }
.b-off-lg { font-size: .95rem; padding: 5px 10px; left: 12px; top: 12px; }
.pd-info { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pd-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pd-price strong { font-size: 1.75rem; font-weight: 900; letter-spacing: -.02em; }
.pd-price s { color: var(--muted); }
.pd-price .b-off { position: static; }
.pd-cd { margin: 0; color: var(--deal); background: color-mix(in srgb, var(--deal) 10%, transparent); padding: 6px 10px; border-radius: 10px; }
.pd-offers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.pd-offers li { display: flex; gap: 8px; align-items: flex-start; background: var(--ok-soft); color: var(--text); padding: 8px 10px; border-radius: 10px; font-size: .9rem; }
.pd-offers .ic { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }
.pd-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.pd-unit { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--text); min-height: 64px; }
.pd-unit b { font-size: .92rem; }
.pd-unit span { font-weight: 700; color: var(--brand-strong); }
.pd-unit em { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--ok); }
.pd-unit small { font-size: .74rem; color: var(--muted); }
.pd-unit small:empty { display: none; }
.pd-unit.is-on { border-color: var(--brand); background: var(--brand-softer); }
.pd-desc { margin: 0; }
.pd-stock { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: .9rem; }
.pd-stock .ic { width: 18px; height: 18px; }
.pd-similar { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.hrow-sm { grid-auto-columns: 140px; }
.pm-ctl { flex: 1; min-width: 180px; }
@media (min-width: 680px) { .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } .thumb-big { aspect-ratio: 1 / 1; } }

/* cart */
.freebar { background: var(--brand-softer); border: 1px solid var(--brand-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.freebar.is-done { background: var(--ok-soft); border-color: transparent; }
.fb-text { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 8px; }
.fb-text .ic { color: var(--brand-strong); }
.fb-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fb-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width .3s; }
.cart-from { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.cart-from .ic { width: 16px; height: 16px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .thumb { width: 60px; height: 60px; }
.cart-line.is-out .thumb { filter: grayscale(1); opacity: .5; }
.cl-name { font-weight: 700; line-height: 1.25; font-size: .94rem; }
.cl-pack { display: inline-block; font-size: .74rem; font-weight: 700; background: var(--brand2-soft); color: var(--brand2-strong); padding: 1px 6px; border-radius: 6px; }
.cl-sub { font-size: .82rem; }
.cl-offer { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: .78rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 6px; }
.cl-offer .ic { width: 14px; height: 14px; }
.cl-ctl { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; }
.cl-ctl .btn-ghost { color: var(--muted); border-color: transparent; padding: 6px 8px; }
@media (max-width: 480px) { .cl-ctl .btn-ghost span { display: none; } }
.cl-total { font-weight: 800; white-space: nowrap; text-align: right; display: flex; flex-direction: column; }
.cl-total s { font-size: .78rem; font-weight: 500; color: var(--muted); }
.sum { margin: 12px 0 0; padding: 0; }
.sum > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 700; white-space: nowrap; }
.sum .sum-save dt, .sum .sum-save dd { color: var(--ok); font-weight: 700; }
.sum .sum-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-size: 1.15rem; }
.sum .sum-total dt { color: var(--text); font-weight: 800; }
.sum .sum-total dd { font-weight: 900; }

/* ───────────── checkout ───────────── */
.co-steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 4px 0 14px; counter-reset: s; }
.co-steps li { flex: 1; display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); position: relative; }
.co-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); margin: 0 6px; border-radius: 2px; }
.co-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); font-size: .8rem; flex: none; }
.co-steps li.is-on { color: var(--text); }
.co-steps li.is-on span { border-color: var(--brand); color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-soft); }
.co-steps li.is-done span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.co-steps li.is-done:not(:last-child)::after { background: var(--brand); }
.co-grid { display: grid; gap: 14px; align-items: start; }
.co-card { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.co-h { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin: 0 0 14px; }
.co-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-size: .9rem; flex: none; }
.co-pick, .co-asap { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: .92rem; }
.co-pick .ic, .co-asap .ic { color: var(--brand-strong); margin-top: 2px; }
.co-asap { margin: 4px 0 0; }
.slot-times { margin-top: 8px; }
.co-saved { margin: 0 0 10px; }
.ac-co-signin { display: flex; gap: 8px; align-items: center; margin: 4px 0 0; }
.ac-co-signin .ic { width: 18px; height: 18px; }
.ac-co-signin .linkish { color: var(--brand-strong); font-weight: 700; text-decoration: underline; }
.co-sum { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.co-items { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.co-items li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.co-items .thumb { width: 42px; height: 42px; border-radius: 8px; }
.ci-n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ci-n small { color: var(--muted); font-size: .78rem; }
.co-items b { white-space: nowrap; }
.ci-more { justify-content: center; }
.ci-more .linkish { color: var(--brand-strong); font-weight: 700; font-size: .88rem; }
.co-place { position: fixed; left: 0; right: 0; bottom: 0; z-index: 27; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.co-place .btn { flex: 1; }
.co-place-t { display: flex; flex-direction: column; line-height: 1.15; }
.co-place-t span { font-size: .78rem; color: var(--muted); }
.co-place-t b { font-size: 1.15rem; white-space: nowrap; }
.co-safe { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.co-safe .ic { width: 16px; height: 16px; margin-top: 2px; }
body[data-view="checkout"] .tabs, body[data-view="checkout"] .cartbar { display: none !important; }
body[data-view="checkout"] { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) {
  .co-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; }
  .co-side { position: sticky; top: 140px; }
  .co-place { position: static; padding: 14px 0 0; margin-top: 10px; box-shadow: none; border-top: 1px dashed var(--line); background: transparent; }
  body[data-view="checkout"] { padding-bottom: 0; }
  .co-place-t { display: none; }
  .co-steps { max-width: 560px; }
}

/* forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field label, .lbl { font-weight: 700; font-size: .9rem; }
.field small { font-size: .78rem; }
.field input, .field textarea, .track-form input {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 10px 12px; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
@media (min-width: 640px) { .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.opt-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .opt-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.opt-tile { position: relative; display: block; cursor: pointer; }
.opt-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ot-box { position: relative; display: flex; align-items: center; gap: 10px; min-height: 68px; height: 100%; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); }
.ot-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.ot-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.ot-text strong { font-size: .94rem; }
.ot-text span { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.ot-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; align-self: flex-start; }
.opt-tile input:checked + .ot-box { border-color: var(--brand); background: var(--brand-softer); }
.opt-tile input:checked + .ot-box .ot-ic { background: var(--brand); color: var(--brand-ink); }
.opt-tile input:checked + .ot-box .ot-radio { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 45%, transparent 50%); }
.opt-tile input:focus-visible + .ot-box { outline: 3px solid var(--brand); outline-offset: 2px; }
.opt-tile.is-disabled { cursor: not-allowed; }
.opt-tile.is-disabled .ot-box { opacity: .5; border-style: dashed; }
@media (max-width: 380px) { .opt-grid:not(.opt-grid-3) { grid-template-columns: 1fr; } }

/* ───────────── order placed ───────────── */
.placed-page { display: grid; gap: 14px; }
.placed-card { background: var(--surface); border-radius: 20px; padding: 22px 16px 16px; box-shadow: var(--shadow); text-align: center; }
.placed-card .foot-col { margin-top: 14px; }
.placed-ic { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px var(--ok-soft); animation: pop .4s ease-out; }
.placed-ic .ic { width: 38px; height: 38px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } }
.placed-hi { font-size: 1.45rem; font-weight: 900; margin: 6px 0 0; letter-spacing: -.01em; }
.placed-sub { margin: 2px 0 12px; color: var(--muted); }
.placed-card .muted.small { margin: 0; }
.order-no { font-size: 2rem; font-weight: 900; letter-spacing: .01em; color: var(--brand-strong); font-variant-numeric: tabular-nums; margin: 0; }
.order-no-sm { font-size: 1.15rem; }
.placed-facts { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; text-align: left; }
.placed-facts span { display: flex; gap: 8px; align-items: flex-start; background: var(--surface-2); padding: 9px 12px; border-radius: 10px; font-size: .9rem; }
.placed-facts .ic { width: 18px; height: 18px; color: var(--brand-strong); margin-top: 1px; }
.placed-card .info { text-align: left; }
.placed-sum { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); align-self: start; }
.saved-note { display: flex; gap: 8px; align-items: center; background: var(--ok-soft); color: var(--ok); padding: 10px 12px; border-radius: 10px; margin: 12px 0 0; }
.saved-note .ic { width: 18px; height: 18px; }
@media (min-width: 900px) { .placed-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1000px; } }
.mini-list { list-style: none; padding: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.mini-list li span:last-child { white-space: nowrap; font-weight: 600; }

/* ───────────── track ───────────── */
.track-form { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-top: 6px; }
.recent { margin-top: 16px; }
.track-card { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-top: 16px; }
.tc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tc-facts span { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; background: var(--surface-2); padding: 5px 10px; border-radius: 999px; }
.tc-facts .ic { width: 16px; height: 16px; color: var(--brand-strong); }
.tc-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 12px; }
.tc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); border-radius: 99px; transition: width .5s; }
.rider { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-softer); border: 1px solid var(--brand-line); border-radius: 14px; padding: 12px; margin: 6px 0 12px; }
.rider-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; animation: ride 1.6s ease-in-out infinite; }
@keyframes ride { 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .rider-ic { animation: none; } }
.rider-t { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.timeline { list-style: none; margin: 10px 0 14px; padding: 0; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.tl-done::before { background: var(--brand); }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); border: 2px solid var(--line); z-index: 1; }
.tl-dot .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.tl-done .tl-dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tl-done .tl-dot .ic { stroke-width: 3; }
.tl-current .tl-dot { background: var(--surface); border-color: var(--brand); color: var(--brand-strong); box-shadow: 0 0 0 5px var(--brand-soft); }
.tl-todo .tl-text strong { color: var(--muted); font-weight: 500; }
.tl-cancel .tl-dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.tl-cancel strong { color: var(--bad); }
.tl-text { display: flex; flex-direction: column; padding-top: 5px; }
.tl-text .muted { font-size: .82rem; }
.tc-items { margin: 8px 0 14px; }
.tc-items summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* my orders */
.order-list { display: grid; gap: 10px; margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.order-tile { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); min-height: 44px; color: var(--text); }
.order-tile:hover { border-color: var(--brand); }
.ot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .9rem; }
.ot-total { color: var(--text); }
.clear-orders { margin-top: 16px; }

/* ───────────── footer ───────────── */
.ft { background: var(--ft-bg); color: var(--ft-ink); margin-top: 28px; font-size: .9rem; }
.ft:empty { display: none; }
.ft-in { max-width: 1240px; margin: 0 auto; padding: 24px 16px 8px; display: grid; gap: 20px; grid-template-columns: 1fr; }
.ft h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ft-muted); margin: 0 0 10px; }
.ft p { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; }
.ft p .ic { width: 17px; height: 17px; margin-top: 2px; color: var(--ft-muted); }
.ft a { color: var(--ft-ink); }
.ft-brand strong { font-size: 1.2rem; color: #fff; }
.ft-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 6px 10px; }
.ft-logo img { height: 44px; width: auto; display: block; }
.ft-tag { font-style: italic; color: var(--ft-muted); margin-top: 8px !important; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.paybadge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--ft-line); background: rgba(255, 255, 255, .04); font-size: .82rem; font-weight: 600; }
.paybadge .ic { width: 17px; height: 17px; }
.ft-small { font-size: .8rem; color: var(--ft-muted); }
.ft-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ft-links a, .ft-links .linkish { color: var(--ft-ink); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.ft-links a:hover, .ft-links .linkish:hover { text-decoration: underline; }
.ft-bottom { max-width: 1240px; margin: 0 auto; padding: 14px 16px 18px; border-top: 1px solid var(--ft-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .78rem; color: var(--ft-muted); }
@media (min-width: 720px) { .ft-in { grid-template-columns: 1.3fr 1fr 1fr .8fr; padding: 32px 24px 12px; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 84px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 60;
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; max-width: min(92vw, 460px); width: max-content;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; font-size: .93rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }
@media (min-width: 960px) { .toast { bottom: 24px; } }

/* wider screens */
@media (min-width: 720px) {
  .page { padding: 18px 24px 24px; }
  .h1 { font-size: 1.65rem; }
  .page-home { gap: 16px; }
  .hsec { padding: 16px; }
  .hsec-deal { padding-top: 0; }
  .hsec-deal .row-head { margin: 0 -16px 14px; padding: 10px 16px; }
}

/* ───────────── My account, sign-in, offers, pay now (js/account.js) ───────────── */
:root { --gloss: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 55%); }
@media (prefers-color-scheme: dark) { :root { --gloss: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 55%); } }
.ac-sec { margin: 22px 0 10px; }
.ac-hero { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 18px; margin: 10px 0 6px; border-radius: 18px;
  background: var(--gloss), linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ac-hero .btn { grid-column: 1 / -1; }
.ac-hero-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); }
.ac-hero-ic .ic { width: 28px; height: 28px; }
.ac-hero-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ac-hero-text span { color: var(--muted); font-size: .92rem; }
@media (min-width: 640px) { .ac-hero { grid-template-columns: auto 1fr auto; } .ac-hero .btn { grid-column: auto; } }
.ac-card { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 18px; color: var(--brand-head-ink); margin-bottom: 14px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 90% 0, color-mix(in srgb, var(--brand2) 35%, transparent), transparent 45%), linear-gradient(135deg, var(--brand-head), var(--brand-deep)); box-shadow: var(--shadow-hover); }
.ac-card .muted { color: inherit; opacity: .82; }
.ac-card .icon-btn { color: inherit; background: rgba(255,255,255,.16); }
.ac-avatar { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.15rem; background: var(--brand2); color: var(--brand2-ink); border: 3px solid rgba(255,255,255,.6); }
.ac-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-who strong { font-size: 1.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@media (min-width: 720px) { .ac-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ac-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px; min-height: 104px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); color: var(--text); overflow: hidden; }
.ac-tile:hover { border-color: var(--tone, var(--brand)); }
.ac-tile strong { font-size: 1.45rem; line-height: 1.1; margin-top: 6px; }
.ac-tile > span:last-child { color: var(--muted); font-size: .82rem; }
.ac-tile-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tone-soft, var(--brand-soft)); color: var(--tone, var(--brand)); }
.ac-tile-ic .ic { width: 20px; height: 20px; }
.tone-gold { --tone: var(--gold); --tone-soft: var(--gold-soft); }
.tone-blue { --tone: var(--info); --tone-soft: var(--info-soft); }
.tone-green { --tone: var(--brand-strong); --tone-soft: var(--brand-soft); }
.tone-pink { --tone: var(--pink); --tone-soft: var(--pink-soft); }
.tone-grey { --tone: var(--muted); --tone-soft: var(--surface-2); }
.ac-orders { display: flex; flex-direction: column; gap: 12px; }
.ac-order { display: flex; flex-direction: column; gap: 8px; }
.ac-order .order-tile { width: 100%; }
.ac-order-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ac-order-acts .btn { flex: 1 1 140px; }
.ac-signout { margin-top: 22px; }
.signin .si-hero { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); margin-bottom: 14px; }
.signin .si-hero .ic { width: 26px; height: 26px; flex: none; color: var(--brand-strong); }
.signin .si-hero p { margin: 0; }
.si-more { margin-top: 10px; }
.otp-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.otp-screen { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.otp-show { font: 800 1.6rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .25em; background: var(--surface); color: var(--info); border: 1.5px dashed var(--info); border-radius: 12px; padding: 8px 12px; min-height: 44px; }
.bd-btn { width: 100%; justify-content: flex-start; }
.bd-pick { margin-top: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.bd-months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bd-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.bd-chip { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; padding: 0; }
.ad-list { display: flex; flex-direction: column; gap: 8px; }
.ad-item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.ad-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.ad-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-text span { font-size: .88rem; overflow-wrap: anywhere; }
.pts-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px; border-radius: 18px; color: #3d2a00;
  background: var(--gloss), linear-gradient(135deg, #ffe08a, #f2b632); box-shadow: 0 10px 30px -14px #b7791f; }
.pts-hero .ic { width: 34px; height: 34px; }
.pts-hero strong { font-size: 2.4rem; line-height: 1.1; }
.pts-how { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pts-how li { display: flex; gap: 10px; align-items: flex-start; }
.pts-how .ic { width: 22px; height: 22px; flex: none; color: var(--brand-strong); }
.of-list { list-style: none; padding: 0; margin: 8px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.of-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.of-item .thumb { width: 52px; height: 52px; flex: none; }
.of-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.of-now { color: var(--deal); font-size: 1.05rem; }
.of-tag { flex: none; font-weight: 800; font-size: .85rem; padding: 8px 10px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--deal), #be123c); }
.pay-card { padding: 18px; border-radius: 18px; color: #fff; background: var(--gloss), linear-gradient(135deg, #0b3d91, #1a73e8); box-shadow: 0 12px 30px -14px #0b3d91; }
.pay-card .muted { color: rgba(255,255,255,.8); }
.pay-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; opacity: .95; }
.pay-brand .ic { width: 22px; height: 22px; }
.pay-amt { font-size: 2.1rem; font-weight: 800; margin: 14px 0 2px; }
.placed { text-align: center; padding: 6px 0 4px; }
.placed p { margin: 4px 0; }

/* ───────────── online receipt page (receipt.html) ───────────── */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: var(--brand-head); color: var(--brand-head-ink); min-height: 56px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 800; font-size: 1.05rem; min-height: 44px; min-width: 0; }
.brand img { border-radius: 9px; flex: none; background: #fff; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-body { padding-bottom: 24px; }
.rc-main { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rc-paper { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; box-shadow: var(--shadow-lg);
  font-variant-numeric: tabular-nums; position: relative; }
.rc-paper::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--surface) 5.5px) 0 0 / 12px 8px repeat-x; }
.rc-head { text-align: center; display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.rc-shop { font-weight: 800; font-size: 1.25rem; }
.rc-refund { text-align: center; font-weight: 800; color: var(--bad); margin: 10px 0 0; letter-spacing: .1em; }
.rc-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.rc-meta div { display: flex; flex-direction: column; font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.rc-lines { list-style: none; margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.rc-l1 { display: flex; justify-content: space-between; gap: 10px; }
.rc-l1 span { min-width: 0; overflow-wrap: anywhere; }
.rc-l2 { font-size: .85rem; }
.rc-save { color: var(--ok); }
.rc-sum { padding: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.rc-row { display: flex; justify-content: space-between; gap: 10px; }
.rc-total { font-weight: 800; font-size: 1.25rem; padding: 4px 0 6px; }
.rc-points { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); text-align: center; }
.rc-foot { text-align: center; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 4px; }
.rc-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 420px; margin-top: 8px; }
.rc-acts .btn { flex: 1 1 160px; }
.rc-body .tabs, .rc-body .ft { display: none; }
@media print { .top, .rc-acts { display: none !important; } body { background: #fff; color: #000; } .rc-paper { box-shadow: none; border: 0; } }

/* ---------- the delivery code (the customer gives it to the rider; js/shop.js codeBox) ---------- */
.dcode { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 14px 0 4px; padding: 14px 12px; border-radius: 16px; text-align: center;
  background: var(--brand2-soft); border: 2px dashed var(--brand2-strong); color: var(--text); }
.dcode-t { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .95rem; }
.dcode-t .ic { width: 18px; height: 18px; color: var(--brand2-strong); }
.dcode-n { display: inline-flex; gap: 8px; }
.dcode-n b { width: 46px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 2rem; font-weight: 900; background: var(--surface); color: var(--brand-strong);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), inset 0 0 0 1px var(--brand-line); font-variant-numeric: tabular-nums; }
.dcode small { color: var(--muted); max-width: 32ch; }
.dcode-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; padding: 3px 9px; border-radius: 999px; background: var(--brand2-soft); color: var(--text); }
.dcode-pill .ic { width: 14px; height: 14px; } .dcode-pill b { letter-spacing: .12em; }
.rider-loc { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; margin-top: 2px; }
.rider-loc .ic { width: 15px; height: 15px; }
