/* taste.li — guest menu app */
:root {
  --navy: #0b1a2e;
  --lime: #b8f21a;
  --lime-dark: #8fc400;
  --muted: #6a7585;
  --line: #ececE6;
  --bg: #ffffff;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); color: var(--navy);
  background: radial-gradient(circle at 50% 0, #1a2f4d, #07111f 70%) fixed;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }

.app {
  max-width: 440px; min-height: 100vh; margin: 0 auto; background: var(--bg);
  padding: 0 18px 120px; position: relative;
}
@media (min-width: 480px) {
  .app { margin-block: 24px; min-height: calc(100vh - 48px); border-radius: 36px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
}

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 8px; }
.logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.logo svg { width: 30px; height: 30px; margin-right: 8px; }
.logo i { font-style: normal; color: var(--lime-dark); }
.icon-btn { background: none; border: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { background: #f1f1ec; }

.venue-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 14px; font-size: .88rem; }
.venue { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.venue svg { width: 16px; height: 16px; }
.table-tag { color: var(--muted); font-weight: 600; }

.search input {
  width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .9rem; margin-bottom: 12px; background: #fafaf7;
}
.search input:focus { outline: none; border-color: var(--lime); }

/* Tabs */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-bottom: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 0; background: #f2f2ee; color: #3b4a5e; font-weight: 600; font-size: .85rem;
  padding: 10px 18px; border-radius: 12px; transition: background .15s, color .15s;
}
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }

/* Banner */
.banner {
  width: 100%; border: 0; text-align: left; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px; border-radius: 18px; color: #fff; min-height: 140px;
  background: radial-gradient(circle at 85% 30%, rgba(255, 150, 60, .45), transparent 50%), linear-gradient(135deg, #2b1d12, #0f0a06);
}
.banner small { letter-spacing: .22em; font-size: .6rem; font-weight: 700; color: #d9d2c7; }
.banner b { display: block; font-size: 1.6rem; line-height: 1.1; margin-top: 8px; letter-spacing: -.02em; }
.banner-art { font-size: 3.2rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.banner-go { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 800; }

.list-head { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 12px; }
.list-head h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.count { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* Dishes */
.dishes { display: grid; gap: 10px; }
.dish {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px;
  transition: transform .15s, box-shadow .15s;
}
.dish:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 26, 46, .08); }
.thumb { flex: none; width: 82px; height: 82px; border-radius: 12px; display: grid; place-items: center; font-size: 2.6rem; }
.dish-info { flex: 1; min-width: 0; }
.dish-info h3 { margin: 0; font-size: .98rem; }
.dish-info p { font-size: .76rem; color: var(--muted); margin: 3px 0 8px; line-height: 1.35; }
.dish-foot { display: flex; justify-content: space-between; align-items: center; }
.dish-foot b { font-size: .95rem; }
.pill { font-size: .55rem; font-weight: 800; letter-spacing: .08em; background: var(--lime); padding: 3px 10px; border-radius: 99px; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; font-size: .9rem; }

.promo-cards { margin-top: 24px; }
.promo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px; background: #f6f6f2; border-radius: 14px; font-size: .8rem; }
.promo b { display: block; font-size: .9rem; }
.promo span { color: var(--muted); }
.promo-btn { border: 2px solid var(--navy); background: none; border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: .8rem; }
.powered { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 20px; }
.powered a { font-weight: 700; color: var(--navy); }

/* Order bar */
.order-bar {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(404px, calc(100% - 32px)); z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 16px;
  background: var(--navy); color: #fff; font-weight: 700; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  animation: rise .25s ease;
}
.order-bar b { margin-left: auto; color: var(--lime); }
.order-bar-count { background: var(--lime); color: var(--navy); border-radius: 8px; min-width: 28px; height: 28px; display: grid; place-items: center; font-size: .85rem; }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } }

/* Sheets */
.overlay { position: fixed; inset: 0; background: rgba(5, 12, 22, .6); z-index: 30; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 40;
  width: min(440px, 100%); max-height: 94vh; overflow-y: auto; background: #fff;
  border-radius: 28px 28px 0 0; animation: slide .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slide { from { transform: translate(-50%, 100%); } }
.sheet-hero { position: relative; height: 240px; display: grid; place-items: center; }
.hero-emoji { font-size: 7.5rem; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.circle-btn { position: absolute; top: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; font-size: 1.2rem; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.circle-btn[data-close] { left: 16px; }
.circle-btn.fav { right: 16px; font-size: 1.3rem; }
.circle-btn.fav[aria-pressed="true"] { color: #e5365a; }
.sheet-body { padding: 22px 22px 28px; }
.d-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.d-row h2 { font-size: 1.5rem; letter-spacing: -.03em; }
.d-row b { font-size: 1.15rem; }
.d-desc { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.diet { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.diet li { font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: #f2f2ee; }
.diet li.good { background: #eaf9c4; }
.note { display: block; margin: 8px 0 14px; font-size: .8rem; font-weight: 700; }
.note em { font-weight: 500; color: var(--muted); font-style: normal; }
.note input { width: 100%; margin-top: 8px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: .85rem; }
.note input:focus { outline: none; border-color: var(--lime); }
.qty { display: flex; align-items: center; justify-content: center; gap: 28px; background: #f6f6f2; border-radius: 14px; padding: 10px; margin-bottom: 14px; }
.qty button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 1.3rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.qty span { min-width: 24px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.add-btn { width: 100%; border: 0; padding: 17px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 700; font-size: 1rem; transition: transform .15s; }
.add-btn:hover { transform: translateY(-2px); }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .85rem; }
.x { background: #f2f2ee; border: 0; width: 34px; height: 34px; border-radius: 50%; }
.fine { text-align: center; font-size: .72rem; color: var(--muted); margin-top: 10px; }

.order-list { margin: 16px 0; display: grid; gap: 12px; }
.order-list li { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.order-list .o-emoji { font-size: 1.8rem; }
.order-list .o-info { flex: 1; font-size: .9rem; }
.order-list .o-info b { display: block; }
.order-list .o-info small { color: var(--muted); font-size: .75rem; }
.mini-qty { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mini-qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #f2f2ee; font-weight: 700; }
.order-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 14px; }
.order-empty { text-align: center; color: var(--muted); padding: 16px 0; }

.toast {
  position: fixed; left: 50%; top: 20px; transform: translate(-50%, -80px); z-index: 60;
  background: var(--lime); color: var(--navy); font-weight: 700; font-size: .88rem;
  padding: 12px 20px; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  transition: transform .3s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Language switch */
.top-actions { display: flex; align-items: center; gap: 6px; }
.lang-switch {
  border: 2px solid var(--navy); background: transparent; color: var(--navy); border-radius: 10px;
  font: inherit; font-weight: 800; font-size: .72rem; letter-spacing: .06em; padding: 6px 10px; cursor: pointer;
}
.lang-switch:hover { background: var(--navy); color: #fff; }
