/* ==========================================================================
   Jumla Cuts — Storefront design system
   Warm cream canvas · vibrant category colour · glass chrome · spring motion
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/jakarta.woff2") format("woff2");
}

:root {
  --ink: #17110E;
  --ink-2: #4B4340;
  --ink-3: #8C8380;
  --ink-4: #B9B0AC;
  --line: rgba(23, 17, 14, .08);
  --line-2: rgba(23, 17, 14, .14);
  --bg: #FFF7EF;
  --bg-2: #FBEEE2;
  --card: #FFFFFF;
  --glass: rgba(255, 249, 243, .78);

  --red: #F0283C;
  --red-2: #D4142A;
  --ember: #FF6A1A;
  --sun: #FFB800;
  --leaf: #17A957;
  --berry: #8B5CF6;
  --sky: #1E9BFF;
  --pink: #FF4F8B;
  --mpesa: #2FAE4E;

  --grad-hot: linear-gradient(135deg, #FF2D55 0%, #FF5A1F 48%, #FFB300 100%);
  --grad-berry: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --grad-sky: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  --grad-leaf: linear-gradient(135deg, #10B981 0%, #84CC16 100%);

  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-xs: 9px;

  --sh-1: 0 1px 2px rgba(80, 30, 10, .05), 0 2px 10px rgba(80, 30, 10, .05);
  --sh-2: 0 1px 2px rgba(80, 30, 10, .06), 0 12px 32px -12px rgba(80, 30, 10, .28);
  --sh-3: 0 30px 70px -20px rgba(60, 15, 5, .45);
  --sh-red: 0 12px 28px -10px rgba(240, 40, 60, .6);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --fast: 180ms;
  --med: 320ms;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-h: 64px;
  --header-h: 60px;
  --wrap: 1180px;
  --cat: var(--red);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 200ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 320ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
body.sheet-open { overflow: hidden; }
img, picture, svg { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sky) 70%, transparent); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.1; font-weight: 800; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* ── Announcement ───────────────────────────── */
.announce {
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; text-align: center;
  padding: 8px 16px; padding-top: calc(8px + var(--safe-t));
}
.announce b { color: var(--sun); }

/* ── Header (glass) ─────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color var(--med), box-shadow var(--med);
}
.hdr.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(80, 30, 10, .4); }
.hdr .wrap { display: flex; align-items: center; gap: 12px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.hdr-nav { display: none; gap: 4px; margin-left: 18px; }
.hdr-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); transition: background var(--fast), color var(--fast); }
.hdr-nav a:hover, .hdr-nav a.on { background: rgba(23, 17, 14, .06); color: var(--ink); }
.hdr-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: rgba(23, 17, 14, .05); transition: transform var(--fast) var(--ease), background var(--fast);
}
.icon-btn:hover { background: rgba(23, 17, 14, .09); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.cart-btn .count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg);
}
.cart-btn.bump { animation: bump 500ms var(--spring); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }

.deliver-to {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 10px 0 2px;
}
.deliver-to button { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--ink); }
.deliver-to svg { width: 14px; height: 14px; }
.pill-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--leaf); }
.pill-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2s infinite; }
.pill-live.closed { color: var(--ink-3); }
.pill-live.closed::before { animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(23, 169, 87, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(23, 169, 87, 0); } }

/* ── Buttons ────────────────────────────────── */
.btn {
  --b: var(--ink); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px; background: var(--b); color: var(--c);
  font-weight: 800; font-size: 16px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform var(--fast) var(--ease), box-shadow var(--med) var(--ease), filter var(--fast), opacity var(--fast);
  position: relative; overflow: hidden; user-select: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.965); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.btn-hot { background: var(--grad-hot); box-shadow: var(--sh-red); }
.btn-red { --b: var(--red); box-shadow: var(--sh-red); }
.btn-mpesa { --b: var(--mpesa); box-shadow: 0 12px 28px -10px rgba(47, 174, 78, .6); }
.btn-light { --b: #fff; --c: var(--ink); box-shadow: var(--sh-1); }
.btn-soft { --b: rgba(23, 17, 14, .06); --c: var(--ink); }
.btn-ghost { --b: transparent; --c: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:not(.loading) .spin { display: none; }
.btn .spin { width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; }
.btn.loading > :not(.spin) { opacity: 0; }
.btn.loading .spin { position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--red); font-weight: 700; }

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; margin-top: 12px; border-radius: var(--r-xl);
  background: var(--grad-hot); color: #fff; padding: 28px 22px 0; isolation: isolate;
  min-height: 460px; display: flex; flex-direction: column;
}
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 60%); z-index: -1; animation: drift 12s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -20%; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 62%); z-index: -1; animation: drift 14s ease-in-out infinite alternate-reverse;
}
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.1); } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; width: max-content; }
.hero-eyebrow i { width: 22px; height: 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--red); font-style: normal; font-size: 12px; }
.hero h1 { font-size: clamp(38px, 10.5vw, 72px); margin: 16px 0 12px; letter-spacing: -.045em; line-height: .98; }
.hero h1 em { font-style: normal; color: #FFF3B0; }
.hero p.lead { font-size: 17px; max-width: 30ch; opacity: .95; font-weight: 500; }
.hero-cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-cta .btn-light { color: var(--red); }
.hero-cta .btn { padding: 0 20px; }
.hero-cta .btn-glass { --b: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(8px); }
.hero-art { position: relative; height: 210px; margin-top: auto; }
.hero-plate {
  position: absolute; border-radius: 50%; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(80, 10, 0, .6); border: 5px solid rgba(255, 255, 255, .9);
  animation: float 6s ease-in-out infinite;
}
.hero-plate.a { width: 190px; height: 190px; left: 50%; bottom: -30px; margin-left: -95px; z-index: 2; }
.hero-plate.b { width: 120px; height: 120px; left: 2%; bottom: 40px; animation-delay: -2s; }
.hero-plate.c { width: 130px; height: 130px; right: 0; bottom: 34px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px) rotate(2deg); } }
.hero-stats { display: flex; gap: 18px; margin-top: 22px; font-size: 13px; font-weight: 600; opacity: .95; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 22px; letter-spacing: -.02em; }

/* ── Section headings ───────────────────────── */
.sec { margin-top: 40px; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-hd h2 { font-size: 26px; }
.sec-hd p { color: var(--ink-3); font-size: 14px; margin-top: 4px; font-weight: 500; }
.sec-hd a { font-weight: 800; color: var(--red); font-size: 15px; white-space: nowrap; }

/* ── Category tiles ─────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(5, minmax(128px, 1fr)); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar, .rail::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.cat {
  --c: var(--red); scroll-snap-align: start; position: relative; border-radius: var(--r-lg); padding: 14px; min-height: 150px; overflow: hidden;
  background: var(--c); color: #fff; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  box-shadow: 0 14px 30px -18px var(--c); transition: transform var(--med) var(--spring);
}
.cat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .28), transparent 50%); z-index: -1; }
.cat:active { transform: scale(.96); }
.cat h3 { font-size: 19px; }
.cat span { font-size: 12.5px; font-weight: 700; opacity: .95; line-height: 1.3; }
.cat .tagline { display: none; }
.cat .cat-img { position: absolute; width: 76px; height: 76px; right: -10px; bottom: -10px; border-radius: 50%; overflow: hidden; border: 4px solid rgba(255, 255, 255, .85); z-index: -1; transition: transform var(--med) var(--spring); }
.cat:hover .cat-img { transform: scale(1.08) rotate(-6deg); }

/* ── Product rail & cards ───────────────────── */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard {
  --c: var(--red); background: var(--card); border-radius: var(--r-lg); overflow: hidden; position: relative; box-shadow: var(--sh-1);
  display: flex; flex-direction: column; transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
  content-visibility: auto; contain-intrinsic-size: 300px;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pcard:active { transform: scale(.98); }
.pcard .ph { aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: var(--bg-2); }
.pcard .ph img { transition: transform 600ms var(--ease); }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .body { padding: 11px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.pcard h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.pcard .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 6px; }
.price { font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.price small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.price s { display: block; font-size: 12px; color: var(--ink-4); font-weight: 600; }
.add-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 8px 18px -8px var(--c); transition: transform var(--fast) var(--spring);
}
.add-btn:active { transform: scale(.85); }
.add-btn svg { width: 20px; height: 20px; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 800;
  padding: 5px 9px; border-radius: 999px; box-shadow: var(--sh-1); letter-spacing: -.01em;
}
.badge.hot { background: var(--c); color: #fff; }
.soldout { position: absolute; inset: 0; background: rgba(255, 247, 239, .72); backdrop-filter: grayscale(1); display: grid; place-items: center; font-weight: 800; z-index: 2; }
.soldout span { background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.lowstock { font-size: 11.5px; font-weight: 700; color: var(--ember); margin-top: 4px; }
.in-cart { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; padding: 5px 9px; border-radius: 999px; transform: scale(0); transition: transform var(--med) var(--spring); }
.in-cart.show { transform: scale(1); }

.img-ph {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 70%, #fff));
}
.img-ph::after { content: ""; width: 34%; height: 60%; background: url("../img/brand/cleaver.png") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .7; transform: rotate(-12deg); }

/* ── Bundles band ───────────────────────────── */
.band { border-radius: var(--r-xl); padding: 24px 18px; background: var(--grad-sky); color: #fff; position: relative; overflow: hidden; }
.band h2 { font-size: 28px; }
.band p { opacity: .9; margin-top: 6px; font-weight: 500; }
.band .rail { margin-top: 18px; }
.band .pcard { color: var(--ink); }

/* ── How it works / trust ───────────────────── */
.steps { display: grid; gap: 12px; }
.step { background: #fff; border-radius: var(--r-lg); padding: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--sh-1); }
.step .ico { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.step .ico svg { width: 26px; height: 26px; }
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust div { background: #fff; border-radius: var(--r-md); padding: 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--sh-1); }
.trust b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.trust svg { width: 26px; height: 26px; margin-bottom: 8px; }

.story { display: grid; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; }
.story .ph { aspect-ratio: 16 / 9; }
.story .txt { padding: 24px 20px 26px; }
.story h2 { font-size: 28px; }
.story p { color: rgba(255, 255, 255, .78); margin-top: 10px; }

/* ── Shop page ──────────────────────────────── */
.shop-hd { padding-top: 16px; }
.shop-hd h1 { font-size: 34px; }
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; margin-top: 14px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1);
  border: 1px solid var(--line); transition: box-shadow var(--med), border-color var(--med);
}
.search:focus-within { box-shadow: 0 0 0 4px rgba(240, 40, 60, .12); border-color: rgba(240, 40, 60, .4); }
.search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; min-width: 0; }
.chips-bar { position: sticky; top: var(--header-h); z-index: 30; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); margin: 0 -16px; padding: 10px 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip {
  --c: var(--ink); flex: none; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: inset 0 0 0 1px var(--line-2); transition: all var(--med) var(--ease); white-space: nowrap;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip.on { background: var(--c); color: #fff; box-shadow: 0 8px 18px -10px var(--c); }
.chip.on i { background: #fff; }
.cat-sec { padding-top: 22px; }
.cat-sec-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat-sec-hd .sw { width: 38px; height: 38px; border-radius: 12px; background: var(--c); display: grid; place-items: center; color: #fff; font-weight: 800; }
.cat-sec-hd h2 { font-size: 24px; }
.cat-sec-hd p { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-3); }
.empty svg { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--ink-4); }
.empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }

/* ── Tab bar (mobile) ───────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--glass); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ink-3); position: relative; transition: color var(--fast); }
.tabbar a svg { width: 24px; height: 24px; transition: transform var(--med) var(--spring); }
.tabbar a.on { color: var(--red); }
.tabbar a.on svg { transform: translateY(-1px) scale(1.06); }
.tabbar a:active svg { transform: scale(.85); }
.tabbar .count { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }

/* floating basket bar */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); z-index: 44;
  height: 60px; border-radius: 20px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 16px;
  box-shadow: var(--sh-3); transform: translateY(140%); opacity: 0; transition: transform 520ms var(--spring), opacity 300ms var(--ease);
}
.cartbar.show { transform: none; opacity: 1; }
.cartbar .n { width: 30px; height: 30px; border-radius: 10px; background: var(--red); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.cartbar .t { flex: 1; line-height: 1.15; }
.cartbar .t b { display: block; font-size: 16px; }
.cartbar .t span { font-size: 12px; opacity: .7; font-weight: 600; }
.cartbar .go { background: var(--grad-hot); height: 44px; padding: 0 18px; border-radius: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.cartbar .go svg { width: 18px; height: 18px; }
body.has-cartbar main { padding-bottom: 84px; }

/* ── Sheets ─────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20, 8, 4, .42); opacity: 0; pointer-events: none; transition: opacity 360ms var(--ease); backdrop-filter: blur(2px); }
.scrim.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 94vh; max-height: 94dvh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: var(--sh-3); transform: translateY(105%);
  transition: transform 480ms cubic-bezier(.2, .9, .25, 1); will-change: transform; padding-bottom: var(--safe-b);
}
.sheet.show { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet-grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 99px; background: rgba(23, 17, 14, .18); z-index: 5; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 6; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); display: grid; place-items: center; box-shadow: var(--sh-1); }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1; }
.sheet-hd { padding: 24px 20px 8px; }
.sheet-hd h2 { font-size: 26px; }
.sheet-hd p { color: var(--ink-3); margin-top: 4px; font-size: 14px; }
.sheet-body { padding: 8px 20px 20px; }
.sheet-foot { padding: 12px 16px calc(12px); border-top: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px); }

/* product sheet */
.ps-hero { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 28px 28px 0 0; background: var(--bg-2); }
.ps-hero picture, .ps-hero .img-ph { position: absolute; inset: 0; }
.ps-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0, 0, 0, .25)); }
.ps-main { padding: 18px 20px 8px; }
.ps-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.ps-main h2 { font-size: 30px; margin-top: 6px; }
.ps-main .sub { color: var(--ink-3); font-weight: 600; margin-top: 4px; }
.ps-price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.ps-price b { font-size: 24px; letter-spacing: -.03em; }
.ps-price s { color: var(--ink-4); font-weight: 600; }
.ps-price small { color: var(--ink-3); font-weight: 600; }
.ps-desc { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.ps-block { margin-top: 22px; }
.ps-block h4 { font-size: 15px; font-weight: 800; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.ps-block h4 span { font-size: 13px; color: var(--ink-3); font-weight: 600; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.stepper { display: flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); height: 52px; padding: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 17, 14, .05); transition: transform var(--fast) var(--spring), background var(--fast); }
.stepper button:active { transform: scale(.85); background: rgba(23, 17, 14, .1); }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 76px; text-align: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.stepper.sm { height: 38px; padding: 3px; }
.stepper.sm button { width: 32px; height: 32px; }
.stepper.sm output { min-width: 58px; font-size: 14px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.preset { height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 700; font-size: 14px; transition: all var(--fast) var(--ease); }
.preset.on { background: var(--ink); color: #fff; box-shadow: none; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  position: relative; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2);
  font-weight: 700; font-size: 14px; text-align: left; transition: all var(--fast) var(--ease); line-height: 1.2;
}
.opt small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.opt.on { box-shadow: inset 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); }
.opt.on small { color: var(--c); }

.field-note { width: 100%; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); padding: 14px 16px; min-height: 52px; resize: none; font-size: 15px; outline: 0; }
.field-note:focus { box-shadow: inset 0 0 0 2px var(--ink); }

.add-bar { display: flex; gap: 10px; align-items: center; }
.add-bar .btn { flex: 1; justify-content: space-between; padding: 0 22px; }
.add-bar .btn .amt { font-variant-numeric: tabular-nums; }

/* cart sheet */
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.cline {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 10px;
  box-shadow: var(--sh-1); transition: transform 360ms var(--ease), opacity 300ms, max-height 360ms var(--ease), margin 360ms, padding 360ms; max-height: 200px;
}
.cline.out { opacity: 0; transform: translateX(-30px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -10px; }
.cline .ph { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.cline h4 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.cline .meta { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-top: 2px; line-height: 1.3; }
.cline .lt { font-weight: 800; font-size: 15px; margin-top: 6px; }
.cline .err { font-size: 12px; font-weight: 700; color: var(--red); margin-top: 2px; }
.cline .notice { font-size: 12px; font-weight: 700; color: var(--ember); margin-top: 2px; }
.cline .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cline .rm { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.free-meter { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: var(--sh-1); margin-bottom: 12px; }
.free-meter p { font-size: 14px; font-weight: 700; }
.free-meter p b { color: var(--leaf); }
.free-meter > svg { width: 22px; height: 22px; flex: none; color: var(--red); }
.free-meter > svg:last-child { color: var(--ink-4); }
.meter { height: 8px; border-radius: 99px; background: rgba(23, 17, 14, .07); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-leaf); transition: width 700ms var(--spring); }
.totals { margin-top: 14px; background: #fff; border-radius: 18px; padding: 6px 16px; box-shadow: var(--sh-1); }
.totals div { display: flex; justify-content: space-between; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.totals div + div { border-top: 1px solid var(--line); }
.totals div span:last-child { white-space: nowrap; padding-left: 12px; }
.totals .grand { color: var(--ink); font-weight: 800; font-size: 18px; }
.totals .disc { color: var(--leaf); }
.upsell { margin-top: 18px; }
.upsell h4 { font-size: 15px; margin-bottom: 10px; }
.upsell .rail { grid-auto-columns: 150px; }
.mini { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-1); }
.mini .ph { aspect-ratio: 1; }
.mini div.t { padding: 8px 10px 10px; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.mini b { font-size: 13px; line-height: 1.2; display: block; }
.mini small { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.mini .add-btn { width: 32px; height: 32px; }
.mini .add-btn svg { width: 16px; height: 16px; }

/* ── Forms ──────────────────────────────────── */
.fld { position: relative; display: block; }
.fld input, .fld select, .fld textarea {
  width: 100%; height: 58px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2);
  padding: 22px 16px 6px; font-size: 16px; outline: 0; transition: box-shadow var(--fast); -webkit-appearance: none; appearance: none;
}
.fld textarea { height: auto; min-height: 84px; padding-top: 26px; resize: vertical; }
.fld select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238C8380' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.fld span { position: absolute; left: 16px; top: 18px; font-size: 16px; color: var(--ink-3); pointer-events: none; transition: all var(--fast) var(--ease); font-weight: 500; }
.fld input:focus, .fld select:focus, .fld textarea:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span, .fld select + span, .fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span { top: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.fld.err input { box-shadow: inset 0 0 0 2px var(--red); animation: shake 380ms; }
.fld .hint { display: block; font-size: 12.5px; color: var(--ink-3); margin: 6px 4px 0; font-weight: 500; }
.fld .msg { display: block; font-size: 12.5px; color: var(--red); margin: 6px 4px 0; font-weight: 700; }
.fld .pre { position: absolute; left: 16px; top: 26px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.fld.has-pre input { padding-left: 62px; }
.fld.has-pre span { left: 16px; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: grid; gap: 10px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(23, 17, 14, .06); border-radius: 16px; padding: 4px; position: relative; }
.seg button { height: 46px; border-radius: 12px; font-weight: 800; font-size: 15px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); transition: color var(--med); }
.seg button.on { color: var(--ink); }
.seg button svg { width: 19px; height: 19px; }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: #fff; box-shadow: var(--sh-1); transition: transform 420ms var(--spring), width 420ms var(--spring); }

/* ── Checkout ───────────────────────────────── */
.co { padding-top: 18px; padding-bottom: 150px; }
.co h1 { font-size: 34px; }
.co-grid { display: grid; gap: 14px; margin-top: 18px; }
.card { background: var(--card); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-1); }
.card-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-hd .n { width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; transition: background var(--med); }
.card-hd .n.done { background: var(--leaf); }
.card-hd h3 { font-size: 19px; }
.card-hd p { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.zone-list { display: grid; gap: 8px; }
.zone {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; width: 100%;
  transition: box-shadow var(--fast), background var(--fast);
}
.zone.on { box-shadow: inset 0 0 0 2px var(--red); background: rgba(240, 40, 60, .04); }
.zone .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); flex: none; display: grid; place-items: center; transition: all var(--fast); }
.zone.on .radio { box-shadow: inset 0 0 0 7px var(--red); }
.zone b { display: block; font-size: 15px; }
.zone small { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.zone .fee { margin-left: auto; font-weight: 800; font-size: 14px; white-space: nowrap; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px 6px; }
.day { flex: none; min-width: 76px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; transition: all var(--fast); }
.day b { display: block; font-size: 15px; }
.day small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.day.on { background: var(--ink); color: #fff; box-shadow: none; }
.day.on small { color: rgba(255, 255, 255, .7); }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.slot { height: 46px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 700; font-size: 14px; transition: all var(--fast); }
.slot.on { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); background: rgba(240, 40, 60, .04); }
.express { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 106, 26, .1), rgba(255, 184, 0, .12)); box-shadow: inset 0 0 0 1px rgba(255, 106, 26, .25); text-align: left; transition: all var(--fast); }
.express.on { box-shadow: inset 0 0 0 2px var(--ember); }
.express .bolt { width: 40px; height: 40px; border-radius: 12px; background: var(--grad-hot); display: grid; place-items: center; color: #fff; flex: none; }
.express b { display: block; }
.express small { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.or-slot { text-align: center; font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin: 14px 0 10px; text-transform: uppercase; letter-spacing: .08em; }

.pay-list { display: grid; gap: 10px; }
.pay {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; width: 100%;
  transition: all var(--med) var(--ease);
}
.pay .logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; flex: none; }
.pay b { display: block; font-size: 16px; }
.pay small { color: var(--ink-3); font-weight: 600; font-size: 12.5px; line-height: 1.3; display: block; }
.pay .radio { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); flex: none; transition: all var(--med) var(--spring); }
.pay.on { box-shadow: inset 0 0 0 2px var(--pc, var(--ink)); background: color-mix(in srgb, var(--pc, var(--ink)) 5%, #fff); }
.pay.on .radio { box-shadow: inset 0 0 0 7px var(--pc, var(--ink)); }
.pay-extra { overflow: hidden; max-height: 0; transition: max-height 420ms var(--ease), margin 420ms var(--ease); }
.pay-extra.open { max-height: 160px; margin-top: 4px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .fld { flex: 1; }
.promo-ok { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(23, 169, 87, .08); border-radius: 14px; color: var(--leaf); font-weight: 700; font-size: 14px; }
.promo-ok button { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.summary-items { display: grid; gap: 10px; }
.si { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.si .ph { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; background: var(--bg-2); }
.si .nm { flex: 1; font-weight: 700; line-height: 1.25; }
.si .nm small { display: block; color: var(--ink-3); font-weight: 600; font-size: 12px; }
.si .amt { font-weight: 800; }

.paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--glass); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-top: 1px solid var(--line);
}
.paybar .inner { max-width: 640px; margin: 0 auto; }
.paybar .fine { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 8px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.paybar .fine svg { width: 13px; height: 13px; }
body.checkout-page { padding-bottom: 0; }
body.checkout-page .tabbar, body.checkout-page .cartbar { display: none; }

/* STK / payment state overlay */
.paystate { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease); }
.paystate.show { opacity: 1; pointer-events: auto; }
.paystate h2 { font-size: 28px; margin-top: 26px; }
.paystate p { color: var(--ink-2); margin-top: 8px; max-width: 32ch; }
.paystate .actions { display: grid; gap: 10px; margin-top: 28px; width: 100%; max-width: 360px; }
.phone-anim { position: relative; width: 120px; height: 200px; border-radius: 26px; background: var(--ink); box-shadow: var(--sh-3); padding: 10px; }
.phone-anim .scr { width: 100%; height: 100%; border-radius: 18px; background: linear-gradient(160deg, #2FAE4E, #1B7F36); display: grid; place-items: center; overflow: hidden; position: relative; }
.phone-anim .scr span { color: #fff; font-weight: 900; font-size: 15px; letter-spacing: .02em; }
.phone-anim .prompt { position: absolute; left: 8px; right: 8px; top: 30%; background: #fff; border-radius: 10px; padding: 8px; font-size: 9px; text-align: left; color: var(--ink); font-weight: 700; animation: prompt 2.6s var(--ease) infinite; box-shadow: var(--sh-2); }
.phone-anim .prompt i { display: block; height: 6px; border-radius: 3px; background: #E6E1DE; margin-top: 5px; }
.phone-anim .prompt i:last-child { width: 60%; }
@keyframes prompt { 0% { transform: translateY(40px) scale(.9); opacity: 0; } 20%, 80% { transform: none; opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.rings { position: absolute; inset: -30px; border-radius: 50%; }
.rings::before, .rings::after { content: ""; position: absolute; inset: 0; border-radius: 40%; border: 2px solid rgba(47, 174, 78, .35); animation: ring 2.4s ease-out infinite; }
.rings::after { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.countdown { margin-top: 18px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 14px; }
.big-check { width: 120px; height: 120px; border-radius: 50%; background: var(--grad-leaf); display: grid; place-items: center; box-shadow: 0 24px 50px -14px rgba(23, 169, 87, .7); animation: pop 700ms var(--spring) both; }
.big-check svg { width: 64px; height: 64px; color: #fff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 500ms 250ms var(--ease) forwards; }
.big-x { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #FF6A1A, #F0283C); display: grid; place-items: center; animation: pop 600ms var(--spring) both; box-shadow: var(--sh-red); }
.big-x svg { width: 56px; height: 56px; color: #fff; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Tracking ───────────────────────────────── */
.trk-hero { --sc: var(--sky); margin-top: 12px; border-radius: var(--r-xl); padding: 26px 20px 22px; color: #fff; background: var(--sc); position: relative; overflow: hidden; transition: background 800ms var(--ease); isolation: isolate; }
.trk-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .35), transparent 55%), linear-gradient(200deg, transparent 40%, rgba(0, 0, 0, .18)); z-index: -1; }
.trk-hero .num { font-size: 13px; font-weight: 800; opacity: .85; letter-spacing: .04em; }
.trk-hero h1 { font-size: 34px; margin-top: 8px; }
.trk-hero p { opacity: .92; margin-top: 8px; font-weight: 500; max-width: 34ch; }
.trk-hero .eta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .35); padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.trk-hero .eta svg { width: 16px; height: 16px; }
.trk-art { position: absolute; right: -10px; bottom: -10px; width: 150px; height: 150px; opacity: .95; }
.trk-art svg { width: 100%; height: 100%; }
.trk-art .wheel { transform-origin: center; transform-box: fill-box; animation: spin 900ms linear infinite; }
.trk-art .bob { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.progress-bar { display: grid; grid-auto-flow: column; gap: 6px; margin-top: 20px; }
.progress-bar i { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.progress-bar i.done { background: #fff; }
.progress-bar i.current::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill 2.2s var(--ease) infinite; }
@keyframes fill { from { transform: scaleX(0); } 70%, to { transform: scaleX(1); opacity: 0; } }
.timeline { list-style: none; margin: 0; padding: 4px 0; }
.timeline li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start; position: relative; padding-bottom: 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--leaf); }
.timeline .dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; position: relative; z-index: 1; transition: all 500ms var(--spring); }
.timeline .dot svg { width: 16px; height: 16px; color: #fff; opacity: 0; transform: scale(.4); transition: all 400ms var(--spring); }
.timeline li.done .dot { background: var(--leaf); box-shadow: none; }
.timeline li.done .dot svg { opacity: 1; transform: none; }
.timeline li.current .dot { box-shadow: inset 0 0 0 8px var(--sc, var(--sky)); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: inset 0 0 0 8px var(--sc, var(--sky)), 0 0 0 0 color-mix(in srgb, var(--sc, var(--sky)) 50%, transparent); } 70% { box-shadow: inset 0 0 0 8px var(--sc, var(--sky)), 0 0 0 12px transparent; } 100% { box-shadow: inset 0 0 0 8px var(--sc, var(--sky)), 0 0 0 0 transparent; } }
.timeline b { font-size: 16px; display: block; padding-top: 4px; }
.timeline li.todo b { color: var(--ink-3); font-weight: 600; }
.timeline time { font-size: 13px; color: var(--ink-3); font-weight: 700; padding-top: 6px; }
.notify-card { display: flex; gap: 14px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 16px; }
.notify-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--grad-hot); display: grid; place-items: center; flex: none; }
.notify-card .ic svg { width: 24px; height: 24px; }
.notify-card p { font-size: 13px; opacity: .75; }
.notify-card b { font-size: 15px; }
.notify-card .btn { margin-left: auto; flex: none; }
.rider-card { display: flex; align-items: center; gap: 12px; }
.rider-card .av { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-berry); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.rider-card .btn { margin-left: auto; }
.stars { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.stars button svg { width: 40px; height: 40px; color: var(--ink-4); transition: transform 300ms var(--spring), color 200ms; }
.stars button.on svg { color: var(--sun); transform: scale(1.12); }
.stars button:active svg { transform: scale(.8); }

/* ── Account / orders ───────────────────────── */
.acct-hd { padding-top: 20px; display: flex; align-items: center; gap: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--grad-hot); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; box-shadow: var(--sh-red); }
.acct-hd h1 { font-size: 26px; }
.acct-hd p { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.credit-card { border-radius: var(--r-lg); padding: 18px; background: var(--grad-berry); color: #fff; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 16px 34px -18px #7C3AED; }
.credit-card b { font-size: 26px; letter-spacing: -.03em; display: block; }
.credit-card span { font-size: 13px; opacity: .85; font-weight: 600; }
.list { background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.list > a, .list > div, .list > button, .list > label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: left; }
.list > * + * { border-top: 1px solid var(--line); }
.list .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.list .ic svg { width: 19px; height: 19px; }
.list .t { flex: 1; min-width: 0; }
.list .t b { display: block; font-size: 15px; }
.list .t small { color: var(--ink-3); font-weight: 600; font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .chev { width: 18px; height: 18px; color: var(--ink-4); }
.ocard { display: block; background: #fff; border-radius: var(--r-lg); padding: 14px; box-shadow: var(--sh-1); transition: transform var(--fast) var(--ease); }
.ocard:active { transform: scale(.98); }
.ocard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ocard .num { font-weight: 800; }
.ocard .when { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.ocard .thumbs { display: flex; margin-top: 12px; }
.ocard .thumbs .ph { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; border: 3px solid #fff; margin-right: -10px; background: var(--bg-2); box-shadow: var(--sh-1); }
.ocard .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.status-pill { --s: var(--sky); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--s); background: color-mix(in srgb, var(--s) 12%, #fff); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(23, 17, 14, .14); transition: background 250ms; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform 350ms var(--spring); }
.switch input:checked + i { background: var(--leaf); }
.switch input:checked + i::after { transform: translateX(20px); }

/* OTP */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { width: 100%; min-width: 0; padding: 0; height: 60px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; font-size: 24px; font-weight: 800; outline: 0; transition: box-shadow var(--fast), transform var(--fast) var(--spring); }
.otp input:focus { box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }
.otp.err input { box-shadow: inset 0 0 0 2px var(--red); animation: shake 380ms; }

/* ── Toast (dynamic-island style) ───────────── */
.toasts { position: fixed; top: calc(10px + var(--safe-t)); left: 0; right: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; background: #111; color: #fff; border-radius: 999px; padding: 10px 18px 10px 10px; max-width: min(92vw, 440px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5); transform: translateY(-30px) scale(.6); opacity: 0; transition: transform 520ms var(--spring), opacity 260ms;
  font-size: 14px; font-weight: 600;
}
.toast.show { transform: none; opacity: 1; }
.toast.hide { transform: translateY(-20px) scale(.8); opacity: 0; }
.toast .ti { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--leaf); }
.toast .ti svg { width: 18px; height: 18px; }
.toast.warn .ti { background: var(--ember); }
.toast.err .ti { background: var(--red); }
.toast.info .ti { background: var(--sky); }
.toast .th { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; }
.toast b { display: block; font-size: 14px; }
.toast small { display: block; opacity: .7; font-size: 12.5px; }
.toast button { color: var(--sun); font-weight: 800; margin-left: 6px; }

/* fly-to-cart */
.flyer { position: fixed; z-index: 90; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: var(--sh-2); border: 3px solid #fff; transition: transform 700ms cubic-bezier(.5, -0.3, .7, .2), opacity 700ms; }

/* confetti */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; }

/* ── Skeleton ───────────────────────────────── */
.sk { background: linear-gradient(90deg, #F3E8DE 25%, #FBF3EC 50%, #F3E8DE 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Footer ─────────────────────────────────── */
.ftr { margin-top: 56px; background: var(--ink); color: rgba(255, 255, 255, .72); padding: 36px 0 30px; font-size: 14px; }
.ftr .brand img { height: 40px; }
.ftr h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.ftr-grid { display: grid; gap: 26px; margin-top: 22px; }
.ftr a { display: block; padding: 3px 0; }
.ftr a:hover { color: #fff; }
.ftr .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pay-logos { display: flex; gap: 8px; margin-top: 12px; }
.pay-logos span { background: rgba(255, 255, 255, .08); padding: 6px 10px; border-radius: 8px; font-weight: 800; font-size: 12px; color: #fff; }

.page-pad { padding-top: 18px; }
.prose h1 { font-size: 32px; margin-bottom: 14px; }
.prose h2 { font-size: 20px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 10px; }

/* product page (deep link) */
.pp { display: grid; gap: 22px; padding-top: 14px; }
.pp .ph { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1; background: var(--bg-2); box-shadow: var(--sh-2); }
.crumbs { font-size: 13px; color: var(--ink-3); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 16px; height: 16px; }

/* ── Desktop ────────────────────────────────── */
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .rail { grid-auto-columns: minmax(230px, 30%); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .story { grid-template-columns: 1.1fr 1fr; }
  .story .ph { aspect-ratio: auto; min-height: 340px; }
  .story .txt { padding: 40px; align-self: center; }
  .ftr-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .pp { grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; }
}
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .hdr-nav { display: flex; }
  :root { --header-h: 70px; }
  .brand img { height: 50px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .rail { grid-auto-columns: minmax(240px, calc(25% - 15px)); gap: 20px; }
  .cats { grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 4px 0 10px; gap: 16px; }
  .cat { min-height: 190px; padding: 20px; }
  .cat h3 { font-size: 24px; }
  .cat .tagline { display: block; max-width: 60%; margin-top: 6px; }
  .cat .count-l { display: none; }
  .cat .cat-img { width: 120px; height: 120px; }
  .hero { padding: 56px 56px 56px; min-height: 520px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
  .hero-art { height: 100%; min-height: 380px; margin: 0; }
  .hero-plate.a { width: 300px; height: 300px; left: 50%; top: 50%; bottom: auto; margin: -150px 0 0 -150px; }
  .hero-plate.b { width: 170px; height: 170px; left: 0; bottom: 10px; }
  .hero-plate.c { width: 180px; height: 180px; right: 0; top: 0; bottom: auto; }
  .sec { margin-top: 64px; }
  .sec-hd h2 { font-size: 34px; }
  .band { padding: 40px; }
  .band h2 { font-size: 38px; }
  .cartbar { left: auto; right: 24px; bottom: 24px; width: 380px; }
  body.has-cartbar main { padding-bottom: 0; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-height: 88vh; border-radius: 28px; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform 420ms var(--spring), opacity 260ms var(--ease); pointer-events: none; }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
  .sheet.side { left: auto; right: 0; top: 0; bottom: 0; width: 460px; max-height: none; height: 100vh; border-radius: 28px 0 0 28px; transform: translateX(104%); opacity: 1; transition: transform 520ms cubic-bezier(.2, .9, .25, 1); }
  .sheet.side.show { transform: none; }
  .sheet-grab { display: none; }
  .co-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .co-grid .col-side { position: sticky; top: 90px; }
  .paybar { position: static; background: none; backdrop-filter: none; border: 0; padding: 0; margin-top: 14px; }
  body.checkout-page { padding-bottom: 0; }
  .co { padding-bottom: 40px; }
  .ps-hero { border-radius: 28px 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
