/* Restaurant site — day (light) and night (dark) themes */
:root, [data-theme='light'] {
  --bg: #fbf6ef; --bg2: #ffffff; --card: #ffffff; --ink: #2a1a12; --muted: #7c6a5d; --line: #ecdfd2;
  --hot: #c62828; --hot2: #e65100; --gold: #f59e0b; --ok: #15803d; --bad: #b91c1c;
  --head: rgba(251, 246, 239, .92); --shadow: 0 2px 6px rgba(60, 30, 10, .06), 0 10px 24px -12px rgba(60, 30, 10, .25);
  --chip: #f3e7da; --hero1: linear-gradient(120deg, #7f1d1d, #c62828 60%, #f97316); --hero2: linear-gradient(120deg, #1f2937, #7c2d12 70%, #ea580c); --hero3: linear-gradient(120deg, #3f1d0b, #92400e 60%, #f59e0b);
}
[data-theme='dark'] {
  --bg: #121012; --bg2: #1a1719; --card: #1f1b1e; --ink: #f5ede4; --muted: #b5a497; --line: #2f2a2d;
  --hot: #ef5350; --hot2: #ff8a3d; --gold: #fbbf24; --ok: #4ade80; --bad: #f87171;
  --head: rgba(18, 16, 18, .9); --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 12px 28px -14px rgba(0, 0, 0, .8);
  --chip: #2a2427;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Poppins, system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.5; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2 { font-family: 'Playfair Display', Georgia, serif; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: .4rem 0 1rem; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.page { padding-top: 1.4rem; padding-bottom: 2.5rem; min-height: 55vh; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 999px; padding: .7rem 1.3rem; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn-hot { background: linear-gradient(135deg, var(--hot), var(--hot2)); color: #fff; box-shadow: 0 6px 16px -6px rgba(198, 40, 40, .6); }
.btn-hot:hover { box-shadow: 0 10px 22px -6px rgba(198, 40, 40, .7); transform: translateY(-1px); }
.btn-ghost { background: var(--card); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--hot); }
.btn.sm { padding: .45rem .95rem; font-size: .85rem; }
.btn.block { width: 100%; margin-top: .6rem; }
.btn.grow { flex: 1; }
.alert { background: rgba(185, 28, 28, .1); color: var(--bad); border: 1px solid rgba(185, 28, 28, .3); border-radius: 12px; padding: .7rem .9rem; margin: .7rem 0; font-weight: 600; font-size: .92rem; }
.alert.ok { background: rgba(21, 128, 61, .1); color: var(--ok); border-color: rgba(21, 128, 61, .3); }

/* header */
.announce { background: linear-gradient(90deg, var(--hot), var(--hot2)); color: #fff; text-align: center; padding: .45rem 1rem; font-size: .85rem; font-weight: 600; }
.closed { background: #fef3c7; color: #92400e; text-align: center; padding: .55rem; font-weight: 600; }
.top { position: sticky; top: 0; z-index: 40; background: var(--head); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.top.scrolled { box-shadow: var(--shadow); }
.top-row { display: flex; align-items: center; gap: 1.2rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-family: 'Playfair Display', serif; font-size: 1.3rem; background: linear-gradient(135deg, var(--hot), var(--hot2)); transform: rotate(-6deg); }
.brand-name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-nav { display: flex; gap: .3rem; margin-left: 1rem; }
.top-nav a { padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: background .2s, color .2s; }
.top-nav a:hover { background: var(--chip); color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.call { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; margin-right: .4rem; }
.call small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.call .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--hot); }
.icon { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-size: 1.1rem; transition: border-color .2s, transform .2s; }
.icon:hover { border-color: var(--hot); transform: translateY(-1px); }
.theme-btn .moon { display: none; }
[data-theme='dark'] .theme-btn .sun { display: none; }
[data-theme='dark'] .theme-btn .moon { display: inline; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--hot); color: #fff; font-size: .9rem; }
.av.big { width: 60px; height: 60px; font-size: 1.6rem; }
.count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--hot); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.count[hidden] { display: none; }
.count.bump { animation: bump .45s; }
@media (max-width: 860px) { .top-nav, .call { display: none; } .brand-name { max-width: 150px; } }

/* hero */
.hero { position: relative; height: clamp(300px, 52vh, 480px); overflow: hidden; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; color: #fff; opacity: 0; transition: opacity .9s; }
.slide.on { opacity: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.slide.on img { transform: scale(1); }
.slide.has-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .15) 70%); }
.art-0 { background: var(--hero1); } .art-1 { background: var(--hero2); } .art-2 { background: var(--hero3); }
.slide[class*='art-']::before { content: '🍢 🍛 🌶 🍗 🥘'; position: absolute; right: 4%; bottom: 10%; font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: .4em; opacity: .25; transform: rotate(-8deg); white-space: nowrap; }
.slide-text { position: relative; z-index: 2; }
.slide.on .slide-text > * { animation: rise .8s both; }
.slide.on .slide-text > *:nth-child(2) { animation-delay: .1s; } .slide.on .slide-text > *:nth-child(3) { animation-delay: .2s; } .slide.on .slide-text > *:nth-child(4) { animation-delay: .3s; }
.kicker { display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, .5); padding: .3rem .8rem; border-radius: 999px; }
.slide h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.05; margin: .8rem 0 .6rem; max-width: 640px; }
.slide p { font-size: 1.08rem; max-width: 520px; opacity: .92; margin: 0 0 1.4rem; }
.dots { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; z-index: 3; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.dots button.on { width: 30px; background: #fff; }

/* delivery / takeaway */
.typebar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: -26px; position: relative; z-index: 5; background: var(--card); border-radius: 18px; padding: .8rem 1rem; box-shadow: var(--shadow); max-width: 1208px; }
.type-switch { display: inline-flex; background: var(--chip); border-radius: 999px; padding: 4px; }
.type-switch button, .type-switch label { border: 0; background: none; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: .3rem; }
.type-switch .on { background: var(--hot); color: #fff; }
.type-switch input { display: none; }
.type-switch.wide { margin-bottom: 1.2rem; }
.type-note { margin: 0; color: var(--muted); font-size: .9rem; }

/* deals */
.block { margin-top: 2.2rem; }
.block-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
.block-head h2 { margin: 0; font-size: 1.8rem; }
.block-head span { color: var(--muted); }
.deals { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 380px); gap: 1.2rem; overflow-x: auto; padding: .3rem .2rem 1rem; scroll-snap-type: x mandatory; }
.deal { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); scroll-snap-align: start; display: flex; flex-direction: column; animation: rise .5s both; transition: transform .25s; }
.deal:hover { transform: translateY(-4px); }
.deal-pic { position: relative; aspect-ratio: 4 / 3; background: var(--chip); display: grid; place-items: center; overflow: hidden; }
.deal-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.deal:hover .deal-pic img { transform: scale(1.06); }
.ph { font-size: 3rem; opacity: .7; }
.save { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #3b2300; font-weight: 800; font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; }
.deal-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.deal-body h3 { margin: 0; font-size: 1.25rem; }
.deal-body .price { font-size: 1.3rem; }
.deal-pic .ph { font-size: 5.5rem; }
.deal-pic.noimg { background: radial-gradient(circle at 30% 25%, #ffe8cc, #e8590c); }
.deal-body p { margin: 0; color: var(--muted); font-size: .85rem; }
.deal-foot, .dish-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.price { font-weight: 800; color: var(--hot); font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 500; font-size: .85rem; margin-left: .3rem; }

/* menu */
.menu-wrap { margin-top: 2rem; }
.cats { position: sticky; top: var(--head-h, 70px); z-index: 30; background: var(--head); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cats-row { display: flex; gap: .4rem; overflow-x: auto; padding-top: .6rem; padding-bottom: .6rem; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cats-row a { white-space: nowrap; padding: .45rem 1rem; border-radius: 999px; background: var(--chip); font-weight: 600; font-size: .9rem; transition: background .2s, color .2s; }
.cats-row a.on { background: var(--hot); color: #fff; }
.cat-block { padding-top: 1.4rem; scroll-margin-top: calc(var(--head-h, 70px) + 60px); }
.cat-block h2 { font-size: 1.6rem; margin: 0 0 .9rem; display: flex; align-items: baseline; gap: .6rem; }
.cat-block h2 small { font-family: Poppins, sans-serif; font-size: .8rem; color: var(--muted); font-weight: 500; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.dish { display: flex; flex-direction: column; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; animation: rise .45s both; }
.dish:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .45); }
.dish.off { opacity: .6; }
.dish-pic { position: relative; aspect-ratio: 1 / 1; background: var(--chip); display: grid; place-items: center; overflow: hidden; }
.dish-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dish:hover .dish-pic img { transform: scale(1.08); }
.dish-pic .ph { font-size: 5.5rem; opacity: .95; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); transition: transform .5s; }
.dish:hover .dish-pic .ph { transform: scale(1.12) rotate(-6deg); }
.dish-pic.ph-0 { background: radial-gradient(circle at 30% 25%, #ffd8a8, #f08c3a); }
.dish-pic.ph-1 { background: radial-gradient(circle at 30% 25%, #ffc9c9, #d9480f); }
.dish-pic.ph-2 { background: radial-gradient(circle at 30% 25%, #fff3bf, #e8a90c); }
.dish-pic.ph-3 { background: radial-gradient(circle at 30% 25%, #d3f9d8, #2f9e44); }
.dish-pic.ph-4 { background: radial-gradient(circle at 30% 25%, #ffdeeb, #c2255c); }
.dish-pic .tag { position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .74rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; backdrop-filter: blur(4px); }
.dish-pic .tag.off { left: auto; right: 12px; background: var(--bad); }
.dish-text { flex: 1; display: flex; flex-direction: column; padding: 1rem 1.1rem 1.1rem; }
.dish-text h3 { margin: 0 0 .3rem; font-size: 1.15rem; line-height: 1.3; }
.dish-text p { margin: 0; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-text .price { font-size: 1.3rem; }
.dish-text form { margin: 0; }
.dish-text .btn.block { padding: .8rem 1rem; font-size: .95rem; }
.sold { font-size: .78rem; color: var(--bad); font-weight: 700; }
.none { text-align: center; color: var(--muted); padding: 2rem; }
@media (max-width: 600px) {
  .dishes { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .dish { border-radius: 16px; }
  .dish-pic .ph { font-size: 3.6rem; }
  .dish-text { padding: .7rem .75rem .8rem; }
  .dish-text h3 { font-size: .95rem; }
  .dish-text p { font-size: .78rem; }
  .dish-text .price { font-size: 1.05rem; }
  .dish-text .btn.block { padding: .6rem .5rem; font-size: .82rem; }
  .dish-pic .tag { top: 8px; left: 8px; font-size: .66rem; }
  .deals { grid-auto-columns: 82%; }
  .deal-body .price { font-size: 1.1rem; }
}

/* drawer, modal */
.shade { position: fixed; inset: 0; background: rgba(10, 5, 2, .55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 70; }
.shade.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--bg2); z-index: 80; transform: translateX(102%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow); }
.drawer.show { transform: none; }
.drawer > div { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 0 1rem; }
.drawer-foot { padding: 1rem; border-top: 1px solid var(--line); }
.x { border: 0; background: var(--chip); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.big-emoji { font-size: 3.4rem; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; background: rgba(10, 5, 2, .6); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-card { position: relative; width: min(480px, 100%); max-height: 92vh; overflow: auto; background: var(--bg2); border-radius: 22px; transform: translateY(20px) scale(.97); transition: transform .3s; }
.modal.show .modal-card { transform: none; }
.modal-card .x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.modal-pic { aspect-ratio: 16 / 9; background: var(--chip); display: grid; place-items: center; font-size: 3rem; overflow: hidden; }
.modal-pic img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 1rem 1.2rem 1.2rem; }
.modal-body h3 { margin: 0; font-size: 1.25rem; }
.sizes { display: grid; gap: .5rem; margin: 1rem 0; }
.sizes label { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border: 1.5px solid var(--line); border-radius: 14px; padding: .65rem .9rem; cursor: pointer; font-weight: 600; }
.sizes label.on { border-color: var(--hot); background: rgba(198, 40, 40, .07); }
.sizes input { accent-color: var(--hot); }
.note { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.note input { border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem .8rem; background: var(--card); color: var(--ink); }
.modal-foot { display: flex; gap: .6rem; margin-top: 1rem; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.qty input, .qty span { width: 38px; text-align: center; border: 0; background: none; font-weight: 700; outline: none; }
.qty.sm button { width: 30px; height: 30px; }
.qty.sm span { width: 26px; }

/* cart lines, checkout */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); animation: rise .3s both; }
.lines li.gone { opacity: .6; }
.l-pic { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--chip); display: grid; place-items: center; flex-shrink: 0; font-size: 1.6rem; }
.l-pic img { width: 100%; height: 100%; object-fit: cover; }
.l-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.l-info small { color: var(--muted); }
.l-info .bad, .bad { color: var(--bad); font-weight: 600; }
.l-row { display: flex; align-items: center; justify-content: space-between; margin-top: .3rem; }
.sum { display: flex; justify-content: space-between; padding: .4rem 0; }
.sum.big { font-size: 1.15rem; border-top: 1px dashed var(--line); margin-top: .3rem; padding-top: .7rem; }
.sum.big b { color: var(--hot); }
.two { display: grid; grid-template-columns: 1fr 380px; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: 18px; padding: 1.2rem; box-shadow: var(--shadow); }
.side { position: sticky; top: 90px; }
.card h3 { display: flex; align-items: center; gap: .5rem; margin: .4rem 0 .8rem; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--hot); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1.2rem; }
.fields .full { grid-column: 1 / -1; }
.fields label, .track label, .auth-card label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.fields input, .fields textarea, .track input, .auth-card input { border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; background: var(--bg2); color: var(--ink); outline: none; resize: vertical; }
.fields input:focus, .fields textarea:focus, .track input:focus, .auth-card input:focus { border-color: var(--hot); }
.fields input:disabled { opacity: .6; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.pay { display: flex; align-items: center; gap: .7rem; border: 1.5px solid var(--hot); background: rgba(198, 40, 40, .06); border-radius: 14px; padding: .8rem 1rem; }
.pay span { display: flex; flex-direction: column; }
.pay small { color: var(--muted); }
.hint { background: var(--chip); border-radius: 12px; padding: .7rem .9rem; margin-bottom: 1rem; font-size: .9rem; }
.hint a, .auth-card a { color: var(--hot); font-weight: 700; }
.mini { list-style: none; padding: 0; margin: 0 0 .6rem; }
.mini li { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mini li.gone { color: var(--bad); }

/* order */
.thanks { text-align: center; padding: 1rem 0; animation: rise .5s both; }
.tick { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .6rem; background: var(--ok); color: #fff; font-size: 2.6rem; display: grid; place-items: center; animation: pop .6s both; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order-top h2 { margin: 0; }
.status { font-weight: 700; font-size: .8rem; padding: .35rem .8rem; border-radius: 999px; background: #fef3c7; color: #92400e; }
.status.s-confirmed, .status.s-ready, .status.s-on_the_way { background: #dbeafe; color: #1e40af; }
.status.s-completed { background: #dcfce7; color: #166534; }
.status.s-rejected, .status.s-cancelled, .status.s-failed { background: #fee2e2; color: #991b1b; }
.steps { display: flex; list-style: none; padding: 0; margin: 1.2rem 0; counter-reset: s; }
.steps li { flex: 1; text-align: center; position: relative; padding-top: 2.1rem; font-size: .78rem; font-weight: 600; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--chip); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ok); }
.steps li.done::before { content: '✓'; background: var(--ok); color: #fff; }
.steps li.done::after { background: var(--ok); }
.track { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; margin-bottom: 1rem; }
@media (max-width: 600px) { .track { grid-template-columns: 1fr; } }

/* account */
.auth { display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: .8rem; }
.auth-card h1 { text-align: center; margin: 0; }
.auth-ic { font-size: 2.6rem; text-align: center; }
.acc-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.acc-head h1 { margin: 0; }
.push { margin-left: auto; }
.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .6rem 1rem; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--hot); }
.order-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; transition: transform .2s; }
.order-row:hover { transform: translateY(-2px); }
.order-row small { display: block; }
.order-row .status { margin-left: auto; }

/* footer */
.foot { background: #1c1210; color: #e9ddd2; margin-top: 3rem; padding-top: 2.4rem; }
.foot .brand { color: #fff; margin-bottom: .6rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot h4 { color: #fff; margin: 0 0 .7rem; }
.foot p { margin: .3rem 0; font-size: .9rem; }
.foot-grid a { display: block; padding: .2rem 0; font-size: .9rem; opacity: .85; }
.foot-grid a:hover { opacity: 1; color: #ffb38a; }
.foot-bottom { text-align: center; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding: 1rem; font-size: .82rem; opacity: .8; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.wa { position: fixed; right: 18px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); z-index: 45; animation: pop .6s 1s both; }
.tabbar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg2); border-top: 1px solid var(--line); z-index: 50; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.2rem; position: relative; }
  .tabbar span { font-size: .7rem; font-weight: 600; color: var(--muted); }
  .tabbar .count { top: 6px; right: calc(50% - 22px); }
  .wa { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .cats { top: 70px; }
}
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 95; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }
.down { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--bg); }
.down-card { text-align: center; background: var(--card); padding: 2.4rem 2rem; border-radius: 22px; box-shadow: var(--shadow); max-width: 420px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes bump { 40% { transform: scale(1.45); } }
.deal-foot .btn { white-space: nowrap; }

/* search in the header */
.top-search { flex: 1; max-width: 420px; position: relative; margin: 0; }
.top-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .9rem; opacity: .6; pointer-events: none; }
.top-search input { width: 100%; height: 44px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 0 1rem 0 2.5rem; outline: none; font: inherit; font-size: .92rem; transition: border-color .2s, box-shadow .2s; }
.top-search input:focus { border-color: var(--hot); box-shadow: 0 0 0 4px rgba(198, 40, 40, .12); }
.search-note { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.search-note a { color: var(--hot); font-weight: 700; }
@media (max-width: 1100px) { .top-nav { margin-left: 0; } .top-nav a { padding: .45rem .55rem; } .call { display: none; } }
@media (max-width: 860px) {
  .top-row { flex-wrap: wrap; height: auto; padding-top: .55rem; padding-bottom: .55rem; row-gap: .5rem; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; }
  .top-search input { height: 42px; }
}
[data-dish][hidden], [data-cat-block][hidden], .search-note[hidden], .none[hidden] { display: none !important; }

/* the company's logo (ERP › Company profile) instead of the name: fitted into the header, any shape */
.brand.has-img { height: 50px; max-width: 220px; }
.brand.has-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
@media (max-width: 860px) { .brand.has-img { height: 40px; max-width: 160px; } }
/* night theme: a white plate behind the logo so a dark logo still shows */
[data-theme='dark'] .brand.has-img { background: #fff; padding: 5px 12px; border-radius: 12px; }
