/* Kripfresh storefront (KRIP).
   Green and white. Layout follows the quick-commerce home screen: delivery time and address on top, a sticky search
   bar and section tabs, featured tiles, picture grids for every category, product rows with ADD on the photo, a
   free-delivery bar and bottom navigation on phones. 3D motion lives in motion.js and is switched off for people who
   ask their device for reduced motion. The staff dashboard (admin.html) shares the tokens, buttons and fields. */

/* Poppins, one file per weight; the latin-ext files carry the rupee sign (U+20B9). */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/poppins-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/poppins-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/poppins-latin-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/poppins-latin-ext-500.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/poppins-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/poppins-latin-ext-600.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/poppins-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/poppins-latin-ext-700.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/poppins-latin-800.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/poppins-latin-ext-800.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #15191d;
  --ink-2: #3c434a;
  --muted: #646d76;
  --line: #e5e9ec;
  --line-2: #d3d9de;
  --canvas: #f6faf8;
  --sheen: linear-gradient(155deg, #ffffff 0%, #ffffff 45%, #f3f8f5 100%);   /* shiny white surfaces */
  --surface: #ffffff;

  --brand: #0a7f3f;          /* 5.1:1 on white */
  --brand-hover: #086b35;
  --brand-deep: #05502a;
  --brand-bright: #19b35d;   /* decoration only, never text */
  --brand-tint: #e6f5ec;
  --brand-tint-2: #f2faf5;
  --hdr-1: #066a35;
  --hdr-2: #098540;          /* white text stays above 4.5:1 down to here */
  --tile-bg: #f0f8f3;
  --pick-bg: #f3f8f5;

  --success: #0a7f3f;
  --success-tint: #e6f5ec;
  --danger: #b42318;
  --danger-tint: #fdedec;
  --warn: #7a5200;
  --warn-tint: #fcf3dc;

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --h-sm: 32px;
  --h-md: 44px;
  --h-lg: 52px;
  --pop: 0 16px 40px rgba(6, 40, 20, .18), 0 2px 8px rgba(6, 40, 20, .08);
  --lift: 0 6px 18px rgba(6, 40, 20, .12);
  --focus: 0 0 0 3px rgba(10, 127, 63, .35);
  --font: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --dock-h: 0px;
  --hdr-collapse: 0px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; scroll-padding-bottom: calc(var(--dock-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink);
  background: #fff linear-gradient(180deg, #ffffff 0, #ffffff 600px, #f7fbf9 100%); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.lock { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: var(--brand); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
.wrap, .container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.price, .bill-row span:last-child, .tnum { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 100; }
.skip-link:focus { top: 8px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-xs { width: 14px; height: 14px; }
.ic-sm { width: 16px; height: 16px; }
.ic-xl { width: 40px; height: 40px; stroke-width: 1.4; color: var(--line-2); }

/* ---------- Buttons & fields (shared with the staff dashboard) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h-md); padding: 0 18px; border-radius: var(--radius); font-weight: 700; font-size: 14px;
  border: 1px solid transparent; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:disabled { background: var(--line); color: var(--ink-2); cursor: not-allowed; }
.btn-secondary { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { background: var(--canvas); }
.btn-tint { background: var(--brand-tint); color: var(--brand); border-color: #cde9d8; }
.btn-tint:hover { background: #d9efe2; }
.btn-danger { background: var(--surface); border-color: var(--line-2); color: var(--danger); }
.btn-danger:hover { background: var(--danger-tint); }
.btn-block { width: 100%; }
.btn-lg { height: var(--h-lg); font-size: 15px; }
.btn-sm { height: var(--h-sm); padding: 0 12px; font-size: 13px; }
.text-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 700; }
.text-btn:hover { text-decoration: underline; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.icon-btn:hover { background: var(--canvas); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, select, .phone-field {
  height: var(--h-md); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
  padding: 0 12px; font-size: 15px; width: 100%;
}
.input:focus, select:focus, .phone-field:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.phone-field { display: flex; align-items: center; padding: 0; }
.phone-field .prefix { padding: 0 10px 0 12px; color: var(--muted); border-right: 1px solid var(--line); height: 100%; display: grid; place-items: center; }
.phone-field input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 12px; font-size: 15px; letter-spacing: .02em; background: none; }
.phone-field input:focus { box-shadow: none; }
.field-err { color: var(--danger); font-size: 13px; font-weight: 600; }
.field-err:empty { display: none; }
.note { font-size: 13px; padding: 10px 12px; border-radius: var(--radius); background: var(--brand-tint); color: var(--ink-2); }
.note.err { background: var(--danger-tint); color: var(--danger); }
.note-warn { background: var(--warn-tint); color: var(--warn); }
.actions-row { display: flex; justify-content: flex-end; gap: 8px; }
.actions-row.split > * { flex: 1; }

/* ---------- Staff dashboard header (admin.html) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, var(--hdr-1), var(--hdr-2)); color: #fff; }
.topbar-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; line-height: 1.1; flex: none; }
.brand-text { display: grid; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.015em; }
.brand-sub { font-size: 11.5px; font-weight: 600; opacity: .9; }
.tab {
  flex: none; height: 44px; padding: 0 12px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tab:hover { color: #fff; }
.tab.on { color: #fff; border-bottom-color: #fff; font-weight: 800; }
.topbar .btn-secondary { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.topbar .btn-secondary:hover { background: rgba(255, 255, 255, .2); }
.topbar .muted { color: rgba(255, 255, 255, .9); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: calc(-1 * var(--hdr-collapse)); z-index: 30; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(25, 179, 93, .35), transparent 60%),
    linear-gradient(180deg, var(--hdr-1) 0%, var(--hdr-2) 100%);
}
.hdr-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.hdr-top { display: flex; align-items: center; gap: 12px; padding: 14px 0 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; line-height: 1; flex: none; }
.logo-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 40, 20, .25)); }
.logo-text { display: none; }
.logo-word { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.logo-sub { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
.loc { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; text-align: left; color: #fff; line-height: 1.15; }
.loc-kicker { font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.loc-eta { font-size: 30px; font-weight: 800; letter-spacing: -.015em; line-height: 1.1; margin: 1px 0 2px; display: inline-block; transform-origin: 50% 80%; }
.loc-addr { display: flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.loc-addr b { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; flex: none; }
.loc-addr #address { overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.loc-addr #address:not(:empty)::before { content: '–'; margin: 0 5px 0 2px; }
.hdr-actions { display: flex; align-items: center; gap: 10px; flex: none; align-self: flex-start; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.acct-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.acct-avatar .ic { width: 22px; height: 22px; stroke-width: 2; }
.acct-label { display: none; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px; z-index: 40; padding: 6px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--pop);
  transform-origin: 90% 0; animation: menuIn .2s var(--ease-out);
}
@keyframes menuIn { from { opacity: 0; transform: perspective(600px) rotateX(-14deg) translateY(-6px); } }
.menu-head { display: grid; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head span { color: var(--muted); font-size: 13px; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 10px; border-radius: 8px; font-weight: 600; }
.menu button:hover { background: var(--canvas); }
.menu .ic { color: var(--muted); }
.cart-btn {
  position: relative; display: none; align-items: center; gap: 10px; height: 48px; padding: 0 16px; min-width: 112px;
  background: #fff; color: var(--brand); border-radius: 12px; font-weight: 800; flex: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  transition: transform .2s var(--spring);
}
.cart-btn:hover { background: var(--brand-tint-2); }
.cart-btn .ic { width: 22px; height: 22px; stroke-width: 2; }
.cart-label { line-height: 1.15; text-align: left; font-size: 14px; }
.cart-label small { display: block; font-weight: 700; font-size: 13px; color: var(--ink); }
.cart-count { display: none !important; }

.search-row { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.back-btn { display: none; width: 40px; height: 48px; place-items: center; color: #fff; flex: none; border-radius: 12px; }
.search {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 6px 0 14px;
  background: #fff; border-radius: 12px; color: var(--ink-2); box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 2px 10px rgba(0, 0, 0, .1); }
.search > .ic { width: 22px; height: 22px; stroke-width: 2; color: var(--ink); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 15.5px; color: var(--ink); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search input:focus-visible { box-shadow: none; }
.search-ph {
  position: absolute; left: 46px; right: 56px; top: 0; bottom: 0; display: flex; align-items: center; gap: 5px;
  font-size: 15.5px; color: var(--muted); pointer-events: none; white-space: nowrap; overflow: hidden;
}
.search-ph.off { display: none; }
.ph-q { display: inline-flex; overflow: hidden; height: 1.5em; align-items: center; }
.ph-word { display: inline-block; }
.ph-word.out { animation: phOut .35s var(--ease-out) forwards; }
.ph-word.in { animation: phIn .4s var(--ease-out); }
@keyframes phOut { to { transform: translateY(-120%) rotateX(70deg); opacity: 0; } }
@keyframes phIn { from { transform: translateY(120%) rotateX(-70deg); opacity: 0; } }
.mic { width: 44px; height: 36px; display: grid; place-items: center; border-left: 1px solid var(--line); color: var(--ink); flex: none; }
.mic .ic { width: 21px; height: 21px; }
.mic.listening { color: var(--brand); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }

.qtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px; }
.qtabs::-webkit-scrollbar { display: none; }
.qtab {
  position: relative; flex: 1 0 auto; min-width: 68px; display: grid; justify-items: center; gap: 4px; padding: 4px 8px 10px;
  color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.qtab .ic { width: 24px; height: 24px; stroke-width: 1.7; transition: transform .25s var(--spring); }
.qtab:hover .ic { transform: translateY(-2px); }
.qtab::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 36px; height: 3px; margin-left: -18px; border-radius: 3px 3px 0 0;
  background: #fff; transform: scaleX(0); transition: transform .25s var(--ease-out);
}
.qtab.on { font-weight: 800; }
.qtab.on::after { transform: scaleX(1); }
.qtab.on .ic { stroke-width: 2.2; animation: tabPop .45s var(--spring); }
@keyframes tabPop { 40% { transform: perspective(200px) translateY(-3px) rotateY(180deg) scale(1.15); } }

/* Category / search pages: the header is just the search bar with a back button. */
.shop.listing-view .hdr-top, .shop.listing-view .qtabs { display: none; }
.shop.listing-view .back-btn { display: grid; }
.shop.listing-view .search-row { padding-top: 10px; }

/* ---------- Home: featured tiles ---------- */
.feat-rail-wrap { padding-top: 16px; }
.feat-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2.85); gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; padding-top: 6px; padding-bottom: 14px; perspective: 900px;
}
.feat-rail::-webkit-scrollbar { display: none; }
.feat {
  --rx: 0deg; --ry: 0deg; --c1: #0a7f3f; --c2: #19b35d; --fg: #fff;
  position: relative; display: block; aspect-ratio: 4 / 5; padding: 3px; border-radius: var(--radius-xl);
  border: 3px solid var(--brand); background: #fff; scroll-snap-align: start; text-align: left;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .35s var(--ease-out), box-shadow .3s;
}
.feat:hover { box-shadow: var(--lift); }
.feat-in {
  position: absolute; inset: 3px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(130% 80% at 50% 100%, rgba(255, 255, 255, .28), transparent 55%), linear-gradient(160deg, var(--c1), var(--c2));
}
.feat-in::before { /* soft light rays */
  content: ''; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 60%, rgba(255, 255, 255, .09) 0 10deg, transparent 10deg 24deg);
}
.feat-notch {
  position: absolute; z-index: 2; left: 50%; top: 0; transform: translateX(-50%) translateZ(8px); padding: 3px 10px 4px; border-radius: 0 0 10px 10px;
  background: #fff; color: var(--brand); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
}
.feat-text {
  position: absolute; z-index: 1; left: 8px; right: 8px; top: 24px; display: grid; justify-items: center; gap: 5px;
  color: var(--fg); text-align: center; transform: translateZ(52px); pointer-events: none;
}
.feat-title { font-size: 15px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.feat-sub { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: rgba(255, 255, 255, .22); white-space: nowrap; }
.feat[data-light] .feat-sub { background: rgba(10, 127, 63, .12); }
.feat-img {
  position: absolute; z-index: 1; left: 19%; bottom: 4%; width: 62%; aspect-ratio: 1; object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .22)); transform: translateZ(36px); animation: bob 5s ease-in-out infinite;
}
.feat:nth-child(2n) .feat-img { animation-delay: -1.6s; }
.feat:nth-child(3n) .feat-img { animation-delay: -3.1s; }
@keyframes bob { 50% { transform: translateZ(36px) translateY(-6px) rotate(-1.5deg); } }

/* ---------- Home: blocks ---------- */
.block { margin-top: 22px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.block-head .block-title { margin-bottom: 0; }
.block-sub { font-size: 12.5px; color: var(--muted); margin-top: -10px; margin-bottom: 12px; }
.see-all { color: var(--brand); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

/* Top picks: 2 x 2 product photos per category */
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.pick {
  --rx: 0deg; --ry: 0deg; position: relative; display: grid; gap: 6px; padding: 6px 6px 10px; border-radius: 18px; background: var(--sheen);
  border: 1px solid #e8f0eb; box-shadow: 0 1px 2px rgba(6, 40, 20, .04), inset 0 1px 0 #fff;
  text-align: center; transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .3s var(--ease-out);
}
.pick-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pick-imgs > span { position: relative; aspect-ratio: 1; border-radius: 12px; background: #fff; overflow: hidden; }
.pick-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; transition: transform .3s var(--ease-out); }
.pick:hover .pick-imgs img { transform: scale(1.07); }
.pick-more {
  justify-self: center; margin-top: -16px; position: relative; z-index: 1; padding: 2px 9px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.pick-name { font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ink); text-wrap: balance; }

/* Theme banner (big strip with category cards inside) */
.theme {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #fff; padding: 20px 0 0;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(25, 179, 93, .45), transparent 60%),
    radial-gradient(50% 70% at 100% 10%, rgba(255, 255, 255, .12), transparent 60%),
    linear-gradient(160deg, #05502a, #0a7f3f 70%, #0c8f47);
}
.theme::before { /* fine dot pattern */
  content: ''; position: absolute; inset: 0; opacity: .14;
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1.4px); background-size: 14px 14px;
}
.theme-head { position: relative; text-align: center; padding: 0 16px; }
.theme-kicker { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.theme-title { font-size: 30px; font-weight: 800; letter-spacing: -.015em; line-height: 1.05; margin-top: 4px; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.theme-sub { font-size: 13px; font-weight: 600; opacity: .92; margin-top: 4px; }
.theme-rail {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 16px 16px 18px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; perspective: 800px;
}
.theme-rail::-webkit-scrollbar { display: none; }
.theme-card {
  --rx: 0deg; --ry: 0deg; display: grid; grid-template-rows: auto 1fr; padding: 10px 8px 0; border-radius: 16px; min-height: 160px;
  background: linear-gradient(180deg, #fff9e9, #fdeec8); color: var(--ink); text-align: center; scroll-snap-align: start;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .3s var(--ease-out);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.theme-card b { font-size: 12.5px; font-weight: 800; line-height: 1.2; text-wrap: balance; }
.theme-card img { align-self: end; width: 100%; aspect-ratio: 1; object-fit: contain; transform: translateZ(30px); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)); }
.theme-foot { position: relative; padding: 10px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; background: rgba(0, 0, 0, .18); }

/* Deals: 2 x 2 coloured cards */
.deals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: var(--radius-xl); background: var(--sheen); box-shadow: 0 2px 14px rgba(6, 40, 20, .08); }
.deal {
  --rx: 0deg; --ry: 0deg; --c1: #0a7f3f; --c2: #19b35d; --fg: #fff;
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  min-height: 140px; padding: 12px; border-radius: 14px; text-align: left; color: var(--fg);
  background: linear-gradient(150deg, var(--c1), var(--c2)); transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .3s var(--ease-out); transform-style: preserve-3d;
}
.deal-kicker { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.deal-title { display: block; font-size: 15px; font-weight: 800; line-height: 1.15; max-width: 66%; margin-top: 2px; text-wrap: balance; }
.deal-off {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: #fff; color: var(--brand); font-size: 12px; font-weight: 800; line-height: 1; text-align: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}
.deal-off small { display: block; font-size: 8.5px; font-weight: 800; }
.deal-imgs { position: absolute; right: 8px; bottom: 8px; display: flex; transform: translateZ(26px); }
.deal-imgs > span { position: relative; width: 54px; height: 54px; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.deal-imgs > span + span { margin-left: -14px; transform: rotate(6deg); }
.deal-imgs > span:first-child { transform: rotate(-5deg); }
.deal-imgs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.deal-imgs .img-fallback .ic { width: 50%; height: 50%; }
.deal[data-light] { --fg: var(--ink); }

/* Category grids (one per section) */
.cat-section { margin-top: 26px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
.tile { --rx: 0deg; --ry: 0deg; display: grid; gap: 6px; justify-items: center; text-align: center; color: var(--ink); }
.tile-pic {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--tile-bg); overflow: hidden;
  transform: perspective(500px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.tile-pic::after { /* gloss */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), transparent 45%);
}
.tile-pic img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .35s var(--spring); }
.tile:hover .tile-pic { box-shadow: var(--lift); }
.tile:hover .tile-pic img { transform: translateY(-4px) scale(1.08); }
.tile-name { font-size: 12px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.tile-count { display: none; }

/* Product rows */
.shelf { margin-top: 28px; }
.shelf .block-head { padding: 0 16px; max-width: 1280px; margin: 0 auto 12px; }
.rail-box { position: relative; max-width: 1280px; margin: 0 auto; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px; overflow-x: auto; padding: 0 16px 6px;
  scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 34%; z-index: 2; width: 40px; height: 40px; display: none; place-items: center; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: var(--lift); border: 1px solid var(--line);
}
.rail-btn[data-rail="-1"] { left: 2px; }
.rail-btn[data-rail="1"] { right: 2px; }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.head-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Empty shop: opening soon ---------- */
.opening {
  display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 28px; margin: 28px 0 12px; padding: 32px 36px;
  border-radius: 24px; background: linear-gradient(135deg, #f1faf4 0%, #fff 60%); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(6, 40, 20, .04);
}
.opening-art { width: 100%; aspect-ratio: 1; object-fit: contain; }
.opening-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.opening h2 { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 6px 0 8px; color: var(--ink); }
.opening p { color: var(--ink-2); line-height: 1.55; }
@media (max-width: 640px) {
  .opening { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 20px; gap: 12px; }
  .opening-art { width: 140px; }
  .opening h2 { font-size: 21px; }
}

/* ---------- Product card ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.card-media {
  position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--sheen); border: 1px solid var(--line); margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(6, 40, 20, .04), inset 0 1px 0 #fff;
}
.card-media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; border-radius: inherit; background: #fff;
  transition: transform .35s var(--ease-out);
}
.card:hover .card-media > img { transform: scale(1.05); }
.img-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--canvas); color: var(--line-2); border-radius: inherit; }
.img-fallback .ic { width: 36%; height: 36%; stroke-width: 1.2; }
.tag-off {
  position: absolute; top: -1px; left: 8px; z-index: 1; display: grid; place-items: center; width: 34px; padding: 4px 0 7px;
  background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1.05; text-align: center; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 83% 90%, 67% 100%, 50% 90%, 33% 100%, 17% 90%, 0 100%);
}
.tag-off small { font-size: 8.5px; font-weight: 800; }
.card .ctl { position: absolute; right: 6px; bottom: -14px; z-index: 2; perspective: 400px; }
.card-chips { display: flex; gap: 4px; flex-wrap: wrap; min-height: 18px; overflow: hidden; max-height: 18px; }
.chip-s {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 6px; background: var(--canvas);
  font-size: 10.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.card-name {
  font-size: 13px; font-weight: 600; line-height: 1.3; margin: 6px 0 4px; min-height: 34px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.eta-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.eta-chip .ic { width: 12px; height: 12px; stroke-width: 2.4; color: var(--brand); }
.card-size { display: none; }
.card-foot { margin-top: auto; padding-top: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 1.2; }
.price b { font-size: 14.5px; font-weight: 800; }
.price b small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.price s { font-size: 12px; color: var(--muted); }
.add {
  height: 34px; min-width: 68px; padding: 0 14px; border: 1px solid var(--brand); border-radius: 9px;
  color: var(--brand); background: #fff; font-weight: 800; font-size: 13.5px; letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(6, 40, 20, .14); transition: background-color .15s, transform .2s var(--spring);
}
.add:hover { background: var(--brand-tint); }
.add:active { transform: scale(.94); }
.stepper {
  display: inline-flex; align-items: center; height: 34px; background: var(--brand); color: #fff; border-radius: 9px;
  font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; box-shadow: 0 3px 10px rgba(6, 40, 20, .2);
  transform-origin: 50% 50%;
}
.stepper button { width: 30px; height: 100%; display: grid; place-items: center; color: #fff; border-radius: 9px; }
@media (hover: hover) { .stepper button:hover { background: var(--brand-hover); } }
.stepper .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper span { min-width: 16px; text-align: center; }
.stepper.wide span { min-width: 44px; }
.stepper button:disabled { opacity: .45; cursor: not-allowed; background: none; }
.sold-out {
  display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 9px; background: #fff;
  border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap;
}
.out-note { display: block; color: var(--danger) !important; font-weight: 800; }
.stepper.flip { animation: flipIn .42s var(--spring); }
@keyframes flipIn { from { transform: rotateX(-100deg); opacity: .2; } }

/* ---------- Category page & search results ---------- */
.listing { display: grid; grid-template-columns: 84px minmax(0, 1fr); min-height: 70vh; background: var(--canvas); }
.side-nav {
  position: sticky; top: var(--sticky-top, 70px); align-self: start; height: calc(100dvh - var(--sticky-top, 70px) - var(--dock-h));
  overflow-y: auto; background: #fff; border-right: 1px solid var(--line); scrollbar-width: none; padding-bottom: 12px;
}
.side-nav::-webkit-scrollbar { display: none; }
.side-link {
  position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; padding: 10px 4px; text-align: center;
  font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--ink-2);
}
.side-link .sl-pic { width: 52px; height: 52px; border-radius: 50%; background: var(--tile-bg); overflow: hidden; transition: transform .25s var(--spring); }
.side-link .sl-pic img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.side-link .sl-count { display: none; }
.side-link:hover .sl-pic { transform: scale(1.06); }
.side-link.on { color: var(--brand); font-weight: 800; background: var(--brand-tint-2); }
.side-link.on::after { content: ''; position: absolute; right: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px 0 0 4px; background: var(--brand); }
.side-link.on .sl-pic { background: #d3efdd; }
.listing.no-side { grid-template-columns: minmax(0, 1fr); }
.listing.no-side .side-nav { display: none; }
.listing-main { min-width: 0; padding: 12px 10px 24px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0 2px; }
.list-title { min-width: 0; }
.list-head h1 { font-size: 17px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.list-head .muted { font-size: 12px; }
.sort { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); flex: none; }
.sort span { display: none; }
.sort select { width: auto; height: 36px; font-size: 13px; font-weight: 700; padding: 0 8px; color: var(--ink); border-radius: 9px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid .card { padding: 8px 8px 10px; border-radius: 14px; background: #fff; }
.grid .card-media { border: 0; background: #fff; }
.more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.more-wrap:empty { display: none; }
.empty { text-align: center; padding: 56px 16px; display: grid; justify-items: center; gap: 8px; }
.empty h2 { font-size: 18px; }
.empty p { color: var(--muted); max-width: 360px; }
main { min-height: 60vh; padding-bottom: calc(var(--dock-h) + 24px); overflow-x: clip; } /* 3D reveals must not widen the page */

/* All categories page */
.cats-page { padding-top: 16px; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.cats-page .cat-section:first-child { margin-top: 16px; }

.store-note {
  display: flex; align-items: center; gap: 12px; margin-top: 32px; padding-top: 18px; padding-bottom: 6px;
  border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px;
}
.store-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.store-note .free-note { color: var(--brand); font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--canvas); padding: 28px 0 calc(var(--dock-h) + 28px); color: var(--ink-2); font-size: 13.5px; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand .logo-word { color: var(--brand); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo img { width: 36px; height: 36px; }
.site-footer h2 { font-size: 15px; color: var(--ink); margin-bottom: 12px; font-weight: 800; }
.site-footer p { margin-bottom: 8px; line-height: 1.55; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.footer-links button { text-align: left; color: var(--ink-2); font-size: 13px; }
.footer-links button:hover { color: var(--brand); text-decoration: underline; }

/* Dark footer: "Get to Know Us" column (the only place the seller links appear) */
.site-footer { background: #1d2520; color: #c9d1cc; }
.site-footer h2 { color: #fff; }
.site-footer .muted { color: #9aa59f; }
.footer-brand .logo-word { color: #fff; }
.footer-links button, .site-footer .text-btn { color: #c9d1cc; }
.footer-links button:hover, .site-footer .text-btn:hover { color: #fff; }
.footer-know ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-know a, .footer-know button { color: #dde3df; font-size: 14px; text-decoration: none; text-align: left; padding: 0; background: none; border: 0; font: inherit; cursor: pointer; }
.footer-know a:hover, .footer-know button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.1fr 1.6fr .9fr; gap: 40px; } }

/* ---------- Dock: cart button, free-delivery bar and navigation (phones) ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; pointer-events: none; }
.dock > * { pointer-events: auto; }
.cart-pill {
  justify-self: center; display: flex; align-items: center; gap: 10px; height: 54px; margin-bottom: 10px; padding: 0 8px 0 7px;
  min-width: 210px; max-width: calc(100% - 32px); border-radius: 999px; background: var(--brand); color: #fff; text-align: left;
  box-shadow: 0 10px 26px rgba(6, 60, 30, .35); animation: pillIn .45s var(--spring);
}
@keyframes pillIn { from { transform: perspective(500px) translateY(30px) rotateX(-60deg); opacity: 0; } }
.cart-pill > .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .16); stroke-width: 2.4; }
.cb-thumbs { display: flex; }
.cb-thumbs > span { position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid var(--brand); margin-left: -14px; }
.cb-thumbs > span:first-child { margin-left: 0; }
.cb-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cb-thumbs .img-fallback .ic { width: 55%; height: 55%; }
.cb-text { flex: 1; display: grid; line-height: 1.2; padding-right: 6px; }
.cb-text b { font-size: 15px; font-weight: 800; }
.cb-text small { font-size: 12.5px; font-weight: 600; opacity: .92; }
.dealbar {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px; background: var(--brand-tint);
  border-top: 1px solid #cfe9da; transform-origin: 50% 100%;
}
.dealbar.enter { animation: dealIn .55s var(--spring); }
@keyframes dealIn { from { transform: perspective(600px) rotateX(-75deg); opacity: 0; } }
.dealbar-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand); flex: none; box-shadow: 0 2px 6px rgba(6, 40, 20, .08); }
.dealbar-ic .ic { width: 26px; height: 26px; stroke-width: 1.9; }
.dealbar-text { flex: 1; min-width: 0; display: grid; text-align: left; line-height: 1.25; }
.dealbar-text b { font-size: 14.5px; font-weight: 800; color: var(--brand); }
.dealbar-text span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dealbar-text span::after { content: ' ›'; font-weight: 800; color: var(--muted); }
.dealbar-bar { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: #cfe9da; overflow: hidden; font-style: normal; }
.dealbar-bar i { display: block; height: 100%; border-radius: 2px; background: var(--brand); transition: width .5s var(--ease-out); }
.dealbar-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink); flex: none; }
.dealbar-x .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.bnav {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -4px 16px rgba(6, 40, 20, .06);
}
.bnav-item {
  position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.bnav-item .ic { width: 24px; height: 24px; stroke-width: 1.7; transition: transform .3s var(--spring); }
.bnav-item.on { color: var(--brand); font-weight: 800; }
.bnav-item.on .ic { stroke-width: 2.2; transform: translateY(-1px); }
.bnav-item.on::before { content: ''; position: absolute; top: 0; left: 50%; width: 44px; margin-left: -22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.bnav-item:active .ic { transform: scale(.88); }

/* ---------- Drawer (cart, orders, tracking) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6, 24, 14, .5); z-index: 40; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; height: 100dvh; width: min(440px, 100%); z-index: 50;
  background: #f1f5f3; display: flex; flex-direction: column; box-shadow: var(--pop);
  transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease-out), visibility 0s linear .3s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .3s var(--ease-out), visibility 0s; }
.drawer:focus-visible { box-shadow: var(--pop); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 60px; padding: 0 8px 0 18px; background: var(--surface); flex: none; }
.drawer-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.drawer-body { flex: 1; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 12px; }
.drawer-foot { background: var(--surface); padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; flex: none; box-shadow: 0 -4px 16px rgba(6, 40, 20, .06); }
.drawer-foot:empty { display: none; }
.sec { background: var(--surface); padding: 14px 16px; border-radius: var(--radius-lg); }
.sec-title { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.saving { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #e3f3ff; color: #1c5d99; font-size: 13.5px; font-weight: 800; padding: 10px 16px; border-radius: var(--radius-lg); }
.saving.green { background: var(--brand-tint); color: var(--brand); }
.eta { display: flex; align-items: center; gap: 12px; }
.eta-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.eta-ic .ic { width: 24px; height: 24px; }
.eta b { display: block; font-size: 15px; font-weight: 800; }
.eta small { color: var(--muted); font-size: 12.5px; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.line:first-of-type { margin-top: 8px; }
.line + .line { border-top: 1px solid var(--line); }
.mini { position: relative; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; flex: none; background: #fff; }
.mini img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mini .img-fallback .ic { width: 50%; height: 50%; }
.line-info { flex: 1; min-width: 0; }
.line-info p { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.line-info small { color: var(--muted); font-size: 12px; }
.line-r { display: grid; justify-items: end; gap: 6px; flex: none; }
.line-price { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.line-price s { font-weight: 500; color: var(--muted); font-size: 12px; margin-right: 4px; }
.add-more { display: flex; align-items: center; gap: 6px; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); color: var(--brand); font-weight: 800; }
.progress-note { font-size: 13.5px; font-weight: 600; }
.bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13px; font-weight: 700; background: #fff; }
.chip:hover { background: var(--canvas); }
.chip.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13.5px; color: var(--ink-2); }
.bill-row > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.bill-row .ic { width: 16px; height: 16px; color: var(--muted); }
.bill-row s { color: var(--muted); margin-right: 6px; }
.bill-row .free { color: var(--brand); font-weight: 800; }
.bill-row.total { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--ink); font-weight: 800; font-size: 15px; }
.bill-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.bill-note.err { color: var(--danger); }
.pay-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px;
  cursor: pointer; margin-top: 8px; transition: border-color .15s, background-color .15s;
}
.pay-opt:first-of-type { margin-top: 0; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint-2); }
.pay-opt input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.pay-opt .ic { color: var(--muted); }
.pay-opt b { display: block; font-size: 14px; }
.pay-opt small { color: var(--muted); font-size: 12.5px; }
.deliver-to { display: flex; align-items: center; gap: 10px; }
.deliver-to > .ic { color: var(--brand); }
.deliver-to div { flex: 1; min-width: 0; }
.deliver-to small { color: var(--muted); font-size: 12px; }
.deliver-to p { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-cta {
  display: flex; justify-content: space-between; align-items: center; height: var(--h-lg); width: 100%; padding: 0 16px;
  border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 15.5px; transition: background-color .15s, transform .2s var(--spring);
}
.pay-cta:hover { background: var(--brand-hover); }
.pay-cta:active { transform: scale(.98); }
.pay-cta:disabled { background: var(--line); color: var(--ink-2); cursor: not-allowed; }
.pay-cta.center { justify-content: center; }
.pay-cta small { display: block; font-size: 11px; font-weight: 700; opacity: .9; text-align: left; letter-spacing: .04em; }
.pay-cta .go { display: inline-flex; align-items: center; gap: 4px; }
.empty-panel { text-align: center; padding: 48px 24px; display: grid; justify-items: center; gap: 8px; background: var(--surface); border-radius: var(--radius-lg); }
.empty-panel h3 { font-size: 17px; font-weight: 800; }
.empty-panel p { color: var(--muted); margin-bottom: 8px; }
.empty-art { width: 120px; height: 120px; object-fit: contain; margin-bottom: 4px; animation: bob 5s ease-in-out infinite; }

/* ---------- Tracking ---------- */
.status-head { display: grid; gap: 4px; }
.status-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.status-head p { color: var(--muted); }
.status-head.bad h3 { color: var(--danger); }
.status-head.good h3 { color: var(--brand); }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 18px; color: var(--muted); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--brand); }
.t-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); display: grid; place-items: center; flex: none; }
.t-dot .ic { width: 14px; height: 14px; stroke-width: 2.6; color: #fff; }
.timeline li.done { color: var(--ink); }
.timeline li.done .t-dot { background: var(--brand); border-color: var(--brand); }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline li.now .t-dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.timeline .t-text { flex: 1; display: flex; justify-content: space-between; gap: 8px; padding-top: 2px; }
.timeline time { font-size: 12.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.partner { display: grid; gap: 6px; font-size: 13.5px; }
.partner .row { display: flex; align-items: center; gap: 8px; }
.partner .ic { color: var(--muted); }
.partner a { font-weight: 700; }
.track-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* ---------- My orders ---------- */
.order-row { display: grid; gap: 10px; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order-top b { display: block; }
.order-top small { color: var(--muted); font-size: 12.5px; }
.status-text { font-size: 12.5px; font-weight: 800; white-space: nowrap; color: var(--brand); }
.status-text.s-cancelled, .status-text.s-issue { color: var(--danger); }
.status-text.s-awaiting_payment { color: var(--warn); }
.order-thumbs { display: flex; gap: 6px; }
.order-thumbs > span { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; place-items: center; font-size: 12px; color: var(--muted); background: #fff; }
.order-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.order-thumbs .img-fallback .ic { width: 50%; height: 50%; }
.order-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; }
.order-actions { display: flex; gap: 6px; }

/* ---------- Dialogs ---------- */
dialog.modal {
  border: 0; padding: 0; border-radius: var(--radius-xl); width: min(440px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  color: var(--ink); background: var(--surface); box-shadow: var(--pop);
}
dialog.modal[open] { animation: dlgIn .32s var(--spring); }
@keyframes dlgIn { from { opacity: 0; transform: perspective(900px) rotateX(14deg) translateY(24px) scale(.97); } }
dialog.modal-sm { width: min(380px, calc(100% - 24px)); }
dialog.modal::backdrop { background: rgba(6, 24, 14, .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 60px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; font-weight: 800; }
.modal-body { padding: 18px 20px 20px; }
.otp-boxes { display: flex; gap: 10px; }
.otp-boxes input {
  width: 52px; height: 52px; text-align: center; font-size: 22px; font-weight: 800; border: 1px solid var(--line-2);
  border-radius: 12px; font-variant-numeric: tabular-nums;
}
.otp-boxes input:focus { border-color: var(--brand); box-shadow: var(--focus); }
.shake { animation: shake .3s; }
@keyframes shake { 25%, 75% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
.back { justify-self: start; }
.area-list { list-style: none; margin: -8px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; max-height: 252px; overflow-y: auto; }
.area-opt { display: grid; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.area-opt b { font-size: 14px; font-weight: 700; }
.area-opt small { font-size: 12.5px; color: var(--muted); }
.area-opt:hover, .area-opt.on { background: var(--brand-tint); }
.area-empty { padding: 10px; font-size: 13.5px; color: var(--muted); }
.area-quote { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid #cfe9da; background: var(--brand-tint-2); border-radius: 12px; font-size: 13.5px; }
.area-quote small { color: var(--muted); }
.field-pin { max-width: 160px; }
.pay-amount { font-size: 15px; }
.prose p { margin-bottom: 12px; line-height: 1.6; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 16px); z-index: 100; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  font-size: 13.5px; font-weight: 600; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.lock .toast { bottom: auto; top: 16px; transform: translate(-50%, -8px); } /* never cover the cart panel's buttons */
body.lock .toast.show { transform: translate(-50%, 0); }

/* ---------- 3D motion (motion.js) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; color: #fff; cursor: pointer; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 40%, #0c8f47, #05502a 75%);
  perspective: 1000px;
}
.intro.out { animation: introOut .55s var(--ease-out) forwards; pointer-events: none; }
.intro.out { animation-duration: .3s; }
@keyframes introOut { to { opacity: 0; transform: rotateX(18deg) translateY(-6%) scale(1.08); } }
.intro-stage { display: grid; justify-items: center; gap: 18px; transform-style: preserve-3d; }
/* Logo: rings ripple out, the logo flips in with a bounce, a shine sweeps across it, then it breathes once */
.intro-logo-wrap { position: relative; width: 150px; height: 150px; display: grid; place-items: center; transform-style: preserve-3d; }
.intro-ring {
  position: absolute; inset: 10px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .55); opacity: 0;
  animation: ringOut .6s cubic-bezier(.2, .7, .3, 1) forwards;
}
.intro-ring.r1 { animation-delay: .2s; }
.intro-ring.r2 { animation-delay: .27s; border-color: rgba(140, 240, 170, .5); }
.intro-ring.r3 { animation-delay: .34s; border-width: 2px; }
@keyframes ringOut { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.intro-logo-spin {
  position: relative; width: 150px; height: 150px; transform-style: preserve-3d;
  animation: logoIn .5s cubic-bezier(.3, 1.4, .5, 1) both, logoBreathe .2s .5s ease-in-out both;
}
.intro-logo { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 30px rgba(0, 30, 12, .4)); }
@keyframes logoIn {
  0% { transform: translateY(-60px) rotateY(-540deg) rotateZ(-25deg) scale(.2); opacity: 0; }
  25% { opacity: 1; }
  70% { transform: translateY(6px) rotateY(10deg) rotateZ(4deg) scale(1.1); }
  85% { transform: translateY(-3px) rotateY(-4deg) rotateZ(-2deg) scale(.97); }
  100% { transform: none; }
}
@keyframes logoBreathe { 50% { transform: scale(1.07); } }
.intro-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(assets/brand/mark-white-512.png) center / contain no-repeat; mask: url(assets/brand/mark-white-512.png) center / contain no-repeat;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .95) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: screen;
  animation: shine .3s .38s ease-in-out forwards;
}
@keyframes shine { to { background-position: -50% 0; } }
.intro-word { display: flex; font-size: 46px; font-weight: 800; letter-spacing: -.01em; line-height: 1; perspective: 500px; }
.intro-word span { display: inline-block; transform-origin: 50% 100%; animation: letterIn .25s var(--spring) both; }
.intro-word span:nth-child(1) { animation-delay: .22s; } .intro-word span:nth-child(2) { animation-delay: .245s; }
.intro-word span:nth-child(3) { animation-delay: .27s; } .intro-word span:nth-child(4) { animation-delay: .295s; }
.intro-word span:nth-child(5) { animation-delay: .32s; } .intro-word span:nth-child(6) { animation-delay: .345s; }
.intro-word span:nth-child(7) { animation-delay: .37s; } .intro-word span:nth-child(8) { animation-delay: .395s; }
.intro-word span:nth-child(9) { animation-delay: .42s; }
@keyframes letterIn { from { transform: rotateX(-95deg) translateY(10px); opacity: 0; } }
.intro-sub { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; opacity: 0; animation: fadeUp .25s .42s var(--ease-out) forwards; }
@keyframes fadeUp { from { transform: translateY(8px); } to { opacity: .9; transform: none; } }

.motion [data-reveal] { opacity: 0; transform: perspective(1000px) rotateX(10deg) translateY(26px); transform-origin: 50% 0; transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.fly-x { position: fixed; z-index: 150; left: 0; top: 0; pointer-events: none; will-change: transform; perspective: 400px; }
.fly {
  width: 58px; height: 58px; border-radius: 14px; overflow: hidden; pointer-events: none;
  background: #fff; box-shadow: 0 10px 24px rgba(6, 40, 20, .28); will-change: transform;
}
.fly img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.fly .img-fallback .ic { width: 50%; height: 50%; }
.bump { animation: bump .5s var(--spring); }
@keyframes bump { 35% { transform: perspective(400px) scale(1.1) rotateX(16deg); } 70% { transform: scale(.97); } }
.roll { animation: roll .55s var(--spring); }
@keyframes roll { from { transform: perspective(400px) rotateX(90deg); opacity: 0; } }
.celebrate {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; pointer-events: none; perspective: 900px;
}
.celebrate-badge {
  width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #22c56a, var(--brand) 70%); box-shadow: 0 20px 40px rgba(6, 60, 30, .35);
  animation: badgeIn 1.5s var(--spring) forwards;
}
.celebrate-badge .ic { width: 58px; height: 58px; stroke-width: 2.6; }
@keyframes badgeIn {
  0% { transform: rotateY(-180deg) scale(.3); opacity: 0; }
  35% { transform: rotateY(0) scale(1.08); opacity: 1; }
  75% { transform: rotateY(0) scale(1); opacity: 1; }
  100% { transform: rotateY(0) scale(.9) translateY(-20px); opacity: 0; }
}
.confetti { position: absolute; left: 50%; top: 50%; width: 8px; height: 12px; border-radius: 2px; animation: confetti 1.3s var(--ease-out) forwards; }
@keyframes confetti {
  from { transform: translate(-50%, -50%) rotateX(0) rotateZ(0); opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotateX(720deg) rotateZ(var(--r)); opacity: 0; }
}

/* ---------- Cart: delivery instructions, change for cash ---------- */
.rider-note { margin-top: 12px; }
.cash-for { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cash-change { font-size: 13px; color: var(--brand); }
.bill-note.edited { color: var(--warn); font-weight: 600; }

/* ---------- Tablet and up ---------- */
@media (min-width: 640px) {
  .feat-rail { grid-auto-columns: calc((100% - 48px) / 5); }
  .picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .deals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing { grid-template-columns: 104px minmax(0, 1fr); }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  html { scroll-padding-top: 150px; }
  .wrap, .container, .hdr-in { padding: 0 24px; }
  .hdr { top: 0; }
  .hdr-in { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "logo loc search actions" "tabs tabs tabs tabs"; column-gap: 24px; align-items: center; }
  .hdr-top { display: contents; }
  .logo-text { display: block; }
  .logo-mark { width: 46px; height: 46px; }
  .logo { display: flex; grid-area: logo; padding: 14px 24px 14px 0; border-right: 1px solid rgba(255, 255, 255, .25); }
  .loc { grid-area: loc; max-width: 270px; }
  .loc-kicker { display: none; }
  .loc-eta { font-size: 19px; margin: 0 0 3px; }
  .loc-eta::before { content: 'Delivery in '; }
  .loc-eta.no-eta::before { content: none; }
  .search-row { grid-area: search; padding: 0; }
  .hdr-actions { grid-area: actions; align-self: center; gap: 18px; }
  .acct-avatar { width: 40px; height: 40px; }
  .acct-label { display: block; }
  .cart-btn { display: flex; }
  .qtabs { grid-area: tabs; margin: 4px 0 0; padding: 0; justify-content: flex-start; }
  .qtab { flex: 0 0 auto; min-width: 96px; }
  .shop.listing-view .hdr-top { display: contents; }
  .shop.listing-view .qtabs { display: flex; }
  .shop.listing-view .back-btn { display: none; }
  .shop.listing-view .search-row { padding-top: 0; }

  .feat-rail-wrap { padding-top: 22px; }
  .feat-rail { grid-auto-columns: calc((100% - 80px) / 6); gap: 16px; }
  .feat-title { font-size: 17px; margin-top: 30px; }
  .block { margin-top: 32px; }
  .block-title { font-size: 22px; }
  .picks { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .pick-name { font-size: 14px; }
  .theme-title { font-size: 40px; }
  .theme-rail { grid-auto-columns: 168px; gap: 14px; padding: 18px 24px 22px; justify-content: center; }
  .theme-card { min-height: 196px; }
  .theme-card b { font-size: 14px; }
  .deals { gap: 14px; padding: 14px; }
  .deal { min-height: 150px; padding: 14px; }
  .deal-title { font-size: 17px; }
  .deal-imgs > span { width: 70px; height: 70px; }
  .cat-section { margin-top: 36px; }
  .cat-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px 16px; }
  .tile-name { font-size: 13px; }
  .shelf { margin-top: 36px; }
  .shelf .block-head { padding: 0 24px; }
  .rail { grid-auto-columns: 180px; gap: 14px; padding: 0 24px 8px; scroll-padding: 0 24px; }
  .rail-btn { display: grid; }
  .rail-btn[data-rail="-1"] { left: 6px; }
  .rail-btn[data-rail="1"] { right: 6px; }

  .listing { max-width: 1280px; margin: 0 auto; grid-template-columns: 240px minmax(0, 1fr); background: none; padding: 0 24px; gap: 0; }
  .side-nav { height: calc(100vh - var(--sticky-top, 130px)); border-right: 1px solid var(--line); }
  .side-link { grid-template-columns: 52px 1fr auto; justify-items: start; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; text-align: left; font-size: 13.5px; }
  .side-link .sl-pic { width: 52px; height: 52px; border-radius: 14px; }
  .side-link .sl-count { display: block; font-size: 12px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
  .listing-main { padding: 18px 0 32px 22px; background: none; }
  .list-head h1 { font-size: 22px; }
  .sort span { display: block; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px 14px; }
  .grid .card { padding: 0; background: none; }
  .grid .card-media { border: 1px solid var(--line); }

  .footer-grid { grid-template-columns: 1fr 2.2fr .9fr; gap: 48px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dock { left: auto; right: 24px; bottom: 20px; width: 420px; }
  .bnav, .cart-pill { display: none !important; }
  .dealbar { border: 1px solid #cfe9da; border-radius: 16px; box-shadow: var(--pop); }
  main { padding-bottom: 48px; }
  .site-footer { padding-bottom: 32px; }
}

@media (max-width: 380px) {
  .loc-eta { font-size: 26px; }
  .feat-title { font-size: 13.5px; }
  .otp-boxes input { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .intro { display: none !important; }
}

/* ---------- Product page (opens from a product's picture or name) ---------- */
.card-open { all: unset; cursor: pointer; display: block; }
.card-open:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.card-open:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.card .card-media { cursor: pointer; }
dialog.modal-product { width: min(920px, calc(100% - 24px)); display: none; flex-direction: column; overflow: hidden; }
dialog.modal-product[open] { display: flex; }
.pd-head-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pd-body { overflow-y: auto; overscroll-behavior: contain; }
.pdp { display: grid; gap: 20px; }
.pdp-media { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.pdp-media > img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.pdp-media .tag-off { top: 12px; left: 12px; }
.pdp-cat { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--brand); }
.pdp-cat:hover { text-decoration: underline; }
.pdp-brand { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pdp-name { font-size: 22px; font-weight: 800; line-height: 1.25; margin: 4px 0 4px; }
.pdp-size { color: var(--ink-2); font-size: 14.5px; margin: 0 0 12px; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pdp-price > b { font-size: 28px; font-weight: 800; }
.pdp-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.pdp-mrp { color: var(--muted); font-size: 14px; }
.pdp-off { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-tint); padding: 2px 8px; border-radius: 999px; }
.pdp-tax { margin: 4px 0 14px; font-size: 12.5px; color: var(--muted); }
.pdp-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.pdp-buy .ctl { position: static; }
.pdp-buy .add, .pdp-buy .stepper { min-width: 140px; height: 44px; font-size: 15px; }
.pdp-buy .stepper { justify-content: space-between; }
.pdp-buy .stepper button { width: 44px; }
.pdp-stock { font-size: 13.5px; font-weight: 700; }
.pdp-stock.ok { color: var(--brand); }
.pdp-stock.low { color: #8a5a00; }
.pdp-stock.out { color: var(--danger); }
.pdp-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.pdp-promises { list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pdp-promises li { display: flex; align-items: center; gap: 8px; }
.pdp-promises .ic { color: var(--brand); }
.pdp-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pdp-sec h4 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.pdp-sec p { margin: 0 0 8px; line-height: 1.6; color: var(--ink-2); font-size: 14.5px; }
.pre { white-space: pre-line; }
.pdp-feats { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
.pd-list { margin: 0; display: grid; }
.pd-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-row:last-child { border-bottom: 0; }
.pd-row dt { color: var(--muted); font-weight: 600; }
.pd-row dd { margin: 0; color: var(--ink); }
.pdp-rail { grid-auto-columns: 160px; }
@media (min-width: 760px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
  .pdp-name { font-size: 26px; }
}
@media (max-width: 759px) {
  dialog.modal-product { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .pdp-media { max-width: 360px; width: 100%; justify-self: center; }
}
