@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --ink: #241b1e;
  --ink-2: #5b4f52;
  --ink-3: #8f8386;
  --line: #ebe2da;
  --bg: #faf6f1;
  --card: #ffffff;
  --brand: #2b2024;
  --brand-2: #3d2e33;
  --rose: #a95d69;
  --rose-soft: #f6e6e6;
  --gold: #b88a5a;
  --ok: #3f7d5c;
  --ok-soft: #e5f1ea;
  --warn: #a8672a;
  --warn-soft: #fbefe2;
  --err: #b4423f;
  --shelf-wall-1: #fbf8f4;
  --shelf-wall-2: #f3ece5;
  --ledge-top: #efe2d8;
  --ledge-front: #e2cfc2;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(43, 32, 36, .06), 0 2px 8px rgba(43, 32, 36, .05);
  --shadow-2: 0 10px 30px rgba(43, 32, 36, .12), 0 2px 6px rgba(43, 32, 36, .06);
  --serif: 'Cormorant', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --pad: clamp(16px, 3vw, 32px);
  --header-h: 120px;
  --card-w: 168px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Announcement ---------- */
.announce { background: var(--brand); color: #f3e7e0; font-size: 12.5px; letter-spacing: .02em; text-align: center; padding: 7px var(--pad); }
.announce:empty { display: none; }
.announce b { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(250, 246, 241, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 18px; padding: 12px var(--pad); max-width: 1480px; margin: 0 auto; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; padding-right: 18px; border-right: 1px solid var(--line); flex: none; }
.brand img { height: 34px; width: auto; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.icon-btn:hover { background: rgba(43, 32, 36, .06); }
.menu-btn { display: none; }

.search { position: relative; flex: 1; max-width: 640px; }
.search input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 44px 0 46px; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: #d7c3b6; box-shadow: 0 0 0 4px rgba(169, 93, 105, .1); }
.search-ico { position: absolute; left: 16px; top: 12px; color: var(--ink-2); }
.search-clear { position: absolute; right: 8px; top: 7px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f2ebe5; color: var(--ink-2); }
.search-clear svg { width: 14px; height: 14px; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-2); padding: 14px; z-index: 40; }
.suggest h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.suggest h4:not(:first-child) { margin-top: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); transition: all .15s; white-space: nowrap; text-decoration: none; }
.chip:hover { border-color: #d7c3b6; color: var(--ink); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sugg-item { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; width: 100%; text-align: left; }
.sugg-item:hover, .sugg-item.active { background: #f7f1ec; }
.sugg-item img { width: 34px; height: 40px; object-fit: contain; }
.sugg-item small { display: block; color: var(--ink-3); font-size: 12px; }

.cart-pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--brand); color: #fff; margin-left: auto; flex: none; transition: transform .15s, background .15s; box-shadow: var(--shadow-1); }
.cart-pill:hover { background: var(--brand-2); }
.cart-pill.bump { animation: bump .35s ease; }
.cart-pill-label { font-size: 12px; opacity: .75; }
.cart-pill-total { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; }
.cart-pill-count { min-width: 32px; height: 32px; border-radius: 999px; background: #fff; color: var(--brand); font-weight: 700; font-size: 13px; display: grid; place-items: center; padding: 0 8px; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }

.cats { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--pad) 10px; max-width: 1480px; margin: 0 auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { text-decoration: none; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.cats a:hover { background: rgba(43, 32, 36, .05); color: var(--ink); }
.cats a.on { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.cats .sep { width: 1px; background: var(--line); margin: 6px 4px; flex: none; }

/* ---------- Page ---------- */
main { min-height: 60vh; outline: none; padding-bottom: calc(var(--bw) * .25 + var(--bw) * .24 + 24px); }
.page-head { max-width: 1480px; margin: 0 auto; padding: 28px var(--pad) 6px; }
.crumbs { font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; margin: 0; letter-spacing: -.005em; }
.page-head p { color: var(--ink-2); margin: 8px 0 0; max-width: 60ch; }
.sub-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }

.group-title { max-width: 1480px; margin: 0 auto; padding: 34px var(--pad) 0; display: flex; align-items: baseline; gap: 14px; }
.group-title h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3vw, 36px); margin: 0; }
.group-title a { font-size: 13px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Shelves ---------- */
.shelf { position: relative; background: linear-gradient(180deg, var(--shelf-wall-1), var(--shelf-wall-2)); border-bottom: 1px solid #eadfd5; }
.shelf-in { max-width: 1480px; margin: 0 auto; position: relative; }
.shelf-head { display: flex; align-items: baseline; gap: 10px; padding: 22px var(--pad) 0; }
.shelf-head h3 { margin: 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.shelf-head .count { font-size: 12px; color: var(--ink-3); }
.shelf-head a.more { margin-left: auto; font-size: 12.5px; color: var(--ink-2); text-decoration: none; }
.shelf-head a.more:hover { color: var(--ink); text-decoration: underline; }
.shelf-track { --stand-h: 190px; --ledge-y: calc(var(--stand-h) + 8px); display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px var(--pad) 22px; scrollbar-width: none; scroll-padding: 0 var(--pad);
  background-image: linear-gradient(180deg, rgba(255,255,255,.85) 0, rgba(255,255,255,.85) 1px, var(--ledge-top) 1px, var(--ledge-top) 9px, var(--ledge-front) 9px, #d6bfaf 18px), linear-gradient(180deg, rgba(80,50,40,.16), rgba(80,50,40,0));
  background-size: 100% 18px, 100% 12px; background-position: 0 var(--ledge-y), 0 calc(var(--ledge-y) + 18px); background-repeat: no-repeat; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-rows .shelf-track { overflow: visible; }
.shelf-arrow { position: absolute; top: 46%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-2); display: grid; place-items: center; z-index: 3; opacity: 0; transition: opacity .2s; }
.shelf:hover .shelf-arrow:not([disabled]) { opacity: 1; }
.shelf-arrow[disabled] { display: none; }
.shelf-arrow.l { left: 10px; } .shelf-arrow.r { right: 10px; }

/* product card = item standing on shelf (top part) + info under ledge */
.item { width: var(--card-w); flex: none; scroll-snap-align: start; display: flex; flex-direction: column; }
.item-stand { position: relative; height: var(--stand-h); display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.item-stand img { max-height: 180px; max-width: 86%; object-fit: contain; object-position: bottom; transition: transform .25s ease; filter: drop-shadow(0 6px 6px rgba(60, 40, 30, .08)); }
.item-stand:hover img { transform: translateY(-4px); }
.item.oos .item-stand img { filter: grayscale(.9) opacity(.55); }
.badge { position: absolute; top: 10px; left: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; z-index: 1; }
.badge.sale { background: var(--rose); color: #fff; }
.badge.new { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.badge.oos { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge.low { background: var(--warn-soft); color: var(--warn); }

.add { position: absolute; right: 8px; bottom: 6px; z-index: 2; }
.add-btn { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(43, 32, 36, .18); display: grid; place-items: center; color: var(--ink); transition: transform .15s, background .15s; }
.add-btn:hover { transform: scale(1.08); background: var(--brand); color: #fff; }
.add-btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
.qty { display: inline-flex; align-items: center; height: 34px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(43, 32, 36, .18); animation: grow .18s ease; }
.qty button { width: 32px; height: 34px; display: grid; place-items: center; border-radius: 999px; color: var(--ink); }
.qty button:hover { background: #f4ede7; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty button svg { width: 15px; height: 15px; stroke-width: 2.4; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.info { padding: 26px 4px 0; cursor: pointer; }
.pricerow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tag { display: inline-flex; flex: none; align-items: baseline; gap: 3px; background: #fff; border-radius: 6px; padding: 4px 8px; box-shadow: 0 1px 2px rgba(43, 32, 36, .12); font-variant-numeric: tabular-nums; }
.tag small { font-size: 10px; font-weight: 600; color: var(--ink-2); }
.tag b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.was { font-size: 12px; color: var(--ink-3); text-decoration: line-through; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-variant-numeric: tabular-nums; }
.info .brandline { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 9px; font-weight: 600; }
.info .name { font-size: 13.5px; line-height: 1.3; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.info .meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot.low { background: var(--warn); } .dot.oos { background: #c7bcb8; }

/* ---------- Empty / loading / error ---------- */
.state { max-width: 560px; margin: 70px auto; text-align: center; padding: 0 var(--pad); }
.state h2 { font-family: var(--serif); font-weight: 600; font-size: 32px; margin: 14px 0 6px; }
.state p { color: var(--ink-2); margin: 0 0 18px; }
.state .ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #f1e8e1; display: grid; place-items: center; color: var(--ink-2); }
.state .ico svg { width: 28px; height: 28px; }
.state .chip-row { justify-content: center; }
.skel-shelf { height: 330px; background: linear-gradient(180deg, var(--shelf-wall-1), var(--shelf-wall-2)); border-bottom: 1px solid #eadfd5; padding: 22px var(--pad); display: flex; gap: 10px; overflow: hidden; }
.skel { width: var(--card-w); flex: none; border-radius: 12px; background: linear-gradient(90deg, #f1e9e2 0, #f8f3ef 50%, #f1e9e2 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.search-note { max-width: 1480px; margin: 0 auto; padding: 18px var(--pad) 0; color: var(--ink-2); font-size: 14px; }
.search-note b { color: var(--ink); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--brand); color: #fff; transition: background .15s, transform .1s, opacity .15s; text-decoration: none; }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px #cdbab0; }
.btn.wa { background: #1f8f4e; } .btn.wa:hover { background: #1a7a42; }
.btn.sm { height: 38px; font-size: 13.5px; padding: 0 16px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(36, 27, 30, .32); z-index: 50; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer, .menu { position: fixed; top: 0; bottom: 0; right: 0; width: min(420px, 100%); background: #fff; z-index: 60; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); box-shadow: -10px 0 40px rgba(36, 27, 30, .12); }
.menu { left: 0; right: auto; transform: translateX(-105%); }
.drawer.open, .menu.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; }
.drawer-head h2 span { font-family: var(--sans); font-size: 13px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f2ebe5; align-items: center; animation: fade .2s ease; }
.line img { width: 54px; height: 62px; object-fit: contain; background: #faf6f1; border-radius: 10px; padding: 4px; }
.line .t { font-size: 14px; font-weight: 500; line-height: 1.3; }
.line .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.line .r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line .r b { font-size: 14px; font-variant-numeric: tabular-nums; }
.line .qty { box-shadow: inset 0 0 0 1px var(--line); height: 30px; animation: none; }
.line .qty button { height: 30px; width: 28px; }
.line .rm { font-size: 12px; color: var(--ink-3); text-decoration: underline; margin-top: 4px; }
.line .rm:hover { color: var(--err); }
.line .warn { font-size: 12px; color: var(--warn); margin-top: 3px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); background: #fff; }
.progress { margin-bottom: 14px; }
.progress p { margin: 0 0 7px; font-size: 13px; color: var(--ink-2); }
.progress p.ok { color: var(--ok); font-weight: 500; }
.bar { height: 6px; background: #f1e8e1; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: 99px; transition: width .4s ease; }
.bar.full i { background: var(--ok); }
.sum { display: grid; gap: 6px; font-size: 14px; margin-bottom: 14px; }
.sum div { display: flex; justify-content: space-between; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sum .disc { color: var(--rose); }
.sum .total { color: var(--ink); font-weight: 700; font-size: 18px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.sum small { font-size: 12px; color: var(--ink-3); }
.menu-body { overflow-y: auto; padding: 10px 14px 30px; }
.menu-body h4 { margin: 18px 8px 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.menu-body a { display: block; padding: 10px 8px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.menu-body a:hover { background: #f7f1ec; }
.menu-body a.sub { padding-left: 22px; font-size: 14px; color: var(--ink-2); }

/* ---------- Basket (docked bottom centre, lower half below the screen edge) ---------- */
:root { --bw: 300px; }
.trolley { position: fixed; left: 50%; bottom: calc(var(--bw) * -0.25); width: var(--bw); height: calc(var(--bw) * .5); transform: translateX(-50%); z-index: 25; display: block; -webkit-tap-highlight-color: transparent; }
.trolley[hidden] { display: none; }
.bk-scale { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; filter: drop-shadow(0 -2px 10px rgba(36, 27, 30, .16)); }
.trolley.bounce .bk-scale { animation: bkBounce .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bkBounce { 0% { transform: translateY(0); } 35% { transform: translateY(6px) scaleY(.97); } 70% { transform: translateY(-3px); } 100% { transform: none; } }
.trolley:hover .bk-scale { transform: translateY(-2px); }
.bk-back, .bk-front { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
/* stacking, back to front: back rim + interior -> products -> (flying product) -> front wall + front rim -> badge */
.bk-back { z-index: 1; } .bk-items { z-index: 2; } .bk-rimshade { z-index: 3; } .bk-flylayer { z-index: 4; isolation: isolate; } .bk-front { z-index: 5; }
.bk-items, .bk-flylayer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
/* everything inside stays within the basket's walls: it may only stick out above the rim */
.bk-items { clip-path: polygon(5.8% -120%, 94.2% -120%, 94.2% 25%, 88.3% 100%, 11.7% 100%, 5.8% 25%); }
.bk-rimshade { position: absolute; left: 5.8%; right: 5.8%; top: 8%; height: 10%; background: linear-gradient(180deg, rgba(36, 27, 30, 0), rgba(36, 27, 30, .3)); pointer-events: none; }
.bk-unit { position: absolute; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; filter: drop-shadow(0 4px 4px rgba(20, 12, 14, .45)) drop-shadow(-4px -2px 6px rgba(20, 12, 14, .25)); transition: left .35s cubic-bezier(.3, 1.2, .5, 1), top .35s cubic-bezier(.3, 1.2, .5, 1), width .35s ease, height .35s ease, transform .35s ease, opacity .25s ease; }
.bk-unit.pending { opacity: 0; }
.bk-unit.drop { animation: bkDrop .32s cubic-bezier(.3, 1.4, .5, 1); }
.bk-unit.out { opacity: 0; transform: translateY(-24px) !important; }
@keyframes bkDrop { from { translate: 0 -18px; } to { translate: 0 0; } }
.bk-fly.top { position: fixed; z-index: 65; }
.bk-fly { position: absolute; pointer-events: none; object-fit: contain; object-position: 50% 100%; z-index: 1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }

/* ---------- Product modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(36, 27, 30, .38); display: grid; place-items: center; padding: 24px; animation: fade .2s ease; overflow-y: auto; }
.modal-card { position: relative; background: #fff; border-radius: var(--radius-lg); width: min(1040px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; box-shadow: var(--shadow-2); animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-1); }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; }
.pd-media { background: radial-gradient(120% 80% at 50% 30%, #fff 0, #f6eee8 70%); display: flex; align-items: center; justify-content: center; padding: 50px 30px 30px; position: relative; min-height: 460px; border-radius: var(--radius-lg) 0 0 0; }
.pd-media img { max-height: 420px; width: auto; max-width: 90%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(60, 40, 30, .12)); }
.pd-media .badge { top: 18px; left: 18px; font-size: 12px; }
.pd-body { padding: 40px 36px 30px; }
.pd-brand { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.pd h2 { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.05; margin: 6px 0 14px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.pd-price b { font-size: 26px; font-weight: 700; }
.pd-price .was { font-size: 15px; }
.pd-price .save { font-size: 12.5px; color: var(--rose); font-weight: 600; background: var(--rose-soft); padding: 3px 8px; border-radius: 99px; }
.demo-note { margin: 16px 0 0; background: var(--warn-soft); color: #7a4a1e; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.4; }
.label-sm { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 22px 0 8px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 74px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); text-align: center; font-size: 14px; transition: all .15s; background: #fff; }
.size small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.size.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.size.oos { color: var(--ink-3); text-decoration: line-through; }
.stock { font-size: 13px; margin-top: 12px; display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.pd-buy { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.pd-buy .qty { height: 48px; box-shadow: inset 0 0 0 1px var(--line); animation: none; }
.pd-buy .qty button { width: 42px; height: 48px; }
.pd-buy .qty span { min-width: 30px; font-size: 16px; }
.pd-buy .btn { flex: 1; }
.incart { font-size: 13px; color: var(--ok); margin-top: 10px; }
.acc { margin-top: 24px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--ink-3); }
.acc details[open] summary::after { content: '−'; }
.acc .txt { padding: 0 0 16px; color: var(--ink-2); font-size: 14px; white-space: pre-line; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: #f6efe9; border-radius: 99px; padding: 4px 10px; font-size: 12.5px; color: var(--ink-2); }
.related { border-top: 1px solid var(--line); }
.related .shelf { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- Checkout ---------- */
.co { max-width: 1180px; margin: 0 auto; padding: 26px var(--pad) 60px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.co h1 { font-family: var(--serif); font-weight: 600; font-size: 42px; margin: 0 0 4px; grid-column: 1 / -1; }
.panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 16px; font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; display: grid; place-items: center; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { border-color: #cdb6a8; box-shadow: 0 0 0 4px rgba(169, 93, 105, .1); }
.field.err input, .field.err textarea { border-color: var(--err); }
.field .msg { color: var(--err); font-size: 12.5px; margin-top: 5px; }
.field .hint { color: var(--ink-3); font-size: 12.5px; margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.opt:hover { border-color: #d8c6ba; }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.opt.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.opt .grow { flex: 1; }
.opt .grow small { display: block; color: var(--ink-3); font-size: 12.5px; }
.opt b { font-variant-numeric: tabular-nums; font-size: 14px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pay { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: all .15s; text-align: left; }
.pay:hover { border-color: #d8c6ba; }
.pay.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.pay .logo { height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: .02em; color: #fff; width: 100%; }
.pay span { font-size: 13.5px; font-weight: 500; }
.testbar { background: var(--warn-soft); color: #7a4a1e; border: 1px dashed #e0b88c; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.testbar b { letter-spacing: .06em; }
.alert { background: #fbeceb; color: var(--err); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary .line { grid-template-columns: 48px 1fr auto; }
.summary .line img { width: 48px; height: 54px; }
.summary .q { font-size: 12.5px; color: var(--ink-3); }
.secure { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* ---------- Order confirmation ---------- */
.conf { max-width: 760px; margin: 0 auto; padding: 36px var(--pad) 60px; }
.conf-hero { text-align: center; margin-bottom: 24px; }
.conf-hero .ico { width: 70px; height: 70px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.conf-hero .ico svg { width: 32px; height: 32px; stroke-width: 2.4; }
.conf-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 42px; margin: 0; }
.conf-hero p { color: var(--ink-2); margin: 6px 0 0; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #f1e8e1; color: var(--ink-2); text-transform: capitalize; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.err { background: #fbeceb; color: var(--err); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.timeline li { padding: 8px 0 8px 18px; position: relative; color: var(--ink-2); border-left: 1px solid var(--line); margin-left: 4px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline time { display: block; font-size: 12px; color: var(--ink-3); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Footer ---------- */
.foot { background: var(--brand); color: #e9ddd6; padding: 50px var(--pad) calc(var(--bw) * .25 + var(--bw) * .24 + 24px); }
.foot-in { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.foot .brand-name { color: #fff; font-size: 30px; }
.foot p, .foot a { font-size: 14px; color: #cdbfb8; text-decoration: none; margin: 0 0 8px; display: block; }
.foot a:hover { color: #fff; }
.foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; font-size: 12.5px; color: #a8999a; text-align: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -80px); background: var(--brand); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; z-index: 90; transition: transform .3s ease; box-shadow: var(--shadow-2); max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--err); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .co { grid-template-columns: 1fr; }
  .summary { position: static; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; }
  .pd-media { min-height: 320px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 40px 20px 20px; }
  .pd-media img { max-height: 300px; }
  .pd-body { padding: 24px 22px; }
}
@media (max-width: 760px) {
  :root { --card-w: 138px; }
  .menu-btn { display: grid; margin-left: -8px; }
  .top-inner { flex-wrap: wrap; gap: 8px 10px; padding: 10px var(--pad); }
  .brand { border: 0; padding-right: 0; margin-right: auto; }
  .brand-name { font-size: 24px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 42px; }
  .cart-pill { height: 38px; padding-left: 12px; }
  .cart-pill-label { display: none; }
  .cart-pill-total { font-size: 14px; }
  .cart-pill-count { min-width: 28px; height: 28px; }
  .cats { display: none; }
  .announce .ann-1 { display: none; }
  .pd-buy .btn { font-size: 14px; padding: 0 14px; white-space: nowrap; }
  .shelf-track { --stand-h: 160px; }
  .item-stand img { max-height: 150px; }
  .shelf-arrow { display: none; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 94vh; animation: up .3s cubic-bezier(.2, .8, .2, 1); }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .pd h2 { font-size: 30px; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 18px; border-radius: 18px; }
  .co h1, .conf-hero h1 { font-size: 34px; }
  .kv { grid-template-columns: 110px 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  :root { --bw: 250px; }
  /* product cards: fixed rows so every card in a row lines up like a grid */
  .info { padding: 26px 8px 0; }
  .pricerow { height: 28px; gap: 4px; }
  .tag { padding: 4px 8px; }
  .tag small { font-size: 9px; }
  .tag b { font-size: 15px; }
  .was { font-size: 11px; flex: 0 1 auto; }
  .info .brandline { margin-top: 8px; height: 14px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .info .name { margin-top: 4px; line-height: 1.3; height: calc(2 * 1.3em); min-height: 0; }
  .info .meta { margin-top: 8px; height: 16px; line-height: 16px; white-space: nowrap; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Home shelves: whole cards only, edge to edge between the page margins — the last card's text never runs off the screen */
.shelf-track { --n: 8; }
.shelf-track:not(.shelf-rows .shelf-track) > .item, .shelf-track:not(.shelf-rows .shelf-track) > .skel { width: calc((100% - (var(--n) - 1) * var(--gap, 10px)) / var(--n)); }
@media (max-width: 1599px) { .shelf-track { --n: 8; } }
@media (max-width: 1399px) { .shelf-track { --n: 7; } }
@media (max-width: 1239px) { .shelf-track { --n: 6; } }
@media (max-width: 1079px) { .shelf-track { --n: 5; } }
@media (max-width: 899px)  { .shelf-track { --n: 4; } }
@media (max-width: 760px)  { .shelf-track { --n: 3; } }
@media (min-width: 1600px) { .shelf-track { --n: 9; } }
@media (min-width: 1800px) { .shelf-track { --n: 10; } }

/* =====================================================================
   APP STYLE (phone app preview) — html.app + .ios / .android
   Spacing follows the scale 4 · 8 · 12 · 16 · 24 · 32 · 48
   ===================================================================== */
.app { --tabh: 49px; }
.app.android { --tabh: 80px; }
.app .menu-btn, .app .cats, .app .foot { display: none !important; }
/* Basket: docked at the bottom centre like the website, resting on the tab bar (the tab bar hides its lower part) */
.app .trolley { bottom: calc(var(--tabh) + var(--sab, 0px) - var(--bw) * 0.25); }
.app .scrim { z-index: 78; }
.app .drawer { z-index: 80; }
.app .brand { margin-right: auto; }
.app main { padding-bottom: calc(var(--tabh) + var(--sab, 0px) + var(--bw) * .25 + var(--bw) * .24 + 24px); }
.app .toast { z-index: 95; }

/* Bottom tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: flex; padding-bottom: var(--sab, env(safe-area-inset-bottom, 0px)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; color: var(--ink-3); position: relative; -webkit-tap-highlight-color: transparent; }
.tab-ico { position: relative; display: grid; place-items: center; }
.tab-ico svg { width: 24px; height: 24px; }
.tab-gap { display: none; }
.tab-badge { position: absolute; top: -4px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--rose); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.tab.bump .tab-ico { animation: bump .35s ease; }
.ios .tabbar { background: rgba(250, 246, 241, .9); backdrop-filter: saturate(1.6) blur(20px); -webkit-backdrop-filter: saturate(1.6) blur(20px); border-top: 1px solid rgba(43, 32, 36, .1); }
.ios .tab { height: var(--tabh); justify-content: center; gap: 4px; }
.ios .tab-lbl { font-size: 10px; font-weight: 500; }
.ios .tab.on { color: var(--brand); }
.android .tabbar { background: #f3ebe5; }
.android .tab { height: var(--tabh); justify-content: center; gap: 4px; }
.android .tab-ico { width: 64px; height: 32px; border-radius: 16px; transition: background .2s; }
.android .tab-lbl { font-size: 12px; font-weight: 500; }
.android .tab.on { color: var(--ink); }
.android .tab.on .tab-ico { background: #e8d7cf; }
.android .tab.on .tab-lbl { font-weight: 700; }

/* Shelf + button for products with several sizes (opens the size sheet) */
.add-btn.has { background: var(--brand); color: #fff; }
.add-count { font-size: 13px; font-weight: 700; }

/* Product screen: full-screen push, not a pop-up */
.app .modal { padding: 0; background: var(--bg); display: block; overflow: hidden; animation: none; }
.app .modal-card { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; overflow-y: auto; animation: push .34s cubic-bezier(.2, .8, .2, 1); padding-bottom: calc(var(--tabh) + var(--sab, 0px) + 96px); }
.app .modal.popping .modal-card { animation: popout .26s ease forwards; }
@keyframes push { from { transform: translateX(100%); } to { transform: none; } }
@keyframes popout { to { transform: translateX(100%); } }
.app.android .modal-card { animation-name: push-a; }
.app.android .modal.popping .modal-card { animation-name: popout-a; }
@keyframes push-a { from { transform: translateX(24%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popout-a { to { transform: translateX(24%); opacity: 0; } }
.appbar { position: sticky; top: 0; z-index: 6; height: 48px; display: flex; align-items: center; padding: 0 8px; background: rgba(250, 246, 241, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(43, 32, 36, .06); }
.android .appbar { height: 64px; padding: 0 4px; }
.app .modal-close.back-btn { position: static; box-shadow: none; background: none; width: auto; min-width: var(--tap, 44px); padding: 0 8px; gap: 4px; display: flex; align-items: center; color: var(--brand); border-radius: 12px; }
.ios .back-btn svg { width: 24px; height: 24px; stroke-width: 2.2; margin-left: -4px; }
.ios .back-btn span { font-size: 17px; }
.android .back-btn { border-radius: 50% !important; justify-content: center; padding: 0 !important; }
.appbar-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios .appbar-title { text-align: center; margin-right: 72px; }
.android .appbar-title { font-size: 20px; font-weight: 500; padding-left: 4px; margin-right: 16px; }
.app .pd { grid-template-columns: 1fr; }
.app .pd-media { border-radius: 0; min-height: 360px; }
.app .pd-media img { max-height: 300px; }
.app .incart a { display: none; }
.app .demo-note { margin-top: 16px; }
/* sticky Add to trolley bar, above the tab bar */
.app .pd-buy { position: fixed; left: 0; right: 0; bottom: calc(var(--tabh) + var(--sab, 0px)); margin: 0; padding: 12px 16px; gap: 12px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 8; }
/* product screen skeleton */
.pd-skel { padding: 0 16px; }
.pd-skel .skel { display: block; width: 100%; border-radius: 8px; margin-top: 12px; }
.pd-skel .sk-img { height: 360px; border-radius: 0; margin: 0 -16px 12px; width: calc(100% + 32px); }
.pd-skel .sk-l { height: 12px; margin-top: 24px; }
.pd-skel .sk-h { height: 32px; width: 80%; }
.pd-skel .sk-b { height: 48px; margin-top: 16px; }

/* Bottom sheet with grab handle */
.sheet-scrim { position: fixed; inset: 0; z-index: 85; background: rgba(36, 27, 30, .35); opacity: 0; transition: opacity .25s; }
.sheet-scrim.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-height: 85%; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 8px 16px calc(16px + var(--sab, env(safe-area-inset-bottom, 0px))); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -8px 32px rgba(36, 27, 30, .16); }
.sheet.open { transform: none; }
.grab { width: 36px; height: 4px; border-radius: 4px; background: #d8cec8; margin: 0 auto 16px; }
.android .grab { width: 32px; }
.sheet-head { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); cursor: grab; touch-action: none; }
.sheet-head img { width: 48px; height: 56px; object-fit: contain; background: #faf6f1; border-radius: 8px; padding: 4px; }
.sheet-title { font-size: 16px; font-weight: 600; }
.sheet .label-sm { margin: 16px 0 8px; }
.sheet-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: var(--tap, 44px); padding: 12px 0; border-bottom: 1px solid #f2ebe5; }
.sheet-row b { font-size: 15px; }
.sheet-row small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.sheet-row.oos { opacity: .5; }
.sheet-row .qty { box-shadow: inset 0 0 0 1px var(--line); animation: none; }
.sheet-row .add-btn { box-shadow: inset 0 0 0 1px var(--line); }
.sheet .btn { margin-top: 16px; }

/* Tap feedback */
.ios .btn, .ios .add-btn, .ios .tab, .ios .size, .ios .chip, .ios .back-btn, .ios .qty button { transition: transform .12s ease, opacity .12s ease; }
.ios .btn:active, .ios .add-btn:active, .ios .size:active, .ios .chip:active, .ios .qty button:active { transform: scale(.96); opacity: .8; }
.ios .tab:active, .ios .back-btn:active { opacity: .5; }
.ios .item-stand:active img { transform: scale(.97); }
.ripple { position: absolute; border-radius: 50%; background: rgba(43, 32, 36, .14); transform: scale(0); animation: rip .5s ease-out forwards; pointer-events: none; }
.btn .ripple, .add-btn.has .ripple { background: rgba(255, 255, 255, .3); }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
/* native-style toast above the tab bar */
.app .toast { top: auto; bottom: calc(var(--tabh) + var(--sab, 0px) + 16px); transform: translate(-50%, 160px); border-radius: 12px; }
.app .toast.show { transform: translate(-50%, 0); }
.app .modal:not([hidden]) ~ .toast, .app .pd-buy ~ .toast { bottom: calc(var(--tabh) + var(--sab, 0px) + 88px); }
.app .toast { opacity: 0; transition: transform .3s ease, opacity .2s ease; }
.app .toast.show { opacity: 1; }

/* =====================================================================
   SPACING SCALE (phone layout, iPhone + Android): 4 · 8 · 12 · 16 · 24 · 32 · 48 only
   ===================================================================== */
@media (max-width: 760px) {
  :root { --pad: 16px; }
  /* shelves: 12 between products, 48 between shelves (24 + 24), card text 8 from the sides, price tag 8/4 */
  .shelf-track { --gap: 12px; gap: 12px; padding: 8px var(--pad) 24px; }
  .shelf-head { padding: 24px var(--pad) 0; }
  .info { padding: 24px 8px 0; }
  .tag { padding: 4px 8px; }
  .page-head { padding: 24px var(--pad) 8px; }
  .group-title { padding: 32px var(--pad) 0; gap: 16px; }
  /* chips: 8 apart */
  .chip-row, .sub-chips { gap: 8px; }
  /* search suggestions pop-up */
  .suggest { padding: 16px; }
  .suggest h4:not(:first-child) { margin-top: 16px; }
  /* category menu: link text 16 from the edge (container 8 + link 8), sub-categories at 32 */
  .menu-body { padding: 8px 8px 32px; }
  .menu-body h4 { margin: 16px 8px 8px; }
  .menu-body a { padding: 12px 8px; min-height: var(--tap, 44px); }
  .menu-body a.sub { padding-left: 24px; }
  /* trolley drawer: 16 left/right, 12 above and below each divider, footer clears the bottom safe area */
  .drawer-head { padding: 16px; }
  .drawer-body { padding: 4px 16px; }
  .line { padding: 12px 0; gap: 12px; }
  .drawer-foot { padding: 16px 16px calc(16px + var(--sab, env(safe-area-inset-bottom, 0px))); }
  /* product details: 16 left/right, detail rows 16 top and bottom; size buttons 16/8, at least 44 high */
  .pd-body { padding: 24px 16px; }
  .acc summary { padding: 16px 0; }
  .acc .txt { padding: 0 0 16px; }
  .size { padding: 8px 16px; min-height: var(--tap, 44px); }
  .pd-buy { gap: 12px; margin-top: 24px; }
  /* checkout and confirmation: panels 16 (content at 32), fields 16/12 with 16 between, options and payment tiles 16 with 12 between */
  .co { padding: 24px var(--pad) 48px; gap: 24px; }
  .panel { padding: 16px; }
  .panel + .panel { margin-top: 16px; }
  .field { margin-bottom: 16px; }
  .field input, .field textarea, .field select { padding: 12px 16px; min-height: var(--tap, 44px); }
  .opts { gap: 12px; }
  .opt { padding: 16px; }
  .pay-grid { gap: 12px; }
  .pay { padding: 16px; }
  /* tap areas: 44 on iPhone, 48 on Android */
  /* the buttons keep their look; an invisible hit area makes them 44 (iPhone) / 48 (Android) to tap */
  .icon-btn, .qty button, .add-btn { position: relative; }
  .icon-btn::before, .qty button::before, .add-btn::before { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, var(--tap, 44px)); height: max(100%, var(--tap, 44px)); transform: translate(-50%, -50%); }
}
.app .back-btn:focus, .app .modal-close:focus { outline: none; }

/* =====================================================================
   PAYMENT ("Pay with"): provider cards with the networks' own logos
   ===================================================================== */
.pay-grid { display: none; }
.pay-list { display: flex; flex-direction: column; gap: 12px; }
.pay-title { margin: 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-3); }
.pay-list .pay { width: 100%; box-sizing: border-box; display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px; background: #fff; border-radius: 22px; border: 2px solid transparent; box-shadow: 0 4px 20px rgba(17, 17, 17, .08); text-align: left; cursor: pointer; transition: border-color .15s; }
.pay-list .pay:hover { border-color: #ead9cf; }
.pay-list .pay.on { border-color: var(--brand); box-shadow: 0 4px 20px rgba(17, 17, 17, .08); }
.pay-logo { width: 67px; height: 48px; flex: none; border-radius: 14px; border: 1px solid rgba(17, 17, 17, .08); box-sizing: border-box; padding: 6px 8px; display: flex; align-items: center; justify-content: center; }
.pay-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.pay-logo.plain { background: #efe6df; border: 0; }
.pay-logo.plain svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pay-logo.sm { width: 40px; height: 28px; border-radius: 8px; padding: 3px 5px; }
.pay-logo.sm svg { width: 16px; height: 16px; }
.pay-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-name { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); }
.pay-meta { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.pay-chk { width: 28px; height: 28px; flex: none; border-radius: 999px; box-sizing: border-box; border: 1.5px solid #c9bcb4; display: grid; place-items: center; }
.pay-chk svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pay.on .pay-chk { background: var(--brand); border-color: var(--brand); }
.pay.on .pay-chk svg { opacity: 1; }
.pay-extra { margin-top: 16px; }
.pay-pin { margin: -4px 4px 0; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.pay-dd { display: flex; align-items: center; gap: 8px; }
.pay-wait { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; background: #fff; border-radius: 22px; box-shadow: 0 4px 20px rgba(17, 17, 17, .08); }
.pay-wait > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-wait b { font-size: 16px; line-height: 24px; }
.pay-wait span:not(.pay-logo):not(.spinner) { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.pay-wait .spinner { flex: none; border-color: rgba(43, 32, 36, .15); border-top-color: var(--brand); }
.pay-cards { display: flex; align-items: center; height: 20px; }
.pay-cards img { display: block; height: 14px; width: auto; }
/* Card details (Credit or debit card) */
.cardf { margin-top: 24px; }
.cardf h3 { margin: 0 0 16px; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.cardf-box { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #b9aea7; border-radius: 12px; }
.cardf-cell, .cardf-one { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; cursor: text; }
.cardf-cell.full { grid-column: 1 / -1; border-bottom: 1px solid #b9aea7; }
.cardf-cell + .cardf-cell + .cardf-cell { border-left: 1px solid #b9aea7; }
.cardf-cell span, .cardf-one span { display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.cardf-cell span svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 2; }
.cardf-cell span svg path { fill: none; }
.cardf input, .cardf select { border: 0; outline: 0; padding: 0; background: transparent; font: inherit; font-size: 17px; line-height: 24px; color: var(--ink); width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
.cardf input::placeholder { color: #b9aea7; }
.cardf-cell:focus-within { box-shadow: 0 0 0 2px var(--ink); border-radius: 12px; z-index: 1; }
.cardf-cell.full:focus-within { border-radius: 12px; }
.cardf-cell.bad { box-shadow: 0 0 0 2px #c0392b; border-radius: 12px; z-index: 1; }
.cardf-one { margin-top: 12px; border: 1px solid #b9aea7; border-radius: 12px; }
.cardf-one:focus-within { box-shadow: 0 0 0 1px var(--ink); border-color: var(--ink); }
.cardf-one.sel { padding-right: 48px; }
.cardf-one.sel > svg { position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.cardf-err { margin-top: 8px; font-size: 14px; color: #c0392b; min-height: 0; }
.cardf-err:empty { display: none; }
.cardf-cell.full { padding-right: 76px; }
.cardf-brand { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); height: 14px; width: auto; }
.cardf-brand.mastercard { height: 20px; }
button.cardf-one { width: 100%; text-align: left; background: transparent; font: inherit; cursor: pointer; }
button.cardf-one b { font-weight: 400; font-size: 17px; line-height: 24px; color: var(--ink); }
/* Country/Region picker */
.ctry-scrim { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
.ctry-scrim.show { opacity: 1; pointer-events: auto; }
.ctry { position: fixed; z-index: 121; left: 0; right: 0; bottom: 0; top: 48px; display: flex; flex-direction: column; background: #fff; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); visibility: hidden; }
.ctry.show { transform: none; visibility: visible; }
.ctry-top { display: flex; justify-content: flex-end; padding: 16px 16px 0; }
.ctry-x { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 999px; }
.ctry-x svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.ctry h2 { margin: 8px 24px 24px; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.ctry-list { flex: 1; min-height: 0; overflow: auto; margin: 0 24px; border: 1px solid #ddd; border-radius: 16px; padding: 0 24px; }
.ctry-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; border: 0; border-bottom: 1px solid #e6e6e6; background: none; font: inherit; font-size: 18px; line-height: 24px; color: var(--ink); text-align: left; cursor: pointer; }
.ctry-row:last-child { border-bottom: 0; }
.ctry-row i { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid #8a8a8a; box-sizing: border-box; }
.ctry-row.on i { border: 2px solid var(--ink); box-shadow: inset 0 0 0 4px #fff; background: var(--ink); }
.ctry-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px calc(16px + var(--sab, 0px)); border-top: 1px solid #ececec; }
.ctry-cancel { border: 0; background: none; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 12px 0; }
.ctry-done { min-width: 140px; }
html.ctry-open, html.ctry-open body { overflow: hidden; }
@media (min-width: 761px) {
  .ctry { left: 50%; right: auto; top: 50%; bottom: auto; width: 520px; height: min(720px, 86vh); border-radius: 24px; transform: translate(-50%, -46%); opacity: 0; transition: transform .25s, opacity .25s; }
  .ctry.show { transform: translate(-50%, -50%); opacity: 1; }
}
/* Card details sheet */
.psheet { z-index: 121; }
#ctry { z-index: 123; } #ctryScrim { z-index: 122; }
.ctry-top.left { justify-content: flex-start; }
.psheet-body { flex: 1; min-height: 0; overflow: auto; padding: 0 24px 24px; }
.psheet .cardf { margin-top: 0; }
.ctry-foot.end { justify-content: flex-end; }
.pay-saved { display: flex; align-items: center; gap: 10px; }
.pay-brand { height: 14px; width: auto; }
.pay-brand.mastercard { height: 20px; }
.pay-meta u { text-underline-offset: 2px; }
/* Delivery type wording: "Name | price", description, time on the right */
.opt { align-items: flex-start; }
.opt input { margin-top: 3px; }
.opt-t { display: block; font-weight: 600; font-size: 15px; line-height: 22px; }
.opt-t b { font-weight: 600; }
.opt-bar { color: var(--ink-3); font-weight: 400; }
.opt .grow small { font-size: 13.5px; line-height: 20px; margin-top: 2px; }
.opt-eta { flex: none; font-weight: 600; font-size: 14px; line-height: 22px; text-align: right; }
.opt.on .opt-t, .opt.on .opt-eta { color: var(--brand); }
.opt-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.opt-row .opt-t { min-width: 0; }
/* Delivery address: saved addresses + "Choose a delivery address" sheet */
.addr-add { width: 100%; display: flex; align-items: center; gap: 16px; padding: 0; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 700; color: var(--brand); cursor: pointer; text-align: left; }
.addr-plus { width: 64px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.addr-plus svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2.25; stroke-linecap: round; }
.addr-add.in-sheet { padding-bottom: 24px; border-bottom: 1px solid #e6e6e6; }
.addr-cur { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.addr-ico { width: 64px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #f1ece8; }
.addr-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.addr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.addr-txt b { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 24px; color: var(--ink); }
.addr-txt > span { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.addr-change { flex: none; border: 0; background: none; padding: 8px 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.addr-list { display: flex; flex-direction: column; }
.addr-row { display: flex; align-items: flex-start; gap: 16px; padding: 24px 0; border: 0; border-bottom: 1px solid #e6e6e6; background: none; font: inherit; text-align: left; cursor: pointer; }
.addr-row:last-child { border-bottom: 0; }
.addr-sel { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .3px; color: #1b7f4b; background: #d6f5e3; padding: 3px 10px; border-radius: 999px; }
.addr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 24px 24px; }
.addr-head h2 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--ink); }
.ctry-x.round { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
#addrSheet, #addrForm { top: auto; max-height: calc(100% - 48px); }
@media (min-width: 761px) { #addrSheet, #addrForm { top: 50%; height: auto; max-height: 86vh; } }
.addr-types { display: flex; gap: 8px; flex-wrap: wrap; }
.addr-type { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.addr-type svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.addr-type.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
#addrF .field { margin-bottom: 16px; }
.toast { z-index: 130; }
.foot { padding-bottom: calc(var(--bw) * .25 + 24px); }
/* Delivery distance */
.addr-km { font-size: 13px !important; color: var(--ink-3); }
.addr-gps { display: flex; align-items: center; gap: 8px; margin: -4px 0 8px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--brand); cursor: pointer; min-height: var(--tap, 44px); }
.addr-gps svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.addr-gps.on { color: #1b7f4b; }
.addr-gps-msg { margin: -4px 0 16px; font-size: 14px; color: var(--ink-3); }
.addr-gps-msg.bad { color: #c0392b; }
