/* ==========================================================
   Akwaaba Fresh Supermarket — styles
   ========================================================== */

:root {
  --blue: #1a5cff;
  --blue-600: #1449d6;
  --blue-700: #0f3aa8;
  --navy: #0b1f4d;
  --ink: #0f1b3d;
  --muted: #5b6b8c;
  --sky: #eaf1ff;
  --sky-2: #d7e5ff;
  --sky-3: #a8c5ff;
  --ice: #f6f9ff;
  --line: #e3eaf7;
  --white: #fff;
  --success: #12a150;
  --success-bg: #e8f8ef;
  --danger: #e5484d;
  --gold: #ffc93c;

  --tint-produce: #e5f6f2;
  --tint-dairy: #e6f3ff;
  --tint-household: #edf2fb;
  --tint-alcohol: #ecebff;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --shadow-sm: 0 2px 8px -2px rgba(15, 58, 168, .10);
  --shadow: 0 12px 32px -14px rgba(20, 73, 214, .28);
  --shadow-lg: 0 30px 60px -24px rgba(11, 31, 77, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --header-h: 72px;
  --tabbar-h: 0px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  padding-bottom: var(--tabbar-h);
}
body.locked { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky-3); outline-offset: 2px; border-radius: 8px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(26, 92, 255, .7); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(26, 92, 255, .75); }
.btn-ghost { background: var(--sky); color: var(--blue-700); }
.btn-ghost:hover { background: var(--sky-2); }
.btn-white { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--sky-3); color: var(--blue); }
.btn-block { width: 100%; }
.btn .i { width: 19px; height: 19px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
.btn-ghost .ripple, .btn-white .ripple, .btn-outline .ripple { background: rgba(26, 92, 255, .18); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--sky); color: var(--blue-700);
  transition: background .2s, transform .2s var(--spring);
}
.icon-btn:hover { background: var(--sky-2); transform: rotate(-6deg) scale(1.05); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--sky); color: var(--blue-700);
  font-weight: 600; font-size: 13.5px;
}
.pill .i { width: 16px; height: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }

/* ---------- Doodles ---------- */
.doodle {
  position: absolute; pointer-events: none;
  width: var(--s, 48px); height: var(--s, 48px);
  color: var(--c, var(--sky-3));
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 0;
  animation: draw 1.8s var(--ease) both;
  animation-delay: var(--dd, 0s);
}
.doodle.inline { position: static; }
.doodle.float { animation: draw 1.8s var(--ease) both, float 7s ease-in-out infinite; animation-delay: var(--dd, 0s), var(--dl, 0s); }
.doodle.spin { animation: draw 1.8s var(--ease) both, spin 14s linear infinite; animation-delay: var(--dd, 0s), 0s; }
.doodle.wiggle { animation: draw 1.8s var(--ease) both, wiggle 3.6s ease-in-out infinite; animation-delay: var(--dd, 0s), var(--dl, 0s); }
.doodle.pulse { animation: draw 1.8s var(--ease) both, pulse 2.8s ease-in-out infinite; animation-delay: var(--dd, 0s), var(--dl, 0s); }

@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.18); opacity: .7; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blob {
  0%, 100% { border-radius: 42% 58% 62% 38% / 45% 42% 58% 55%; }
  33% { border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%; }
  66% { border-radius: 50% 50% 55% 45% / 40% 55% 45% 60%; }
}
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.page-in { animation: pageIn .5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Announcement ---------- */
.announce { background: var(--navy); color: #dbe7ff; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.announce-track { display: inline-flex; gap: 48px; padding: 9px 0; animation: marquee 38s linear infinite; }
.announce:hover .announce-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(11, 31, 77, .35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { width: 42px; height: 42px; transition: transform .4s var(--spring); }
.brand:hover .brand-logo { transform: rotate(-10deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.brand-text small { font-size: 11.5px; font-weight: 600; color: var(--blue); letter-spacing: .04em; }
.brand-light .brand-text b { color: #fff; }
.brand-light .brand-text small { color: var(--sky-3); }

.loc-pill {
  display: none; align-items: center; gap: 8px; text-align: left;
  padding: 7px 14px 7px 10px; border-radius: 14px; background: var(--ice); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.loc-pill:hover { border-color: var(--sky-3); transform: translateY(-1px); }
.loc-pill .i { color: var(--blue); }
.loc-pill span { display: flex; flex-direction: column; line-height: 1.2; }
.loc-pill small { font-size: 11px; color: var(--muted); font-weight: 500; }
.loc-pill b { font-size: 13px; }

.header-search {
  display: none; flex: 1; align-items: center; gap: 10px;
  height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--ice); border: 1.5px solid var(--line); color: var(--muted);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.header-search:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--sky); }
.header-search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; font-size: 15px; color: var(--ink); }

.header-nav { display: none; gap: 4px; }
.header-nav a { position: relative; padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--muted); border-radius: 999px; transition: color .2s, background .2s; }
.header-nav a:hover { color: var(--blue); background: var(--ice); }
.header-nav a.active { color: var(--blue); }
.header-nav a.active::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--blue); }

.cart-btn {
  display: none; align-items: center; gap: 10px;
  height: 48px; padding: 0 18px 0 8px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700;
  box-shadow: 0 10px 22px -10px rgba(26, 92, 255, .7);
  transition: transform .25s var(--ease), background .2s;
}
.cart-btn:hover { background: var(--blue-600); transform: translateY(-2px); }
.cart-btn-icon { position: relative; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.cart-badge {
  position: absolute; top: -5px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #fff; color: var(--blue); border: 2px solid var(--blue);
  font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1;
  transform: scale(0); transition: transform .3s var(--spring);
}
.cart-badge.has { transform: scale(1); }
.bump { animation: pop .5s var(--spring); }
.header-loc-mobile { margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; background: radial-gradient(1200px 500px at 90% -10%, var(--sky) 0%, transparent 60%), linear-gradient(180deg, #fff 0%, var(--ice) 100%); }
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { margin: 18px 0 16px; font-size: clamp(34px, 8.6vw, 64px); font-weight: 800; letter-spacing: -0.035em; color: var(--navy); }
.hero-title .hl { position: relative; display: inline-block; color: var(--blue); white-space: nowrap; }
.hero-title .hl .doodle { position: absolute; left: 0; bottom: -0.32em; width: 100%; height: .45em; --c: var(--sky-3); stroke-width: 5; }
.rotator-word { display: inline-block; transition: transform .38s var(--ease), opacity .38s var(--ease); }
.rotator-word.out { transform: translateY(-55%); opacity: 0; }
.rotator-word.in { transform: translateY(55%); opacity: 0; transition: none; }
.hero-sub { font-size: clamp(16px, 2.2vw, 18.5px); color: var(--muted); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-perks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hero-perks li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-perks .i { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; margin: 0 auto; }
.hero-blob {
  position: absolute; inset: 9%;
  background: linear-gradient(145deg, #3b7bff 0%, var(--blue) 45%, var(--blue-700) 100%);
  animation: blob 12s ease-in-out infinite;
  box-shadow: 0 40px 80px -30px rgba(26, 92, 255, .6), inset 0 -20px 60px rgba(11, 31, 77, .25);
}
.hero-blob::after { content: ''; position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .3); animation: spin 40s linear infinite; }
.hero-basket {
  position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-size: clamp(64px, 14vw, 110px); box-shadow: 0 24px 50px -20px rgba(11, 31, 77, .5);
}
.hero-basket span { animation: bob 4s ease-in-out infinite; }
.float-item {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff;
  box-shadow: 0 16px 30px -14px rgba(11, 31, 77, .4);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  animation: bob 5s ease-in-out infinite; animation-delay: var(--dl, 0s);
}
.float-item .fi-emoji { width: 36px; height: 36px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-size: 20px; }
.float-item small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.float-emoji { position: absolute; font-size: clamp(28px, 6vw, 44px); filter: drop-shadow(0 10px 12px rgba(11, 31, 77, .25)); animation: bob 6s ease-in-out infinite; animation-delay: var(--dl, 0s); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 64px 0; }
.section-alt { background: var(--ice); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 28px; }
.section-head h2 { margin-top: 8px; font-size: clamp(26px, 5vw, 40px); font-weight: 800; color: var(--navy); }
.section-head p { color: var(--muted); max-width: 520px; margin-top: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 6px; min-height: 210px; padding: 18px;
  border-radius: var(--r-lg); background: var(--tint); border: 1px solid rgba(26, 92, 255, .06);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { box-shadow: var(--shadow); }
.cat-card.tint-produce { --tint: var(--tint-produce); }
.cat-card.tint-dairy { --tint: var(--tint-dairy); }
.cat-card.tint-household { --tint: var(--tint-household); }
.cat-card.tint-alcohol { --tint: var(--tint-alcohol); }
.cat-emoji { width: 64px; height: 64px; border-radius: 20px; background: #fff; display: grid; place-items: center; font-size: 34px; box-shadow: var(--shadow-sm); margin-bottom: auto; transition: transform .4s var(--spring); }
.cat-card:hover .cat-emoji { transform: rotate(-8deg) scale(1.1); }
.cat-card h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-top: 18px; }
.cat-card p { font-size: 13px; color: var(--muted); display: none; }
.cat-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue); }
.cat-link .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.cat-card:hover .cat-link .i { transform: translateX(4px); }
.cat-card .doodle { right: -6px; top: -6px; --s: 90px; --c: rgba(26, 92, 255, .16); z-index: -1; stroke-width: 2.5; }
.cat-extras { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 20px; opacity: .9; }
.cat-extras span { animation: bob 4s ease-in-out infinite; }
.cat-extras span:nth-child(2) { animation-delay: -1.3s; }
.cat-extras span:nth-child(3) { animation-delay: -2.6s; }

/* ---------- How it works ---------- */
.how-grid { position: relative; display: grid; gap: 14px; }
.how-card { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.how-num { position: relative; flex: none; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 24px; }
.how-num b { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--blue); font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.how-card h3 { font-size: 17px; margin-bottom: 4px; }
.how-card p { font-size: 14px; color: var(--muted); }

/* ---------- Tabs + scroller ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--spring);
}
.chip:hover { border-color: var(--sky-3); transform: translateY(-1px); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px -10px rgba(26, 92, 255, .8); }
.chip .chip-emoji { font-size: 17px; }

.scroller-wrap { position: relative; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 18px; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.scroll-btn { display: none; position: absolute; top: 38%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); place-items: center; color: var(--blue); transition: transform .2s; }
.scroll-btn:hover { transform: scale(1.08); }
.scroll-btn.prev { left: -18px; }
.scroll-btn.next { right: -18px; }

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .82; background: var(--tint, var(--sky)); overflow: hidden; }
.card-media::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .7); transition: transform .5s var(--ease); }
.card:hover .card-media::before { transform: scale(1.12); }
.card-emoji { position: relative; font-size: clamp(48px, 13vw, 64px); line-height: 1; filter: drop-shadow(0 10px 10px rgba(11, 31, 77, .18)); transition: transform .5s var(--spring); }
.card:hover .card-emoji { transform: scale(1.12) rotate(-6deg); }
.card-emoji.has-img, .pm-emoji.has-img { position: absolute; inset: 0; filter: none; animation: none; }
.card-emoji.has-img img, .pm-emoji.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .card-emoji.has-img { transform: scale(1.06); }
.line-emoji img, .mini span img, .si-emoji img, .order-emojis span img, .flyer img, .r-pic img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit;
}
.line-emoji, .order-emojis span { overflow: hidden; }
.mini span:has(img) { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; }
.flyer:has(img) { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.r-pic { display: inline-block; vertical-align: middle; }
.r-pic:has(img) { width: 26px; height: 26px; border-radius: 7px; overflow: hidden; margin-right: 2px; }
.tint-produce { --tint: var(--tint-produce); }
.tint-dairy { --tint: var(--tint-dairy); }
.tint-household { --tint: var(--tint-household); }
.tint-alcohol { --tint: var(--tint-alcohol); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--blue-700); font-size: 11px; font-weight: 700; box-shadow: var(--shadow-sm); }
.badge-sale { left: auto; right: 10px; background: var(--blue); color: #fff; }
.badge-age { left: auto; right: 10px; background: var(--navy); color: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 12px; }
.card-unit { font-size: 12px; font-weight: 600; color: var(--muted); }
.card-title { font-size: 14.5px; font-weight: 700; line-height: 1.3; margin: 2px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 16px; color: var(--navy); display: flex; flex-direction: column; line-height: 1.15; }
.price s { font-size: 12px; font-weight: 500; color: var(--muted); }

.ctrl { display: flex; }
.add-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 10px;
  border-radius: 999px; background: var(--sky); color: var(--blue-700); font-weight: 700; font-size: 14px;
  transition: background .2s, color .2s, transform .2s var(--spring);
}
.add-btn:hover { background: var(--blue); color: #fff; }
.add-btn:active { transform: scale(.92); }
.add-btn .i { width: 18px; height: 18px; stroke-width: 2.6; }
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 999px; background: var(--blue); color: #fff; }
.stepper.enter { animation: stepIn .35s var(--spring); }
.stepper-q.tick { animation: pop .35s var(--spring); }
@keyframes stepIn { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.stepper button { width: 36px; height: 38px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.stepper button:hover { background: rgba(255, 255, 255, .16); }
.stepper .i { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper-q { min-width: 18px; text-align: center; font-weight: 800; font-size: 14px; }
.stepper.lg { height: 50px; }
.stepper.lg button { width: 50px; height: 50px; }
.stepper.lg .stepper-q { min-width: 30px; font-size: 17px; }
.stepper.sm { height: 34px; }
.stepper.sm button { width: 32px; height: 34px; }

/* ---------- Promo banners ---------- */
.promo-grid { display: grid; gap: 14px; }
.promo {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: 28px;
  min-height: 220px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.promo h3 { font-size: clamp(24px, 4.4vw, 34px); font-weight: 800; max-width: 380px; }
.promo p { max-width: 360px; }
.promo .btn { align-self: flex-start; margin-top: 6px; }
.promo-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%); color: #fff; }
.promo-blue p { color: #d6e4ff; }
.promo-light { background: var(--tint-alcohol); color: var(--navy); }
.promo-light p { color: var(--muted); }
.promo-art { position: absolute; right: -10px; bottom: -14px; font-size: clamp(90px, 20vw, 150px); line-height: 1; z-index: -1; opacity: .95; animation: bob 5s ease-in-out infinite; }
.promo .doodle { z-index: -1; }

/* ---------- Visit / map ---------- */
.visit-grid { display: grid; gap: 18px; }
.visit-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 28px; background: var(--navy); color: #fff; }
.visit-card h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; margin: 10px 0 12px; }
.visit-card .eyebrow { color: var(--sky-3); }
.visit-list { display: grid; gap: 14px; margin: 22px 0 26px; }
.visit-list li { display: flex; gap: 12px; align-items: flex-start; color: #dbe7ff; }
.visit-list .i { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.visit-list b { display: block; color: #fff; }
.map { position: relative; min-height: 320px; border-radius: var(--r-xl); overflow: hidden; background: var(--sky); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9) hue-rotate(-8deg); }
.map-pin { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 14px; }
.map-pin .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(26, 92, 255, .6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(26, 92, 255, .55); } 100% { box-shadow: 0 0 0 16px rgba(26, 92, 255, 0); } }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--navy); color: #b9c8ea; padding: 56px 0 24px; margin-top: 0; }
.footer-doodles .doodle { opacity: .35; }
.footer-grid { position: relative; display: grid; gap: 32px; }
.footer-brand p { margin: 16px 0; max-width: 340px; font-size: 14.5px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-links li + li, .footer-info li + li { margin-top: 10px; }
.footer-links a { font-size: 14.5px; transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-info li { display: flex; gap: 10px; font-size: 14.5px; }
.footer-info .i { width: 18px; height: 18px; margin-top: 2px; color: var(--sky-3); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-badges span { padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 600; color: #dbe7ff; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* ---------- Mobile tab bar ---------- */
.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: 66px; padding: 0 6px; border-radius: 24px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -16px rgba(11, 31, 77, .45), 0 0 0 1px rgba(11, 31, 77, .05);
  transition: transform .4s var(--ease);
}
.tabbar > a, .tabbar > button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 66px; font-size: 11px; font-weight: 600; color: var(--muted);
  -webkit-tap-highlight-color: transparent; transition: color .2s;
}
.tabbar > a .i, .tabbar > button > .i { width: 22px; height: 22px; transition: transform .3s var(--spring); }
.tabbar > a.active { color: var(--blue); }
.tabbar > a.active .i { transform: translateY(-2px) scale(1.1); }
.tabbar > a.active::before { content: ''; position: absolute; top: 7px; width: 34px; height: 4px; border-radius: 4px; background: var(--blue); animation: stepIn .3s var(--spring); }
.tab-cart { justify-content: flex-end !important; padding-bottom: 9px; }
.tab-cart-btn {
  position: relative; width: 58px; height: 58px; margin-top: -26px; margin-bottom: 2px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #3b7bff, var(--blue-700));
  box-shadow: 0 12px 24px -8px rgba(26, 92, 255, .8), 0 0 0 5px #fff;
  transition: transform .3s var(--spring);
}
.tab-cart:active .tab-cart-btn { transform: scale(.92); }
.tab-cart-btn .i { width: 24px; height: 24px; }
.tab-cart-btn .cart-badge { top: -2px; right: -2px; }
.tab-cart [data-cart-total] { color: var(--navy); font-weight: 800; }
/* ---------- Drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(11, 31, 77, .45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh;
  display: flex; flex-direction: column; background: #fff; border-radius: 28px 28px 0 0;
  transform: translateY(105%); transition: transform .5s var(--ease); box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer.dragging { transition: none; }
.grab { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 10px auto 0; flex: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 12px; touch-action: none; }
.drawer-head h2 { font-size: 22px; font-weight: 800; }
.drawer-head .muted { font-size: 13.5px; }
.drawer-meter { padding: 0 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; overscroll-behavior: contain; }
.drawer-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ice); }
.drawer-foot[hidden] { display: none; }

.free-meter { padding: 12px 14px; border-radius: 16px; background: var(--sky); margin-bottom: 8px; }
.free-meter-text { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--blue-700); }
.free-meter-text .i { width: 18px; height: 18px; flex: none; }
.free-meter-bar { position: relative; height: 8px; margin-top: 10px; border-radius: 8px; background: #fff; overflow: hidden; }
.free-meter-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, #5b8cff, var(--blue)); transition: width .8s var(--ease); }
.free-meter-bar span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.8s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.free-meter.done { background: var(--success-bg); }
.free-meter.done .free-meter-text { color: var(--success); }
.free-meter.done .free-meter-bar span { background: var(--success); }

.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); animation: fadeUp .4s var(--ease) both; }
.line:last-child { border-bottom: 0; }
.line-emoji { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--tint, var(--sky)); display: grid; place-items: center; font-size: 30px; }
.line-info { flex: 1; min-width: 0; }
.line-info b { display: block; font-size: 14.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-info span { font-size: 12.5px; color: var(--muted); }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-total { font-weight: 800; font-size: 14.5px; }
.totals-row { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; margin-bottom: 6px; color: var(--muted); }
.totals-row b { color: var(--ink); }
.totals-row.grand { font-size: 18px; color: var(--ink); font-weight: 800; margin: 8px 0 14px; }
.empty { text-align: center; padding: 40px 10px; }
.empty-art { position: relative; width: 140px; height: 140px; margin: 0 auto 18px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-size: 60px; }
.empty-art span { animation: bob 4s ease-in-out infinite; }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 31, 77, .5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  background: #fff; border-radius: 28px 28px 0 0; padding: 0 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .5s var(--ease); overscroll-behavior: contain;
}
.modal.open .modal-card { transform: none; }
.modal-card.dragging { transition: none; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 3; }
.modal-small { text-align: center; padding-top: 26px; }
.modal-small h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { flex: 1; padding: 0 16px; }
.age-art { position: relative; width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; background: var(--tint-alcohol); display: grid; place-items: center; font-size: 56px; }
.age-art span { animation: wiggle 2.4s ease-in-out infinite; }

.pm { display: grid; gap: 0; }
.pm-media { position: relative; margin: 14px -20px 0; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--tint, var(--sky)); overflow: hidden; }
.pm-media::before { content: ''; position: absolute; width: 52%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .75); animation: pulse 4s ease-in-out infinite; }
.pm-emoji { position: relative; font-size: 110px; line-height: 1; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 16px 14px rgba(11, 31, 77, .2)); }
.pm-info { padding-top: 20px; }
.pm-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue); }
.pm-info h2 { font-size: 26px; font-weight: 800; margin: 6px 0 4px; color: var(--navy); }
.pm-unit { color: var(--muted); font-weight: 600; font-size: 14px; }
.pm-desc { color: var(--muted); margin: 14px 0; font-size: 15px; }
.pm-price { font-size: 28px; font-weight: 800; color: var(--navy); display: flex; align-items: baseline; gap: 10px; }
.pm-price s { font-size: 16px; font-weight: 500; color: var(--muted); }
.pm-perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.pm-perks span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--ice); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pm-perks .i { width: 15px; height: 15px; color: var(--blue); }
.pm-buy { display: flex; gap: 10px; align-items: center; position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); }
.pm-buy .btn { flex: 1; }
.pm-related { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pm-related h4 { font-size: 15px; margin-bottom: 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 16px; background: var(--tint, var(--sky)); text-align: center; transition: transform .25s var(--spring); }
.mini:hover { transform: translateY(-3px); }
.mini span { font-size: 30px; }
.mini small { font-size: 11px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Payment stages */
.pay-stage { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 4px 4px; }
.pay-stage > * { animation: fadeUp .45s var(--ease) both; }
.pay-stage h2 { font-size: 22px; }
.pay-stage p { color: var(--muted); max-width: 320px; }
.spinner { width: 72px; height: 72px; border-radius: 50%; border: 6px solid var(--sky); border-top-color: var(--blue); animation: spin .9s linear infinite; margin-bottom: 10px; }
.phone-ping { position: relative; width: 84px; height: 120px; border-radius: 18px; border: 4px solid var(--navy); display: grid; place-items: center; margin-bottom: 10px; background: var(--ice); }
.phone-ping::before { content: ''; position: absolute; top: 6px; width: 24px; height: 4px; border-radius: 4px; background: var(--navy); }
.phone-ping span { width: 52px; padding: 6px 4px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; animation: bob 1.6s ease-in-out infinite; }
.phone-ping::after { content: ''; position: absolute; inset: -10px; border-radius: 26px; border: 3px solid var(--sky-3); animation: ringOut 1.6s ease-out infinite; }
@keyframes ringOut { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.countdown { width: 220px; height: 6px; border-radius: 6px; background: var(--sky); overflow: hidden; margin-top: 8px; }
.countdown span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; animation: countdown var(--t, 3s) linear forwards; }
@keyframes countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.check-anim { width: 92px; height: 92px; margin-bottom: 8px; }
.check-anim circle { fill: var(--success-bg); stroke: var(--success); stroke-width: 3; stroke-dasharray: 280; stroke-dashoffset: 280; animation: dash .7s var(--ease) forwards; }
.check-anim path { fill: none; stroke: var(--success); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: dash .45s .5s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 120; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 440px; width: 100%;
  padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: toastIn .45s var(--spring);
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast span { flex: 1; }
.toast button { flex: none; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 700; }
.toast button:hover { background: rgba(255, 255, 255, .24); }
@keyframes toastIn { from { transform: translateY(20px) scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(10px); opacity: 0; } }

.flyer { position: fixed; z-index: 200; font-size: 40px; pointer-events: none; transform: translate(-50%, -50%); will-change: transform; }
#confetti { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: none; width: 100%; height: 100%; }

/* ---------- Shop ---------- */
.shop-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%); color: #fff; }
.shop-hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0 30px; min-height: 150px; }
.crumbs { display: flex; gap: 6px; font-size: 13px; color: var(--sky-3); font-weight: 600; margin-bottom: 8px; }
.crumbs a:hover { color: #fff; }
.shop-hero h1 { font-size: clamp(26px, 6vw, 42px); font-weight: 800; }
.shop-hero p { color: #d6e4ff; margin-top: 6px; max-width: 520px; font-size: 15px; }
.shop-hero-emoji { flex: none; width: 96px; height: 96px; border-radius: 30px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 52px; transform: rotate(6deg); animation: bob 5s ease-in-out infinite; }
.swap { animation: swapIn .5s var(--spring); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.shop-hero .doodle { --c: rgba(255, 255, 255, .22); }

.shop-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.shop-bar-inner { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.shop-bar .tabs { margin: 0; }
.shop-tools { display: flex; gap: 10px; }
.search-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--ice); border: 1.5px solid var(--line); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky); background: #fff; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.select-wrap { position: relative; flex: none; display: flex; align-items: center; }
.select-wrap select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 38px 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.select-wrap .dd-btn { height: 44px; border-radius: 14px; background: #fff; font-size: 14px; }

/* themed dropdown (js/select.js) */
.dd { position: relative; display: block; min-width: 0; }
.dd .dd-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none; }
.dd-btn {
  width: 100%; height: 48px; padding: 0 12px 0 14px; display: flex; align-items: center; gap: 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--ice);
  font-size: 15px; font-weight: 600; text-align: left; color: var(--ink); outline: 0; transition: border-color .2s, box-shadow .2s, background .2s;
}
.dd-btn:hover { border-color: var(--sky-3); }
.dd-btn:focus-visible, .dd.is-open .dd-btn { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--sky); }
.dd-btn:disabled { opacity: .55; cursor: not-allowed; }
.dd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-label.is-placeholder { color: var(--muted); font-weight: 500; }
.dd-btn svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.dd.is-open .dd-btn svg { transform: rotate(180deg); color: var(--blue); }
.dd-pop {
  position: fixed; z-index: 150; display: flex; flex-direction: column; max-width: calc(100vw - 16px); padding: 6px; border-radius: 16px; background: #fff;
  box-shadow: 0 24px 50px -18px rgba(11, 31, 77, .38), 0 0 0 1px rgba(11, 31, 77, .06); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .16s, transform .22s var(--ease);
}
.dd-pop.up { transform: translateY(6px) scale(.98); transform-origin: bottom center; }
.dd-pop.in { opacity: 1; transform: none; }
.dd-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; outline: 0; }
.dd-list li { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; user-select: none; }
.dd-list li span { flex: 1; min-width: 0; }
.dd-list li svg { width: 17px; height: 17px; flex: none; color: var(--blue); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--spring); }
.dd-list li.is-active { background: var(--sky); color: var(--blue-700); }
.dd-list li[aria-selected="true"] { color: var(--blue-700); }
.dd-list li[aria-selected="true"] svg { opacity: 1; transform: none; }
.dd-list li.is-disabled { opacity: .45; cursor: not-allowed; }
.dd-backdrop { position: fixed; inset: 0; z-index: 149; background: rgba(11, 31, 77, .45); backdrop-filter: blur(3px); animation: dd-fade .2s; }
.dd-backdrop.out { opacity: 0; transition: opacity .16s; }
.dd-pop.sheet {
  left: 0; right: 0; bottom: 0; top: auto; max-width: none; max-height: 72vh; padding: 8px 10px calc(12px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
  transform: translateY(100%); transition: opacity .2s, transform .35s var(--ease);
}
.dd-pop.sheet.in { transform: none; }
.dd-sheet-head { position: relative; padding: 18px 8px 10px; text-align: center; font-size: 15.5px; color: var(--navy); }
.dd-sheet-head::before { content: ''; position: absolute; top: 4px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 9px; background: var(--line); }
.dd-pop.sheet .dd-list li { min-height: 50px; font-size: 15.5px; }
@keyframes dd-fade { from { opacity: 0; } }
.shop-main { padding: 20px 0 64px; }
.result-count { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.result-count b { color: var(--ink); }

/* ---------- Checkout ---------- */
.page { padding: 24px 0 64px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 12px; transition: color .2s, gap .2s; }
.back-link:hover { color: var(--blue); gap: 10px; }
.back-link .i { width: 18px; height: 18px; }
.page-title { font-size: clamp(28px, 6vw, 40px); font-weight: 800; color: var(--navy); }
.page-sub { color: var(--muted); margin-top: 4px; }

.steps { display: flex; align-items: center; gap: 6px; margin: 22px 0; counter-reset: step; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; }
.steps li:not(:last-child)::after { content: ''; flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) var(--p, 0%), var(--line) var(--p, 0%)); transition: --p .5s; }
.steps li.done:not(:last-child)::after { --p: 100%; }
.step-btn { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.step-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--blue-700); font-weight: 800; font-size: 14px; transition: background .3s, color .3s, transform .3s var(--spring); }
.step-dot .i { width: 16px; height: 16px; stroke-width: 3; }
.steps li.active .step-dot { background: var(--blue); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 5px var(--sky); }
.steps li.active .step-btn { color: var(--ink); }
.steps li.done .step-dot { background: var(--success); color: #fff; }
.steps li.done .step-btn { cursor: pointer; color: var(--ink); }
.step-label { display: none; }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.step-panel { animation: panelIn .5s var(--ease); }
.step-panel.back { animation-name: panelBack; }
@keyframes panelIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes panelBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--navy); }
.step-title .i { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--sky); color: var(--blue); }
.step-intro { color: var(--muted); font-size: 14.5px; margin: 8px 0 20px; }

.fields { display: grid; gap: 14px; }
.field label, .field-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req { color: var(--blue); }
.opt { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.field input, .field textarea, .field select {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--ice); font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s; outline: 0;
}
.field textarea { height: auto; min-height: 88px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--sky); }
.field-msg { display: block; min-height: 0; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field-msg:empty { display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); background: #fff5f5; }
.field.invalid .field-msg { color: var(--danger); font-weight: 600; }
.field.invalid { animation: shake .4s ease; }
.field.invalid .options { border-radius: 16px; box-shadow: 0 0 0 2px var(--danger); }

.options { display: grid; gap: 10px; }
.option { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--spring), box-shadow .2s; }
.option:hover { border-color: var(--sky-3); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .o-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue); font-size: 20px; transition: background .2s, color .2s; }
.option .o-icon .i { width: 20px; height: 20px; }
.option .o-text { flex: 1; min-width: 0; }
.option .o-text b { display: block; font-size: 14.5px; line-height: 1.3; }
.option .o-text small { color: var(--muted); font-size: 12.5px; }
.option .o-side { font-weight: 800; font-size: 14px; text-align: right; }
.option .o-side s { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.option .o-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: all .25s var(--spring); }
.option .o-check .i { width: 13px; height: 13px; stroke-width: 3.5; color: #fff; transform: scale(0); transition: transform .25s var(--spring); }
.option:has(input:checked), .option.checked { border-color: var(--blue); background: var(--ice); box-shadow: 0 8px 20px -14px rgba(26, 92, 255, .8); }
.option:has(input:checked) .o-check, .option.checked .o-check { background: var(--blue); border-color: var(--blue); }
.option:has(input:checked) .o-check .i, .option.checked .o-check .i { transform: scale(1); }
.option:has(input:checked) .o-icon, .option.checked .o-icon { background: var(--blue); color: #fff; }
.option:has(input:focus-visible) { outline: 3px solid var(--sky-3); outline-offset: 2px; }
.free-tag { color: var(--success); font-weight: 800; }

.networks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.network { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; font-size: 12.5px; font-weight: 700; text-align: center; transition: all .2s; }
.network input { position: absolute; opacity: 0; }
.network i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 11px; color: #fff; }
.network:has(input:checked) { border-color: var(--blue); background: var(--ice); box-shadow: 0 0 0 3px var(--sky); }

.card-preview {
  position: relative; overflow: hidden; aspect-ratio: 1.586; max-width: 360px; margin: 0 auto 18px; border-radius: 20px; padding: 20px;
  background: linear-gradient(135deg, #3b7bff 0%, var(--blue-700) 60%, var(--navy) 100%); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg);
}
.card-preview::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -80px; top: -120px; }
.card-preview::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .06); left: -60px; bottom: -110px; }
.cp-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.cp-chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #ffe29a, #d4a531); }
.cp-brand { font-weight: 800; font-style: italic; font-size: 18px; letter-spacing: .02em; }
.cp-number { position: relative; z-index: 1; font-size: clamp(17px, 5vw, 21px); font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.cp-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; }
.cp-bottom small { display: block; font-size: 9.5px; opacity: .7; letter-spacing: .08em; }
.cp-bottom b { font-weight: 700; letter-spacing: .04em; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ice); border: 1px dashed var(--sky-3); color: var(--blue-700); font-size: 13.5px; margin-top: 16px; }
.note .i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.check-row { display: flex; gap: 10px; align-items: center; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--blue); }

.co-actions { display: flex; gap: 10px; margin-top: 22px; }
.co-actions .btn { flex: 1; }
.co-actions .btn-ghost { flex: 0 0 auto; padding: 0 20px; }
.co-total-mobile { display: none; }

.summary { position: relative; }
.summary-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--ice); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; color: var(--blue-700); }
.summary-toggle span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.summary-toggle b { margin-left: auto; color: var(--ink); font-size: 16px; }
.summary-toggle .chev { transition: transform .3s var(--ease); }
.summary.collapsed .summary-toggle .chev { transform: rotate(-90deg); }
.summary-inner { margin-top: 10px; padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); animation: fadeUp .35s var(--ease); }
.summary.collapsed .summary-inner { display: none; }
.summary h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin-bottom: 10px; }
.summary h3 span { font-size: 13px; color: var(--muted); font-weight: 600; }
.summary-items { max-height: 280px; overflow-y: auto; margin-bottom: 12px; }
.summary-items li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.summary-items .si-emoji { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--tint, var(--sky)); display: grid; place-items: center; font-size: 24px; flex: none; }
.summary-items .si-emoji b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 11px; display: grid; place-items: center; }
.summary-items .si-name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.3; }
.summary-items .si-name small { display: block; color: var(--muted); font-weight: 500; }
.summary-items .si-price { font-weight: 700; }
.totals { border-top: 1px solid var(--line); padding-top: 12px; margin: 12px 0 0; }
.totals div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.totals dt { color: var(--muted); }
.totals dt small { display: block; font-size: 12px; }
.totals dd { margin: 0; font-weight: 700; text-align: right; }
.totals .grand { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 19px; }
.totals .grand dt { color: var(--ink); font-weight: 800; }
.totals .grand dd { font-weight: 800; color: var(--blue); }
.edit-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--blue); }

/* ---------- Receipt ---------- */
.success-head { position: relative; text-align: center; padding: 12px 0 10px; }
.success-head .check-anim { margin: 0 auto 10px; width: 96px; height: 96px; }
.success-head h1 { font-size: clamp(26px, 6vw, 38px); font-weight: 800; color: var(--navy); }
.success-head p { color: var(--muted); margin-top: 6px; }
.receipt-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 24px; }

.tracker { padding: 20px; }
.tracker h3 { font-size: 18px; margin-bottom: 4px; }
.tracker > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.track-steps li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.track-steps li:last-child { padding-bottom: 0; }
.track-steps li:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 3px; border-radius: 3px; background: var(--line); }
.track-steps li.done:not(:last-child)::before { background: var(--blue); }
.track-dot { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); font-size: 17px; }
.track-steps li.done .track-dot { background: var(--blue); }
.track-steps li.current .track-dot { background: var(--blue); animation: ping 1.8s infinite; }
.track-steps b { display: block; font-size: 14.5px; }
.track-steps small { color: var(--muted); font-size: 12.5px; }
.track-steps li:not(.done):not(.current) b { color: var(--muted); }

.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.receipt-actions .btn { padding: 0 14px; font-size: 14.5px; }
.receipt-actions .btn-block { grid-column: 1 / -1; }

.paper {
  position: relative; background: #fff; padding: 28px 22px 34px; border-radius: 6px;
  box-shadow: 0 30px 50px -30px rgba(11, 31, 77, .35), 0 0 0 1px var(--line);
  font-size: 14px; animation: paperIn .9s var(--ease) both;
  --zz: radial-gradient(circle at 10px -4px, transparent 12px, #fff 13px);
}
.paper::before, .paper::after { content: ''; position: absolute; left: 0; right: 0; height: 12px; background-size: 20px 12px; background-repeat: repeat-x; }
.paper::before { top: -11px; background-image: radial-gradient(circle at 10px 0, transparent 7px, #fff 7.5px); transform: rotate(180deg); }
.paper::after { bottom: -11px; background-image: radial-gradient(circle at 10px 0, transparent 7px, #fff 7.5px); transform: rotate(180deg) scaleY(-1); }
@keyframes paperIn { from { opacity: 0; transform: translateY(-30px) scaleY(.92); transform-origin: top; } to { opacity: 1; transform: none; } }
.paper-head { text-align: center; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.paper-head .brand-logo { width: 48px; height: 48px; margin: 0 auto 8px; }
.paper-head h2 { font-size: 19px; font-weight: 800; color: var(--navy); }
.paper-head p { font-size: 12.5px; color: var(--muted); }
.paper-title { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--sky); color: var(--blue-700); font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.paper-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-bottom: 2px dashed var(--line); }
.paper-meta small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.paper-meta span { font-weight: 600; font-size: 13.5px; word-break: break-word; }
.paper-meta .full { grid-column: 1 / -1; }
.paper-items { width: 100%; border-collapse: collapse; margin: 12px 0; }
.paper-items th { text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 0; }
.paper-items td { padding: 8px 0; vertical-align: top; border-bottom: 1px dotted var(--line); }
.paper-items td small { display: block; color: var(--muted); font-size: 12px; }
.paper-items .num { text-align: right; white-space: nowrap; }
.paper-items .qty { text-align: center; width: 44px; }
.paper-totals { padding-top: 6px; }
.paper-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.paper-totals .grand { font-size: 18px; font-weight: 800; border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 12px; color: var(--navy); }
.stamp { position: absolute; right: 18px; top: 150px; padding: 6px 14px; border: 3px solid var(--success); border-radius: 10px; color: var(--success); font-weight: 800; font-size: 18px; letter-spacing: .1em; transform: rotate(-14deg); opacity: .85; animation: stampIn .6s .6s var(--spring) both; background: rgba(255, 255, 255, .7); }
.stamp.pending { border-color: var(--blue); color: var(--blue); font-size: 13px; }
@keyframes stampIn { from { opacity: 0; transform: rotate(-14deg) scale(2.2); } to { opacity: .85; transform: rotate(-14deg) scale(1); } }
.barcode { display: block; margin: 18px auto 6px; height: 52px; width: 220px; max-width: 100%; }
.paper-foot { text-align: center; font-size: 12.5px; color: var(--muted); }
.paper-foot b { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; }

/* ---------- Orders ---------- */
.orders-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.order-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.order-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.order-emojis { display: flex; flex: none; }
.order-emojis span { width: 42px; height: 42px; border-radius: 50%; background: var(--sky); border: 3px solid #fff; display: grid; place-items: center; font-size: 20px; margin-left: -12px; }
.order-emojis span:first-child { margin-left: 0; }
.order-info { flex: 1; min-width: 0; }
.order-info b { display: block; }
.order-info small { color: var(--muted); font-size: 13px; }
.order-side { text-align: right; }
.order-side b { display: block; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--success-bg); color: var(--success); }
.status.pending { background: var(--sky); color: var(--blue-700); }

.status-pending { background: #fff4d6; color: #9a6700; }
.status-packing, .status-out_for_delivery { background: var(--sky); color: var(--blue-700); }
.status-delivered { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: #ffecec; color: var(--danger); }

/* ---------- Stock ---------- */
.soldout-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; background: #f1f3f8; color: var(--muted); font-weight: 700; font-size: 13px; }
.soldout-btn.lg { height: 50px; flex: 1; justify-content: center; font-size: 15px; }
.card.is-out .card-emoji { filter: grayscale(1); opacity: .55; }
.badge-out { background: var(--navy); color: #fff; }
.line-out { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--danger); }

/* ---------- Order errors + live status ---------- */
.error-badge { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #ffecec; color: var(--danger); font-size: 40px; font-weight: 800; margin-bottom: 6px; animation: shake .5s ease; }
.pay-stage .btn { margin-top: 10px; }
.note-danger { background: #fff5f5; border-color: #ffc9c9; color: #b4232a; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 11px; font-weight: 800; vertical-align: middle; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }

/* ---------- Popup notification ---------- */
.notif-card { overflow: hidden; }
.notif-card #notif-body { position: relative; padding: 8px 0 0; }
.notif-card .doodle { --c: var(--sky-3); }
.notif-emoji { width: 96px; height: 96px; margin: 6px auto 16px; border-radius: 30px; display: grid; place-items: center; font-size: 52px; background: var(--sky); transform: rotate(-6deg); animation: notifPop .7s var(--spring) both; }
@keyframes notifPop { from { transform: scale(.4) rotate(-30deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
.notif-card p { color: var(--muted); max-width: 360px; margin: 0 auto; }
.notif-promo { background: linear-gradient(160deg, #3b7bff 0%, var(--blue) 45%, var(--blue-700) 100%); color: #fff; }
.notif-promo p { color: #dbe7ff; }
.notif-promo .notif-emoji { background: rgba(255, 255, 255, .18); }
.notif-promo .doodle { --c: rgba(255, 255, 255, .35); }
.notif-promo .btn-primary { background: #fff; color: var(--blue-700); }
.notif-promo .btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; }
.notif-promo .modal-x { background: rgba(255, 255, 255, .18); color: #fff; }
.notif-alert { border-top: 6px solid var(--gold); }
.notif-alert .notif-emoji { background: #fff4d6; }

/* ---------- Store closed screen ---------- */
.closed {
  position: fixed; inset: 0; z-index: 300; display: none; overflow-y: auto;
  background: radial-gradient(900px 500px at 85% -10%, var(--sky-2) 0%, transparent 60%), radial-gradient(700px 400px at -10% 110%, var(--sky) 0%, transparent 60%), #fff;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}
.closed.open { display: grid; place-items: center; animation: pageIn .5s var(--ease); }
.closed-doodles .doodle { position: fixed; }
.closed-card { position: relative; width: min(520px, 100%); text-align: center; padding: 30px 22px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); }
.closed-card .brand { justify-content: center; margin-bottom: 22px; }
.closed-art { position: relative; width: 132px; height: 132px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; font-size: 66px; background: linear-gradient(145deg, var(--sky), var(--sky-2)); }
.closed-art span { animation: bob 4s ease-in-out infinite; }
.closed-art i { position: absolute; top: 4px; right: 2px; font-style: normal; font-size: 30px; animation: float 3s ease-in-out infinite; }
.closed-card h1 { font-size: clamp(26px, 7vw, 36px); font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.closed-card > p { color: var(--muted); font-size: 16px; max-width: 420px; margin: 0 auto; }
.closed-countdown { margin: 22px auto 0; padding: 16px; border-radius: 20px; background: var(--ice); border: 1px dashed var(--sky-3); }
.closed-countdown > small { display: block; font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.closed-countdown > span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.cd { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.cd span { min-width: 62px; padding: 8px 4px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.cd b { display: block; font-size: 24px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.cd small { font-size: 11px; color: var(--muted); font-weight: 600; }
.closed-info { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 22px 0 20px; font-size: 14px; color: var(--muted); }
.closed-info span, .closed-info a { display: inline-flex; align-items: center; gap: 6px; }
.closed-info a { color: var(--blue); font-weight: 700; }
.closed-info .i { width: 16px; height: 16px; }
.admin-bar { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: #fff4d6; color: #7a5200; font-size: 13.5px; text-align: center; }
.admin-bar .i { width: 18px; height: 18px; flex: none; }
.admin-bar a { flex: none; padding: 5px 12px; border-radius: 999px; background: #7a5200; color: #fff; font-weight: 700; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  :root { --tabbar-h: calc(86px + env(safe-area-inset-bottom)); --header-h: 64px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-text b { font-size: 18px; }
  body.route-checkout .tabbar { transform: translateY(calc(100% + 60px)); }
  .receipt-side { display: contents; }
  .receipt-actions { order: 1; margin-top: 0; }
  .receipt-main { order: 2; }
  .tracker { order: 3; }
  body.route-checkout { --tabbar-h: 0px; }
  .checkout-page .co-actions {
    position: sticky; bottom: 0; z-index: 30; margin: 22px -20px -20px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg);
  }
  .toasts { bottom: calc(var(--tabbar-h) + 8px); }
  .select-wrap select, .select-wrap .dd { max-width: 150px; text-overflow: ellipsis; }
  .summary-toggle { gap: 8px; padding: 14px; }
  .order-row { gap: 10px; padding: 14px; }
  .order-row > .i { display: none; }
  .order-emojis span { width: 34px; height: 34px; font-size: 17px; margin-left: -10px; border-width: 2px; }
  .order-side { flex: none; }
  body.route-checkout .toasts { bottom: 96px; }
}

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .scroller { grid-auto-columns: 200px; }
  .cat-card p { display: block; }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .fields .full { grid-column: 1 / -1; }
  .options.two { grid-template-columns: 1fr 1fr; }
  .step-label { display: inline; }
  .paper { padding: 34px 32px 40px; }
}

@media (min-width: 900px) {
  .loc-pill, .header-search, .header-nav, .cart-btn { display: flex; }
  .header-loc-mobile, .tabbar { display: none; }
  .hero { padding: 56px 0 90px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .cat-card { min-height: 280px; padding: 22px; }
  .cat-card h3 { font-size: 19px; }
  .how-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .how-card { flex-direction: column; padding: 24px; }
  .how-grid::before { content: ''; position: absolute; left: 10%; right: 10%; top: 51px; border-top: 2px dashed var(--sky-3); z-index: 0; }
  .how-card { z-index: 1; }
  .scroll-btn { display: grid; }
  .promo-grid { grid-template-columns: 1.3fr 1fr; gap: 18px; }
  .promo { padding: 40px; min-height: 260px; }
  .visit-grid { grid-template-columns: 1fr 1.2fr; gap: 22px; }
  .visit-card { padding: 40px; }
  .map { min-height: 100%; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .card-body { padding: 14px 16px 16px; }
  .card-title { font-size: 15px; }
  .shop-bar-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .shop-tools .search-box { display: none; }
  .shop-hero-inner { min-height: 200px; }
  .shop-hero-emoji { width: 130px; height: 130px; font-size: 72px; margin-right: 40px; }

  .drawer { left: auto; top: 0; bottom: 0; right: 0; width: 440px; max-height: none; border-radius: 28px 0 0 28px; transform: translateX(105%); }
  .drawer .grab { display: none; }
  .drawer-head { padding-top: 22px; }

  .modal { align-items: center; padding: 24px; }
  .modal-card { max-width: 480px; border-radius: 28px; padding-bottom: 24px; transform: translateY(30px) scale(.94); opacity: 0; transition: transform .45s var(--spring), opacity .3s; }
  .modal.open .modal-card { transform: none; opacity: 1; }
  .modal-card .grab { display: none; }
  .modal-product { max-width: 860px; padding: 0; overflow: hidden; }
  .modal-product .modal-body { max-height: 88vh; overflow-y: auto; }
  .pm { grid-template-columns: 1fr 1fr; }
  .pm-media { margin: 0; aspect-ratio: auto; min-height: 460px; }
  .pm-emoji { font-size: 150px; }
  .pm-info { padding: 36px 32px 28px; }
  .pm-buy { position: static; background: none; }

  .toasts { left: auto; right: 24px; bottom: 24px; align-items: flex-end; }

  .checkout-grid { grid-template-columns: 1fr 380px; gap: 28px; }
  .panel { padding: 28px; }
  .summary { position: sticky; top: calc(var(--header-h) + 20px); }
  .summary-toggle { display: none; }
  .summary.collapsed .summary-inner, .summary-inner { display: block; margin-top: 0; }
  .receipt-layout { grid-template-columns: 1fr 1.25fr; gap: 28px; }
  .receipt-side { position: sticky; top: calc(var(--header-h) + 20px); order: 2; }
  .receipt-main { order: 1; }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@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; }
}

/* ---------- Print (receipt only) ---------- */
@media print {
  body { padding: 0; background: #fff; }
  .announce, .header, .footer, .tabbar, .toasts, .overlay, .drawer, .modal, #confetti,
  .success-head, .receipt-side, .back-link, .page-title, .page-sub { display: none !important; }
  .page { padding: 0; }
  .receipt-layout { display: block; margin: 0; }
  .paper { box-shadow: none; animation: none; max-width: 520px; margin: 0 auto; }
  .paper::before, .paper::after { display: none; }
  .stamp { animation: none; opacity: 1; }
}
