/* STORIXX storefront - stylesheet (self-contained; does not use shared/tailwind.css).
   Theme: one brand colour per store via --brand. Mobile first; breakpoints at 640px and 960px. */
:root {
  --brand: #d94f1e; --brand-ink: #ffffff; --brand-soft: #fdeee8;
  --bg: #f6f6f4; --card: #ffffff; --text: #1d1d1b; --muted: #52524d; --line: #e4e3df;
  --ok: #1f7a46; --ok-soft: #e4f4ea; --warn: #a15c00; --warn-soft: #fff1d6; --bad: #b3261e; --bad-soft: #fde7e5;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --desc: #d4d3cc; --bg: #131312; --card: #1d1d1b; --text: #f1f0ec; --muted: #cbcac3; --line: #34332f;
    --brand-soft: #3a211a; --ok-soft: #12301f; --warn-soft: #3a2a0a; --bad-soft: #3a1512; --shadow: 0 1px 2px rgba(0,0,0,.5); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.45; font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, white); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { position: relative; }
.toprow { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; min-height: 60px; }
.brandlink { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; flex: 1 1 auto; height: 58px; }
.hinfo { display: none; }
.hstatus { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; white-space: nowrap; flex: none; }
.sdot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #9ca3af; }
.open .sdot, .sdot.open { background: #22a05a; }
.closed .sdot { background: #d93a2f; }
.paused .sdot { background: #f0a020; }
.hmore { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.hmore svg { width: 20px; height: 20px; stroke-width: 3; }
.hchip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 650; }
.hchip .sdot { margin-top: 0; }
.cbtn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.cbtn svg { width: 17px; height: 17px; flex: none; }
.cbtn:hover { border-color: var(--brand); color: var(--brand); }
.cbtn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.cbtn.wa:hover { background: #178a45; border-color: #178a45; color: #fff; }
.toprow .cartbtn { flex: none; }
.moremenu { position: absolute; right: 12px; top: calc(100% + 6px); width: min(320px, calc(100vw - 24px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.22); padding: 14px; display: grid; gap: 10px; z-index: 40; }
.moremenu .mh, .moremenu .ma { margin: 0; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.moremenu .mb { display: grid; gap: 8px; }
.moremenu .cbtn { justify-content: center; min-height: 42px; }
@media (min-width: 900px) {
  .hinfo { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
  .brandlink { flex: 0 1 auto; }
  .hstatus, .hmore, .moremenu { display: none; }
}
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.cartbtn.bump, .cartbar.bump { animation: bump .4s ease; }
.cartbtn.bump .count { background: #1fa855; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brandname { font-weight: 700; font-size: 18px; line-height: 1.15; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow { flex: 1; }
.cartbtn { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 999px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cartbtn .count { background: var(--brand); color: var(--brand-ink); min-width: 20px; height: 20px; border-radius: 10px; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.cartbtn svg { width: 20px; height: 20px; flex: none; }
.cartbtn .total { display: none; white-space: nowrap; }
@media (min-width: 640px) { .cartbtn .total { display: inline; } }

/* ---------- store header block ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font-size: 13px; text-decoration: none; }
.banner { padding: 11px 16px; text-align: center; font-size: 14px; background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--line); }

/* ---------- category tabs and toolbar ---------- */
.tabs { position: sticky; top: var(--top-h, 60px); z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.tablist { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tablist::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; border: 1px solid transparent; background: transparent; border-radius: 999px; padding: 7px 14px; font-weight: 600; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.search { position: relative; flex: none; }
.search input { height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px 0 34px; width: 150px; background: var(--bg); }
.search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
@media (min-width: 640px) { .search input { width: 240px; } }

/* ---------- food layout ---------- */
.page { padding: 18px 0 110px; }
.section-title { font-size: 19px; margin: 22px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; text-align: left; width: 100%; padding: 0; position: relative; }
.card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card.food { min-height: 138px; }
.card .body { padding: 12px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card .name { font-weight: 650; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .desc { color: #4a4a45; font-size: 14px; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* price on the left, button on the right, always on the bottom edge of the card whatever the text above is */
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 8px; padding-top: 8px; min-height: 42px; }
.card .row .price { white-space: nowrap; }
.price { font-weight: 700; }
.was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 13px; margin-left: 6px; }
.thumb { width: 140px; flex: none; background: var(--brand-soft); display: grid; place-items: center; font-weight: 800; font-size: 28px; color: var(--brand); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.addbtn { margin-left: auto; border: 1px solid var(--brand); color: var(--brand); background: transparent; border-radius: 999px; height: 34px; padding: 0 14px; font-weight: 650; }
.addbtn:hover { background: var(--brand); color: var(--brand-ink); }
.addbtn[disabled] { opacity: .45; cursor: not-allowed; background: transparent; color: var(--muted); border-color: var(--line); }
.card.sold .thumb, .card.sold .name, .card.sold .desc { opacity: .5; }
.badge { display: inline-block; border-radius: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; background: var(--bad-soft); color: var(--bad); letter-spacing: .02em; }
.badge.deal { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; }

/* ---------- catalogue layout ---------- */
.pricefields { display: flex; gap: 8px; align-items: center; }
.pricefields input { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--bg); }
.card.shopcard { flex-direction: column; }
.card.shopcard .thumb { width: 100%; aspect-ratio: 4 / 3; font-size: 34px; }
.specs-mini { color: #4a4a45; font-size: 13.5px; line-height: 1.45; margin: 2px 0 0; padding: 0; list-style: none; min-height: 4.35em; }
.pill { position: absolute; top: 8px; left: 8px; z-index: 1; }

/* ---------- sheets (product detail) and drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: up .18s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) { .overlay { align-items: center; } .sheet { width: 640px; border-radius: 20px; max-height: 90vh; } .sheet.wide { width: 920px; } }
.sheet header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sheet header h2 { margin: 0; font-size: 17px; flex: 1; }
.iconbtn { border: 1px solid var(--line); background: var(--card); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.sheet .scroll { overflow-y: auto; padding: 14px; flex: 1; }
.sheet footer { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; gap: 10px; align-items: center; background: var(--card); }
.detail { display: grid; gap: 14px; }
@media (min-width: 720px) { .sheet.wide .detail { grid-template-columns: 1fr 1fr; } .sheet.wide .detail > div:first-child { position: sticky; top: 0; align-self: start; } }
/* A product or deal dialog must fit the screen: the picture is capped by the screen height (never pushes the details off), the details scroll beside it
   on wide screens, and the header and the action button always stay in view. dvh follows a phone's moving address bar. */
.sheet { max-height: 92vh; max-height: 92dvh; }
.sheet.split .hero-img { aspect-ratio: 4 / 3; max-height: 30vh; max-height: 30dvh; width: 100%; }
@media (min-width: 720px) {
  .overlay { padding: 12px; }
  .sheet { max-height: 90vh; max-height: calc(100dvh - 24px); }
  .sheet.split { width: 860px; max-width: 100%; }
  .sheet.split.wide { width: 920px; }
  .sheet.split .detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; }
  .sheet.split .detail > div:first-child { position: sticky; top: 0; align-self: start; }
  .sheet.split .hero-img { max-height: min(60vh, 460px); max-height: min(60dvh, 460px); }
}
@media (max-height: 520px) { .sheet.split .hero-img { max-height: 40vh; } .sheet header { padding: 8px 12px; } .sheet footer { padding: 8px 12px; } }
.hero-img { border-radius: 12px; background: var(--brand-soft); aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 54px; font-weight: 800; color: var(--brand); overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.group { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.group legend { font-weight: 700; padding: 0; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; width: 100%; }
.req { font-size: 11px; font-weight: 700; background: var(--brand-soft); color: var(--brand); padding: 2px 7px; border-radius: 6px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; cursor: pointer; background: var(--card); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.opt .grow { min-width: 0; }
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt.off { opacity: .5; cursor: not-allowed; }
.hint { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.qty button { border: 0; background: transparent; width: 36px; height: 36px; font-size: 18px; }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.primary { background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 12px; height: 46px; padding: 0 18px; font-weight: 700; flex: 1; }
.primary[disabled] { opacity: .45; cursor: not-allowed; }
.secondary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; height: 46px; padding: 0 16px; font-weight: 650; }
.speclist { width: 100%; border-collapse: collapse; font-size: 14px; }
.speclist th, .speclist td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.speclist th { color: var(--muted); font-weight: 500; width: 38%; padding-right: 10px; }
.notice { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }

.drawer-wrap { justify-content: flex-end; align-items: stretch; }
.drawer { background: var(--card); width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer header { display: flex; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 18px; flex: 1; }
.lines { flex: 1; overflow-y: auto; padding: 4px 14px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .ln { font-weight: 650; }
.line .lopts { color: var(--muted); font-size: 13px; grid-column: 1; }
.line .lp { font-weight: 700; text-align: right; }
.line .lctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.linkbtn { border: 0; background: none; color: var(--bad); padding: 0; font-size: 13px; text-decoration: underline; }
.totals { padding: 14px; border-top: 1px solid var(--line); background: var(--card); }
.totals .r { display: flex; justify-content: space-between; margin: 3px 0; }
.totals .r.big { font-size: 17px; font-weight: 800; margin-top: 8px; }

/* floating cart bar (mobile) */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 14px; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (min-width: 960px) { .cartbar { display: none; } }

/* ---------- checkout, confirmation, tracking ---------- */
.two { display: grid; gap: 18px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 380px; align-items: start; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.panel h2 { margin: 0 0 10px; font-size: 17px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.field input[type="text"], .field input[type="tel"], .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg); min-height: 44px; }
.field textarea { min-height: 80px; resize: vertical; }
.field .err { color: var(--bad); font-size: 13px; margin-top: 4px; }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.honey { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pay { margin-bottom: 8px; }
.payinfo { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px 28px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sumline { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; }
.sumline small { display: block; color: var(--muted); }
.stepper { list-style: none; margin: 8px 0 0; padding: 0; }
.stepper li { position: relative; padding: 0 0 20px 34px; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.stepper li:last-child::before { display: none; }
.stepper li .dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.stepper li.done { color: var(--text); }
.stepper li.done .dot { background: var(--brand); border-color: var(--brand); }
.stepper li.now { color: var(--text); font-weight: 700; }
.stepper li.now .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.status { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.big-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 34px; margin: 6px auto 10px; }
.center { text-align: center; }
.notice-page { max-width: 460px; margin: 12vh auto; text-align: center; padding: 0 20px; }
.notice-page .ico { font-size: 44px; }

footer.site { border-top: 1px solid var(--line); background: var(--card); padding: 22px 0 90px; font-size: 14px; }
footer.site .cols { display: grid; gap: 16px; }
@media (min-width: 720px) { footer.site .cols { grid-template-columns: repeat(3, 1fr); } }
footer.site h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
footer.site p { margin: 3px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.powered { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }

/* ---------- prototype tools (not part of the storefront) ---------- */
.proto { position: fixed; right: 10px; top: 70px; z-index: 90; background: #111; color: #fff; border-radius: 12px; font-size: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.35); max-width: 230px; }
.proto summary { padding: 8px 12px; cursor: pointer; font-weight: 700; list-style: none; }
.proto .inner { padding: 4px 12px 12px; display: grid; gap: 6px; }
.proto label { display: grid; gap: 2px; }
.proto select { border-radius: 6px; padding: 4px; }

/* ---------- banner / slider (directly below the header) ---------- */
.bn { max-width: 1600px; margin: 0 auto; padding: 0; }
/* Banner height follows the banner's shape and is kept inside the allowed band:
   desktop 5:1 (height = width / 5) between 220 and 260 px, tablet 4:1 between 180 and 220 px, phone 2:1 between 150 and 190 px.
   The picture fills the frame; anything extra is trimmed evenly. */
.bn-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 5 / 1; min-height: 220px; max-height: 260px; background: var(--brand-soft); }
@media (max-width: 959px) { .bn-frame { aspect-ratio: 4 / 1; min-height: 180px; max-height: 220px; } }
.bn-track { display: flex; height: 100%; transition: transform .45s ease; }
.bn-slide { flex: 0 0 100%; height: 100%; border: 0; padding: 0; margin: 0; background: none; display: block; text-align: left; }
button.bn-slide { cursor: pointer; }
.bn-slide picture, .bn-slide img { display: block; width: 100%; height: 100%; }
.bn-slide img { object-fit: cover; }
.bn-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #111; font-size: 24px; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.bn-arrow.prev { left: 10px; } .bn-arrow.next { right: 10px; }
.bn:hover .bn-arrow, .bn:focus-within .bn-arrow { opacity: 1; }
.bn-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 7px; }
.bn-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.bn-dot[aria-current="true"] { background: #fff; width: 22px; border-radius: 6px; }
.bn-pause { position: absolute; right: 10px; bottom: 6px; border: 0; background: rgba(0,0,0,.45); color: #fff; border-radius: 999px; min-width: 28px; height: 24px; font-size: 10px; padding: 0 8px; }
@media (max-width: 639px) {
  .bn-frame { aspect-ratio: 2 / 1; min-height: 150px; max-height: 190px; }
  .bn-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bn-track { transition: none; } }

/* ---------- search ---------- */
.matchhint { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: 1px; overflow-wrap: anywhere; }
.resultnote { margin: 0 0 12px; }
main > .banner + .tabs, main > .bn + .tabs { margin-top: 0; }
.bn-pause { top: 8px; bottom: auto; }

.card.shopcard .thumb img { background: #fff; }
.thumb { overflow: hidden; }

.no-anim { animation: none !important; }

/* Price and button: on one line when the card is wide enough, otherwise price above and a full-width button below, the same for every card
   in a row, so the pair always sits on the bottom edge and neighbouring cards line up. */
.card .body { container-type: inline-size; }
.card .row { flex-wrap: nowrap; }
.card .row .addbtn, .card .row .badge { flex: none; }
@container (max-width: 229px) {
  .card.shopcard .row { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 8px; }
  .card.shopcard .row .addbtn, .card.shopcard .row .badge { width: 100%; margin-left: 0; text-align: center; }
}
@container (max-width: 189px) {
  .card.food .row { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 8px; }
  .card.food .row .addbtn, .card.food .row .badge { width: 100%; margin-left: 0; text-align: center; }
}
@media (max-width: 639px) { .thumb { width: 120px; } .card.shopcard .thumb { width: 100%; } }
.card .row .badge { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; }
.thumb { width: 128px; }
@media (max-width: 639px) { .thumb { width: 120px; } .card.shopcard .thumb { width: 100%; } }
.card.shopcard .thumb { width: 100%; }
/* the search box gets a full row of its own on phones, so it never shrinks to an icon */

/* ---------- sticky section tabs, deals, steppers, deal slides, delivery ---------- */
.tablist { position: relative; }
.section-title, #products { scroll-margin-top: calc(var(--top-h, 60px) + var(--tabs-h, 56px) + 10px); }
.tab { font-size: 15px; }
.tab[aria-selected="true"] { box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.card .savehint { color: var(--ok); font-weight: 700; font-size: 13px; }
.pill-thumb { position: absolute; top: 8px; right: 8px; }
.incl { margin: 0; padding-left: 20px; } .incl li { margin: 4px 0; }
/* The Add button turns into a - 1 + stepper once the item is in the cart. */
.mini { display: inline-flex; align-items: center; border: 1.5px solid var(--brand); border-radius: 999px; overflow: hidden; background: var(--card); height: 36px; margin-left: auto; flex: none; }
.mini button { border: 0; background: transparent; color: var(--brand); width: 36px; height: 100%; font-size: 20px; font-weight: 700; line-height: 1; }
.mini button:hover:not([disabled]) { background: var(--brand); color: var(--brand-ink); }
.mini button[disabled] { opacity: .4; cursor: not-allowed; }
.mini span { min-width: 26px; text-align: center; font-weight: 800; font-size: 15px; }
@container (max-width: 229px) { .card.shopcard .row .mini { width: 100%; margin-left: 0; justify-content: space-between; } .card.shopcard .row .mini button { flex: 1; } }
@container (max-width: 189px) { .card.food .row .mini { width: 100%; margin-left: 0; justify-content: space-between; } .card.food .row .mini button { flex: 1; } }
/* A banner slide for a deal: the price, the saving and an Order now button over the picture's lower left (keep that corner of the picture quiet). */
.bn-slide.has-deal { position: relative; cursor: pointer; }
.bn-deal { position: absolute; left: 16px; bottom: 14px; max-width: calc(100% - 32px); }
.bn-cta { border: 0; background: #fff; color: #111; border-radius: 999px; min-height: 38px; padding: 0 20px; font-weight: 800; font-size: 15px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.bn-cta:hover { background: var(--brand); color: var(--brand-ink); }
@media (max-width: 639px) { .bn-deal { left: 10px; bottom: 26px; } .bn-cta { min-height: 32px; padding: 0 14px; font-size: 13.5px; } }
.opt strong { font-weight: 700; }

/* ---------- payment method cards and the selected-method summary ---------- */
.paycards { display: grid; gap: 8px; margin-bottom: 12px; }
.paycard { margin: 0; align-items: flex-start; }
.paycard input { margin-top: 3px; }
.paycard .hint { margin-top: 2px; }
.paysel { border: 1px solid var(--brand); background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; }
.paysel p { margin: 6px 0; }
.paysel-title { font-weight: 800; }
.paysel .payinfo { margin: 8px 0; background: var(--card); }
.acct { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.acct-no { font-size: 20px; font-weight: 800; letter-spacing: .02em; overflow-wrap: anywhere; }
.copybtn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; min-height: 34px; padding: 0 14px; font-weight: 700; }
.paysel a.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #15803d; color: #fff; font-weight: 700; text-decoration: none; border: 0; }

/* ---------- checkout: pickup / delivery side by side, payment methods as a responsive grid of cards ---------- */
.fulfil-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.fulfil-row.one { grid-template-columns: 1fr; }
.fulfil-row .opt { margin: 0; align-items: flex-start; height: 100%; }
.fulfil-row .opt .hint { font-size: 12.5px; margin-top: 2px; }
@media (max-width: 420px) { .fulfil-row .opt { flex-direction: column; gap: 6px; padding: 10px; } }
.paycards { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.paycard { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
.paycard .grow { width: 100%; }
.paycard .hint { font-size: 12.5px; line-height: 1.35; }
.acct-row { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 6px 0; }
.acct-k { flex: 0 0 120px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 420px) { .acct-k { flex-basis: 100%; } }

/* ---------- the bar under the header: Home, Categories, Deals, search, Filter ---------- */
.tabs { position: static; }
@media (min-width: 900px) { .tabs { position: sticky; } }
.tabs .wrap.navrow { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.navlinks { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1 1 100%; }
.navtools { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; min-width: 0; }
.navtools .search { flex: 1 1 auto; min-width: 0; }
.navtools .search input { width: 100%; height: 40px; }
@media (min-width: 900px) {
  .tabs .wrap.navrow { flex-wrap: nowrap; }
  .navlinks { flex: 0 0 auto; }
  .navtools { flex: 1 1 auto; justify-content: flex-end; }
  .navtools .search { flex: 0 1 380px; }
}
.tab { display: inline-flex; align-items: center; gap: 6px; }
.tab svg { width: 14px; height: 14px; }
.dd { position: relative; }
.pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 45; min-width: 220px; max-width: min(320px, calc(100vw - 24px)); max-height: min(70vh, 420px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.22); padding: 8px; }
.pop.pop-right { left: auto; right: 0; padding: 14px; width: 280px; }
@media (max-width: 899px) { .navtools .dd .pop.pop-right { right: 0; } }
.pop h3 { margin: 0 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pop h3:not(:first-child) { margin-top: 14px; }
.popitem { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; font-weight: 550; }
.popitem:hover, .popitem[aria-current="true"] { background: var(--brand-soft); color: var(--brand); }
.frow { display: flex; align-items: center; gap: 9px; padding: 6px 0; cursor: pointer; }
.frow input { accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.fclear { width: 100%; height: 40px; margin-top: 14px; }
.filterbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-weight: 650; flex: none; }
.filterbtn svg { width: 17px; height: 17px; }
.filterbtn:hover { border-color: var(--brand); color: var(--brand); }
.fbadge { background: var(--brand); color: var(--brand-ink); min-width: 18px; height: 18px; border-radius: 9px; font-size: 11.5px; display: inline-grid; place-items: center; padding: 0 5px; }

/* ---------- the product grid: four across on a wide screen, then three, then two (a phone still shows two) ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 380px) { .cards { gap: 10px; } .card .body { padding: 10px; } }
.card.food { flex-direction: column; min-height: 0; }
.card.food .thumb, .card.food.dealcard .thumb { width: 100%; aspect-ratio: 4 / 3; font-size: 34px; }
.wrap { max-width: 1240px; }
.section-title:first-child { margin-top: 4px; }

/* ---------- footer ---------- */
footer.site { padding-bottom: 90px; }
footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 900px) { footer.site .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
footer.site h3:first-child { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--text); }
.flink { border: 0; background: none; padding: 0; color: var(--text); text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; font-size: 14px; }
.flink:hover { color: var(--brand); text-decoration-color: var(--brand); }
.footbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.footbar a { font-weight: 700; }
.pagetext { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.pagetext .mb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* ---------- Most sold / Trending now rows, and their tags ---------- */
.featured .section-title { margin-top: 4px; }
.featured { margin-bottom: 8px; }
.cards.featured > :nth-child(n+5) { display: none; }
@media (max-width: 1039px) { .cards.featured > :nth-child(n+4) { display: none; } }
@media (max-width: 719px) { .cards.featured > :nth-child(n+3) { display: none; } }
.hotpill { position: absolute; top: 8px; left: 8px; z-index: 1; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hotpill.best { background: #b45309; }
.hotpill.hot { background: #c2185b; }

/* ---------- Track my order ---------- */
.trackbtn { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font-weight: 650; }
.trackbtn svg { width: 19px; height: 19px; flex: none; }
.trackbtn:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 639px) { .trackbtn { width: 42px; padding: 0; justify-content: center; } .trackbtn .tl { display: none; } }
.trackform input { width: 100%; height: 52px; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--bg); font-size: 22px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.trackform input::placeholder { font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.trackform input:focus { border-color: var(--brand); }
.trackform .err { color: var(--bad); font-size: 14px; }
.trackcode { margin: 16px auto 4px; max-width: 420px; padding: 14px 16px; border: 2px dashed var(--brand); border-radius: 14px; background: var(--brand-soft); text-align: center; }
.trackcode .tk { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.trackcode .tn { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.trackcode strong { font-size: 30px; letter-spacing: .1em; font-weight: 800; user-select: all; }

/* the price shown beside a size in the product window */
.opt .hint.pr { font-weight: 700; color: var(--text); font-size: 14px; white-space: nowrap; }
