/* Amara's Kitchen — demo theme (pepper red + palm gold on warm cream, with a woven print border) */
@font-face {
  font-family: "Bricolage"; font-style: normal; font-display: swap;
  font-weight: 200 800; font-stretch: 75% 100%;
  src: url("../fonts/bricolage.woff2") format("woff2-variations"), url("../fonts/bricolage.woff2") format("woff2");
}
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/dmsans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("../fonts/dmsans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/dmsans-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --pepper: #7f1d12;
  --pepper-2: #98291a;
  --pepper-deep: #3d0d07;
  --gold: #f4a524;
  --gold-2: #ffbf4d;
  --leaf: #2f6b3a;
  --cream: #fbf4ea;
  --sand: #f3e6d3;
  --card: #ffffff;
  --ink: #22150f;
  --muted: #6b5a50;
  --line: #eadccb;
  --red: #b42318;
  --chilli: #d92d1f;
  --display: "Bricolage", "Arial Narrow", Arial, sans-serif;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  /* woven print strip used as a border between sections */
  --print: repeating-linear-gradient(90deg, var(--gold) 0 18px, var(--pepper-deep) 18px 22px, var(--leaf) 22px 40px, var(--pepper-deep) 40px 44px, #f7e2b8 44px 62px, var(--pepper-deep) 62px 66px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: var(--pepper-deep); }
.btn-gold:hover { background: var(--gold-2); }
.btn-pepper { background: var(--pepper); color: #fff; }
.btn-pepper:hover { background: var(--pepper-2); }
.btn-ghost { color: var(--pepper); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--pepper); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--pepper); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.chilli-row { display: inline-flex; gap: 2px; vertical-align: middle; }
.chilli-row i { width: 8px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--chilli); transform: rotate(18deg); position: relative; }
.chilli-row i::before { content: ""; position: absolute; top: -3px; left: 2px; width: 4px; height: 4px; border-radius: 2px; background: var(--leaf); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--pepper-deep); color: #fff; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--print); }
.top-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; font-stretch: 85%; }
.logo svg { width: 36px; height: 36px; flex: none; }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a { color: #f1d9cf; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.top-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.basket-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px 8px 14px; border-radius: 12px; border: 0; background: var(--gold); color: var(--pepper-deep); cursor: pointer; font-weight: 700; flex: none; }
.basket-btn svg { width: 20px; height: 20px; }
.basket-count { min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 6px; border-radius: 8px; background: var(--pepper-deep); color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums; }
.basket-btn.bump .basket-count { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }
@media (max-width: 760px) { .top-nav { display: none; } .basket-btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 100px); background: var(--pepper); color: #fff; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -8%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(244,165,36,.28), transparent 62%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .07; background:
  repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 28px), repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 28px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 6px 14px 6px 12px; border-radius: 999px; background: rgba(0,0,0,.22); font-weight: 500; font-size: .95rem; color: #fbe9e1; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #c9b3aa; flex: none; }
.status.open .dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.status.closed .dot { background: var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.9rem); font-weight: 800; font-stretch: 82%; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: 1.15rem; color: #f6dcd2; max-width: 50ch; }

.checker { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); max-width: 560px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--sand); }
.mode button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; }
.mode button[aria-pressed="true"] { background: #fff; color: var(--pepper); box-shadow: 0 2px 8px -3px rgba(0,0,0,.25); }
.checker-row { display: flex; gap: 8px; }
.checker-row select { flex: 1; min-width: 0; }
.checker-out { font-size: .93rem; color: var(--muted); }
.checker-out b { color: var(--leaf); }
select, input[type="text"], input[type="tel"], input[type="date"], input[type="search"] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
select:focus, input:focus { outline: none; border-color: var(--pepper); box-shadow: 0 0 0 3px rgba(127,29,18,.15); }
[aria-invalid="true"] { border-color: var(--red) !important; }

.hero-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-plate { width: min(420px, 92%); aspect-ratio: 1; animation: spin 60s linear infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.hero-plate svg { width: 100%; height: 100%; display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ink); font-size: .9rem; box-shadow: 0 16px 34px -18px rgba(0,0,0,.6); animation: bob 5s ease-in-out infinite; }
.float b { color: var(--pepper); }
.f1 { top: 8%; left: 0; }
.f2 { bottom: 12%; right: 0; animation-delay: -1.6s; }
.f3 { bottom: 2%; left: 6%; animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; padding-block: 24px 40px; }
  .hero-plate { width: min(300px, 80%); }
  .f1 { top: 4%; } .f2 { bottom: 14%; } .f3 { bottom: 0; }
}
@media (max-width: 480px) { .checker-row { flex-direction: column; } .float { font-size: .8rem; padding: 8px 11px; } }

/* Today's special */
.special { position: relative; background: var(--pepper-deep); color: #fff; padding-block: 26px; }
.special::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--print); }
.special-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: center; padding-top: 8px; }
.special-copy { display: grid; gap: 4px; }
.special h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-stretch: 85%; }
.special p:not(.eyebrow) { color: #e9cfc5; font-size: .95rem; }
.special-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk { display: grid; gap: 2px; padding: 8px 6px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: .74rem; line-height: 1.25; color: #d9bfb5; text-align: center; }
.wk b { font-size: .8rem; color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.wk.on { background: var(--gold); color: var(--pepper-deep); }
.wk.on b { color: var(--pepper-deep); }
@media (max-width: 960px) { .special-inner { grid-template-columns: 1fr; } .special-week { order: 3; } }
@media (max-width: 560px) { .special-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.section-head h2, .delivery h2, .reviews h2, .visit h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); color: var(--pepper); font-weight: 800; font-stretch: 85%; }
.section-head p { color: var(--muted); max-width: 52ch; margin-top: 6px; }

/* Menu */
.menu { padding-block: clamp(52px, 7vw, 92px); }
.menu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search { position: relative; display: block; width: min(320px, 100%); }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; }
.veg { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; min-height: 44px; }
.veg input { width: 20px; height: 20px; accent-color: var(--leaf); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; cursor: pointer; }
.tabs button:hover { border-color: var(--pepper); color: var(--pepper); }
.tabs button[aria-selected="true"] { background: var(--pepper); border-color: var(--pepper); color: #fff; }
.items { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.item { display: grid; grid-template-rows: auto 1fr; border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; animation: fadeUp .3s ease both; transition: box-shadow .2s ease, transform .2s ease; }
.item:hover { box-shadow: 0 18px 36px -24px rgba(61,13,7,.5); transform: translateY(-2px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.item-art { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 0; padding: 12px; cursor: pointer; background:
  radial-gradient(circle at 50% 60%, #fff6e8 0 40%, transparent 70%), var(--sand); }
.item-art svg { height: 100%; width: auto; transition: transform .4s ease; }
.item:hover .item-art svg { transform: rotate(-8deg) scale(1.04); }
.item-body { display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px; padding: 14px 16px 16px; }
.item h3 { font-size: 1.22rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.item p { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.item-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tag.veg { background: #e3f1e0; color: #24552c; }
.tag.pop { background: #fff1d6; color: #8a4b00; }
.al { font-size: .74rem; color: #8b7a70; margin-left: auto; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.item-foot b { font-size: 1.15rem; color: var(--pepper); font-variant-numeric: tabular-nums; }
.add { min-height: 42px; padding: 8px 18px; border-radius: 10px; border: 0; background: var(--pepper); color: #fff; font-weight: 700; cursor: pointer; }
.add:hover { background: var(--pepper-2); }
.add.added { background: var(--leaf); }
@media (max-width: 600px) {
  .items { grid-template-columns: 1fr; gap: 10px; }
  .item { grid-template-columns: 112px 1fr; grid-template-rows: auto; }
  .item-art { aspect-ratio: auto; padding: 8px; }
  .item-art svg { width: 100%; height: auto; }
  .item-body { padding: 12px 14px 12px 4px; gap: 4px; }
  .item h3 { font-size: 1.08rem; }
  .item p { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .al { display: none; }
  .add { min-height: 40px; padding: 8px 14px; }
}
.no-items { padding: 30px; text-align: center; color: var(--muted); }
.spice-key { margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* Party trays */
.trays { position: relative; background: var(--leaf); color: #fff; padding-block: clamp(52px, 7vw, 92px); overflow: hidden; isolation: isolate; }
.trays::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--print); }
.trays::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .06; background: radial-gradient(circle at 10px 10px, #fff 3px, transparent 4px) 0 0 / 28px 28px; }
.trays-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.trays-copy { display: grid; gap: 16px; }
.trays h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); font-weight: 800; font-stretch: 85%; }
.trays-copy > p { color: #d7ead9; }
.guests { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: rgba(0,0,0,.18); }
.guests label { font-weight: 700; }
.guests-row { display: flex; align-items: center; gap: 14px; }
.guests input[type="range"] { flex: 1; accent-color: var(--gold); height: 32px; }
.guests output { min-width: 56px; text-align: center; font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.suggest { color: #e4f1e5; }
.suggest b { color: #fff; }
.guests .btn { justify-self: start; }
.tray-form { display: grid; gap: 14px; padding: 20px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.tray-list { list-style: none; display: grid; }
.tray { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tray.on .tray-name b { color: var(--pepper); }
.tray-art svg { width: 52px; height: 52px; display: block; }
.tray-name { display: grid; line-height: 1.3; }
.tray-name small { color: var(--muted); }
.row { display: grid; gap: 6px; }
.row.two { grid-template-columns: 1fr 1fr; gap: 12px; }
.row.two > div { display: grid; gap: 6px; min-width: 0; }
label { font-weight: 700; font-size: .92rem; }
label em { font-style: normal; font-weight: 400; color: var(--muted); }
.tray-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 4px; }
.tray-total span { font-weight: 700; }
.tray-total em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .88rem; }
.tray-total strong { font-family: var(--display); font-size: 1.8rem; color: var(--pepper); font-variant-numeric: tabular-nums; }
.err { color: var(--red); font-weight: 700; font-size: .92rem; }
.demo-note { font-size: .82rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .trays-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row.two { grid-template-columns: 1fr; } }

/* Delivery */
.delivery { padding-block: clamp(52px, 7vw, 92px); }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.delivery-grid > div:first-child { display: grid; gap: 16px; }
.delivery-grid > div:first-child > p { color: var(--muted); }
.perks { list-style: none; display: grid; gap: 10px; }
.perks li { position: relative; padding-left: 30px; }
.perks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--gold); box-shadow: inset 0 0 0 5px #fff3dc; }
.perks b { color: var(--pepper); }
.area-table-wrap { border-radius: 20px; background: #fff; border: 1px solid var(--line); padding: 8px 18px 16px; }
.area-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.area-table th, .area-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.area-table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.area-table tbody th { font-weight: 500; }
.area-table td { white-space: nowrap; }
.small { font-size: .85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .delivery-grid { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { padding-block: 0 clamp(52px, 7vw, 92px); }
.review-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.review-list li { display: grid; gap: 14px; align-content: space-between; padding: 22px; border-radius: 20px; background: var(--sand); }
.review-list p { font-size: 1.05rem; }
.review-list p::before { content: "★★★★★"; display: block; color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.review-list span { font-weight: 700; color: var(--pepper); }

/* Visit */
.visit { background: #fff; border-top: 1px solid var(--line); padding-block: clamp(52px, 7vw, 92px); }
.visit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.visit-grid > div { display: grid; gap: 14px; }
.visit-grid > div > p:not(.visit-addr) { color: var(--muted); }
.visit-addr { font-weight: 700; font-size: 1.1rem; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--cream); border-radius: 18px; overflow: hidden; }
.hours th, .hours td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; }
.hours td { text-align: right; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .is-today { background: var(--pepper); color: #fff; }
.hours .is-today th { font-weight: 700; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }

.foot { position: relative; background: var(--pepper-deep); color: #e3c9bf; padding-block: 34px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--print); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .92rem; }
.foot a { color: var(--gold); }
body.has-items .foot { padding-bottom: 100px; }
@media (min-width: 861px) { body.has-items .foot { padding-bottom: 34px; } }

/* Floating basket (phones) */
.basket-float { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 18px; border: 0; border-radius: 16px; background: var(--pepper); color: #fff; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(61,13,7,.8); animation: slideUp .25s ease both; }
.basket-float span { font-weight: 700; }
.basket-float b { font-weight: 400; color: #f1d9cf; font-size: .9rem; }
.basket-float strong { margin-left: auto; background: var(--gold); color: var(--pepper-deep); padding: 4px 12px; border-radius: 8px; font-variant-numeric: tabular-nums; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }
@media (min-width: 861px) { .basket-float { display: none !important; } }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(61,13,7,.5); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--card); box-shadow: -20px 0 60px -30px rgba(0,0,0,.5); animation: inRight .28s cubic-bezier(.2,.7,.2,1) both; padding-top: env(safe-area-inset-top, 0px); }
@keyframes inRight { from { transform: translateX(100%); } }
@keyframes inUp { from { transform: translateY(100%); } }
@media (max-width: 600px) { .drawer { top: auto; left: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation-name: inUp; padding-top: 0; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; color: var(--pepper); font-stretch: 85%; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--sand); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; align-content: start; gap: 16px; }
.lines { list-style: none; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 700; }
.line-sub { grid-column: 1; font-size: .84rem; color: var(--muted); }
.line-price { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--pepper); grid-row: 1; grid-column: 2; text-align: right; }
.qty { display: flex; align-items: center; gap: 4px; grid-column: 2; justify-content: flex-end; }
.qty button { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.qty button:hover { border-color: var(--pepper); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty.big button { width: 44px; height: 44px; }
.empty { padding: 30px 0; text-align: center; color: var(--muted); }
.checkout, #delivery-fields { display: grid; gap: 14px; }
.pay { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.pay label { flex: 1; position: relative; cursor: pointer; }
.pay input { position: absolute; opacity: 0; }
.pay span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 500; }
.pay input:checked + span { border-color: var(--pepper); background: #fcefeb; color: var(--pepper); font-weight: 700; }
.pay input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.sums { margin: 0; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sums div { display: flex; justify-content: space-between; }
.sums dt { color: var(--muted); }
.sums dd { margin: 0; }
.sums .grand { padding-top: 8px; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.15rem; }
.sums .grand dt { color: var(--ink); }
.min-note { padding: 10px 12px; border-radius: 10px; background: #fff3dc; color: #7a4300; font-size: .9rem; font-weight: 500; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(61,13,7,.55); animation: fade .2s ease both; }
.modal-card { position: relative; width: min(500px, 100%); max-height: 92vh; overflow-y: auto; background: var(--card); border-radius: 24px; padding: 26px; display: grid; gap: 14px; animation: pop .3s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-card h2 { font-size: 1.9rem; color: var(--pepper); font-stretch: 85%; }
.modal-card > p { color: var(--muted); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #fff; }
.tick svg { width: 28px; height: 28px; }
.confirm-lines { list-style: none; display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-variant-numeric: tabular-nums; }
.confirm-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.confirm-lines small { display: block; color: var(--muted); font-size: .8rem; }
.allergen-list { padding-left: 22px; columns: 2; font-size: .92rem; }

.dish-card { padding-top: 18px; }
.dish-x { position: absolute; top: 14px; right: 14px; }
.dish-art { width: 150px; height: 150px; justify-self: center; }
.dish-art svg { width: 100%; height: 100%; }
.opt-group { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.opt-group legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.opt-group legend em { font-style: normal; font-weight: 400; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; cursor: pointer; font-weight: 400; }
.opt input { position: absolute; opacity: 0; }
.opt > span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-size: .93rem; }
.opt small { color: var(--muted); }
.opt > input:checked + span { border-color: var(--pepper); background: #fcefeb; color: var(--pepper); font-weight: 700; }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.dish-foot { position: sticky; bottom: -26px; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 4px -26px -26px; padding: 14px 26px 20px; background: #fff; border-top: 1px solid var(--line); }
.dish-foot .btn { flex: 1; }

/* Tracker */
.track { list-style: none; display: grid; gap: 0; }
.track li { position: relative; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; padding-bottom: 14px; color: #a8988e; }
.track li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 3px; border-radius: 2px; background: var(--line); }
.track li.done:not(:last-child)::after { background: var(--leaf); }
.track .pip { grid-row: span 2; width: 25px; height: 25px; border-radius: 50%; border: 3px solid var(--line); background: #fff; }
.track b { font-weight: 700; }
.track small { font-size: .84rem; }
.track li.done, .track li.now { color: var(--ink); }
.track li.done .pip { border-color: var(--leaf); background: var(--leaf); box-shadow: inset 0 0 0 4px #fff; }
.track li.now .pip { border-color: var(--gold); background: var(--gold); animation: pulse 1.2s ease-in-out infinite; }
.track li.now small { color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(244,165,36,.25); } }

.toast { position: fixed; z-index: 110; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--pepper-deep); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 500; font-size: .95rem; transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 861px) { .toast { bottom: 28px; } }
