/* ==========================================================================
   El Banquete Ocho — Restaurant site
   Palette: cream, antique gold, deep plum. Light + dark themes.
   ========================================================================== */

:root {
  --cream: #fbf6ef;
  --cream-2: #f4ead9;
  --surface: #fffdfa;
  --surface-2: #f8efe2;
  --ink: #2a211b;
  --muted: #7a6a5c;
  --gold: #a9762f;
  --gold-2: #d3a860;
  --gold-soft: #ecdbb6;
  --plum: #43202e;
  --rose: #c9a0a6;
  --line: #e5d7c4;
  --ok: #2f7a53;
  --warn: #a8741d;
  --danger: #a63a3a;
  --shadow: 0 18px 40px -24px rgba(66, 43, 24, .45);
  --shadow-lg: 0 30px 70px -30px rgba(66, 43, 24, .55);
  --radius: 16px;
  --radius-sm: 10px;
  --ff-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

[data-theme="dark"] {
  --cream: #14100d;
  --cream-2: #1c1613;
  --surface: #211a16;
  --surface-2: #2a221d;
  --ink: #f6ecdf;
  --muted: #bfab95;
  --gold: #e0b76f;
  --gold-2: #efce93;
  --gold-soft: #5a4526;
  --plum: #0d0908;
  --rose: #d8aab1;
  --line: #3b2d24;
  --ok: #6bd39b;
  --warn: #e6b45c;
  --danger: #f08b8b;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }

::selection { background: var(--gold-2); color: #22180f; }

:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--plum); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 10px 10px; transition: top .2s;
}
.skip-link:focus { top: 0; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.4rem, 4vw, 3.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); margin: 0; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--plum);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.4rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; font: 600 .92rem/1 var(--ff-body);
  cursor: pointer; transition: transform .15s ease, box-shadow .2s, background .2s, color .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: linear-gradient(135deg, var(--gold-2), var(--gold)); --btn-fg: #241809; }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--plum { --btn-bg: var(--plum); --btn-fg: #fdf6ec; }
[data-theme="dark"] .btn--plum { --btn-fg: #f6ecdf; }
.btn--sm { padding: .55rem .95rem; font-size: .8rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; position: relative; transition: background .2s, border-color .2s;
  font-size: 1rem;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.2rem;
  min-height: var(--header-h); padding: .5rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong {
  font-family: var(--ff-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: .01em;
}
.brand-name small {
  font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.main-nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.main-nav a {
  padding: .5rem .75rem; border-radius: 8px; font-size: .87rem; font-weight: 500;
  color: var(--ink); opacity: .82; transition: opacity .2s, background .2s;
}
.main-nav a:hover { opacity: 1; background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--gold); opacity: 1; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  border-radius: 9px; background: var(--gold); color: #241809;
  font-size: .66rem; font-weight: 700; display: grid; place-items: center;
  padding: 0 4px;
}
.hamburger { display: none; }

@media (max-width: 960px) {
  .hamburger { display: inline-flex; }
  .main-nav {
    position: absolute; inset: var(--header-h) 0 auto; flex-direction: column;
    align-items: stretch; gap: .2rem; margin: 0; padding: .8rem 5vw 1.3rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem .6rem; font-size: 1rem; }
  .header-actions .btn--gold { display: none; }
  .brand-name small { letter-spacing: .16em; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--plum); color: #fdf6ec; }
.hero__bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(95deg, rgba(20, 12, 9, .92) 8%, rgba(30, 16, 20, .72) 48%, rgba(40, 20, 16, .38) 100%), url("../img/exterior-night.jpg");
  background-size: cover; background-position: center;
  transform: scale(1.02);
}
.hero__inner {
  position: relative; padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr); gap: 3rem;
  align-items: center;
}
.hero h1 { color: #fff7ea; margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero__tagline {
  font-family: var(--ff-display); font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic; color: #efd9b6; margin-bottom: 1.2rem;
}
.hero p.lead { color: #e8d9c8; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255, 240, 220, .2);
}
.hero__facts div { min-width: 110px; }
.hero__facts strong { display: block; font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold-2); }
.hero__facts span { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #d9c7b3; }

.hero__card {
  background: rgba(255, 250, 240, .1); border: 1px solid rgba(255, 240, 218, .28);
  border-radius: 20px; padding: 1.5rem; backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.hero__card h3 { color: #fff6e9; font-size: 1.35rem; }
.hero__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.hero__card li { display: flex; gap: .7rem; font-size: .9rem; color: #ecddcb; }
.hero__card li b { color: var(--gold-2); font-weight: 600; }
.hero__card .dot {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  background: rgba(212, 168, 96, .2); color: var(--gold-2);
  display: grid; place-items: center; font-size: .8rem;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { order: 2; }
}

/* ---------- Marquee / strip ---------- */
.strip {
  background: var(--plum); color: #f0e2cf; padding: .85rem 0;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
}
.strip .container { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; }
.strip span { display: inline-flex; align-items: center; gap: .45rem; }
.strip i { color: var(--gold-2); font-style: normal; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.pad { padding: clamp(1.2rem, 2.4vw, 1.9rem); }
.feature { padding: 1.6rem; }
.feature__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--gold); margin-bottom: 1rem; font-size: 1.2rem;
  border: 1px solid var(--line);
}
.feature h3 { font-size: 1.3rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.media-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: var(--surface-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Banners / promotions ---------- */
.promo-bar {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  background: linear-gradient(90deg, var(--plum), #6b3a2c 55%, var(--gold));
  color: #fff7ea; padding: .7rem 1rem; font-size: .85rem; text-align: center;
  border-radius: 999px; box-shadow: var(--shadow);
}
.promo-bar b { letter-spacing: .04em; }
.promo-bar a { text-decoration: underline; text-underline-offset: 3px; }
.promo-stack { display: grid; gap: .7rem; }
.promo-card {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.3rem; border-radius: 14px; color: #fff7ea;
  background: linear-gradient(120deg, var(--plum), #7a4a2f);
  border: 1px solid rgba(255, 240, 220, .18);
}
.promo-card small { letter-spacing: .18em; text-transform: uppercase; font-size: .64rem; color: var(--gold-2); }
.promo-card strong { font-family: var(--ff-display); font-size: 1.2rem; display: block; }
.promo-card p { margin: 0; font-size: .85rem; opacity: .85; }
.promo-card .btn { flex-shrink: 0; }

/* ---------- Menu ---------- */
.menu-controls {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end;
  padding: 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.6rem;
}
.field { display: flex; flex-direction: column; gap: .35rem; flex: 1 1 160px; min-width: 0; }
.field label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], input[type="search"], select, textarea {
  font: inherit; font-size: .92rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: .68rem .8rem;
  width: 100%; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-2) 25%, transparent);
}
textarea { resize: vertical; min-height: 92px; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: .45rem .85rem; border-radius: 999px; font-size: .8rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem; transition: all .18s;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--plum); color: #fdf3e3; border-color: var(--plum);
}
.chip .x { font-size: .9rem; opacity: .7; }

.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 820px) { .dish-grid { grid-template-columns: 1fr; } }
.dish {
  display: flex; gap: 1rem; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.15rem 1.2rem; box-shadow: var(--shadow); transition: border-color .2s, transform .2s;
}
.dish:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.dish__main { min-width: 0; }
.dish__top { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.dish h3 { font-size: 1.22rem; margin: 0; }
.dish__desc { color: var(--muted); font-size: .84rem; margin: .3rem 0 .6rem; }
.dish__tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag {
  font-size: .66rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .2rem .45rem; border-radius: 5px; background: var(--surface-2);
  color: var(--muted); border: 1px solid var(--line); font-weight: 600;
}
.tag--hot { color: #a5532a; border-color: #d9a67f; background: #fbeee3; }
.tag--star { color: var(--gold); border-color: var(--gold-2); background: color-mix(in srgb, var(--gold-2) 16%, transparent); }
.tag--off { color: var(--muted); }
.dish__buy { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; flex-shrink: 0; }
.price { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 700; white-space: nowrap; }
.price small { display: block; font-family: var(--ff-body); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.dish.is-unavailable { opacity: .62; }

.empty {
  text-align: center; padding: 3rem 1rem; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface);
}

/* ---------- Gallery / venue ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0; background: linear-gradient(transparent, rgba(20, 10, 8, .82)); color: #fff3e2; font-size: .74rem; padding: 1.6rem .7rem .55rem; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Facility gallery ---------- */
.facility-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem;
}
@media (max-width: 960px) { .facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .facility-grid { grid-template-columns: 1fr; } }

.facility {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.facility:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.facility > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.facility__body { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.15rem 1.25rem; }
.facility__body .tag { align-self: flex-start; }
.facility__body h2 { font-size: 1.35rem; margin: .1rem 0 .1rem; }
.facility__body p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Forms / sections ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.form-note { font-size: .74rem; color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; margin: 0 0 1rem; }
legend { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: 0 .4rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-row label {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .85rem;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .86rem;
  background: var(--surface);
}
.radio-row input { accent-color: var(--gold); }
.radio-row label:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold-2) 14%, var(--surface)); }

.notice {
  display: flex; gap: .7rem; border-radius: 12px; padding: .9rem 1rem; font-size: .84rem;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.notice strong { color: var(--ink); }
.notice--info { background: color-mix(in srgb, var(--gold-2) 12%, var(--surface)); border-color: var(--gold-soft); }
.notice--ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }

/* ---------- Steps / timeline ---------- */
.steps { display: flex; flex-wrap: wrap; gap: .6rem; counter-reset: step; }
.steps > div {
  flex: 1 1 180px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem; font-size: .84rem; color: var(--muted);
}
.steps > div::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold);
  display: block; line-height: 1; margin-bottom: .35rem;
}
.steps strong { display: block; color: var(--ink); font-size: .92rem; }

.track { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; counter-reset: t; }
.track li {
  display: flex; gap: .8rem; align-items: flex-start; font-size: .87rem; color: var(--muted);
  padding: .6rem .8rem; border-radius: 10px; border: 1px solid transparent;
}
.track li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line);
  margin-top: .45rem; flex: 0 0 10px;
}
.track li.done { color: var(--ink); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.track li.done::before { background: var(--ok); }
.track li.active { color: var(--ink); background: color-mix(in srgb, var(--gold-2) 16%, var(--surface)); border-color: var(--gold-soft); }
.track li.active::before { background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-2) 25%, transparent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: #ebdcc9; padding: 3.4rem 0 1.4rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff3e1; font-size: 1.15rem; margin-bottom: .8rem; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .88rem; }
.site-footer p { font-size: .88rem; color: #d3c2ae; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid rgba(255, 240, 220, .28); border-radius: 999px;
  padding: .42rem .8rem; font-size: .78rem; color: #f2e3d0; background: rgba(255, 250, 240, .06);
  cursor: pointer; transition: all .2s;
}
.social-btn:hover { background: var(--gold-2); color: #241809; border-color: var(--gold-2); }
.social-btn svg { width: 15px; height: 15px; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 240, 220, .16);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  font-size: .76rem; color: #c4b29d;
}
.footer-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-badge {
  border: 1px solid rgba(255, 240, 220, .25); border-radius: 6px; padding: .15rem .45rem;
  font-size: .68rem; letter-spacing: .04em;
}

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(18, 10, 6, .5); opacity: 0;
  pointer-events: none; transition: opacity .25s; z-index: 90; backdrop-filter: blur(2px);
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--surface); border-left: 1px solid var(--line);
  z-index: 95; transform: translateX(102%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line);
}
.drawer__head h3 { margin: 0; font-size: 1.35rem; }
.drawer__body { padding: 1.1rem 1.3rem; overflow-y: auto; flex: 1; }
.drawer__foot { padding: 1.1rem 1.3rem; border-top: 1px solid var(--line); background: var(--surface-2); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line h4 { font-family: var(--ff-body); font-size: .9rem; margin: 0; font-weight: 600; }
.cart-line small { color: var(--muted); font-size: .74rem; }
.cart-line .line-price { text-align: right; font-weight: 600; font-size: .9rem; }
.qty { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 999px; padding: .12rem .3rem; }
.qty button {
  width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--surface-2);
  color: var(--ink); cursor: pointer; font-size: .85rem; line-height: 1;
}
.qty span { min-width: 22px; text-align: center; font-size: .82rem; }
.totals { display: grid; gap: .35rem; font-size: .88rem; margin-bottom: .9rem; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals div.grand { color: var(--ink); font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: .5rem; }

/* ---------- Status pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem;
  border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--new { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.pill--prep { color: #2f6f9f; background: #e7f1f9; border-color: #b6d4ea; }
[data-theme="dark"] .pill--prep { background: #1b2c3a; border-color: #2f5a78; color: #8fc4e8; }
.pill--ready { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.pill--done { color: var(--muted); }
.pill--cancel { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }

/* ---------- Dashboard / admin ---------- */
.page-head { padding: 2.6rem 0 1.6rem; background: linear-gradient(180deg, var(--surface-2), var(--cream)); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .3rem; font-size: clamp(2rem, 4vw, 3rem); }
.page-head p { color: var(--muted); margin: 0; max-width: 62ch; }
.tabs { display: flex; gap: .3rem; overflow-x: auto; padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin: 1.6rem 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: transparent; color: var(--muted); font: 600 .82rem var(--ff-body);
  padding: .6rem 1rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--plum); color: #fdf3e3; }
[data-theme="dark"] .tab[aria-selected="true"] { color: #f6ecdf; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.4rem; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.kpi span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi strong { display: block; font-family: var(--ff-display); font-size: 1.8rem; line-height: 1.15; margin-top: .25rem; }
.kpi small { color: var(--muted); font-size: .72rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 1.4rem; }
.panel__head { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.3rem; }
.panel__body { padding: 1.1rem 1.2rem; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data td .btn { margin: 0 .2rem .2rem 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .3rem; }
.status-select { padding: .35rem .5rem; font-size: .8rem; border-radius: 7px; }

.chart { display: flex; align-items: flex-end; gap: .6rem; height: 180px; padding-top: .5rem; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; }
.chart .bar {
  width: 100%; max-width: 56px; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-radius: 8px 8px 3px 3px; min-height: 4px; position: relative;
  transition: height .5s ease;
}
.chart .bar span { position: absolute; top: -1.35rem; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--muted); }
.chart small { font-size: .68rem; color: var(--muted); }
.bar-list { display: grid; gap: .6rem; }
.bar-list .row { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; font-size: .82rem; }
.bar-list .meter { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar-list .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

.feedback-item { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.feedback-item:last-child { border-bottom: 0; }
.stars { color: var(--gold); letter-spacing: .1em; font-size: .9rem; }
.rating-inline { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.rating-inline b { color: var(--ink); font-family: var(--ff-display); font-size: 1.3rem; display: block; line-height: 1.1; }

/* star input */
.star-input { display: inline-flex; gap: .2rem; }
.star-input button { background: none; border: 0; font-size: 1.6rem; color: var(--line); cursor: pointer; line-height: 1; padding: 0 .1rem; }
.star-input button.on { color: var(--gold); }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 150; display: grid; gap: .5rem; width: min(420px, 92vw); }
.toast {
  background: var(--plum); color: #fdf3e3; border: 1px solid rgba(255, 240, 220, .25);
  border-radius: 12px; padding: .8rem 1rem; font-size: .86rem; box-shadow: var(--shadow-lg);
  display: flex; gap: .6rem; align-items: flex-start; animation: toastIn .25s ease;
}
.toast b { color: var(--gold-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Offline / install banners ---------- */
.offline-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
  background: #241809; color: #ffeac6; font-size: .8rem; text-align: center;
  padding: .45rem .8rem; transform: translateY(100%); transition: transform .25s;
}
.offline-bar.show { transform: none; }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 120;
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 240, 220, .3);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #241809;
  font-size: 1.4rem; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: transform .2s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.03); }
.chat-panel {
  position: fixed; right: 1.1rem; bottom: 5.2rem; z-index: 121;
  width: min(380px, 92vw); max-height: min(620px, 78vh);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem;
  background: var(--plum); color: #fdf3e3;
}
.chat-head img { width: 34px; height: 34px; border-radius: 50%; }
.chat-head strong { display: block; font-size: .9rem; }
.chat-head small { font-size: .68rem; color: var(--gold-2); }
.chat-head .icon-btn { margin-left: auto; border-color: rgba(255, 240, 220, .3); color: #fdf3e3; width: 32px; height: 32px; }
.chat-log { padding: .9rem; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: .55rem; background: var(--cream); }
msg, .msg { max-width: 86%; padding: .6rem .8rem; border-radius: 12px; font-size: .84rem; line-height: 1.45; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--plum); color: #fdf3e3; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.msg a { color: var(--gold); text-decoration: underline; }
@keyframes chatIn { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
.msg { animation: chatIn .3s cubic-bezier(.22, .9, .3, 1) both; }
.chat-log { scroll-behavior: smooth; }
.msg.is-typing { display: flex; align-items: center; gap: .26rem; padding: .72rem .85rem; }
.msg.is-typing .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chatBounce 1.15s infinite ease-in-out; }
.msg.is-typing .dot:nth-child(2) { animation-delay: .16s; }
.msg.is-typing .dot:nth-child(3) { animation-delay: .32s; }
@keyframes chatBounce { 0%, 62%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-online { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3fbf7f; margin-right: .28rem; box-shadow: 0 0 0 0 rgba(63, 191, 127, .7); animation: chatPulse 2.2s infinite; }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 127, .55); } 70% { box-shadow: 0 0 0 6px rgba(63, 191, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0); } }
@media (prefers-reduced-motion: reduce) { .msg, .msg.is-typing .dot, .chat-online { animation: none !important; } }
.chat-quick { display: flex; gap: .35rem; flex-wrap: wrap; padding: 0 .9rem .5rem; background: var(--cream); }
.chat-quick button { font-size: .72rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.chat-form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { flex: 1; }
.chat-form .icon-btn { flex: 0 0 40px; width: 40px; height: 40px; }
.chat-status { font-size: .68rem; color: var(--muted); padding: 0 .9rem .5rem; background: var(--cream); }

/* ---------- Utilities ---------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap-sm { gap: .5rem; }
.gap { gap: 1rem; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.hidden { display: none !important; }
@media (max-width: 620px) { .hide-sm { display: none; } }
.divider { height: 1px; background: var(--line); margin: 1.2rem 0; border: 0; }
.split-2 { display: grid; grid-template-columns: 1.35fr .9fr; gap: 1.4rem; align-items: start; }
@media (max-width: 960px) { .split-2 { grid-template-columns: 1fr; } }
.sticky-col { position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 960px) { .sticky-col { position: static; } }

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

/* Print-friendly menu */
@media print {
  .site-header, .site-footer, .chat-fab, .chat-panel, .drawer, .drawer-backdrop, .offline-bar, .toast-stack, .menu-controls { display: none !important; }
  body { background: #fff; color: #000; }
  .dish { break-inside: avoid; box-shadow: none; }
}


/* ---------- Dish photos (added for the menu visuals) ---------- */
.dish { align-items: flex-start; }
.dish__thumb {
  width: 104px; height: 104px; flex: 0 0 104px; border-radius: 14px;
  object-fit: cover; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--surface-2);
}
.dish__main { flex: 1 1 auto; }
@media (max-width: 520px) {
  .dish { flex-wrap: wrap; }
  .dish__thumb { width: 78px; height: 78px; flex-basis: 78px; }
  .dish__buy { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; margin-top: .4rem; }
}

/* ---------- Quick page buttons (home) ---------- */
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 760px) { .quick-actions { grid-template-columns: repeat(2, 1fr); } }
.quick {
  display: flex; flex-direction: column; gap: .2rem; align-items: flex-start;
  padding: 1.15rem 1.2rem; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
  transition: transform .18s, border-color .2s, box-shadow .2s;
}
.quick:hover { transform: translateY(-3px); border-color: var(--gold-2); box-shadow: var(--shadow-lg); }
.quick__icon { font-size: 1.3rem; margin-bottom: .35rem; color: var(--gold); }
.quick strong { font-family: var(--ff-display); font-size: 1.3rem; line-height: 1.1; }
.quick span { font-size: .8rem; color: var(--muted); }

/* ---------- Reviews page ---------- */
.review {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow); height: 100%;
}
.review p { margin: .5rem 0 0; font-size: .9rem; color: var(--ink); }
.review__meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.review__dish { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.rating-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center;
  padding: 1.4rem 1.6rem; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow);
}
.rating-hero .score { font-family: var(--ff-display); font-size: 3.4rem; line-height: 1; color: var(--gold); }
.rating-hero small { color: var(--muted); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.rating-bars { display: grid; gap: .5rem; margin-top: .6rem; }
.rating-bars .row { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted); }
.rating-bars .meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.rating-bars .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
@media (max-width: 560px) { .rating-hero { grid-template-columns: 1fr; gap: .6rem; } }
