/* Cookie Monster LK — public site. Mobile-first; sky/blue theme from the original brand site. */
:root {
  --bg: #f0f7ff; --paper: #fff; --ink: #0f172a; --text: #334155; --muted: #64748b;
  --line: #dbeafe; --line2: #e2e8f0; --blue: #155dfc; --blue-d: #1447e6; --blue-soft: #e0edff;
  --amber: #d97706; --amber-soft: #fef3c7; --green: #16a34a; --wa: #25d366; --red: #dc2626;
  --r: 22px; --r-sm: 14px; --shadow: 0 10px 30px -12px rgba(21, 93, 252, .25);
  --head: "Syne", system-ui, sans-serif; --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --top: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 60px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--blue); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 6vw, 52px); }
h3 { font-size: 22px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.muted { color: var(--muted); }
.kicker { color: var(--blue); text-transform: uppercase; font-weight: 700; margin: 0 0 8px; letter-spacing: .12em; font-size: 11px; }
.blue { color: var(--blue); } .amber { color: var(--amber); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(21, 93, 252, .7); }
.btn.primary:hover { background: var(--blue-d); }
.btn.primary:disabled { background: #94a3b8; box-shadow: none; cursor: default; }
.btn.outline { background: #fff; border-color: #bfdbfe; color: var(--ink); }
.btn.outline:hover { border-color: var(--blue); }
.btn.white { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; border-color: var(--line2); color: var(--ink); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.insta { background: linear-gradient(90deg, #db2777, #e1306c, #f59e0b); color: #fff; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.cta.center { justify-content: center; margin-top: 28px; }
.cta .btn { flex: 1 1 220px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { height: var(--top); display: flex; align-items: center; gap: 12px; }
.logo { font-family: var(--head); font-weight: 800; color: var(--blue); text-decoration: none; font-size: clamp(14px, 3.7vw, 26px); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.logo.light { color: #93c5fd; margin: 0 0 10px; }
.nav { display: none; margin-left: auto; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.bag-btn { margin-left: auto; padding-right: 16px; position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 6px 16px -6px rgba(21, 93, 252, .8); }
.bag-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.bag-btn .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--amber); color: #fff; font: 700 11px/20px var(--body); text-align: center; border: 2px solid #fff; }
.bag-btn.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.15); } }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #e3f0ff, var(--bg)); padding: 28px 0 40px; }
.hero-in { display: grid; gap: 28px; }
.hero-in > * { min-width: 0; }
.eyebrow-line { color: var(--blue-d); margin: 0 0 14px; line-height: 1.8; }
.eyebrow-line a { color: inherit; text-decoration: none; white-space: nowrap; }
.hero h1 { font-size: clamp(34px, 10vw, 76px); font-weight: 800; line-height: .98; margin-bottom: 16px; }
.lead { font-size: 16px; color: var(--text); margin: 0 0 20px; max-width: 520px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid #bfdbfe; border-bottom: 1px solid #bfdbfe; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; min-width: 0; }
.stat b { display: block; font-size: 16px; color: var(--ink); }
.stat b.amber { color: var(--amber); } .stat b.blue { color: var(--blue); }
.stat span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #bfdbfe; border-radius: var(--r-sm); padding: 0 14px; height: 48px; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font-size: 15px; }
.hero-search { margin-bottom: 16px; }
.assure { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.hero-card { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: #1e293b; aspect-ratio: 4 / 3; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card figcaption { position: absolute; inset: auto 0 0 0; padding: 90px 18px 18px; background: linear-gradient(transparent, rgba(2, 6, 23, .92) 70%); color: #fff; display: grid; gap: 10px; }
.hero-card figcaption .mono { color: #7dd3fc; text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; }
.hero-card strong { font-family: var(--head); font-size: clamp(18px, 4.5vw, 26px); line-height: 1.15; }
.hero-card .btn { justify-self: start; }

/* ---------- menu ---------- */
.menu-sec { padding: 48px 0 56px; }
.sec-head { display: grid; gap: 16px; margin-bottom: 20px; }
.sec-head p.muted { max-width: 560px; margin: 10px 0 0; }
.cats-bar { position: sticky; top: var(--top); z-index: 20; background: var(--bg); margin: 0 -16px; padding: 10px 16px; }
.cats-bar.stuck { box-shadow: 0 8px 14px -12px rgba(15, 23, 42, .3); }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); }
.cats button.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 14px -6px rgba(21, 93, 252, .8); }
.moq-bar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0 16px; color: var(--blue-d); }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.loading, .empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card .ph { position: relative; aspect-ratio: 4 / 3; background: #eef6ff; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.04); }
.tile { width: 100%; height: 100%; display: grid; place-items: center; font-size: clamp(56px, 8vw, 96px); }
.c-cookies { background: linear-gradient(135deg, #fde68a, #f59e0b); } .c-smash { background: linear-gradient(135deg, #fecaca, #f97316); }
.c-donuts { background: linear-gradient(135deg, #fbcfe8, #ec4899); } .c-cupcakes { background: linear-gradient(135deg, #ddd6fe, #a78bfa); }
.c-brownies { background: linear-gradient(135deg, #d6b38f, #78350f); } .c-bento { background: linear-gradient(135deg, #bae6fd, #3b82f6); }
.c-cakes { background: linear-gradient(135deg, #fed7aa, #fb7185); } .c-gifts { background: linear-gradient(135deg, #bfdbfe, #155dfc); }
.c-more { background: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.badge { position: absolute; top: 12px; right: 12px; background: var(--amber); color: #fff; font: 700 11px var(--body); padding: 5px 10px; border-radius: 999px; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .meta { color: var(--muted); font-size: 11px; }
.card .meta i { font-style: normal; color: var(--amber); }
.card h3 { font-family: var(--head); font-size: 19px; line-height: 1.15; }
.card .sub { color: var(--muted); font-size: 14px; margin: 0; }
.variants { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.variants button { height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: #fff; font-size: 13px; font-weight: 600; }
.variants button.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-d); }
.card .cfoot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price small { display: block; font-size: 11px; color: var(--muted); }
.price b { font-family: var(--mono); font-size: 18px; color: var(--ink); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--blue); border-radius: 12px; overflow: hidden; height: 42px; }
.stepper button { width: 42px; height: 100%; border: 0; background: var(--blue-soft); color: var(--blue-d); font-size: 20px; font-weight: 700; }
.stepper span { min-width: 36px; text-align: center; font-weight: 800; }

/* ---------- gifts ---------- */
.gifts { padding: 56px 0; background: #fff; }
.center-head { text-align: center; max-width: 680px; margin: 0 auto 26px; }
.center-head .muted { margin: 12px 0 18px; }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: var(--bg); border: 1px solid var(--line); padding: 5px; border-radius: 14px; }
.seg button { border: 0; background: transparent; height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--blue); color: #fff; }
.gpanel { display: none; } .gpanel.on { display: block; }
.gift-card { max-width: 940px; margin: 0 auto; display: grid; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 16px; box-shadow: var(--shadow); }
.gift-img { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; }
.gift-img img { width: 100%; height: 100%; object-fit: cover; }
.gift-img .pill { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.gift-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-family: var(--head); font-size: 20px; background: linear-gradient(transparent, rgba(2, 6, 23, .8)); }
.gift-body { display: flex; flex-direction: column; gap: 12px; padding: 4px; }
.gift-body h3 { font-size: 30px; }
.gift-body p { margin: 0; }
.inside { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; }
.inside .mono { color: var(--muted); text-transform: uppercase; margin: 0 0 8px; }
.inside ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.gift-foot { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; }
.price-big { font-family: var(--mono); font-size: 26px; color: var(--blue); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.gift-card.custom { max-width: 640px; }

/* ---------- reheat ---------- */
.reheat { padding: 56px 0; }
.reheat-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.reheat-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.reheat-top h3 { font-size: 22px; }
.reheat-facts { display: flex; gap: 8px; }
.reheat-facts div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.reheat-facts span { display: block; font-size: 10px; color: var(--muted); }
.reheat-facts b { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.reheat-card p { margin: 0; }
.tip { background: var(--amber-soft); border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.pair { font-size: 13px; color: var(--muted); }

/* ---------- reviews ---------- */
.reviews { padding: 56px 0 64px; background: #fff; }
.rev-grid { display: grid; gap: 14px; }
.rev { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.rev blockquote { margin: 0; font-size: 15px; color: var(--ink); flex: 1; }
.rev figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.rev figcaption .mono { color: var(--muted); }
.rev figcaption em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--blue-d); background: var(--blue-soft); padding: 3px 9px; border-radius: 999px; }

/* ---------- footer ---------- */
.foot { background: #0b1220; color: #94a3b8; padding: 44px 0 calc(90px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot-in { display: grid; gap: 26px; }
.foot h4 { font-family: var(--body); color: #e2e8f0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.foot p { margin: 0; }
.foot a { color: #cbd5e1; }
.copy { border-top: 1px solid #1e293b; margin-top: 30px; padding-top: 18px; font-size: 12px; }

/* ---------- drawer (bag / checkout) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 60; }
.drawer { position: fixed; z-index: 70; inset: auto 0 0 0; max-height: 92dvh; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(2, 6, 23, .25); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line2); }
.x { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bg); font-size: 16px; }
.drawer-body { overflow-y: auto; padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.line .th { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.line .th img { width: 100%; height: 100%; object-fit: cover; }
.line .th .tile { font-size: 26px; }
.line .nm { font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.3; }
.line .pr { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.line .stepper { height: 36px; } .line .stepper button { width: 34px; font-size: 18px; } .line .stepper span { min-width: 28px; }
.totals { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-weight: 700; }
.totals b { font-family: var(--mono); font-size: 20px; color: var(--ink); }
.warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 8px 0; }
.hint { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.empty-bag { text-align: center; padding: 30px 0; }
.empty-bag .big { font-size: 48px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink); }
.form input, .form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px; font-size: 16px; font-weight: 400; background: #fff; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.form textarea { min-height: 76px; resize: vertical; }
.form .seg { display: grid; grid-template-columns: 1fr 1fr; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.times button { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: #fff; font-size: 13px; font-weight: 600; }
.times button.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-d); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done { text-align: center; display: grid; gap: 10px; padding: 10px 0; }
.done .big { font-size: 56px; }
.done .no { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--blue); }
.done p { margin: 0; }

/* ---------- chat ---------- */
.chat-fab { position: fixed; z-index: 50; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 54px; padding: 0 18px 0 16px; border: 0; border-radius: 27px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 12px 28px -10px rgba(2, 6, 23, .6); }
.chat { position: fixed; z-index: 80; inset: 0; background: #fff; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--blue); color: #fff; }
.chat-head b { display: block; font-family: var(--head); font-size: 18px; }
.chat-head span { font-size: 12px; opacity: .85; }
.chat-head .x { background: rgba(255, 255, 255, .18); color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.summary { background: #fff; border: 1px solid var(--blue); border-radius: 16px; padding: 14px; font-size: 14px; }
.summary h4 { font-family: var(--body); margin-bottom: 8px; }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: 4px 0; } .summary .r { text-align: right; white-space: nowrap; }
.summary .tot td { border-top: 1px solid var(--line2); font-weight: 800; padding-top: 8px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; }
.summary .actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.summary .actions .btn { min-height: 42px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 8px; background: var(--bg); scrollbar-width: none; }
.chip { flex: none; height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid #bfdbfe; background: #fff; font-size: 13px; font-weight: 600; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line2); background: #fff; }
.chat-form input { flex: 1; min-width: 0; height: 46px; border: 1px solid #cbd5e1; border-radius: 23px; padding: 0 16px; font-size: 16px; }
.chat-form button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 18px; }
.chat-form button:disabled { background: #94a3b8; }
.typing i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 10px 24px -8px rgba(2, 6, 23, .5); }

/* ---------- order tracking page ---------- */
.track { max-width: 620px; margin: 0 auto; padding: 28px 16px 64px; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 14px; }
.track h1 { font-size: 32px; margin: 4px 0 8px; }
.status { display: inline-block; background: var(--blue-soft); color: var(--blue-d); font-weight: 800; padding: 6px 14px; border-radius: 999px; margin-bottom: 8px; }
.status.cancelled { background: #fdecea; color: var(--red); }
.bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0 6px; }
.bar i { height: 6px; border-radius: 3px; background: #e2e8f0; }
.bar i.on { background: var(--blue); }
.bar-l { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 10.5px; color: var(--muted); font-weight: 600; text-align: center; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl td { padding: 8px 0; border-bottom: 1px solid var(--line2); vertical-align: top; }
.tbl td.r { text-align: right; white-space: nowrap; font-weight: 700; }
.tbl tr.tot td { border: 0; font-weight: 800; font-size: 17px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }

/* ---------- phones: compact row cards so the long menu scrolls quickly ---------- */
@media (max-width: 559px) {
  .card { flex-direction: row; border-radius: 18px; }
  .card .ph { width: 116px; flex: none; aspect-ratio: auto; min-height: 150px; }
  .card .ph .tile { font-size: 44px; }
  .badge { top: 8px; left: 8px; right: auto; font-size: 9.5px; padding: 3px 7px; }
  .card .body { padding: 12px; gap: 4px; min-width: 0; }
  .card h3 { font-size: 16px; }
  .card .sub { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .meta { font-size: 10px; }
  .card .cfoot { padding-top: 8px; }
  .price b { font-size: 16px; }
  .card .btn.sm { padding: 0 12px; }
  .stepper { height: 38px; } .stepper button { width: 36px; }
  .variants button { height: 30px; padding: 0 10px; font-size: 12px; }
}

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 20px; } .stat span { font-size: 11px; }
}
@media (min-width: 900px) {
  :root { --top: 72px; }
  .nav { display: flex; }
  .bag-btn { margin-left: 28px; }
  .hero { padding: 56px 0 72px; }
  .hero-in { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
  .hero-card { aspect-ratio: 16 / 10; }
  .sec-head { grid-template-columns: 1fr 380px; align-items: end; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .gift-card { grid-template-columns: 1fr 1fr; padding: 28px; align-items: center; }
  .gift-card.custom { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-in { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; }
  .menu-sec, .gifts, .reheat, .reviews { padding: 84px 0; }
  .cats-bar { margin: 0; padding: 10px 0; }
  .drawer { inset: 0 0 0 auto; width: 440px; max-height: none; border-radius: 0; animation: side .22s ease-out; }
  @keyframes side { from { transform: translateX(40px); opacity: 0; } }
  .chat { inset: auto 20px 20px auto; width: 400px; height: min(640px, calc(100dvh - 40px)); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(2, 6, 23, .5); }
  .chat-head { padding-top: 12px; }
  .foot { padding-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- checkout: phone with country code, split delivery address ---------- */
.form .field { display: grid; gap: 5px; }
.form .lbl { font-size: 13px; font-weight: 700; color: var(--ink); }
.form select { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 10px; font-size: 16px; background: #fff; color: var(--ink); }
.form select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.phone { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
.addr { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0; display: grid; gap: 10px; background: var(--bg); }
.addr legend { font-size: 13px; font-weight: 800; color: var(--ink); padding: 0 6px; }
.addr-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.form .two label, .addr-row label { min-width: 0; }
