/* ============================================================
   Café Meraki — demo site stylesheet
   Palette: cream #FAF5EC · espresso #3E2A20 · terracotta #C96F4A
   ============================================================ */
:root {
  --cream: #FAF5EC;
  --cream-2: #F3EADA;
  --white: #FFFFFF;
  --espresso: #3E2A20;
  --espresso-2: #5A4032;
  --espresso-3: #7A6252;
  --terracotta: #C96F4A;
  --terracotta-d: #B25C39;
  --terracotta-l: #E8A987;
  --green: #1FA855;
  --green-d: #128C43;
  --red: #C0392B;
  --red-bg: #FADEDA;
  --green-bg: #DFF3E7;
  --amber-bg: #FBEED3;
  --line: #E7DCC8;
  --shadow: 0 6px 24px rgba(62, 42, 32, 0.08);
  --shadow-lg: 0 14px 40px rgba(62, 42, 32, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* `hidden` must always win. Author rules like .bell-drop { display: grid }
   and .cart-badge { display: flex } override the UA stylesheet's
   [hidden] { display: none } (author origin beats user-agent origin),
   which made the notification panel + badges render visible on load. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; color: inherit; }
::selection { background: #E8A987; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 640; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.wrap { width: min(1120px, 92%); margin: 0 auto; }
section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terracotta-d); margin-bottom: 12px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--terracotta); border-radius: 2px; }
.sub { color: var(--espresso-3); max-width: 58ch; margin-top: 10px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.center .kicker { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease;
  min-height: 50px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--terracotta-d); color: var(--white); box-shadow: 0 8px 20px rgba(201, 111, 74, 0.35); }
.btn-primary:hover { background: #9E4E2F; }
.btn-wa { background: var(--green-d); color: var(--white); box-shadow: 0 8px 20px rgba(31, 168, 85, 0.3); }
.btn-wa:hover { background: #0E7A3A; }
/* keyboard focus ring (skill: a11y is a quiet constraint that overrides aesthetics) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 6px;
}
.btn-outline { background: transparent; color: var(--espresso); border: 2px solid var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--cream); }
.btn-ghost { background: var(--cream-2); color: var(--espresso); }
.btn-ghost:hover { background: var(--line); }
.btn-sm { padding: 10px 16px; min-height: 42px; font-size: 0.9rem; gap: 7px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn svg { flex: 0 0 auto; }
/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 245, 236, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  /* viewport-fit=cover is set on every page, so on notched phones the sticky
     bar would otherwise sit under the status bar / notch. */
  padding-top: env(safe-area-inset-top);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  background: var(--espresso); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
}
.brand em { color: var(--terracotta-d); font-style: normal; }
.nav-links { display: none; align-items: center; gap: 26px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--espresso-2); padding: 8px 2px; }
.nav-links a:hover { color: var(--terracotta); }
/* The burger used to live inside .nav-cta, which is display:none below 940px —
     so on a phone there was no burger at all and the menu was unreachable.
   .nav-cta now always renders (short labels on small screens) and the burger is
   a sibling of it, so no breakpoint can hide the only menu control. */
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  height: 46px; width: auto; padding: 0 14px; border-radius: 12px;
  background: var(--cream-2);
}
.nav-burger em { font-style: normal; font-weight: 700; font-size: 0.92rem; color: var(--espresso); }
.nav-burger:hover { background: var(--line); }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--espresso); border-radius: 2px; position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px 4% 18px; border-top: 1px solid var(--line); background: var(--cream);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 10px; font-weight: 600; border-radius: 12px; font-size: 1.05rem; }
.mobile-menu a:active { background: var(--cream-2); }
.mobile-menu a[aria-current="page"] { color: var(--terracotta-d); background: var(--cream-2); }
.mobile-menu .btn { margin-top: 10px; }
/* Long CTA labels collapse to short ones below 940px; both live in the markup,
   so the swap needs no JS. */
.cta-s { display: none; }
@media (max-width: 939px) {
  /* Owner decision: on phones the top bar is brand + Menu only. Chat and Book
     live in the dropdown (and at the bottom of the page), so the header no
     longer wraps onto a second line. */
  .nav-cta { display: none; }
  .nav { gap: 10px; }
  .brand { font-size: 1.02rem; gap: 7px; }
  .brand-mark { width: 34px; height: 34px; font-size: 1rem; }
}
@media (min-width: 940px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-burger, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; padding: 0; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(62, 42, 32, 0.3) 0%, rgba(62, 42, 32, 0.05) 38%, rgba(46, 30, 22, 0.85) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; color: var(--cream); }
.hero-inner .wrap { padding: 0 0 clamp(4.5rem, 10vw, 6rem); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(250, 245, 236, 0.16); border: 1px solid rgba(250, 245, 236, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { color: var(--cream); max-width: 16ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hero h1 em { font-style: italic; color: var(--terracotta-l); }
.hero-sub { margin-top: 14px; font-size: clamp(1.02rem, 2.6vw, 1.25rem); color: rgba(250, 245, 236, 0.92); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 30px;
  font-size: 0.9rem; color: rgba(250, 245, 236, 0.85);
  border-top: 1px solid rgba(250, 245, 236, 0.25); padding-top: 18px;
}
.hero-meta strong { color: var(--cream); font-weight: 700; }
@media (min-width: 940px) {
  .hero { min-height: 88svh; }
  .hero-ctas .btn { min-width: 190px; }
}
/* ---------- Menu ---------- */
.menu-tabs { display: flex; gap: 10px; margin: 26px 0 30px; flex-wrap: wrap; }
.menu-tab {
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  background: var(--white); border: 1.5px solid var(--line); color: var(--espresso-2);
  transition: all 0.15s ease;
}
.menu-tab:hover { border-color: var(--terracotta); color: var(--terracotta); }
.menu-tab.active { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.menu-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.menu-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.menu-card-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.menu-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.menu-card:hover .menu-card-photo img { transform: scale(1.04); }
.menu-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.menu-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-item-name { font-family: var(--font-display); font-weight: 640; font-size: 1.08rem; }
.menu-item-price { font-weight: 800; color: var(--terracotta-d); font-size: 1.05rem; white-space: nowrap; }
.menu-item-desc { font-size: 0.92rem; color: var(--espresso-3); flex: 1; }
.menu-tags { display: flex; gap: 6px; margin-top: 4px; }
.tag {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 999px;
  background: var(--green-bg); color: var(--green-d);
}
.tag.gf { background: #EDE6F8; color: #6D42B4; }
.tag.vg { background: #FFF3D6; color: #9A6A0F; }
.soldout-chip {
  position: absolute; top: 12px; right: 12px;
  background: rgba(62, 42, 32, 0.88); color: var(--cream);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.menu-card.soldout img { filter: grayscale(0.85) brightness(0.85); }
.menu-note { margin-top: 26px; text-align: center; font-size: 0.88rem; color: var(--espresso-3); }
/* ---------- Booking ---------- */
.booking { background: var(--espresso); color: var(--cream); }
.booking .kicker { color: var(--terracotta-l); }
.booking .kicker::before { background: var(--terracotta-l); }
.booking .sub { color: rgba(250, 245, 236, 0.75); }
.booking-grid { display: grid; gap: 36px; margin-top: 30px; }
@media (min-width: 940px) { .booking-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }
.booking-card {
  background: var(--cream); color: var(--espresso);
  border-radius: 22px; padding: clamp(20px, 4vw, 30px); box-shadow: var(--shadow-lg);
}
.steps { display: flex; gap: 8px; margin-bottom: 22px; }
.step-dot { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background 0.3s ease; }
.step-dot.on { background: var(--terracotta); }
.bk-label { display: block; font-size: 0.85rem; font-weight: 700; margin: 18px 0 8px; }
.bk-label:first-of-type { margin-top: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 11px 14px; border-radius: 12px; font-weight: 700; font-size: 0.92rem;
  background: var(--white); border: 1.5px solid var(--line); color: var(--espresso-2);
  transition: all 0.12s ease; min-height: 44px;
}
.chip:hover { border-color: var(--terracotta); }
.chip.active { background: var(--terracotta-d); border-color: var(--terracotta-d); color: var(--white); }
.chip small { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.85; }
.chip[disabled] { opacity: 0.4; text-decoration: line-through; }
.bk-input, .bk-select {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--white); font-size: 1rem;
}
.bk-input:focus, .bk-select:focus { outline: 2px solid #E8A987; border-color: var(--terracotta); }
.bk-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .bk-row { grid-template-columns: 1fr 1fr; } }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 46px; height: 46px; border-radius: 14px; background: var(--white);
  border: 1.5px solid var(--line); font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.stepper button:hover { border-color: var(--terracotta); color: var(--terracotta); }
.stepper-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; min-width: 90px; text-align: center; }
.bk-nav { display: flex; gap: 10px; margin-top: 24px; }
.bk-nav .btn { flex: 1; }
.bk-error { margin-top: 12px; color: var(--red); font-size: 0.9rem; font-weight: 600; display: none; }
.bk-error.show { display: block; }
/* Confirmation */
.confirm-head { text-align: center; padding: 6px 0 2px; }
.confirm-tick {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--green-bg); color: var(--green-d); display: grid; place-items: center;
}
.confirm-head h3 { font-size: 1.5rem; }
.confirm-head p { color: var(--espresso-3); margin-top: 6px; font-size: 0.95rem; }
.ref-box {
  margin: 18px auto; padding: 14px 20px; background: var(--cream-2); border: 1.5px dashed #E8A987;
  border-radius: 14px; text-align: center; max-width: 320px;
}
.ref-box span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; color: var(--espresso-3); text-transform: uppercase; }
.ref-box strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.06em; color: #B25C39; }
.confirm-details { border-top: 1px solid var(--line); }
.confirm-details > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.confirm-details dt { color: var(--espresso-3); }
.confirm-details dd { font-weight: 700; text-align: right; }
.bk-aside-card {
  background: rgba(250, 245, 236, 0.07); border: 1px solid rgba(250, 245, 236, 0.15);
  border-radius: 20px; padding: 26px;
}
.bk-aside-card h3 { color: var(--cream); font-size: 1.25rem; margin-bottom: 10px; }
.bk-aside-card p { color: rgba(250, 245, 236, 0.78); font-size: 0.95rem; }
.bk-aside-card ul { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.bk-aside-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: rgba(250, 245, 236, 0.88); }
.bk-aside-card li svg { flex: 0 0 auto; margin-top: 2px; color: var(--terracotta-l); }
.bk-aside-card .btn { margin-top: 20px; width: 100%; }

/* ---------- Reviews ---------- */
.reviews { background: var(--cream-2); }
.review-grid { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 700px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .review-grid { grid-template-columns: repeat(4, 1fr); } }
.review-card {
  background: var(--white); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.review-stars { color: #E2A400; letter-spacing: 2px; font-size: 0.95rem; }
.review-text { font-size: 0.95rem; color: var(--espresso-2); flex: 1; }
.review-who { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: var(--terracotta-l); color: var(--espresso);
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}
.review-who strong { display: block; font-size: 0.92rem; }
.review-who span { font-size: 0.78rem; color: var(--espresso-3); }
.review-badge { font-size: 0.7rem; color: var(--espresso-3); border: 1px solid var(--line); border-radius: 99px; padding: 3px 8px; margin-left: auto; }
/* ---------- About ---------- */
.about-grid { display: grid; gap: 34px; margin-top: 34px; }
@media (min-width: 940px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.about-photos { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.about-photos img { border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; width: 100%; height: 100%; }
.about-photos img:first-child { aspect-ratio: 4 / 5; }
.about-photos img:last-child { aspect-ratio: 3 / 4; align-self: end; }
.about-story p { color: var(--espresso-2); margin-top: 14px; }
.team-grid { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(3, 1fr); }
.team-card { background: var(--white); border-radius: 16px; padding: 18px 12px; text-align: center; box-shadow: var(--shadow); }
.team-avatar {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--cream-2); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--terracotta-d);
  border: 2px solid #E8A987;
}
.team-card strong { display: block; font-size: 0.95rem; }
.team-card span { font-size: 0.8rem; color: var(--espresso-3); }

/* ---------- Location ---------- */
.location-grid { display: grid; gap: 30px; margin-top: 34px; }
@media (min-width: 940px) { .location-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }
.hours-card { background: var(--white); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.hours-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hours-row:last-child { border-bottom: none; }
.hours-row span { color: var(--espresso-2); }
.hours-row strong { font-weight: 700; }
.hours-row.today strong { color: var(--terracotta-d); }
.hours-row.today span { color: var(--terracotta-d); font-weight: 700; }
.addr { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 6px; font-size: 0.98rem; color: var(--espresso-2); }
.addr svg { flex: 0 0 auto; color: var(--terracotta); margin-top: 3px; }
.map-embed { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); min-height: 340px; background: var(--cream-2); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  background: linear-gradient(150deg, #F3EADA, #EAD9BE); padding: 30px;
}
.map-fallback.show { display: grid; }
.map-fallback strong { font-family: var(--font-display); font-size: 1.3rem; display: block; margin-bottom: 8px; }
.map-fallback p { color: var(--espresso-3); font-size: 0.92rem; max-width: 34ch; margin: 0 auto 16px; }
/* ---------- WhatsApp showcase ---------- */
.showcase { background: var(--espresso); color: var(--cream); }
.showcase .kicker { color: var(--terracotta-l); }
.showcase .kicker::before { background: var(--terracotta-l); }
.showcase .sub { color: rgba(250, 245, 236, 0.75); }
.flow-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 700px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .flow-grid { grid-template-columns: repeat(4, 1fr); } }
.flow-card {
  background: rgba(250, 245, 236, 0.06); border: 1px solid rgba(250, 245, 236, 0.14);
  border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.flow-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}
.flow-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(250, 245, 236, 0.1); display: grid; place-items: center; color: var(--terracotta-l); }
.flow-card h3 { color: var(--cream); font-size: 1.1rem; }
.flow-card p { color: rgba(250, 245, 236, 0.75); font-size: 0.92rem; flex: 1; }
.flow-bubble {
  background: rgba(250, 245, 236, 0.1); border-radius: 12px; padding: 10px 12px;
  font-size: 0.8rem; color: rgba(250, 245, 236, 0.9); line-height: 1.45;
}
.flow-bubble.bot { border-bottom-left-radius: 3px; margin-right: 24px; }
.flow-bubble.owner { background: var(--green-bg); color: var(--green-d); border-bottom-right-radius: 3px; margin-left: 24px; font-weight: 600; }
.showcase-cta {
  margin-top: 40px; padding: clamp(24px, 5vw, 40px); border-radius: 24px; text-align: center;
  background: rgba(31, 168, 85, 0.12); border: 1px solid rgba(31, 168, 85, 0.4);
}
.showcase-cta h3 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--cream); }
.showcase-cta p { color: rgba(250, 245, 236, 0.78); margin: 10px auto 20px; max-width: 52ch; font-size: 0.98rem; }
/* ---------- Final CTA / Footer / Sticky bar ---------- */
.final-cta { text-align: center; background: var(--cream-2); }
.final-cta h2 em { font-style: italic; color: var(--terracotta); }
.final-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.site-footer { background: var(--espresso); color: rgba(250, 245, 236, 0.8); padding: 54px 0 120px; }
@media (min-width: 940px) { .site-footer { padding-bottom: 54px; } }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--cream); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer .brand { color: var(--cream); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--terracotta-l); }
.dalfirm-badge {
  margin-top: 40px; padding: 14px 18px; border-radius: 14px; text-align: center;
  background: rgba(250, 245, 236, 0.07); border: 1px dashed rgba(250, 245, 236, 0.3);
  font-size: 0.88rem; color: rgba(250, 245, 236, 0.85);
}
.dalfirm-badge a { color: var(--terracotta-l); font-weight: 700; }
.footer-bottom { margin-top: 26px; text-align: center; font-size: 0.8rem; color: rgba(250, 245, 236, 0.5); }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 245, 236, 0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(62, 42, 32, 0.12);
}
.sticky-bar .btn { min-height: 54px; }
@media (min-width: 940px) { .sticky-bar { display: none; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 65;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: none; place-items: center;
  box-shadow: 0 10px 26px rgba(31, 168, 85, 0.45);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
@media (min-width: 940px) { .wa-float { display: grid; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px);
  background: var(--espresso); color: var(--cream); padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; box-shadow: var(--shadow-lg); z-index: 90;
  opacity: 0; pointer-events: none; transition: all 0.25s ease;
  max-width: 90vw; text-align: center;
}
@media (min-width: 940px) { .toast { bottom: 32px; } }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
/* ============================================================
   ADMIN — /admin (owner dashboard)
   ============================================================ */
body.admin-body { background: #F5EFE3; }
.admin-topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--espresso); color: var(--cream);
}
.admin-topbar .nav { height: 60px; }
.admin-topbar .brand { font-size: 1.05rem; color: var(--cream); }
.admin-topbar .brand-mark { background: var(--terracotta); color: var(--white); width: 34px; height: 34px; font-size: 1rem; }
.admin-topbar-right { display: flex; align-items: center; gap: 10px; }
.pill-link {
  font-size: 0.85rem; font-weight: 700; padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(250, 245, 236, 0.3); color: var(--cream);
}
.pill-link:hover { background: rgba(250, 245, 236, 0.12); }
.admin-tabs {
  position: sticky; top: 60px; z-index: 49;
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 4%;
  background: rgba(245, 239, 227, 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex: 0 0 auto; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  background: var(--white); border: 1.5px solid var(--line); color: var(--espresso-2);
}
.admin-tab:hover { border-color: var(--terracotta); color: var(--terracotta); }
.admin-tab.active { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.admin-tab .count { background: var(--terracotta); color: var(--white); border-radius: 999px; font-size: 0.72rem; padding: 2px 7px; margin-left: 6px; font-weight: 800; }
.admin-tab.active .count { background: var(--terracotta); }
.admin-main { padding: 26px 0 80px; }
.admin-section { display: none; }
.admin-section.active { display: block; }

.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 22px; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--white); border-radius: 16px; padding: 18px; box-shadow: var(--shadow);
  border: 1px solid #EFE6D2;
}
.stat-card .stat-val { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--espresso-3); font-weight: 600; margin-top: 4px; }
.stat-card .stat-hint { font-size: 0.75rem; color: var(--terracotta-d); font-weight: 700; margin-top: 6px; }

.panel { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid #EFE6D2; padding: 22px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h3 { font-size: 1.2rem; }
.panel-head .hint { font-size: 0.82rem; color: var(--espresso-3); }
.panel + .panel { margin-top: 20px; }

.day-group-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--espresso-3); margin: 18px 0 10px; }
.day-group-label:first-child { margin-top: 0; }
.bk-list { display: grid; gap: 10px; }
.bk-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px;
  background: var(--cream);
}
.bk-time { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; min-width: 64px; }
.bk-who { flex: 1; min-width: 150px; }
.bk-who strong { display: block; font-size: 0.98rem; }
.bk-who span { font-size: 0.82rem; color: var(--espresso-3); }
.bk-party { font-size: 0.88rem; font-weight: 700; color: var(--espresso-2); background: var(--cream-2); padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.bk-ref { font-size: 0.78rem; color: var(--espresso-3); font-weight: 600; letter-spacing: 0.05em; }
.bk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

.status-chip {
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.status-chip.confirmed { background: var(--green-bg); color: var(--green-d); }
.status-chip.to-confirm { background: var(--amber-bg); color: var(--amber); }
.status-chip.no-show-risk { background: var(--red-bg); color: var(--red); }
.status-chip.cancelled { background: #ECE3D6; color: var(--espresso-3); text-decoration: line-through; }

.icon-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 0.85rem;
  border: 1.5px solid var(--line); background: var(--white); color: var(--espresso-2);
  transition: all 0.12s ease; min-height: 42px;
}
.icon-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.icon-btn.wa { background: var(--green); border-color: var(--green); color: var(--white); }
.icon-btn.wa:hover { background: var(--green-d); }
.icon-btn.ok { background: #EDF7F0; border-color: #BFE3CC; color: var(--green-d); }
.icon-btn.warn { background: #FBF3E3; border-color: #EBD5A8; color: var(--amber); }
.icon-btn.active-state { border-color: var(--terracotta); color: var(--terracotta); background: #FDF3EC; }
.empty-note { text-align: center; color: var(--espresso-3); padding: 26px 10px; font-size: 0.95rem; }
/* Inbox */
.inbox-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.inbox-filter {
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  background: var(--cream-2); border: 1.5px solid var(--line); color: var(--espresso-2);
}
.inbox-filter:hover { border-color: var(--terracotta); }
.inbox-filter.active { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.msg-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; background: var(--cream); display: grid; gap: 10px; }
.msg-card + .msg-card { margin-top: 12px; }
.msg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msg-who { font-weight: 700; font-size: 0.98rem; }
.msg-time { font-size: 0.78rem; color: var(--espresso-3); margin-left: auto; white-space: nowrap; }
.msg-chip { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.msg-chip.auto { background: var(--green-bg); color: var(--green-d); }
.msg-chip.needs { background: var(--amber-bg); color: var(--amber); }
.msg-chip.booked { background: #E3ECFA; color: #2C5CA8; }
.msg-chip.cat { background: var(--cream-2); color: var(--espresso-3); }
.msg-text { font-size: 0.95rem; color: var(--espresso-2); background: var(--white); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.msg-template {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem;
  background: #F0F7F2; border: 1px dashed #BFE3CC; border-radius: 12px; padding: 10px 12px; color: var(--espresso-2);
}
.msg-template svg { flex: 0 0 auto; color: var(--green-d); margin-top: 1px; }
.msg-template strong { display: block; font-size: 0.8rem; color: var(--green-d); margin-bottom: 2px; }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Stats bars */
.bar-row { display: grid; grid-template-columns: 92px 1fr 44px; gap: 10px; align-items: center; font-size: 0.88rem; }
.bar-row + .bar-row { margin-top: 12px; }
.bar-track { height: 12px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--terracotta); transition: width 0.5s ease; }
.bar-fill.green { background: var(--green); }
.bar-val { font-weight: 800; text-align: right; color: var(--espresso-2); }
.stat-2col { display: grid; gap: 20px; }
@media (min-width: 900px) { .stat-2col { grid-template-columns: 1fr 1fr; } }

/* Menu manager */
.mm-list { display: grid; gap: 10px; }
.mm-cat-label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--espresso-3); margin: 16px 0 8px; }
.mm-cat-label:first-child { margin-top: 0; }
.mm-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--cream);
}
.mm-row.soldout { opacity: 0.6; }
.mm-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.mm-name { flex: 1; min-width: 140px; font-weight: 700; font-size: 0.95rem; }
.mm-name small { display: block; font-weight: 500; color: var(--espresso-3); font-size: 0.78rem; }
.mm-price { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--espresso-3); }
.mm-price input {
  width: 82px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  font-weight: 700; text-align: right; background: var(--white);
}
.mm-price input:focus { outline: 2px solid #E8A987; border-color: var(--terracotta); }
.mm-price input.dirty { border-color: var(--terracotta); background: #FDF3EC; }
.mm-price .save-btn { font-size: 0.78rem; padding: 9px 12px; min-height: 38px; display: none; }
.mm-price .save-btn.show { display: inline-flex; }

/* Toggle switch */
.switch { position: relative; width: 52px; height: 30px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: #D8CCB8; transition: background 0.2s ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,0.25); transition: transform 0.2s ease;
}
.switch input:checked + .track { background: var(--red); }
.switch input:checked + .track::after { transform: translateX(22px); }
.mm-row .status-text { font-size: 0.78rem; font-weight: 700; color: var(--espresso-3); min-width: 74px; }

/* Settings / danger */
.danger-zone { border: 1.5px solid #EBC9C2; background: #FBF1EE; }
.danger-zone .panel-head h3 { color: var(--red); }
.danger-note { font-size: 0.88rem; color: var(--espresso-2); margin-bottom: 14px; }
.danger-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #A93226; }
.kv-note { font-size: 0.8rem; color: var(--espresso-3); }
.kv-note code { background: var(--cream-2); padding: 2px 6px; border-radius: 6px; font-size: 0.78rem; }

/* Admin topbar mobile */
.admin-topbar .nav-links { display: none; }
@media (max-width: 520px) {
  .pill-link span.hide-sm { display: none; }
  .bk-time { min-width: 54px; }
}
/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer { background: var(--espresso); color: rgba(250, 245, 236, 0.75); padding: 56px 0 130px; }
@media (min-width: 940px) { .site-footer { padding: 56px 0 46px; } }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand .brand { color: var(--cream); }
.footer-brand p { font-size: 0.95rem; margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-family: var(--font-display); color: var(--cream); font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-col a { color: inherit; }
.footer-col a:hover { color: var(--terracotta-d); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(250, 245, 236, 0.14); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: 0.82rem; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(250, 245, 236, 0.08); border: 1px dashed rgba(250, 245, 236, 0.3);
  padding: 10px 16px; border-radius: 999px; font-size: 0.84rem;
}
.demo-badge strong { color: var(--terracotta-d); }
.demo-badge a { color: inherit; text-decoration: underline; }

/* 9. MISC */
.back-to-menu { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 700; font-size: 0.95rem; color: var(--terracotta-d); }
html[lang] { -webkit-text-size-adjust: 100%; }
::selection { background: #E8A987; color: var(--white); }
/* ---------- Menu page ---------- */
.menu-hero { padding: clamp(2.4rem, 6vw, 4rem) 0 0; }
.menu-hero h1 { max-width: 20ch; }
.menu-hero p { margin-top: 10px; }
.menu-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 22px 0 6px; }
.menu-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.menu-search {
  flex: 0 1 280px; min-width: 200px;
  padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font-size: 0.98rem;
}
.menu-search:focus { outline: 2px solid #E8A987; border-color: var(--terracotta); }
.chip-day { display: block; font-size: 0.8rem; }
.chip small { font-weight: 600; opacity: 0.75; }

/* Order sheet */
.order-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  background: var(--cream); border-radius: 24px 24px 0 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -16px 48px rgba(62, 42, 32, 0.28);
  transform: translateY(105%); transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.3, 1);
  max-width: 560px; margin: 0 auto;
}
.order-sheet.open { transform: translateY(0); }
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(40, 26, 18, 0.5);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head strong { font-family: var(--font-display); font-size: 1.2rem; }
.sheet-close {
  width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 700;
}
.os-item { display: flex; gap: 14px; align-items: flex-start; }
.os-item img { width: 86px; height: 86px; border-radius: 16px; object-fit: cover; flex: 0 0 auto; }
.os-item h3 { font-size: 1.15rem; }
.os-item p { font-size: 0.9rem; color: var(--espresso-3); margin-top: 4px; }
.os-note { margin-top: 12px; font-size: 0.82rem; color: var(--espresso-3); text-align: center; }
.os-item .stepper { margin-top: 14px; }
.os-item .stepper button { width: 48px; height: 48px; font-size: 1.4rem; }

/* Empty badge state (menu page) */
.badge-empty {
  text-align: center; padding: 60px 20px; background: var(--white);
  border: 1.5px dashed var(--line); border-radius: 20px;
}
.badge-empty span { display: block; font-size: 2.2rem; margin-bottom: 10px; }
.badge-empty p { color: var(--espresso-3); }
/* ============================================================
   10. PUBLIC PAGE COMPAT LAYER (index.html classes)
   ============================================================ */
.container { width: min(1120px, 92%); margin: 0 auto; }
.btn-lg { padding: 17px 30px; min-height: 56px; font-size: 1.05rem; }

/* Hero (overrides) */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; padding: 0; color: var(--cream); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46, 30, 22, 0.42) 0%, rgba(46, 30, 22, 0.12) 40%, rgba(36, 22, 15, 0.88) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 clamp(4rem, 9vw, 6rem); }
.badge-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(250, 245, 236, 0.14); border: 1px solid rgba(250, 245, 236, 0.32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 9px 18px; font-size: 0.85rem; font-weight: 600; margin-bottom: 18px;
}
.hero-content h1 { color: var(--cream); max-width: 15ch; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.3); }
.hero-content h1 em { font-style: italic; color: #E8A987; }
.hero-sub { margin-top: 16px; font-size: clamp(1.02rem, 2.5vw, 1.22rem); color: rgba(250, 245, 236, 0.92); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-hours {
  display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 30px; padding-top: 18px;
  border-top: 1px solid rgba(250, 245, 236, 0.22);
  font-size: 0.9rem; color: rgba(250, 245, 236, 0.82);
}
.dot-sep { opacity: 0.5; }
@media (min-width: 940px) { .hero-actions .btn { min-width: 200px; } }

/* Story */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-copy h2 em { font-style: italic; color: var(--terracotta); }
.about-copy p { margin-top: 16px; color: var(--espresso-2); }
.about-gallery { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.about-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.about-gallery img:first-child { aspect-ratio: 4 / 5; }
.about-gallery img:last-child { aspect-ratio: 3 / 4; align-self: end; }
/* Hours / visit */
.section-hours { background: var(--cream-2); }
.hours-grid { display: grid; gap: 26px; align-items: stretch; }
@media (min-width: 940px) { .hours-grid { grid-template-columns: 0.9fr 1.1fr; } }
.h-hours { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 4px 0 14px; }
.hours-list { display: grid; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.hours-row:last-child { border-bottom: none; }
.hours-row dt { color: var(--espresso-2); }
.hours-row dd { font-weight: 700; }
.hours-row.today dt, .hours-row.today dd { color: #B25C39; }
.hours-note { margin-top: 14px; font-size: 0.86rem; color: var(--espresso-3); }
.visit-card { position: relative; border-radius: 22px; overflow: hidden; min-height: 320px; box-shadow: var(--shadow); }
.visit-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit-overlay {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(250, 245, 236, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 16px; padding: 16px 18px;
}
.visit-overlay strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.visit-overlay span { font-size: 0.85rem; color: var(--espresso-3); }

/* Showcase */
.section-sub { color: var(--espresso-3); max-width: 56ch; margin-top: 10px; }
.showcase { background: var(--espresso); color: var(--cream); }
.showcase .kicker { color: #E8A987; }
.showcase .kicker::before { background: #E8A987; }
.showcase .section-sub { color: rgba(250, 245, 236, 0.75); }
.showcase h2 { color: var(--cream); }
.flow-grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 700px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .flow-grid { grid-template-columns: repeat(4, 1fr); } }
.os-card {
  background: rgba(250, 245, 236, 0.06); border: 1px solid rgba(250, 245, 236, 0.14);
  border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.os-head { display: flex; align-items: center; justify-content: space-between; }
.os-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--terracotta); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem;
}
.os-icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(250, 245, 236, 0.1); display: grid; place-items: center; color: #E8A987; }
.os-card h3 { color: var(--cream); font-size: 1.12rem; }
.os-card p { color: rgba(250, 245, 236, 0.76); font-size: 0.93rem; flex: 1; }
.chat-demo { display: grid; gap: 8px; margin-top: 4px; }
.cd-bubble { border-radius: 14px; padding: 10px 13px; font-size: 0.82rem; line-height: 1.45; max-width: 88%; }
.cd-in { background: rgba(250, 245, 236, 0.12); color: rgba(250, 245, 236, 0.94); border-bottom-left-radius: 4px; }
.cd-out { background: #1FA855; color: var(--white); border-bottom-right-radius: 4px; justify-self: end; }
.showcase-cta {
  margin-top: 38px; padding: clamp(24px, 5vw, 40px); border-radius: 24px; text-align: center;
  background: rgba(31, 168, 85, 0.12); border: 1px solid rgba(31, 168, 85, 0.42);
}
.showcase-cta h3 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--cream); }
.showcase-cta p { color: rgba(250, 245, 236, 0.78); margin: 10px auto 20px; max-width: 52ch; font-size: 0.98rem; }
/* Footer */
.site-footer { background: var(--espresso); color: rgba(250, 245, 236, 0.78); padding: 56px 0 130px; }
@media (min-width: 940px) { .site-footer { padding: 56px 0 44px; } }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { color: var(--cream); }
.footer-brand p { font-size: 0.95rem; margin-top: 14px; max-width: 340px; }
.footer-col h4 { font-family: var(--font-display); color: var(--cream); font-size: 1.02rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-col a { color: inherit; }
.footer-col a:hover { color: #E8A987; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(250, 245, 236, 0.14);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 0.82rem;
}
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: rgba(250, 245, 236, 0.08); border: 1px dashed rgba(250, 245, 236, 0.32);
  padding: 10px 16px; border-radius: 999px; font-size: 0.84rem;
}
.demo-badge strong { color: #E8A987; }
.demo-badge a { color: inherit; text-decoration: underline; }

/* Sticky mobile bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 245, 236, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(62, 42, 32, 0.12);
}
.sticky-bar .btn { min-height: 54px; }
@media (min-width: 940px) { .sticky-bar { display: none; } }

/* ============================================================
   11. ADMIN V2 — sidebar shell, header, dashboard visuals
   ============================================================ */
.admin-body { background: var(--cream-2); }

/* Sidebar */
.side-nav {
  position: fixed; inset: 0 auto 0 0; z-index: 90;
  width: 248px; display: flex; flex-direction: column;
  background: var(--cream); border-right: 1px solid var(--line);
  padding: 22px 16px 18px; transition: transform 0.25s ease;
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.side-brand-txt { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-display); font-size: 1.12rem; color: var(--espresso); }
.side-brand-txt em { font-style: italic; color: var(--terracotta); }
.side-brand-txt small { font-family: var(--font-sans); font-size: 0.72rem; color: var(--espresso-3); margin-top: 3px; }
.side-links { display: grid; gap: 4px; flex: 1; align-content: start; }
.side-link {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 0; border-radius: 13px; cursor: pointer;
  background: transparent; color: var(--espresso-2); font: inherit; font-weight: 600;
  font-size: 0.95rem; text-align: left; transition: background 0.15s, color 0.15s;
}
.side-link:hover { background: var(--cream-2); color: var(--espresso); }
.side-link.active { background: var(--terracotta); color: var(--white); box-shadow: 0 8px 18px rgba(201, 111, 74, 0.32); }
.sl-icon { display: grid; place-items: center; width: 22px; }
.side-link .count { margin-left: auto; }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 4px; margin-top: 16px; }
.side-demo { font-size: 0.72rem; color: var(--espresso-3); text-align: center; margin-top: 10px; }
.side-demo strong { color: var(--terracotta); }
/* Shell + header */
.admin-shell { margin-left: 248px; min-height: 100svh; display: flex; flex-direction: column; }
.admin-head {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: rgba(250, 245, 236, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-burger { display: none; border: 0; background: none; color: var(--espresso); cursor: pointer; padding: 6px; }
.head-search {
  flex: 1; display: flex; align-items: center; gap: 10px; max-width: 460px;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px;
  color: var(--espresso-3);
}
.head-search input { border: 0; background: none; outline: none; width: 100%; font: inherit; font-size: 0.92rem; color: var(--espresso); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.head-bell { position: relative; border: 0; background: none; color: var(--espresso-2); cursor: pointer; padding: 8px; border-radius: 12px; }
.head-bell:hover { background: var(--cream-2); }
.bell-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  background: var(--terracotta); color: var(--white); border-radius: 999px;
  font-size: 0.68rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
  border: 2px solid var(--cream);
}
.bell-drop {
  position: absolute; top: 64px; right: 108px; width: 372px; max-width: calc(100vw - 32px); z-index: 80;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 6px;
}
.bell-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px 4px; }
.bell-head strong { font-family: var(--font-display); font-size: 1.05rem; }
.bell-head span { font-size: 0.74rem; color: var(--espresso-3); }
.bell-list { display: grid; gap: 10px; max-height: min(58vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.bell-group { display: grid; gap: 6px; }
.bell-group h4 {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--espresso-3); padding: 6px 10px 0;
}
.bell-row {
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
  display: grid; gap: 9px; background: var(--cream);
}
.bell-row-main { display: grid; gap: 2px; }
.bell-row-main strong { font-size: 0.9rem; color: var(--espresso); }
.bell-row-main small {
  font-size: 0.8rem; color: var(--espresso-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bell-row-main em { font-size: 0.72rem; font-style: normal; color: var(--espresso-3); }
.bell-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bell-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; padding: 8px 14px; min-height: 38px;
  font-size: 0.82rem; font-weight: 700; border: 1.5px solid var(--line);
  background: var(--white); color: var(--espresso); transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.bell-act:hover { border-color: var(--terracotta); color: var(--terracotta-d); }
.bell-act:active { transform: scale(0.97); }
.bell-act.primary { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.bell-act.primary:hover { background: #0E7A3A; border-color: #0E7A3A; color: #fff; }
.bell-empty { padding: 18px 12px; text-align: center; color: var(--espresso-3); font-size: 0.88rem; }
.bell-foot {
  display: flex; gap: 6px; justify-content: space-between; padding: 6px 4px 2px;
  border-top: 1px solid var(--line); margin-top: 2px;
}
.bell-link {
  font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--terracotta-d);
  padding: 8px 8px; border-radius: 10px; background: none; border: 0; cursor: pointer;
}
.bell-link:hover { background: var(--cream-2); }
.head-user { display: flex; align-items: center; gap: 10px; }
.head-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--terracotta); }
.head-user span { display: flex; flex-direction: column; line-height: 1.15; }
.head-user strong { font-size: 0.9rem; color: var(--espresso); }
.head-user small { font-size: 0.72rem; color: var(--espresso-3); }

/* Page head + sections */
.admin-main { padding: 26px 28px 48px; flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; }
.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.crumb { font-size: 0.84rem; color: var(--espresso-3); margin-top: 2px; }
.crumb span { color: var(--terracotta); font-weight: 600; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Dashboard grid */
.dash-grid { display: grid; gap: 18px; grid-template-columns: 1.75fr 1fr; align-items: start; }
.dash-col { display: grid; gap: 18px; min-width: 0; }

/* Hero panel */
.hero-panel { background: linear-gradient(120deg, #4A3325 0%, var(--espresso) 70%); color: var(--cream); border: 0; }
.hp-main { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.hp-num { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.hp-label { font-size: 0.8rem; color: rgba(250, 245, 236, 0.7); font-weight: 600; letter-spacing: 0.02em; }
.hp-num strong { font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; color: var(--white); }
.hp-trend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #8FD6A9; font-weight: 700; }
.hp-split { display: flex; gap: 28px; }
.hp-split > div { display: flex; flex-direction: column; gap: 4px; }
.hp-key { font-size: 0.76rem; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.hp-key::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.hp-key.green { color: #8FD6A9; } .hp-key.green::before { background: #8FD6A9; }
.hp-key.warm { color: #F0B295; } .hp-key.warm::before { background: #F0B295; }
.hp-split strong { font-size: 1.5rem; color: var(--white); }
.hp-sub { font-size: 0.74rem; color: rgba(250, 245, 236, 0.6); }
.hp-cta { margin-left: auto; box-shadow: 0 10px 22px rgba(31, 168, 85, 0.35); }
/* Chart */
.chart-nums { display: flex; gap: 34px; flex-wrap: wrap; margin: 6px 0 14px; }
.chart-nums > div { display: flex; flex-direction: column; gap: 2px; }
.chart-nums strong { font-size: 1.45rem; color: var(--espresso); }
.chart-nums span { font-size: 0.76rem; color: var(--espresso-3); }
.chart-wrap { width: 100%; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-val { font: 700 12px var(--font-sans); fill: var(--espresso); }
.chart-day { font: 600 11px var(--font-sans); fill: var(--espresso-3); }
.chart-dot circle { transition: r 0.15s; }
.chart-dot:hover circle { r: 7; }
.chart-line { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: chartDraw 1.1s ease forwards; }
@keyframes chartDraw { to { stroke-dashoffset: 0; } }

/* Most loved items */
.item-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.item-tab {
  border: 0; background: var(--cream-2); color: var(--espresso-2); cursor: pointer;
  padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 0.84rem; font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.item-tab:hover { background: #EFE4D4; }
.item-tab.active { background: var(--terracotta); color: var(--white); }
.item-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.item-card {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  background: var(--cream-2); border-radius: 16px; border: 1px solid var(--line);
}
.item-card img { width: 54px; height: 54px; border-radius: 13px; object-fit: cover; flex: none; }
.item-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.item-info strong { font-size: 0.88rem; color: var(--espresso); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--terracotta); font-weight: 700; }
.item-bar { height: 5px; border-radius: 999px; background: #EAD9C5; overflow: hidden; }
.item-bar > div { height: 100%; border-radius: 999px; background: var(--terracotta); }
.item-sales { font-size: 0.72rem; color: var(--espresso-3); }
.item-price { font-weight: 800; color: var(--espresso); font-size: 0.95rem; }
/* Guest mix panel (terracotta) */
.mix-panel { background: linear-gradient(150deg, #D67A50 0%, var(--terracotta) 100%); border: 0; color: var(--white); }
.mix-panel .panel-head h3 { color: var(--white); }
.mix-panel .panel-head .hint { color: rgba(255, 255, 255, 0.7); }
.mix-total { font-size: 1.6rem; color: var(--white); }
.mix-row { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.mix-row:last-child { border-bottom: 0; }
.mix-label { font-size: 0.88rem; font-weight: 600; }
.mix-row strong { font-size: 0.95rem; }
.mix-bar { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.mix-bar > div { height: 100%; border-radius: 999px; background: var(--white); }
.empty-note.light { color: rgba(255, 255, 255, 0.85); }

/* Responsive admin */
@media (max-width: 1080px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .side-nav { transform: translateX(-105%); box-shadow: var(--shadow-lg); }
  .side-nav.open { transform: translateX(0); }
  .admin-shell { margin-left: 0; }
  .head-burger { display: grid; }
  .head-user span { display: none; }
  .bell-drop { right: 12px; top: 58px; width: min(360px, calc(100vw - 24px)); }
  .admin-main { padding: 20px 16px 44px; }
  .hp-cta { margin-left: 0; width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .item-grid { grid-template-columns: 1fr; }
  .chart-nums { gap: 20px; }
  .head-search { max-width: none; }
  .page-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   SHOP · CART DRAWER · ITEM POPUP · CHECKOUT
   ============================================================ */
.cart-fab {
  position: fixed; right: 18px; bottom: 86px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--espresso); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: transform 0.15s ease, background 0.15s ease;
}
.cart-fab:hover { transform: scale(1.07); background: var(--terracotta-d); }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  border-radius: 999px; background: var(--terracotta-d); color: #fff;
  font-size: 0.72rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; border: 2px solid var(--cream);
}
@media (min-width: 940px) { .cart-fab { bottom: 28px; } }

.shop-drawer {
  position: fixed; z-index: 120; top: 0; right: 0; height: 100dvh; width: min(430px, 100vw);
  background: var(--cream); box-shadow: -18px 0 50px rgba(62,42,32,.25);
  transform: translateX(105%); transition: transform 0.32s cubic-bezier(.32,.72,.28,1);
  display: flex; flex-direction: column; padding: 0;
  overflow: hidden; /* panel never scrolls — .shop-drawer-body is the scroller */
}
.shop-drawer.open { transform: none; }
/* THE scroll container: inner body owns the scroll, with momentum on iOS.
   Entrance animation lives on content (.order-done, .pay-approved) — never here. */
.shop-drawer-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 18px;
  scrollbar-gutter: stable;
}
.shop-drawer .sheet-head { padding: 18px 18px 0; }
@supports not (height: 100dvh) {
  .shop-drawer { height: 100vh; height: -webkit-fill-available; }
}
.cart-list { display: grid; gap: 12px; margin: 14px 0; }
.cart-row {
  display: grid; grid-template-columns: 54px 1fr auto auto auto; gap: 10px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px;
}
.cart-row img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.cart-info { display: grid; gap: 2px; min-width: 0; }
.cart-info strong { font-size: 0.92rem; }
.cart-info span { font-size: 0.78rem; color: var(--espresso-3); }
.cart-line { font-size: 0.95rem; white-space: nowrap; }
.cart-rm { color: var(--espresso-3); font-size: 1rem; padding: 4px 6px; border-radius: 8px; }
.cart-rm:hover { color: var(--red); background: var(--red-bg); }
.stepper-sm { gap: 8px; }
.stepper-sm button { width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line); font-size: 1rem; font-weight: 700; }
.stepper-sm span { min-width: 20px; text-align: center; font-weight: 700; }
.cart-empty { text-align: center; padding: 44px 10px; display: grid; gap: 10px; justify-items: center; }
.cart-empty span { font-size: 2.6rem; }
.cart-empty p { color: var(--espresso-3); max-width: 32ch; font-size: 0.92rem; }
.cart-totals { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: grid; gap: 8px; margin: 4px 0 12px; }
.cart-totals > div { display: flex; justify-content: space-between; font-size: 0.94rem; }
.cart-totals .grand { border-top: 1.5px dashed var(--line); padding-top: 10px; font-size: 1.05rem; }
.cart-totals .grand strong { font-family: var(--font-display); font-size: 1.25rem; }
.fee-hint { font-size: 0.8rem; color: var(--terracotta-d); background: #FBEEE6; border-radius: 8px; padding: 7px 10px; }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.tt { border: 2px solid var(--line); border-radius: 12px; padding: 11px 8px; font-weight: 700; font-size: 0.9rem; background: var(--white); transition: all 0.15s ease; }
.tt.on { border-color: var(--terracotta); background: #FBEEE6; color: var(--terracotta-d); }
/* CHECKOUT + PAYMENT */
.co-items { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 8px; margin: 14px 0 4px; }
.co-item { display: flex; justify-content: space-between; font-size: 0.92rem; }
.co-item.grand { border-top: 1.5px dashed var(--line); padding-top: 8px; font-size: 1rem; }
.co-error { display: none; background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 9px 12px; font-size: 0.86rem; margin: 10px 0; }
.co-error.show { display: block; }
.pay-sim { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.pay-brand { font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pay-demo-tag { font-size: 0.66rem; letter-spacing: 0.08em; background: var(--terracotta-d); color: #fff; border-radius: 6px; padding: 3px 7px; }
.pay-sub { font-size: 0.82rem; color: var(--espresso-3); margin-bottom: 4px; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-done { text-align: center; padding: 18px 6px; display: grid; gap: 12px; justify-items: center; }
.order-done h3 { font-size: 1.5rem; }
.order-done p { color: var(--espresso-3); font-size: 0.94rem; max-width: 34ch; }
.ref-box { background: var(--espresso); color: var(--cream); border-radius: 14px; padding: 10px 22px; display: grid; gap: 1px; }
.ref-box span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.ref-box strong { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.05em; }
.confirm-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; text-align: center; }
.confirm-details div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 9px 6px; }
.confirm-details dt { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--espresso-3); }
.confirm-details dd { font-weight: 700; font-size: 0.88rem; }
.confirm-tick { width: 58px; height: 58px; border-radius: 50%; background: var(--green-bg); color: var(--green-d); display: flex; align-items: center; justify-content: center; animation: pop 0.5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(0.5); opacity: 0; } }
/* Keep the keyboard-open viewport stable on iOS: reserve space for inputs/buttons
   so focusing a field can't push the Pay button under the keyboard. */
.shop-drawer-body { padding-bottom: max(18px, env(safe-area-inset-bottom)); }

/* ITEM POPUP MODAL — morphing dialog (FLIP + spring) */
.item-modal { position: fixed; inset: 0; z-index: 130; display: none; align-items: flex-end; justify-content: center; background: rgba(62,42,32,.5); padding: 0; }
.item-modal.open { display: flex; animation: dimIn 0.25s ease; }
.item-modal.closing { opacity: 0; pointer-events: none; transition: opacity 0.22s ease; }
@keyframes dimIn { from { opacity: 0; } }
.im-card {
  background: var(--cream); width: min(440px, 100vw); max-height: 92dvh; overflow-y: auto;
  border-radius: 22px 22px 0 0; position: relative; transform-origin: top left;
  will-change: transform; box-shadow: var(--shadow-lg);
}
.im-media, .im-body, .im-close {
  transition: opacity 0.3s ease, transform 0.34s cubic-bezier(0.22, 1.2, 0.36, 1);
}
/* staged entrance: media is already inside the morphing card; content follows */
.item-modal:not(.morph-in) .im-body { opacity: 0; transform: translateY(28px) scale(0.94); }
.item-modal:not(.morph-in) .im-close { opacity: 0; transform: scale(0.6); }
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } }
.im-media { position: relative; height: 200px; }
.im-media img { width: 100%; height: 100%; object-fit: cover; }
.im-cat { position: absolute; left: 14px; bottom: 14px; background: rgba(62,42,32,.75); color: var(--cream); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 8px; padding: 5px 10px; }
.im-body { padding: 18px; display: grid; gap: 10px; }
.im-body h3 { font-size: 1.45rem; }
.im-body p { color: var(--espresso-3); font-size: 0.94rem; }
.im-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.im-price { font-family: var(--font-display); font-size: 1.5rem; }
.im-add { width: 100%; justify-content: center; margin-top: 4px; }
.im-add:disabled { opacity: 0.45; cursor: not-allowed; }
.im-wa { width: 100%; justify-content: center; background: transparent; color: var(--green-d); border: 2px solid var(--green); box-shadow: none; }
.im-wa:hover { background: var(--green-bg); }
.im-note { text-align: center; font-size: 0.78rem; color: var(--espresso-3); }
.im-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(62,42,32,.55); color: #fff; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 640px) {
  .item-modal { align-items: center; padding: 20px; }
  .im-card { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .im-card, .im-media, .im-body, .im-close { transition: none !important; }
  .item-modal.open { animation: none; }
}

/* HOME ONE-SCREEN MENU (menu-preview) */
.menu-preview .container { display: grid; gap: 18px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mp-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: grid; grid-template-rows: 150px 1fr;
  transition: transform 0.18s ease, box-shadow 0.18s ease; text-align: left;
}
.mp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mp-card.soldout { opacity: 0.55; }
.mp-photo { position: relative; }
.mp-photo img { width: 100%; height: 100%; object-fit: cover; }
.mp-price {
  position: absolute; right: 10px; top: 10px; background: var(--espresso); color: var(--cream);
  font-weight: 800; font-size: 0.86rem; border-radius: 999px; padding: 5px 11px;
}
.mp-body { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.mp-body h3 { font-size: 1.02rem; }
.mp-body p { font-size: 0.8rem; color: var(--espresso-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.mp-add {
  background: var(--terracotta-d); color: #fff; border-radius: 999px; padding: 8px 14px;
  font-weight: 700; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 5px;
  transition: background 0.15s ease; flex: 0 0 auto;
}
.mp-add:hover { background: #9E4E2F; }
.menu-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
@media (max-width: 700px) {
  .mp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mp-card { grid-template-rows: 110px 1fr; }
  .mp-body { padding: 10px 12px 12px; }
  .mp-body p { display: none; }
  .mp-add { padding: 7px 11px; }
  .cart-fab { bottom: 96px; }
}


/* ADMIN · ONLINE ORDERS */
.ord-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.ord-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 2px; }
.ord-stat strong { font-family: var(--font-display); font-size: 1.35rem; }
.ord-stat span { font-size: 0.76rem; color: var(--espresso-3); }
.ord-stat.warn { border-color: #E9B7A5; background: #FBEEE6; }
.ord-stat.warn strong { color: var(--terracotta-d); }
.ord-list { display: grid; gap: 12px; }
.ord-row { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.ord-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ord-ref { font-family: var(--font-display); letter-spacing: 0.04em; }
.ord-type, .ord-pay { font-size: 0.78rem; background: var(--cream-2); border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.status-chip.ord-new { background: var(--terracotta-l); color: #5A2C15; }
.status-chip.ord-preparing { background: var(--amber-bg); color: #9A6A0F; }
.status-chip.ord-out { background: #DDEBF9; color: #1D5E9C; }
.status-chip.ord-delivered { background: var(--green-bg); color: var(--green-d); }
.ord-main { display: grid; gap: 4px; }
.ord-who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ord-who span { font-size: 0.8rem; color: var(--espresso-3); }
.ord-items { font-size: 0.9rem; color: var(--espresso-2); }
.ord-addr { font-size: 0.82rem; color: var(--espresso-3); }
.ord-side { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1.5px dashed var(--line); padding-top: 12px; }
.ord-courier { display: grid; gap: 6px; }
.ord-courier label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--espresso-3); }
.courier-select {
  appearance: none; border: 2px solid var(--line); background: var(--cream);
  border-radius: 10px; padding: 8px 30px 8px 12px; font-weight: 600; font-size: 0.88rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A6252' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; min-width: 210px;
}
.courier-select:focus { outline: 2px solid #E8A987; border-color: var(--terracotta); }
.courier-select:disabled { opacity: 0.5; cursor: not-allowed; }
.courier-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 700; border-radius: 999px; padding: 4px 10px; width: fit-content; }
.courier-chip.none { background: #F0E7D8; color: var(--espresso-3); }
.courier-chip.staff { background: var(--green-bg); color: var(--green-d); }
.courier-chip.partner { background: #DDEBF9; color: #1D5E9C; }
.ord-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .ord-stats { grid-template-columns: repeat(2, 1fr); }
  .ord-side { flex-direction: column; align-items: stretch; }
  .ord-acts .btn { flex: 1; justify-content: center; }
  .courier-select { min-width: 0; width: 100%; }
}

/* Manual WhatsApp demo: bill + follow-ups (print CSS prints only the bill). */
.manual-box { background: var(--white); border: 1.5px dashed var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; text-align: left; }
.manual-box > strong { font-size: 0.86rem; }
.ord-manual { display: grid; gap: 10px; border-top: 1.5px dashed var(--line); padding-top: 12px; }
.ord-manual > strong { font-size: 0.88rem; }
.ord-manual > strong small { font-weight: 500; color: var(--espresso-3); }
.manual-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bill { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.bill-head { display: grid; gap: 2px; border-bottom: 1.5px dashed var(--line); padding-bottom: 8px; }
.bill-head strong { font-family: var(--font-display); font-size: 1.05rem; }
.bill-head span { font-size: 0.72rem; color: var(--espresso-3); }
.bill-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
.bill-row.grand { border-top: 1.5px dashed var(--line); padding-top: 8px; font-size: 1rem; }
.bill-note { font-size: 0.82rem; font-weight: 700; color: #5A2C15; }
.ord-fu-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fu-chip { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; border-radius: 999px; padding: 4px 10px; }
.fu-chip.manual { background: #F0E7D8; color: var(--espresso-3); }
.fu-chip.sent { background: var(--green-bg); color: var(--green-d); }
@media print {
  body.printing-bill * { visibility: hidden !important; }
  body.printing-bill .bill.print-this,
  body.printing-bill .bill.print-this * { visibility: visible !important; }
  body.printing-bill .bill.print-this {
    position: absolute !important; left: 0; top: 0; width: 100%;
    display: grid !important; border: none; box-shadow: none;
  }
}
/* Collapsible manual follow-ups (compact dashboard; pure CSS show/hide). */
.ord-manual-toggle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; background: none; border: none; padding: 4px 0; cursor: pointer; font: inherit; text-align: left; }
.ord-manual-toggle .mt-label { font-size: 0.88rem; font-weight: 800; }
.ord-manual-toggle .mt-chev { font-weight: 800; color: var(--terracotta-d); }
.ord-manual-body { display: grid; gap: 10px; }
.ord-manual.closed .ord-manual-body { display: none; }
.ord-note { margin: 0; font-size: 0.84rem; font-weight: 700; color: #5A2C15; background: #FBEEDC; border: 1.5px dashed #E8A987; border-radius: 12px; padding: 8px 12px; grid-column: 1 / -1; }
/* Note-for-kitchen textarea in checkout */
#coNote { width: 100%; min-height: 56px; resize: vertical; font-family: inherit; margin-bottom: 12px; }

/* Menu manager: add form, remove + hidden rows */
.mm-add-btn { margin-left: auto; }
.mm-form { margin: 4px 0 18px; padding: 16px; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--cream); }
.mm-form-head { display: grid; gap: 2px; margin-bottom: 12px; }
.mm-form-head strong { font-family: var(--font-display); font-size: 1.02rem; }
.mm-form-head span { font-size: 0.82rem; color: var(--espresso-3); }
.mm-form-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .mm-form-grid { grid-template-columns: 1fr 1fr; } .mm-field-wide { grid-column: 1 / -1; } }
.mm-field { display: grid; gap: 6px; margin-bottom: 10px; }
.mm-field label { font-size: 0.82rem; font-weight: 800; color: var(--espresso-2); }
.mm-field label small { font-weight: 500; color: var(--espresso-3); }
.mm-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.mm-upload {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px; margin-bottom: 10px;
  border: 2px dashed var(--line); border-radius: 14px; background: var(--cream-2);
}
.mm-upload input[type="file"] {
  font: inherit; font-size: 0.9rem; color: var(--espresso-2);
  max-width: 100%; cursor: pointer;
}
.mm-upload input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; cursor: pointer;
  margin-right: 10px; padding: 8px 14px; border-radius: 999px;
  border: 0; background: var(--espresso); color: var(--cream);
}
.mm-upload-hint { font-size: 0.82rem; color: var(--espresso-2); flex: 1 1 220px; }
.bk-ref-note { font-size: 0.78rem; color: var(--espresso-2); opacity: 0.85; }
.mm-photo { border: 2.5px solid transparent; border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer; background: var(--white); aspect-ratio: 1; }
.mm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-photo.picked { border-color: var(--terracotta); box-shadow: 0 0 0 2px #E8A987; }
.mm-tags-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.mm-check input { width: 19px; height: 19px; accent-color: var(--terracotta); }
.mm-soldout-check { margin: 2px 0 10px; }
.mm-error { color: var(--red); font-size: 0.85rem; font-weight: 700; margin: 0 0 10px; }
.mm-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mm-remove { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #EBC9C2; background: #FBF1EE; color: var(--red); font-weight: 800; font-size: 0.8rem; border-radius: 10px; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.mm-remove:hover { background: #F7E2DD; }
.mm-chip { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--green-bg); color: var(--green-d); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.mm-hidden { display: grid; gap: 8px; margin-top: 14px; }
.mm-hidden-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--white); opacity: 0.85; }
.mm-hidden-row .btn { margin-left: auto; }
/* Zone select, coupon row, narrated payment, order tracking (demo) */
.coupon-row { margin: 14px 0 4px; }
.coupon-line { display: flex; gap: 8px; }
.coupon-line .bk-input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-line .btn { flex-shrink: 0; }
.bk-label small { font-weight: 500; color: var(--espresso-3); }
.ct-disc span, .ct-disc strong, .co-item.ct-disc span, .co-item.ct-disc strong { color: var(--green-d); }
.pay-steps { margin: 10px 0 0; padding-left: 20px; font-size: 0.85rem; color: var(--espresso-2); }
.pay-steps li { margin: 3px 0; animation: fadeUp 0.25s ease both; }
.demo-line { text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--espresso-3); background: var(--cream); border-radius: 10px; padding: 8px 10px; margin: 12px 0; }
.track-steps { display: flex; flex-direction: column; gap: 0; margin: 14px 0 6px; }
.ts { display: flex; align-items: center; gap: 12px; padding: 5px 0; position: relative; }
.ts-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 800; background: var(--cream); color: var(--espresso-3); border: 2px solid var(--line); flex-shrink: 0; z-index: 1; }
.ts-label { font-size: 0.9rem; font-weight: 600; color: var(--espresso-3); }
.ts.now .ts-dot { background: var(--terracotta-d); color: var(--white); border-color: var(--terracotta-d); box-shadow: 0 0 0 4px #F0DCD2; }
.ts.now .ts-label { color: var(--espresso-1); font-weight: 800; }
.ts.done .ts-dot { background: var(--green-d); color: var(--white); border-color: var(--green-d); }
.ts.done .ts-label { color: var(--espresso-2); }
.ts:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 31px; width: 2px; height: 14px; background: var(--line); }
.ts.done:not(:last-child)::before { background: var(--green-d); }
.ts-finished { font-weight: 800; color: var(--green-d); margin: 6px 0; }
.track-steps + .im-note { text-align: center; }
.ord-coupon { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 800; color: var(--green-d); background: var(--green-bg); border-radius: 999px; padding: 3px 8px; }

/* Zone selector inside the cart totals (delivery only) */
.cart-totals .zone-row { display: grid; gap: 5px; margin: 8px 0 2px; text-align: left; }
.cart-totals .zone-row .bk-select { width: 100%; }
.cart-totals .zone-row .bk-label { margin: 0; }

/* CONFIRMATION MOMENT — approved beat, tick draw-in, confetti (demo) */
.pay-approved { text-align: center; padding: 36px 10px; display: grid; gap: 8px; justify-items: center; animation: beatIn 0.3s ease both; }
.pa-tick { width: 76px; height: 76px; border-radius: 50%; background: var(--green-bg); color: var(--green-d); display: grid; place-items: center; animation: pop 0.4s cubic-bezier(.2, 1.4, .4, 1) both; }
.pa-tick svg { width: 48px; height: 48px; }
.pay-approved h3 { font-size: 1.25rem; font-weight: 800; }
.pay-approved p { color: var(--espresso-3); font-size: 0.92rem; margin: 0; }
@keyframes beatIn { from { opacity: 0; transform: translateY(10px); } }
.order-done { position: relative; }
.order-done h3 { font-size: clamp(1.375rem, 5vw, 1.5rem); } /* 22–24px headline */
.tick-path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tickDraw 0.45s 0.15s ease-out forwards; }
@keyframes tickDraw { to { stroke-dashoffset: 0; } }
.confetti { position: absolute; inset: 0 0 auto 0; height: 150px; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 7px; height: 7px; border-radius: 2px; animation: confettiFall 1.2s ease-in forwards; }
@keyframes confettiFall { 0% { opacity: 1; transform: translateY(-8px) rotate(0deg); } 100% { opacity: 0; transform: translateY(140px) rotate(260deg); } }
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .pay-approved, .pa-tick, .order-done .confirm-tick { animation: none !important; }
  .tick-path { animation: none !important; stroke-dashoffset: 0; }
}

/* Sheet bridge: sync status chips (admin orders + settings) */
.sync-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 800; border-radius: 999px; padding: 3px 9px; background: #E7F1FB; color: #1D5E9C; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.sync-chip.pending { background: #FDF2E3; color: #9A6414; }
.sync-banner { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: #9A6414; background: #FDF2E3; border: 1.5px dashed #EBC98A; border-radius: 12px; padding: 9px 13px; margin: 0 0 12px; }
