/* ==========================================================
   Milima - public menu. Built phone-first to feel like an app:
   bottom tab bar, photo cards, slide-up sheets.
   ========================================================== */
:root {
  --primary: #6d1a1f;
  --accent: #d9952b;
  --bg: #f6eedd;
  --card: #fffaf0;
  --ink: #2a1a15;
  --muted: #7b695b;
  --line: rgba(109, 26, 31, .12);
  --radius: 18px;
  --bar-h: 112px;
  --dock-h: 62px;
  --font-head: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-brand: "Kaushan Script", "Brush Script MT", cursive;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(217, 149, 43, .10), transparent 42%),
    radial-gradient(circle at 92% 62%, rgba(109, 26, 31, .06), transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body.has-dock { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
body.sheet-open { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 14px 28px; }

/* ---------- Hero: the printed menu's cover (parchment, logo artwork, flourish, doodles) ---------- */
.hero {
  position: relative;
  padding: calc(26px + env(safe-area-inset-top)) 20px 0;
  text-align: center;
  color: #5e0f10;
  background: #eadfc4 url("../img/parchment.jpg") center / cover;
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* fade the parchment into the page colour */
  content: ""; position: absolute; inset: auto 0 0; height: 45%; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero__inner { position: relative; z-index: 1; }
.hero__brand { margin: 0; animation: rise .7s ease both; }
.hero__brand img { width: min(66vw, 300px); height: auto; margin: 0 auto; }
.brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(3.4rem, 17vw, 5.4rem);
  line-height: 1.05;
  color: #5e0f10;
  animation: rise .7s ease both;
}
.brand-sub {
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5e0f10;
  animation: rise .7s .08s ease both;
}
.hero__rule { width: min(64vw, 270px); height: auto; margin: 12px auto 0; animation: rise .7s .1s ease both; }
.tagline {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.02rem;
  color: #6b3a25;
  animation: rise .7s .16s ease both;
}
.hero__hours {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 6px 14px;
  font-size: .82rem; font-weight: 600;
  color: #5e0f10;
  background: rgba(255, 250, 240, .6);
  border: 1px solid rgba(94, 15, 16, .25);
  border-radius: 99px;
}
/* food photo in a tilted oval with a thin gold ring, as on the cover */
.hero__photo { position: relative; height: 180px; margin: 18px -20px 0; animation: rise .8s .2s ease both; }
.hero__photo > div {
  position: absolute; inset: 0;
  background: #1a0d0c center 72% / cover;
  clip-path: ellipse(72% 100% at 50% 100%);
}
.hero__photo::before {
  content: ""; position: absolute; left: 50%; top: -8px; z-index: 1;
  width: 150%; height: 208%;
  transform: translateX(-51%) rotate(-3deg);
  border: 2px solid var(--accent); border-radius: 50%;
  pointer-events: none;
}
.hero__photo::after { /* content sheet rising over the photo */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; z-index: 2;
  background: var(--bg); border-radius: 22px 22px 0 0;
}
.doodle { position: absolute; z-index: 0; pointer-events: none; opacity: .75; }
.doodle--leaf { width: 92px; right: -14px; top: calc(2px + env(safe-area-inset-top)); opacity: .95; }
.doodle--mushroom { width: 34px; left: 16px; top: 170px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Notice ---------- */
.notice {
  max-width: 952px;
  margin: 0 auto 10px;
  padding: 11px 16px;
  width: calc(100% - 28px);
  font-size: .88rem;
  text-align: center;
  color: #5b3a06;
  background: color-mix(in srgb, var(--accent) 20%, #fff8e8);
  border: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 14px;
}

/* ---------- Sticky app bar: brand + search + category chips ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow .2s;
  padding-top: env(safe-area-inset-top);
}
.bar.is-stuck { box-shadow: 0 6px 22px rgba(60, 20, 10, .13); }
.bar__row { display: flex; align-items: center; gap: 12px; padding: 8px 14px 4px; max-width: 980px; margin: 0 auto; }
.bar__brand {
  font-family: var(--font-brand); font-size: 1.7rem; line-height: 1; color: var(--primary);
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .3s var(--ease), opacity .25s;
}
.bar.is-stuck .bar__brand { max-width: 40vw; opacity: 1; padding-right: 2px; }

.tabs { position: relative; display: none; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar, .chips::-webkit-scrollbar, .picks__rail::-webkit-scrollbar { display: none; }
.tabs--top .tab {
  position: relative;
  flex: none;
  padding: 12px 16px 10px;
  background: none; border: 0;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: .06em;
  color: var(--primary); opacity: .55;
  white-space: nowrap;
  transition: opacity .2s;
}
.tabs--top .tab::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 3px;
  background: var(--accent); border-radius: 3px;
  transform: scaleX(0); transition: transform .25s;
}
.tabs--top .tab.is-active { opacity: 1; }
.tabs--top .tab.is-active::after { transform: scaleX(1); }

.search {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 6px 0 14px;
  color: var(--muted);
  background: #fffdf7;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(70, 30, 10, .05);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.search input {
  flex: 1; min-width: 0; height: 100%;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming in */
  color: var(--ink);
  background: none; border: 0; outline: none;
  -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 32px; height: 32px; flex: none; font-size: .8rem; color: var(--muted); background: rgba(109, 26, 31, .08); border: 0; border-radius: 50%; }

.chips { position: relative; display: none; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 14px 10px; scroll-padding: 0 14px; max-width: 980px; margin: 0 auto; }
.chips.is-active { display: flex; }
.chip {
  flex: none;
  padding: 7px 15px;
  font-size: .86rem; font-weight: 600;
  color: var(--primary); text-decoration: none; white-space: nowrap;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.chip:active { transform: scale(.95); }
.chip.is-active { color: #fff6e6; background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent); }
body.searching .chips { display: none; }

/* ---------- Popular rail ---------- */
.picks { padding-top: 14px; }
.picks__title { font-family: var(--font-head); font-weight: 400; font-size: 1.35rem; letter-spacing: .05em; color: var(--primary); }
.picks__title span { color: var(--accent); }
.picks__rail {
  display: flex; gap: 12px;
  margin: 10px -14px 0; padding: 2px 14px 12px;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-padding: 0 14px;
}
.pick {
  position: relative;
  flex: none; width: 164px; height: 190px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: 12px; text-align: left;
  color: #fff6e6; background: var(--primary);
  border: 0; border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 8px 20px rgba(70, 30, 10, .16);
  transition: transform .15s;
}
.pick:active { transform: scale(.96); }
.pick img, .pick__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick__ph {
  display: grid; place-items: center; padding-bottom: 40px;
  font-family: var(--font-brand); font-size: 4rem; color: rgba(255, 246, 230, .85);
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent)));
}
.pick::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(180deg, transparent, rgba(20, 8, 8, .9)); }
.pick__name, .pick__price { position: relative; z-index: 1; }
.pick__name { font-weight: 700; font-size: .92rem; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.pick__price { font-family: var(--font-head); font-size: 1.15rem; color: var(--accent); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.searching .picks { display: none; }

/* ---------- Sections / categories ---------- */
.msec { display: none; }
.msec.is-active { display: block; animation: fade .35s var(--ease); }
body.searching .msec { display: block; animation: none; }
.msec__label { display: none; }
body.searching .msec__label {
  display: block; margin: 20px 0 -10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cat { padding-top: 22px; scroll-margin-top: var(--bar-h); }
.cat__title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 400;
  font-size: 1.85rem; line-height: 1; letter-spacing: .04em;
  color: var(--primary);
}
.cat__title::after {
  content: ""; flex: 1; height: 2px; margin-top: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.cat__note { margin-top: 5px; font-size: .86rem; font-style: italic; color: var(--muted); }
.cat__items { display: grid; gap: 10px; margin-top: 12px; }

/* ---------- Item card ---------- */
.item {
  position: relative;
  display: flex; align-items: stretch; gap: 12px;
  min-height: 108px; padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(70, 30, 10, .05);
  cursor: pointer;
  scroll-margin-top: calc(var(--bar-h) + 12px);
  transition: transform .15s var(--ease), box-shadow .15s;
}
.item:active { transform: scale(.98); box-shadow: 0 2px 6px rgba(70, 30, 10, .05); }
.item__img {
  flex: none; width: 88px; height: 88px; align-self: center;
  display: grid; place-items: center;
  border-radius: 14px; overflow: hidden;
  font-family: var(--font-brand); font-size: 2.2rem; color: rgba(255, 246, 230, .85);
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent)));
}
.item__img img { width: 100%; height: 100%; object-fit: cover; background: #eadfc8; }
.item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 2px 30px 2px 0; }
.item__name { font-size: .98rem; font-weight: 700; line-height: 1.25; }
.item__desc {
  margin-top: 3px; font-size: .82rem; line-height: 1.4; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price, .size {
  font-family: var(--font-head);
  font-size: 1.3rem; line-height: 1.1; letter-spacing: .03em;
  color: var(--primary); white-space: nowrap;
}
.item .price, .item .sizes { margin-top: auto; padding-top: 6px; }
.sizes { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.size { display: flex; flex-direction: column; }
.size small {
  font-family: var(--font-body); font-size: .6rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.fav {
  position: absolute; top: 6px; right: 6px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: #b9a898; background: none; border: 0; border-radius: 50%;
  transition: color .2s, transform .15s;
}
.fav svg { width: 22px; height: 22px; }
.fav:active { transform: scale(.85); }
.fav.is-on { color: var(--primary); }
.fav.is-on svg { fill: currentColor; animation: pop .35s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

.tag {
  display: inline-block; vertical-align: 2px; margin-left: 2px;
  padding: 2px 8px;
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #6a4400;
  background: color-mix(in srgb, var(--accent) 26%, #fff);
  border-radius: 99px; white-space: nowrap;
}
.tag--out { color: #fff; background: #8d8379; }
.item.is-out .item__name, .item.is-out .item__desc, .item.is-out .price, .item.is-out .size { opacity: .5; }
.item.is-out .price, .item.is-out .size { text-decoration: line-through; }
.item.is-out .item__img { filter: grayscale(1); opacity: .6; }

/* ---------- Empty states ---------- */
.nores, .closed { padding: 56px 20px; text-align: center; color: var(--muted); }
.nores__icon, .closed__icon { font-size: 2.6rem; margin-bottom: 10px; }
.closed h2 { font-family: var(--font-head); font-weight: 400; font-size: 2.2rem; color: var(--primary); letter-spacing: .04em; }
.btn-link { margin-top: 10px; background: none; border: 0; color: var(--primary); font-weight: 700; text-decoration: underline; }

/* ---------- Bottom tab bar ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, #fffaf0 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(60, 20, 10, .08);
}
.dock__btn {
  position: relative;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 2px 2px;
  font-size: .64rem; font-weight: 700; letter-spacing: .01em;
  color: #8a786b; background: none; border: 0;
  transition: color .2s;
}
.dock__btn svg { width: 24px; height: 24px; padding: 3px 0; box-sizing: content-box; width: 46px; border-radius: 99px; transition: background .25s, transform .2s var(--ease); }
.dock__btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock__btn:active svg { transform: scale(.9); }
.dock__btn.is-active { color: var(--primary); }
.dock__btn.is-active svg { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.dock__count {
  position: absolute; top: 0; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  font-size: .64rem; font-weight: 800; color: #fff;
  background: var(--primary); border: 2px solid #fffaf0; border-radius: 99px;
  box-sizing: content-box;
}
.dock__count.bump { animation: pop .35s var(--ease); }

/* ---------- Sheets (slide up from the bottom) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 8, 8, 0);
  transition: background .3s;
}
.sheet.is-open { background: rgba(20, 8, 8, .58); }
#itemSheet { z-index: 95; }
.sheet__panel {
  position: relative;
  width: 100%; max-width: 520px; max-height: 90dvh;
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  transform: translateY(102%);
  transition: transform .36s var(--ease);
  will-change: transform;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .3);
}
.sheet--tall .sheet__panel { height: 90dvh; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet.is-dragging .sheet__panel { transition: none; }
.sheet__grab { position: absolute; top: 8px; left: 50%; z-index: 3; width: 42px; height: 5px; margin-left: -21px; background: rgba(255, 255, 255, .85); border-radius: 99px; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.sheet__close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px;
  font-size: .9rem; color: var(--ink);
  background: rgba(255, 250, 240, .92); border: 0; border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.sheet__scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet__photo { position: relative; aspect-ratio: 4 / 3; max-height: 46dvh; width: 100%; background: #eadfc8; overflow: hidden; }
.sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet__photo.is-tall img { object-fit: contain; position: relative; z-index: 1; }
.sheet__photo.is-tall::before { content: ""; position: absolute; inset: -20px; background: var(--blur) center/cover; filter: blur(22px) brightness(.8); }
.sheet__photo--none { aspect-ratio: auto; height: 120px; display: grid; place-items: center; font-family: var(--font-brand); font-size: 4rem; color: rgba(255, 246, 230, .85); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); }
.sheet__body { padding: 18px 20px 8px; }
.sheet__cat { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sheet__name { margin-top: 4px; font-family: var(--font-head); font-weight: 400; font-size: 2.1rem; line-height: 1.02; letter-spacing: .03em; color: var(--primary); }
.sheet__desc { margin-top: 10px; font-size: .98rem; line-height: 1.55; color: #5d4c40; }
.sheet__price { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sheet__price .opt {
  display: inline-flex; flex-direction: column; align-items: flex-start; padding: 8px 16px;
  font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; letter-spacing: .03em; color: var(--primary);
  background: color-mix(in srgb, var(--accent) 16%, #fff); border: 2px solid transparent; border-radius: 14px;
}
.sheet__price small { font-family: var(--font-body); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet__price.is-choice .opt { background: #fff; border-color: var(--line); opacity: .75; transition: border-color .15s, background .15s, opacity .15s; }
.sheet__price.is-choice .opt.is-active { opacity: 1; border-color: var(--primary); background: color-mix(in srgb, var(--accent) 16%, #fff); }
.sheet__soldout { margin-top: 14px; padding: 10px 14px; font-size: .88rem; font-weight: 600; color: #5d534b; background: #ece5db; border-radius: 12px; }
.sheet__foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
.sheet__head { padding: 26px 20px 12px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font-family: var(--font-head); font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: .04em; color: var(--primary); }
.sheet__head p { margin-top: 4px; font-size: .86rem; color: var(--muted); }
.sheet--tall .sheet__grab { background: #d9cdbd; box-shadow: none; }
.sheet--tall .sheet__close { box-shadow: none; background: rgba(109, 26, 31, .08); }

.cta {
  width: 100%; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem;
  color: #fff6e6; background: var(--primary);
  border: 2px solid var(--primary); border-radius: 99px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 32%, transparent);
  transition: transform .1s, background .2s, color .2s;
}
.cta:active { transform: scale(.98); }
.cta.is-on, .cta--ghost { color: var(--primary); background: transparent; box-shadow: none; }
.cta.is-on svg { fill: currentColor; }

/* My list rows */
.saved { display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer; }
.saved + .saved { border-top: 1px solid var(--line); }
.saved__img { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 12px; overflow: hidden; font-family: var(--font-brand); font-size: 1.5rem; color: rgba(255, 246, 230, .85); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); }
.saved__img img { width: 100%; height: 100%; object-fit: cover; }
.saved__main { flex: 1; min-width: 0; }
.saved__name { font-weight: 700; line-height: 1.25; }
.saved__price { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: .03em; color: var(--primary); }
.saved__rm { width: 36px; height: 36px; flex: none; font-size: .85rem; color: var(--muted); background: rgba(109, 26, 31, .07); border: 0; border-radius: 50%; }
.saved-empty { padding: 60px 30px; text-align: center; color: var(--muted); }
.saved-empty svg { width: 54px; height: 54px; margin: 0 auto 12px; display: block; color: #d6c7b6; }

/* ---------- Ordering: add buttons, quantity steppers ---------- */
.add {
  position: absolute; top: 8px; right: 8px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--primary); background: color-mix(in srgb, var(--accent) 22%, #fff);
  border: 0; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(70, 30, 10, .12);
  transition: transform .15s var(--ease), background .2s, color .2s;
}
.add svg { width: 20px; height: 20px; stroke-width: 2.6; }
.add:active { transform: scale(.85); }
.add.is-on { color: #fff6e6; background: var(--primary); }
.add b {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: grid; place-items: center;
  font-size: .66rem; font-weight: 800; color: #2b1505;
  background: var(--accent); border: 2px solid var(--card); border-radius: 99px; box-sizing: content-box;
}
.item__body { padding-right: 34px; }

.qty { display: inline-flex; align-items: center; background: color-mix(in srgb, var(--accent) 14%, #fff); border-radius: 99px; }
.qty button { width: 46px; height: 52px; font-size: 1.4rem; font-weight: 700; color: var(--primary); background: none; border: 0; }
.qty b { min-width: 26px; text-align: center; font-family: var(--font-head); font-size: 1.4rem; font-weight: 400; }
.qty--sm button { width: 34px; height: 36px; font-size: 1.05rem; }
.qty--sm b { min-width: 20px; font-size: 1.15rem; }

.sheet__foot--add { display: flex; gap: 10px; align-items: center; }
.cta b { font-family: var(--font-head); font-weight: 400; font-size: 1.2rem; letter-spacing: .03em; }
.cta b:not(:empty)::before { content: "· "; }
.cta.is-busy { color: transparent !important; pointer-events: none; position: relative; }
.cta.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* basket rows reuse .saved */
.saved { cursor: default; }
.saved__name small, .saved__price small { font-family: var(--font-body); font-size: .78rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.saved__qty { font-family: var(--font-head); font-weight: 400; font-size: 1.15rem; color: var(--muted); }

.sheet__head { display: flex; align-items: flex-start; gap: 10px; padding-right: 60px; }
.sheet__back { flex: none; width: 36px; height: 36px; margin-top: -2px; font-size: 1.1rem; color: var(--primary); background: rgba(109, 26, 31, .08); border: 0; border-radius: 50%; }

.totals { padding: 10px 20px 4px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .92rem; color: var(--muted); }
.totals b { font-weight: 600; color: var(--ink); }
.totals .is-total { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; font-size: 1rem; color: var(--ink); }
.totals .is-total b { font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; color: var(--primary); }
.totals--foot { padding: 0 2px 10px; }
.totals--foot .is-total { margin: 0; padding-top: 0; border: 0; }
#cartFoot .cta + .cta { margin-top: 8px; }
.cta--ghost { min-height: 44px; border-color: var(--line); font-size: .9rem; }

/* ---------- Checkout form ---------- */
.checkout { padding: 14px 20px 6px; }
.checkout__note { margin-bottom: 4px; padding: 10px 14px; font-size: .86rem; color: #5b3a06; background: color-mix(in srgb, var(--accent) 18%, #fff8e8); border-radius: 12px; }
.flabel { display: block; margin: 14px 0 6px; font-size: .84rem; font-weight: 700; color: #4a3a31; }
.flabel small { font-weight: 500; color: var(--muted); }
.finput {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px; outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.finput { resize: vertical; min-height: 70px; line-height: 1.4; }
.finput:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; background: rgba(109, 26, 31, .07); border-radius: 15px; }
.seg button { min-height: 42px; padding: 6px 4px; font-weight: 700; font-size: .88rem; color: var(--muted); background: none; border: 0; border-radius: 11px; transition: background .15s, color .15s; }
.seg button.is-active { color: var(--primary); background: #fff; box-shadow: 0 2px 8px rgba(70, 30, 10, .12); }
.locbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 10px;
  font-weight: 700; font-size: .9rem; color: var(--primary);
  background: #fff; border: 1.5px dashed var(--primary); border-radius: 13px;
}
.locbtn.is-on { color: #0e5c30; background: #e3f6ea; border: 1.5px solid #7bc79a; }
.locbtn.is-busy { opacity: .6; pointer-events: none; }
.locbtn.is-busy svg { animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }
.lochint { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkout .totals { padding: 16px 0 4px; }

/* ---------- Order tracking ---------- */
.track__status { padding: 22px 20px 6px; text-align: center; }
.track__icon { font-size: 3rem; line-height: 1; }
.track__status h3 { margin-top: 8px; font-family: var(--font-head); font-weight: 400; font-size: 1.9rem; letter-spacing: .04em; color: var(--primary); }
.track__status p { margin-top: 2px; font-size: .94rem; color: var(--muted); }
.steps { display: flex; margin: 16px 20px 10px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; flex: 1; padding-top: 30px; text-align: center; font-size: .7rem; font-weight: 700; color: #b3a394; }
.steps li::before {
  content: ""; position: absolute; top: 6px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
  background: #fff; border: 3px solid #d9cdbd; border-radius: 50%; z-index: 1; box-sizing: border-box;
}
.steps li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 3px; background: #d9cdbd; }
.steps li:first-child::after { display: none; }
.steps li.is-done, .steps li.is-now { color: var(--primary); }
.steps li.is-done::before, .steps li.is-now::before { background: var(--primary); border-color: var(--primary); }
.steps li.is-done::after, .steps li.is-now::after { background: var(--primary); }
.steps li.is-now::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 45%, transparent); }

.trackpill {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 10px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px;
  font-weight: 700; font-size: .88rem; text-align: left;
  color: #fff6e6; background: var(--primary); border: 0; border-radius: 99px;
  box-shadow: 0 10px 26px rgba(60, 20, 10, .35);
}
.trackpill span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trackpill__dot { width: 10px; height: 10px; flex: none; background: var(--accent); border-radius: 50%; animation: pulse 1.4s ease infinite; }
body.has-pill.has-dock { padding-bottom: calc(var(--dock-h) + 62px + env(safe-area-inset-bottom)); }
body.has-pill .totop { bottom: calc(var(--dock-h) + 70px + env(safe-area-inset-bottom)); }

.cartfab { display: none; }

/* ---------- Footer ---------- */
.foot {
  margin-top: 16px;
  padding: 34px 20px 34px;
  text-align: center;
  color: #f3e4cc;
  background: var(--primary);
  border-radius: 26px 26px 0 0;
}
.foot__logo { width: min(56vw, 220px); height: auto; margin: 0 auto; }
.foot__rule { width: min(56vw, 230px); height: auto; margin: 12px auto 0; opacity: .9; }
.foot__brand { font-family: var(--font-brand); font-size: 2.5rem; line-height: 1; }
.foot__sub { margin-top: 6px; font-family: var(--font-head); letter-spacing: .3em; color: var(--accent); }
.foot__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.fbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  font-weight: 700; font-size: .92rem; text-decoration: none;
  color: var(--primary); background: #fff6e6;
  border-radius: 99px;
}
.fbtn--wa { color: #fff; background: #1faa59; }
.foot__block { margin-top: 22px; font-size: .92rem; }
.foot__block h4 { margin-bottom: 4px; font-family: var(--font-head); font-weight: 400; font-size: 1.05rem; letter-spacing: .14em; color: var(--accent); }
.foot__social { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.foot__social a { color: inherit; font-weight: 600; font-size: .9rem; }
.foot__note { margin-top: 22px; font-size: .8rem; opacity: .75; }
.foot__note + .foot__note { margin-top: 8px; }
.foot__note a { color: inherit; }
.foot__copy { margin-top: 8px; font-size: .75rem; opacity: .55; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: #fff6e6; background: var(--primary);
  border: 2px solid color-mix(in srgb, var(--accent) 80%, transparent); border-radius: 50%;
  box-shadow: 0 8px 22px rgba(60, 20, 10, .32);
  font-size: 1.1rem;
}
body.has-dock .totop { bottom: calc(var(--dock-h) + 14px + env(safe-area-inset-bottom)); }

/* ---------- SweetAlert theming ---------- */
.swal2-popup { font-family: var(--font-body); border-radius: 20px !important; background: var(--card) !important; color: var(--ink) !important; }
.swal2-title { color: var(--primary) !important; }
.swal2-toast { border-radius: 99px !important; padding: .5em 1.1em !important; box-shadow: 0 8px 26px rgba(60, 20, 10, .25) !important; }
.swal2-toast .swal2-title { font-size: .92rem !important; color: var(--ink) !important; }
.swal2-styled.swal2-confirm { background: var(--primary) !important; border-radius: 99px !important; font-weight: 700 !important; }
.swal2-styled.swal2-cancel { border-radius: 99px !important; font-weight: 700 !important; }

/* ---------- Credits page ---------- */
.credits { max-width: 760px; margin: 0 auto; padding: 28px 16px 60px; }
.credits h1 { font-family: var(--font-head); font-weight: 400; font-size: 2.2rem; letter-spacing: .04em; color: var(--primary); }
.credits p { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.credits ul { margin: 18px 0 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.credits li { padding: 10px 14px; font-size: .86rem; }
.credits li + li { border-top: 1px solid var(--line); }
.credits li b { display: block; }
.credits a { color: var(--primary); }

/* ---------- Tablets and desktop: tabs move to the top, cards go two-up ---------- */
@media (min-width: 760px) {
  body.has-dock { padding-bottom: 0; }
  .dock { display: none; }
  body.has-dock .totop { bottom: 24px; right: 24px; }
  .cartfab {
    position: fixed; right: 24px; bottom: 24px; z-index: 45;
    display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px;
    font-weight: 700; color: #fff6e6; background: var(--primary); border: 0; border-radius: 99px;
    box-shadow: 0 10px 28px rgba(60, 20, 10, .35);
  }
  .cartfab b { min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; font-size: .8rem; color: #2b1505; background: var(--accent); border-radius: 99px; }
  body.has-dock .totop { bottom: 92px; }
  .trackpill { left: auto; right: 24px; bottom: 92px; max-width: 360px; }
  body.has-pill.has-dock { padding-bottom: 0; }
  body.has-pill .totop { bottom: 152px; }
  .hero { padding-top: 40px; }
  .hero__brand img { width: 380px; }
  .hero__photo { height: 260px; margin-top: 26px; }
  .hero__photo > div { clip-path: ellipse(58% 100% at 50% 100%); background-position: center 62%; }
  .hero__photo::before { width: 120%; transform: translateX(-50.500%) rotate(-1.500deg); }
  .doodle--leaf { width: 150px; right: 7%; top: 16px; }
  .doodle--mushroom { width: 54px; left: 18%; top: 210px; }
  .bar__row { padding: 8px 20px 0; }
  .bar__brand, .bar.is-stuck .bar__brand { max-width: none; opacity: 1; font-size: 2rem; padding-right: 8px; }
  .tabs { display: flex; flex: 1; }
  .search { flex: 0 0 280px; }
  .chips { flex-wrap: wrap; padding: 10px 20px 12px; }
  .wrap { padding-inline: 20px; }
  .cat__items { grid-template-columns: 1fr 1fr; gap: 14px; }
  .item__img { width: 104px; height: 104px; }
  .picks__rail { margin-inline: 0; padding-inline: 0; }
  .pick { width: 190px; height: 210px; }
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { border-radius: 26px; max-height: 88dvh; transform: translateY(30px) scale(.96); opacity: 0; transition: transform .28s var(--ease), opacity .2s; }
  .sheet--tall .sheet__panel { height: min(720px, 88dvh); }
  .sheet.is-open .sheet__panel { opacity: 1; }
  .sheet__grab { display: none; }
  .foot { margin-top: 30px; }
}

@media (max-width: 359px) {
  .item__img { width: 72px; height: 72px; }
  .dock__btn { font-size: .58rem; }
  .dock__btn svg { width: 38px; }
}

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

@media print {
  .bar, .dock, .totop, .picks, .hero__hours, .add, .sheet, .cartfab, .trackpill { display: none !important; }
  body.has-dock { padding-bottom: 0; }
  .msec { display: block !important; }
  .hero { background: none !important; }
  .hero__photo, .doodle { display: none; }
  .item { box-shadow: none; break-inside: avoid; }
}

/* ---------- "Display view" button: only offered on big screens (TVs, monitors) ---------- */
.tvbtn { display: none; }
@media (min-width: 1000px) {
  .tvbtn {
    position: absolute; top: 18px; right: 22px; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    font-size: .9rem; font-weight: 700; text-decoration: none; color: #fff6e6;
    background: var(--primary); border-radius: 99px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .15s var(--ease);
  }
  .tvbtn:hover { transform: translateY(-2px); }
  .tvbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}
@media print { .tvbtn { display: none !important; } }
