/* ============================================================
   Γιαννιώτικο Σουβλάκι — public site styles
   Design tokens live in :root and are overridden per "theme"
   by an inline <style id="theme-vars"> block (see src/lib/theme.js).
   Everything below should reference tokens, never raw colours,
   so switching a theme restyles the whole site.
   ============================================================ */

:root {
  /* brand */
  --brand: #b3121a;
  --brand-strong: #8f0d14;
  --brand-soft: #fbe9e7;
  --brand-soft-ink: #8f0d14;
  --gold: #c8a24a;
  --green: #1f9d55;
  --amber: #b97a00;
  /* compatibility aliases (older rules / admin.css) */
  --red: var(--brand);
  --red-dark: var(--brand-strong);
  --red-soft: var(--brand-soft);
  /* surfaces + text */
  --bg: #faf6f1;
  --card: #ffffff;
  --surface-2: #f4ede4;
  --ink: #2b2620;
  --ink-strong: #22190f;
  --charcoal: var(--ink-strong);
  --muted: #6f685e;
  --line: #eadfd1;
  --header-bg: #ffffff;
  --header-fg: #22190f;
  --topbar-bg: #251b12;
  --topbar-fg: #f0e7db;
  --footer-bg: #251b12;
  --footer-fg: #d6cab9;
  --nav-bg: #251b12;
  --app-bg: #f6f1e9;
  --hero-overlay: linear-gradient(180deg, rgba(24,15,8,.30), rgba(24,15,8,.72));
  /* shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(40,26,12,.09);
  --shadow-lg: 0 20px 50px rgba(40,26,12,.18);
  /* type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --head-weight: 700;
  --head-tracking: 0;
  --head-transform: none;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body.site {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  text-transform: var(--head-transform);
  line-height: 1.15; color: var(--ink-strong); margin: 0 0 .5em;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.1rem; }

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: .6rem 1rem; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.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;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar { background: var(--topbar-bg); color: var(--topbar-fg); font-size: .82rem; }
.topbar-inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .45rem 1.1rem; flex-wrap: wrap; }
.topbar a { color: var(--topbar-fg); }
.topbar-item.status.open { color: #7ee2a8; }
.topbar-item.status.closed { color: #ff9d9d; }
.topbar-item .status-next { color: inherit; opacity: .85; margin-left: .35rem; }

/* ── Navbar ──────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--header-bg); color: var(--header-fg); box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(40, 26, 12, .14); }
.navbar-inner { display: flex; align-items: center; gap: .8rem; padding: .5rem 1.1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; flex: none; }
.brand img { height: 44px; width: auto; border-radius: 12px; flex: none; }
.brand-text { min-width: 0; }
.brand-text strong { display: block; color: var(--header-fg); font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: 1.05rem; white-space: nowrap; }
.brand-text small { display: block; color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links { display: flex; gap: .15rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  display: block; padding: .48rem .72rem; border-radius: 999px; color: var(--ink);
  font-weight: 500; font-size: .93rem; white-space: nowrap;
}
@media (max-width: 1300px) { .brand-text small { display: none; } }
/* Compact the bar progressively so the full nav fits without sideways
   scroll on smaller laptops (1440 → 1100), then fall back to the burger. */
@media (max-width: 1460px) {
  .navbar-inner { gap: .55rem; padding: .5rem .9rem; }
  .nav-links a { padding: .45rem .5rem; font-size: .9rem; }
  .nav-actions { gap: .35rem; }
  .icon-btn, .cart-btn { padding: .3rem .45rem; }
  .lang { padding: .3rem .5rem; }
  .order-btn { padding-left: .85rem; padding-right: .85rem; font-size: .92rem; }
}
@media (max-width: 1330px) {
  .brand img { height: 38px; }
  .brand-text strong { font-size: .96rem; }
  .nav-links a { padding: .42rem .4rem; font-size: .84rem; }
  .nav-actions { gap: .25rem; }
  .icon-btn, .cart-btn { font-size: 1.05rem; padding: .28rem .38rem; }
  .lang { font-size: .74rem; padding: .28rem .42rem; }
  .order-btn { font-size: .86rem; padding-left: .7rem; padding-right: .7rem; }
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand-soft-ink); text-decoration: none; }
.nav-links a.active { background: var(--brand); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.lang { font-weight: 700; color: var(--ink); padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
.lang:hover { text-decoration: none; background: var(--surface-2); }
.icon-btn { font-size: 1.15rem; padding: .35rem .5rem; border-radius: 999px; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.cart-btn {
  position: relative; font-size: 1.2rem; background: none; border: 0; cursor: pointer;
  padding: .35rem .5rem; border-radius: 999px; color: var(--ink);
}
.cart-btn:hover { background: var(--surface-2); }
.cart-count {
  position: absolute; top: -2px; right: -4px; background: var(--brand); color: #fff;
  font-size: .68rem; min-width: 18px; height: 18px; line-height: 18px; border-radius: 999px;
  text-align: center; padding: 0 4px; font-weight: 700;
}
.nav-toggle { display: none; font-size: 1.5rem; background: none; border: 0; cursor: pointer; color: var(--ink); }
.order-btn { white-space: nowrap; }
/* Burger takes over below 1100px — before the full nav would overflow.
   Must come after the base .nav-toggle/.nav-links rules above. */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--card); color: var(--ink);
    flex-direction: column; padding: .6rem 1rem 1rem; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .8rem; font-size: .95rem; }
}

.pause-banner { background: var(--amber); color: #fff; text-align: center; padding: .5rem 1rem; font-size: .9rem; font-weight: 600; }
.announce-banner { background: linear-gradient(90deg, var(--brand), var(--gold)); color: #fff; text-align: center; padding: .55rem 1rem; font-size: .9rem; font-weight: 600; }
.announce-inner { display: inline-block; max-width: 1100px; }

/* Sticky mobile order bar */
.order-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom));
  align-items: center; gap: .5rem;
}
.order-bar .ob-item {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  font-size: .72rem; color: var(--ink); background: none; border: 0; cursor: pointer;
  padding: .3rem .5rem; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.order-bar .ob-item:active { background: var(--surface-2); }
.order-bar .ob-ico { position: relative; font-size: 1.15rem; line-height: 1; }
.order-bar .ob-badge {
  position: absolute; top: -.4rem; right: -.7rem; min-width: 1rem; height: 1rem; padding: 0 .25rem;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: .62rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.order-bar .ob-go {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 700;
  padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .95rem;
}
.order-bar .ob-go-arrow { transition: transform .2s ease; }
.order-bar .ob-go:active .ob-go-arrow { transform: translateX(3px); }
@media (max-width: 820px) { .order-bar { display: flex; } body { padding-bottom: 68px; } .cookie-banner { bottom: calc(68px + 1rem); } }

/* Review prompt card */
.review-card { text-align: center; border-color: var(--gold); }
.review-card .btn { margin-top: .5rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid transparent; border-radius: 999px; padding: .62rem 1.2rem;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  line-height: 1.1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -6px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-outline { background: var(--card); border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-soft-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: #c0222b; color: #fff; }
.danger { color: var(--brand); }
.btn.danger:hover { background: var(--brand-soft); color: var(--brand-soft-ink); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-sm { padding: .42rem .85rem; font-size: .85rem; }
.btn-xs { padding: .28rem .55rem; font-size: .78rem; }
.btn-block { width: 100%; }

/* ── Cards / sections ────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow); margin-bottom: 1.1rem;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.card-head h2, .card-head h3 { margin: 0; }
.section-title { margin: 1.6rem 0 .8rem; font-size: 1.3rem; }

.page { padding: 1.6rem 1.1rem 3rem; }
.page.narrow { max-width: 760px; }
.page-head { margin-bottom: 1.4rem; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .3rem; }
.page-sub { color: var(--muted); margin: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 1rem; }

/* Home content sections (previously unstyled) */
.section { padding: 2.6rem 1.1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.link-more { font-weight: 600; color: var(--brand); white-space: nowrap; }
.link-more:hover { text-decoration: none; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1;
}
.chip:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.about-teaser .about-grid { align-items: center; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--brand), var(--brand-strong)); color: #fff;
  border-radius: var(--radius-lg); padding: 2rem 2.2rem; box-shadow: var(--shadow-lg);
  margin: 2.6rem auto 3rem; width: calc(100% - 2.2rem); max-width: var(--wrap);
}
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--brand-strong); box-shadow: none; }
.cta-band .btn-primary:hover { background: rgba(255,255,255,.9); }
.cta-band .btn-outline { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.25); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.9); transform: scale(1.02); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { position: relative; padding: 4.5rem 1.1rem 5rem; }
.hero-copy { max-width: 660px; }
.hero-logo { height: 96px; width: auto; margin-bottom: 1rem; border-radius: 16px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin-bottom: .35rem; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-tagline { font-size: 1.25rem; color: var(--gold); font-weight: 600; margin: 0 0 .7rem; }
.hero-sub { color: #eee; max-width: 560px; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.hero-actions .btn-primary { box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.hero-actions .btn-outline { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.25); color: #fff; }
.hero-status { display: flex; gap: .6rem; flex-wrap: wrap; }
.pill { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.35); padding: .38rem .85rem; border-radius: 999px; font-size: .85rem; color: #fff; backdrop-filter: blur(6px); }
.pill-open { background: rgba(31,157,85,.45); border-color: #7ee2a8; }
.pill-closed { background: rgba(192,34,43,.5); border-color: #ff9d9d; }

/* ── Info strip ──────────────────────────────────────────── */
.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: -3rem; position: relative; z-index: 3; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1rem; text-align: center; }
.info-card h3 { margin: .3rem 0; font-size: 1rem; }
.info-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.info-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: var(--brand-soft); font-size: 1.7rem; }

.home-section { padding: 2.4rem 1.1rem 0; }

/* ── Product grid ────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }

.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card.is-soldout { opacity: .72; }
.pc-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .pc-img img { transform: scale(1.06); }
.pc-img-placeholder { display: grid; place-items: center; height: 100%; font-size: 2.6rem; opacity: .5; }
.badge { position: absolute; top: .6rem; left: .6rem; padding: .28rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; letter-spacing: .01em; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.badge-offer { background: var(--brand); }
.badge-combo { background: var(--gold); color: #3a2a00; }
.badge-soldout { background: var(--ink-strong); left: auto; right: .6rem; }
.badge-veg { top: auto; bottom: .6rem; left: .6rem; background: var(--green); }

.pc-body { padding: .95rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pc-name { margin: 0; font-size: 1.05rem; }
.pc-desc { margin: 0; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-recipe { margin: 0; font-size: .8rem; color: var(--brand-soft-ink); background: var(--brand-soft); border-radius: var(--radius-sm); padding: .35rem .55rem; }
.pc-recipe-label { font-weight: 700; }
.pc-combo { color: var(--ink); background: color-mix(in srgb, var(--gold) 22%, transparent); }
.pc-allergens { margin: 0; font-size: .76rem; color: var(--muted); }
.allergen-label { font-weight: 600; }
.pc-controls { display: flex; gap: .5rem; align-items: center; margin-top: auto; padding-top: .3rem; }
.pc-half { flex: 1; margin: 0; }
.pc-half select, .pc-qty { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .45rem .5rem; font: inherit; background: var(--card); color: var(--ink); }
.pc-qty { width: 64px; text-align: center; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .35rem; }
.pc-price { font-weight: 700; font-size: 1.15rem; color: var(--ink-strong); }
.pc-was { font-weight: 500; font-size: .85rem; color: var(--muted); margin-right: .3rem; }
.pc-ing-hint { margin: .1rem 0 0; font-size: .74rem; color: var(--muted); }

/* ── Menu layout ─────────────────────────────────────────── */
.menu-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.menu-side { position: sticky; top: 90px; min-width: 0; }
.menu-search input { width: 100%; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; margin-bottom: .8rem; background: var(--card); color: var(--ink); }
.menu-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .18rem; }
.menu-cats a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; border-radius: var(--radius-sm); color: var(--ink); font-size: .92rem; font-weight: 500; }
.menu-cats a:hover { background: var(--brand-soft); color: var(--brand-soft-ink); text-decoration: none; }
.menu-cats a.active { background: var(--brand); color: #fff; }
.menu-cats .cat-count {
  flex: none; min-width: 1.6em; padding: .05rem .45rem; border-radius: 999px; font-size: .76rem; font-weight: 700;
  text-align: center; background: var(--surface-2); color: var(--muted);
}
.menu-cats a:hover .cat-count { background: #fff; color: var(--brand-soft-ink); }
.menu-cats a.active .cat-count { background: rgba(255, 255, 255, .25); color: #fff; }
.menu-cats a.cat-empty { opacity: .5; }
.menu-cat { scroll-margin-top: calc(var(--header-h, 88px) + 1rem); margin-bottom: 2.4rem; }
.cat-head h2 { margin: 0 0 .2rem; font-size: 1.5rem; }
.cat-note { color: var(--muted); margin: 0 0 .8rem; font-size: .9rem; }
.menu-empty { color: var(--muted); text-align: center; padding: 2rem; }

/* ── Cart drawer ─────────────────────────────────────────── */
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100vw);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); transform: translateX(105%);
  transition: transform .25s ease; z-index: 400; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.cart-drawer-head h3 { margin: 0; }
.cart-close { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.cart-drawer-foot { padding: 1rem 1.2rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .55rem; }
.cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 390; }
.cart-backdrop[hidden] { display: none; }

.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.cart-item .ci-name { font-weight: 600; font-size: .92rem; margin: 0; }
.cart-item .ci-meta { color: var(--muted); font-size: .78rem; }
.ci-qty { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; }
.ci-qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; }
.ci-price { font-weight: 700; white-space: nowrap; }
.ci-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; text-decoration: underline; padding: 0; }
.cart-item .ci-note { color: var(--amber); }
.ci-note-edit { margin-top: .25rem; }
.ci-edit-note { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: .76rem; text-decoration: underline; }
.ci-edit-note:hover { color: var(--ink); }
.ci-note-input { width: 100%; margin-top: .25rem; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .5rem; font: inherit; font-size: .82rem; background: var(--card); color: var(--ink); }
.oi-custom { display: block; font-size: .78rem; font-weight: 600; }
.oi-removed { color: var(--brand); }
.oi-added { color: var(--green); }

/* ── Item customisation modal ────────────────────────────── */
body.modal-open { overflow: hidden; }
.item-modal { position: fixed; inset: 0; z-index: 600; display: flex; align-items: flex-end; justify-content: center; }
.item-modal[hidden] { display: none; }
.item-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.item-modal-card {
  position: relative; background: var(--card); color: var(--ink); width: min(520px, 100vw); max-height: 90vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  animation: im-up .18s ease;
}
@keyframes im-up { from { transform: translateY(16px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.im-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.im-head h3 { margin: 0; font-size: 1.1rem; }
.im-close { background: none; border: 0; font-size: 1.2rem; cursor: pointer; line-height: 1; color: var(--muted); }
.im-body { overflow-y: auto; padding: .6rem 1.1rem 0; }
.im-section { padding: .6rem 0; }
.im-section h4 { margin: 0 0 .35rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-family: var(--font); }
.im-list { display: flex; flex-direction: column; gap: .1rem; }
.im-check { display: flex; align-items: center; gap: .6rem; padding: .5rem .4rem; border-radius: 10px; cursor: pointer; font-size: .95rem; }
.im-check:hover { background: var(--surface-2); }
.im-check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.im-check input:not(:checked) + span { text-decoration: line-through; color: var(--muted); }
.im-delta { margin-left: auto; color: var(--muted); font-size: .82rem; }
.im-note { display: block; padding: .6rem 0 1rem; font-size: .85rem; color: var(--muted); }
.im-note textarea { display: block; width: 100%; margin-top: .35rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .7rem; font: inherit; resize: vertical; background: var(--card); color: var(--ink); }
.im-foot { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.im-qty { display: inline-flex; align-items: center; gap: .5rem; }
.im-qty button { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 9px; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.im-qty span { min-width: 1.4rem; text-align: center; font-weight: 700; }
.im-foot [data-im-add] { flex: 1; }
@media (min-width: 560px) {
  .item-modal { align-items: center; }
  .item-modal-card { border-radius: var(--radius-lg); }
}
.cart-line { display: flex; justify-content: space-between; font-size: .95rem; }
.cart-line.total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.cart-note { color: var(--amber); font-size: .82rem; margin: 0; }
.cart-page { display: grid; grid-template-columns: 1fr 320px; gap: 1.4rem; align-items: start; }
.cart-page-summary, .cart-page-items { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.cart-page-summary h3 { margin-top: 0; }
.cart-page-actions { display: flex; flex-direction: column; gap: .5rem; margin: .8rem 0; }

/* Friendly empty-cart state (rendered by cart.js) */
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 2.2rem 1rem; }
.cart-empty-ico { width: 72px; height: 72px; display: grid; place-items: center; font-size: 2rem; border-radius: 999px; background: var(--brand-soft); }
.cart-empty p { margin: .2rem 0 .6rem; color: var(--muted); }

/* ── Checkout ────────────────────────────────────────────── */
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 1.4rem; align-items: start; }
.checkout-main .card { margin-bottom: 1rem; }
fieldset.card { border: 1px solid var(--line); }
fieldset legend { font-weight: 700; padding: 0 .4rem; font-family: var(--font-head); color: var(--ink-strong); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.span-2 { grid-column: 1 / -1; }
label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
label input, label select, label textarea, .card input:not([type=checkbox]):not([type=radio]), .card select, .card textarea {
  width: 100%; margin-top: .25rem; padding: .62rem .75rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; font-weight: 400; background: var(--card); color: var(--ink);
}
label input:focus, label select:focus, label textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.segmented, .pay-options { display: flex; gap: .6rem; flex-wrap: wrap; }
.seg, .pay { flex: 1; min-width: 140px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; cursor: pointer; font-weight: 600; margin: 0; background: var(--card); }
.seg input, .pay input { display: none; }
.seg:has(input:checked), .pay:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-soft-ink); }
.check { display: flex; align-items: flex-start; gap: .5rem; font-weight: 500; }
.check input { width: auto; margin: .2rem 0 0; }
.checks { display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem; margin-bottom: .8rem; }
.checks legend { font-weight: 700; }
.allergen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem; }
.checkout-side .summary { position: sticky; top: 90px; }

/* ── Checkout summary lines (the basket on the order page) ─── */
.checkout-side .summary [data-checkout-items] { margin-bottom: .4rem; }
.checkout-line {
  display: flex; flex-direction: column; gap: .12rem;
  padding: .62rem 0; border-bottom: 1px solid var(--line);
}
.checkout-line:last-child { border-bottom: 0; }
.cl-top { display: flex; align-items: baseline; justify-content: space-between; gap: .9rem; }
.cl-top .ci-name { margin: 0; line-height: 1.35; }
.cl-qty { color: var(--brand); font-weight: 700; margin-right: .1rem; }
.cl-half { color: var(--muted); font-size: .82rem; font-weight: 500; }
.checkout-line .ci-price { flex: none; font-weight: 700; white-space: nowrap; }
.checkout-line .ci-meta { color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.checkout-line .ci-note { color: var(--amber); }

.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin: .8rem 0; font-weight: 500; }
.alert-error { background: #fdecec; color: #a1161d; border: 1px solid #f3c3c5; }
.alert-ok { background: #e9f8ef; color: #14683a; border: 1px solid #b7e6c9; }
.alert-warn { background: #fff5e0; color: #8a5a00; border: 1px solid #f2dca4; }

/* ── Order tracking ──────────────────────────────────────── */
.order-head { position: relative; }
.order-code-box { display: inline-flex; flex-direction: column; background: var(--brand); color: #fff; padding: .7rem 1.2rem; border-radius: var(--radius); margin: .6rem 0; }
.order-code-box span { font-size: .8rem; opacity: .9; }
.order-code-box strong { font-size: 1.4rem; letter-spacing: .04em; }
.order-share { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .2rem 0 .5rem; }
.order-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.4rem; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; color: var(--muted); position: relative; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); flex: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done .dot { background: var(--green); }
.timeline li.current { color: var(--brand-soft-ink); font-weight: 700; }
.timeline li.current .dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.eta { font-weight: 600; color: var(--ink-strong); margin-top: 1rem; }
.order-items { list-style: none; margin: 0 0 .8rem; padding: 0; }
.order-items li { display: grid; grid-template-columns: 42px 1fr auto; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.order-items small { display: block; color: var(--muted); font-size: .78rem; }
.oi-qty { font-weight: 700; color: var(--brand); }
.oi-price { font-weight: 600; }
.totals { display: flex; flex-direction: column; gap: .3rem; }
.events { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.events li { display: flex; gap: .7rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.ev-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.driver-map { height: 280px; border-radius: var(--radius); margin: .7rem 0; background: var(--surface-2); }
.driver-map[hidden] { display: none; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); margin-top: 3rem; padding-top: 2.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 1.6rem; }
.footer-col h4 { color: var(--footer-fg); font-size: .95rem; margin-bottom: .7rem; opacity: 1; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; }
.footer-col li { display: flex; justify-content: space-between; gap: .8rem; }
.footer-col a { color: var(--footer-fg); }
.footer-col a:hover { color: #fff; }
.footer-logo { height: 60px; width: auto; margin-bottom: .6rem; border-radius: 12px; }
.social { display: flex; gap: .8rem; margin-top: .6rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding: 1rem 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.legal-note a { color: var(--gold); }

/* ── Cookie banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 500;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; gap: 1rem;
  align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 1000px; margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .88rem; }
.cookie-actions { display: flex; gap: .5rem; }

/* ── Tables (public + account) ───────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.table tbody tr:hover { background: var(--surface-2); }

.status-pill { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--ink); }
.status-pending { background: #fff1d6; color: #8a5a00; }
.status-confirmed { background: #dde9ff; color: #1b4ba0; }
.status-preparing { background: #ffe6d1; color: #a34b00; }
.status-ready { background: #e0f5e6; color: #14683a; }
.status-on_the_way { background: #e6e0ff; color: #4b2fb0; }
.status-delivered { background: #e2f5ea; color: #14683a; }
.status-cancelled { background: #fdecec; color: #a1161d; }

/* ── Order suggestion cards (track / account) ────────────── */
.order-cards {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.order-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1.1rem; box-shadow: var(--shadow); color: var(--ink);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.order-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg);
  border-color: var(--brand); text-decoration: none;
}
.order-card .oc-main { min-width: 0; }
.order-card .oc-code {
  font-family: var(--font-head); font-weight: var(--head-weight); color: var(--ink-strong);
  letter-spacing: .02em;
}
.order-card .oc-meta {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  margin-top: .35rem; color: var(--muted); font-size: .82rem;
}
.order-card .oc-go {
  flex: none; color: var(--brand); font-weight: 600; font-size: .85rem;
  white-space: nowrap; display: inline-flex; align-items: center; gap: .25rem;
}
.order-card.is-done { opacity: .68; }
.order-card.is-done:hover { opacity: 1; }

/* ── Address cards (account) ─────────────────────────────── */
.addr-cards {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.addr-card {
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .95rem 1.1rem; box-shadow: var(--shadow);
}
.addr-card.is-default { border-color: var(--brand); box-shadow: 0 6px 24px -10px var(--brand); }
.addr-card .ac-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.addr-card .ac-label { font-family: var(--font-head); font-weight: var(--head-weight); color: var(--ink-strong); }
.addr-card .ac-default {
  background: var(--brand-soft); color: var(--brand-soft-ink);
  border-radius: 999px; padding: .12rem .6rem; font-size: .74rem; font-weight: 700;
}
.addr-card .ac-line { color: var(--ink); }
.addr-card .ac-sub { color: var(--muted); font-size: .82rem; }
.addr-card .ac-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .55rem; }
.addr-card .ac-actions form { margin: 0; }
.addr-form { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.addr-form[hidden] { display: none; }
.addr-form-actions { margin-top: .8rem; }

/* ── About / contact / FAQ ───────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.fact-list { list-style: none; padding: 0; }
.fact-list li { padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: 1.6rem; }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.contact-list, .hours-list, .zones-list { list-style: none; padding: 0; }
.contact-list li, .hours-list li, .zones-list li { padding: .35rem 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.map-embed { text-align: center; margin-top: 1.4rem; }
.map-embed iframe { width: 100%; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); display: block; margin-bottom: 1rem; background: var(--surface-2); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: .6rem; }
.faq summary { font-weight: 600; cursor: pointer; }
.legal-content h2 { margin-top: 1.4rem; }
.legal-content ul { padding-left: 1.2rem; }
.error-page { text-align: center; padding: 3rem 1rem; }
.error-code { font-size: 4rem; color: var(--brand); margin: 0; }
.error-actions { display: flex; gap: .6rem; justify-content: center; }

/* Checkout — coupon / loyalty messages */
.coupon-msg { margin: .35rem 0 0; font-size: .85rem; }
.coupon-msg.ok { color: #14683a; }
.coupon-msg.bad { color: var(--brand, #c0392b); }
.loyalty-bal { display: flex; align-items: baseline; gap: .6rem; margin: .4rem 0; }
.loyalty-bal strong { font-size: 1.9rem; }

/* ── Dark presets: a few contrast touch-ups ──────────────── */
[data-dark="1"] .hero-bg { filter: brightness(.55); }
[data-dark="1"] .pc-img,
[data-dark="1"] .thumb-empty { background: var(--surface-2); }
[data-dark="1"] .alert-error { background: #3a1518; color: #ffb4b4; border-color: #5c2226; }
[data-dark="1"] .alert-ok { background: #10291c; color: #7fe0a8; border-color: #1d4a33; }
[data-dark="1"] .alert-warn { background: #33280f; color: #ffd479; border-color: #574417; }
[data-dark="1"] .status-pending { background: #3d3110; color: #ffd479; }
[data-dark="1"] .status-confirmed { background: #14264d; color: #a9c4ff; }
[data-dark="1"] .status-preparing { background: #3d2410; color: #ffb877; }
[data-dark="1"] .status-ready,
[data-dark="1"] .status-delivered { background: #10301f; color: #7fe0a8; }
[data-dark="1"] .status-on_the_way { background: #241b4d; color: #c0b0ff; }
[data-dark="1"] .status-cancelled { background: #3a1518; color: #ffb4b4; }
[data-dark="1"] .row-overdue,
[data-dark="1"] .badge-soldout { color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 940px) {
  .menu-layout { grid-template-columns: 1fr; }
  .menu-side { position: static; min-width: 0; }
  /* Keep the category chips reachable while scrolling a long menu. */
  .menu-cats {
    position: sticky; top: var(--header-h, 0px); z-index: 150;
    flex-direction: row; overflow-x: auto; gap: .3rem; padding: .45rem 0 .5rem; margin: 0 -.2rem;
    background: var(--bg); box-shadow: 0 8px 12px -10px rgba(0, 0, 0, .45);
    -webkit-overflow-scrolling: touch;
    min-width: 0; max-width: 100%;
  }
  .menu-cats a { white-space: nowrap; }
  .menu-cat { scroll-margin-top: calc(var(--header-h, 88px) + 3.6rem); }
  .cart-page, .checkout, .order-layout { grid-template-columns: 1fr; }
  .about-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .brand-text { display: none; }
  .hero-inner { padding: 3rem 1.1rem 3.4rem; }
  .grid-2, .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr 1fr; margin-top: -2rem; }
  .checkout-side .summary, .menu-side { position: static; }
  .cta-band { padding: 1.5rem 1.4rem; }
}
@media (max-width: 460px) {
  .info-strip, .gallery { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

/* ── Small utilities used across pages ───────────────────── */
.menu-body { min-width: 0; }
.ev-label { flex: 1; }
.oi-name { font-weight: 600; }
.ob-lbl { line-height: 1.1; }
.error-msg { color: var(--muted); }

/* ── Offers in nav ───────────────────────────────────────── */
.nav-links a.nav-offers { color: var(--brand); font-weight: 700; }
/* Active/hover variants so the highlight never turns red-on-red. */
.nav-links a.nav-offers.active { color: #fff; }
.nav-links a.nav-offers.active:hover { color: #fff; background: var(--brand-strong); }

/* ── Favourite heart on product cards ────────────────────── */
.pc-fav {
  position: absolute; top: .5rem; right: .5rem; z-index: 3;
  width: 2.1rem; height: 2.1rem; border-radius: 999px; border: none;
  background: rgba(255,255,255,.88); color: var(--brand);
  font-size: 1.15rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .15s ease, background .15s ease;
}
.pc-fav:hover { transform: scale(1.12); }
.pc-fav.on { background: var(--brand); color: #fff; }
[data-dark="1"] .pc-fav { background: rgba(0,0,0,.5); }

/* ── Menu filter / sort toolbar ──────────────────────────── */
.menu-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin: 0 0 1.1rem; padding: .7rem .9rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.menu-toolbar .mt-field select {
  padding: .5rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font: inherit; font-size: .9rem;
}
.menu-toolbar .mt-check {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem;
  padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); cursor: pointer;
}
.menu-toolbar .mt-check input { accent-color: var(--brand); }

/* ── Google rating social proof ──────────────────────────── */
.review-band { margin-top: 1.4rem; }
.review-band-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1.2rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stars { color: var(--gold); font-size: 1.35rem; letter-spacing: .08em; }
.stars .star { opacity: .35; }
.stars .star.on { opacity: 1; }

/* ── Free-delivery progress ──────────────────────────────── */
.cart-freedel { margin: .1rem 0 .2rem; }
.cart-freedel .cf-text { margin: 0 0 .35rem; font-size: .82rem; color: var(--ink); font-weight: 600; }
.cart-freedel.done .cf-text { color: var(--green); }
.cart-freedel .cf-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.cart-freedel .cf-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--brand); transition: width .3s ease; }
.cart-freedel.done .cf-bar span { background: var(--green); }
.cart-eta { margin: .1rem 0; }

/* ── Cart upsell strip ───────────────────────────────────── */
.cart-upsell { margin: .2rem 0 .4rem; }
.cart-upsell .cu-title { margin: 0 0 .45rem; font-size: .84rem; font-weight: 700; color: var(--muted); }
.cart-upsell-page { margin-top: 1.4rem; }
.cart-upsell-page .cu-scroll { max-width: 100%; }
.cu-scroll { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .3rem; -webkit-overflow-scrolling: touch; }
.cu-item {
  position: relative; flex: 0 0 auto; width: 8.2rem; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .4rem; display: flex; flex-direction: column; gap: .25rem; font: inherit; color: var(--ink);
}
.cu-item img, .cu-item .cu-thumb {
  width: 100%; height: 4.6rem; object-fit: cover; border-radius: var(--radius-sm);
  background: var(--surface-2); display: grid; place-items: center; font-size: 1.6rem; opacity: .85;
}
.cu-item .cu-name { font-size: .78rem; font-weight: 600; line-height: 1.2; }
.cu-item .cu-price { font-size: .76rem; color: var(--brand); font-weight: 700; }
.cu-item .cu-plus {
  position: absolute; top: .5rem; right: .5rem; width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700;
}
.cu-item:hover { border-color: var(--brand); }

/* ── Checkout ETA ────────────────────────────────────────── */
.checkout-eta { margin: .3rem 0 0; font-size: .86rem; font-weight: 600; color: var(--brand); }

/* ── User dark-mode override ─────────────────────────────── */
/* The admin picks a theme; this lets a visitor switch to dark (or follow their
   OS) without changing the theme. Reuses the same surface tokens. */
:root[data-user-dark="1"] {
  color-scheme: dark;
  --bg: #141110;
  --card: #1e1a17;
  --surface-2: #272019;
  --ink: #efe7df;
  --ink-strong: #ffffff;
  --muted: #a79d92;
  --line: #342b24;
  --header-bg: #141110;
  --header-fg: #ffffff;
  --topbar-bg: #0b0908;
  --topbar-fg: #e6ddd3;
  --footer-bg: #0b0908;
  --footer-fg: #b6aca1;
  --nav-bg: #0b0908;
  --app-bg: #141110;
  --shadow: 0 6px 24px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .65);
}
:root[data-user-dark="1"] .pc-img,
:root[data-user-dark="1"] .thumb-empty { background: var(--surface-2); }
:root[data-user-dark="1"] .hero-bg { filter: brightness(.55); }
:root[data-user-dark="1"] .pc-fav { background: rgba(0, 0, 0, .5); }
:root[data-user-dark="1"] .alert-error { background: #3a1518; color: #ffb4b4; border-color: #5c2226; }
:root[data-user-dark="1"] .alert-ok { background: #10291c; color: #7fe0a8; border-color: #1d4a33; }
:root[data-user-dark="1"] .alert-warn { background: #33280f; color: #ffd479; border-color: #574417; }

/* Legacy dark presets also get the toggle overrides. */
[data-dark="1"] .cu-item { background: var(--card); }

/* ── Newsletter signup ───────────────────────────────────── */
.footer-newsletter .newsletter-form { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.footer-newsletter .newsletter-form input {
  flex: 1 1 9rem; min-width: 0; padding: .6rem .7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.newsletter-msg { margin: .5rem 0 0; font-size: .84rem; color: #ffb4b4; }
.newsletter-msg.ok { color: #7fe0a8; }
[data-dark="1"] .newsletter-msg,
:root[data-user-dark="1"] .newsletter-msg { color: #ffb4b4; }
[data-dark="1"] .newsletter-msg.ok,
:root[data-user-dark="1"] .newsletter-msg.ok { color: #7fe0a8; }

/* ── Payment method badges ───────────────────────────────── */
.pay-methods { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.pay-methods-checkout { justify-content: center; margin: .6rem 0 .2rem; }
.pay-badge {
  display: inline-block; padding: .22rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 700;
  letter-spacing: .02em; background: #fff; color: #1f2937; border: 1px solid var(--line);
}

.badge-top { background: linear-gradient(45deg, #f59e0b, #fbbf24); color: #1f2937; }

.reorder-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.reorder-item { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.reorder-arrows { display:flex; flex-direction:column; gap:6px; }
.reorder-btn { min-width:48px; min-height:48px; border:1px solid #cbd5e1; background:#f8fafc; color:#475569; border-radius:8px; font-size:20px; cursor:pointer; padding:0; }
.reorder-btn:hover, .reorder-btn:active, .reorder-btn:focus { background:#e2e8f0; outline:2px solid rgba(148,163,184,0.5); outline-offset:2px; }
.reorder-info { flex:1; display:flex; flex-direction:column; gap:4px; }
.reorder-meta { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.reorder-actions { display:flex; gap:6px; }
.reorder-item.empty { justify-content:center; }

.btn, .pill-toggle { min-height:40px; padding:8px 12px; }
@media (max-width: 768px) {
  .btn, .pill-toggle { min-height:44px; padding:10px 14px; }
  .btn-xs, .btn-sm { min-height:44px; }
  .table { font-size:14px; }
  .admin-main { padding:12px; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap:10px; }
  .product-card .pc-body { padding:10px; }
  .product-card .pc-name { font-size:14px; line-height:1.2; }
  .product-card .pc-price { font-size:14px; }
  .hero { padding:24px 12px; }
  .nav-inner { padding:0 10px; }
  .order-bar { height:64px; }
}

.reorder-item[draggable="true"] { cursor:move; touch-action:pan-y; }
.reorder-item.dragging { opacity:0.4; }
.reorder-item.drop-target { border-top:2px solid var(--brand); }

.im-check.im-fixed { display:flex; gap:6px; align-items:center; opacity:0.85; }
.im-check.im-fixed small { color:var(--muted,#64748b); font-size:0.8em; }
.combo-qty { width:64px; margin-right:6px; }

/* ── Admin menu screen: search + one-line quick add ───────── */
.menu-search-label {
  display:flex; align-items:center; gap:8px; background:#fff;
  border:1px solid var(--border); border-radius:10px; padding:6px 10px; margin-bottom:6px;
}
.menu-search-label:focus-within { outline:2px solid var(--brand); outline-offset:2px; }
.menu-search-label input[type="search"] {
  flex:1; border:0; box-shadow:none; padding:8px 4px; font-size:16px; background:transparent;
}
.menu-search-label input[type="search"]:focus { outline:none; }
.quick-add-row {
  display:grid; grid-template-columns:1fr 110px 52px; gap:8px;
  margin-top:12px; padding-top:12px; border-top:1px dashed var(--border);
}
.quick-add-row input { min-height:44px; font-size:16px; }
.quick-add-row .btn { min-height:44px; font-size:20px; padding:0; }
.tag-btn { border:0; cursor:pointer; font:inherit; font-size:12px; }
.tag-btn:active { transform:scale(0.97); }
.menu-empty-search { text-align:center; padding:24px; }
.reorder-item.dragging { touch-action:none; }

@media (max-width: 640px) {
  .quick-add-row { grid-template-columns:1fr 92px 48px; gap:6px; }
  .action-label { display:none; }
  .reorder-item { gap:8px; padding:8px; }
  .reorder-info strong { font-size:14px; }
}
.reorder-item.just-added { background:#f0fdf4; outline:2px solid var(--brand); outline-offset:1px; }

/* ── Combo choices in the item popup ─────────────────────── */
.im-combo-group { border: 1px solid var(--line); border-radius: 12px; padding: .55rem .65rem; margin: 0 0 .7rem; }
.im-combo-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .25rem; font-size: .9rem; }
.im-combo-head small { color: var(--muted); font-size: .78rem; }
.im-combo-count { color: var(--brand); font-weight: 700; }
.im-combo-opts { display: flex; flex-direction: column; }
.im-combo-opt input:not(:checked) + span { text-decoration: none; color: inherit; }
.im-combo-opt.is-soldout { opacity: .55; cursor: not-allowed; }
.im-combo-opt .im-soldout { margin-left: auto; font-size: .72rem; color: var(--muted); }
.im-combo-error { color: var(--red); font-size: .85rem; margin: .35rem 0 0; font-weight: 600; }
