/* Mommy Palangke — demo storefront */
:root {
  --bg: #FFF8EE;
  --bg-warm: #FFE8C2;
  --surface: #FFFFFF;
  --text: #1C100C;
  --text-muted: #6A4A36;
  --red: #DA291C;
  --red-dark: #B51E14;
  --red-soft: #FFD6D1;
  --yellow: #FFC72C;
  --yellow-ink: #5C3A00;
  --yellow-soft: #FFE89A;
  --orange: #FF8C00;
  --orange-dark: #C65E00;
  --orange-soft: #FFE0B3;
  --terracotta: var(--red);
  --terracotta-dark: var(--red-dark);
  --terracotta-soft: var(--red-soft);
  --gold: var(--yellow);
  --gold-soft: var(--yellow-soft);
  --leaf: #1F7A3A;
  --leaf-soft: #E3F6E8;
  --border: #F0D7B0;
  --shadow: 0 10px 28px rgba(218, 41, 28, 0.12);
  --shadow-lg: 0 18px 46px rgba(218, 41, 28, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 64px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", "Georgia", serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; }

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

/* Demo banner */
.demo-banner {
  background: var(--yellow);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.5rem 1rem;
}
.demo-banner strong { color: var(--red-dark); font-weight: 800; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--red);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 4px 16px rgba(181, 30, 20, 0.28);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-tag {
  font-size: 0.7rem;
  color: var(--yellow);
  font-weight: 600;
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--yellow);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.chip-track { background: var(--orange); color: #1C100C; }
.chip--gold { background: var(--yellow); color: var(--yellow-ink); }
.chip--warn { background: var(--red-soft); color: var(--red-dark); }

.cart-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(255, 199, 44, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.cart-btn:hover { background: #FFD54A; transform: translateY(-1px); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.cart-count.is-empty { display: none; }

/* Hero */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}
.hero-art {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 280px;
  background: #3a2418;
}
.hero-art img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(218,41,28,0.08) 0%, rgba(28,16,12,0.55) 48%, rgba(28,16,12,0.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem 1.2rem 1.5rem;
  color: #fff;
}
.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.hero p {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.98rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 18px rgba(218, 41, 28, 0.35);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost {
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1.5px solid var(--orange);
}
.btn-ghost:hover { background: var(--orange); color: #1C100C; }
.btn-leaf {
  background: var(--leaf);
  color: #fff;
}
.btn-leaf:hover { background: #23472c; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* How it works */
.how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 1rem 0.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.how-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: #7A4E00;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.how-card h3 { margin: 0 0 0.15rem; font-size: 0.95rem; }
.how-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

/* Category nav */
.cat-nav-wrap {
  position: sticky;
  top: calc(var(--header-h) + 0px);
  z-index: 30;
  background: rgba(255, 248, 238, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  margin-top: 0.8rem;
}
.cat-nav-wrap.is-stuck { border-bottom-color: var(--border); }
.cat-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-link {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--orange-dark);
  text-decoration: none;
  border: 1.5px solid var(--orange);
  background: var(--orange-soft);
}
.cat-link:hover { background: var(--orange); color: #1C100C; }
.cat-link.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* Menu */
.menu {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem 8rem;
}
.category { scroll-margin-top: calc(var(--header-h) + 58px); }
.category + .category { margin-top: 1.6rem; }
.category h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}
.category-lead {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.dish-list { display: grid; gap: 0.8rem; }
.dish {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 118px;
  min-height: 132px;
  box-shadow: 0 1px 0 rgba(42,26,18,0.03);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.dish:hover { box-shadow: var(--shadow); }
.dish-body { padding: 0.85rem 0.7rem 0.85rem 0.95rem; display: flex; flex-direction: column; }
.dish-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.4rem; }
.dish-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}
.dish-sub {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--terracotta);
  margin-top: 0.1rem;
}
.popular {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--yellow-ink);
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
}
.dish-desc {
  margin: 0.35rem 0 0.6rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.dish-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}
.price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--red);
}
.dish-photo {
  position: relative;
  overflow: hidden;
}
.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.add-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(218, 41, 28, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.add-btn:hover { background: var(--terracotta-dark); transform: scale(1.06); }
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  background: var(--terracotta-soft);
  border-radius: 999px;
  overflow: hidden;
}
.qty-ctrl button {
  width: 32px; height: 32px;
  color: var(--terracotta-dark);
  font-size: 1.15rem;
  font-weight: 600;
}
.qty-ctrl span {
  min-width: 1.1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Floating cart bar */
.cart-bar {
  position: fixed;
  left: 1rem; right: 1rem;
  bottom: calc(1rem + var(--safe-bottom));
  z-index: 45;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 0.8rem 0.7rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.cart-bar.is-visible { transform: translateY(0); }
.cart-bar-info { display: flex; flex-direction: column; line-height: 1.2; }
.cart-bar-info strong { font-size: 0.95rem; }
.cart-bar-info span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.cart-bar .btn { background: var(--yellow); color: var(--text); padding: 0.55rem 1rem; }

/* Drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 18, 0.45);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  box-shadow: var(--shadow-lg);
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.drawer form.drawer-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.drawer-cart, .drawer-checkout {
  left: 0; right: 0; bottom: 0;
  border-radius: 22px 22px 0 0;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.drawer.is-open { transform: translateY(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.6rem;
  border-bottom: 1px solid var(--border);
}
.drawer-head h2 {
  font-family: var(--display);
  margin: 0;
  font-size: 1.35rem;
}
.close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-warm);
  font-size: 1.2rem;
}
.drawer-body {
  padding: 0.8rem 1.1rem;
  overflow-y: auto;
  flex: 1;
}
.drawer-foot {
  padding: 0.9rem 1.1rem calc(1rem + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.cart-item h3 { margin: 0 0 0.15rem; font-size: 0.95rem; }
.cart-item .muted { color: var(--text-muted); font-size: 0.8rem; }
.cart-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 0.3rem 0;
  font-size: 0.95rem;
}
.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}
.pay-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Checkout form */
.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-weight: 650;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.15);
}
.field .hint { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--text-muted); }
.day-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
.day-tab {
  flex: 1;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}
.day-tab.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  padding-bottom: 0.2rem;
}
.slots.is-grouped {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 320px;
}
.slot-group h3 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.slot-group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.slot {
  border: 1.5px solid var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 10px;
  padding: 0.5rem 0.2rem;
  font-weight: 700;
  font-size: 0.78rem;
}
.slot.is-active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}
.slot:disabled { opacity: 0.4; }
.form-error {
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
  display: none;
}
.form-error.is-visible { display: block; }

/* Confirmation */
.confirm-view, .checkout-view, .menu-view { display: none; }
.menu-view.is-active, .checkout-view.is-active, .confirm-view.is-active { display: block; }

.confirm-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  text-align: center;
}
.confirm-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf);
  display: grid;
  place-items: center;
}
.confirm-icon svg { width: 36px; height: 36px; }
.confirm-wrap h1 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
}
.order-number {
  display: inline-block;
  margin: 0.8rem 0 1rem;
  background: var(--gold-soft);
  color: #7A4E00;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.35rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
}
.confirm-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.2rem;
}
.confirm-card p { margin: 0.3rem 0; font-size: 0.95rem; }
.confirm-actions { display: grid; gap: 0.6rem; }

/* Footer */
.site-footer {
  background: var(--red);
  color: rgba(255,255,255,0.9);
  padding: 1.6rem 1rem 2rem;
  margin-top: auto;
  border-top: 4px solid var(--yellow);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.site-footer a { color: var(--yellow); font-weight: 700; }
.site-footer h3 {
  font-family: var(--display);
  color: #fff;
  margin: 0 0 0.3rem;
}
.disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}

/* View switching */
#gestore-view { display: none; }
#gestore-view.is-active { display: block; }
.demo-banner-gestore, .chip-gestore-back { display: none; }
body.gestore { background: var(--bg); }
body.gestore .demo-banner-customer { display: none; }
body.gestore .demo-banner-gestore { display: block; }
body.gestore .chip-pickup,
body.gestore .cart-btn,
body.gestore .cart-bar,
body.gestore .site-footer--customer { display: none !important; }
body.gestore .chip-gestore-back { display: inline-flex; }

/* Gestore */
.gestore-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1rem 0.75rem;
}
.gestore-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 5vw, 1.9rem);
  margin: 0 0 0.3rem;
}
.gestore-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.gestore-actions {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.gestore-actions .btn {
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  font-size: 0.82rem;
}

.gestore-stick {
  position: sticky;
  top: var(--header-h);
  z-index: 28;
  background: rgba(255, 248, 238, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.gestore-stick-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.45rem 1rem;
}
.filter-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.1rem 0;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 650;
  font-size: 0.86rem;
  white-space: nowrap;
}
.filter-pill.is-active { background: var(--red); color: #fff; border-color: var(--red); }

.orders {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1rem 3rem;
  display: grid;
  gap: 0.9rem;
}
.order-card {
  scroll-margin-top: calc(var(--header-h) + 58px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.05rem;
  box-shadow: 0 1px 0 rgba(42,26,18,0.04);
}
.order-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.7rem;
}
.order-id { font-weight: 800; letter-spacing: 0.04em; font-size: 1.05rem; }
.order-meta { color: var(--text-muted); font-size: 0.82rem; margin: 0.35rem 0 0; }
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-nuovo { background: var(--yellow); color: var(--yellow-ink); }
.badge-preparazione { background: var(--orange); color: #1C100C; }
.badge-pronto { background: #86EFAC; color: #14532D; }
.badge-ritirato { background: #E5E7EB; color: #374151; }

.order-pickup {
  background: var(--gold-soft);
  color: #7A4E00;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.75rem;
}
.order-pickup-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.1rem;
}
.order-pickup strong { font-size: 1.05rem; color: var(--text); }

.order-customer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.order-name { font-weight: 700; font-size: 1rem; }
.order-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  min-height: 44px;
  padding: 0.15rem 0;
  color: var(--terracotta-dark);
  font-weight: 650;
  text-decoration: none;
}
.order-phone svg { width: 18px; height: 18px; flex-shrink: 0; }
.order-phone:hover { text-decoration: underline; }
.order-notes {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}

.order-items {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0 0;
  border-top: 1px dashed var(--border);
  list-style: none;
  font-size: 0.95rem;
}
.order-items li { display: flex; justify-content: space-between; gap: 0.7rem; padding: 0.28rem 0; }
.order-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 0.8rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
}
.order-total .pay-hint {
  width: 100%;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.status-btn {
  min-height: 48px;
  padding: 0.7rem 0.5rem;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
}
.status-btn.is-current { color: #fff; }
.status-btn[data-status="nuovo"].is-current { background: var(--yellow); border-color: var(--yellow); color: var(--text); }
.status-btn[data-status="preparazione"].is-current { background: var(--orange); border-color: var(--orange); color: #1C100C; }
.status-btn[data-status="pronto"].is-current { background: var(--leaf); border-color: var(--leaf); }
.status-btn[data-status="ritirato"].is-current { background: #4B5563; border-color: #4B5563; }

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

.site-footer--gestore {
  display: none;
  margin-top: 0;
}
body.gestore .site-footer--gestore { display: block; }

/* Desktop */
@media (min-width: 720px) {
  .hero-art img { height: 420px; }
  .hero-overlay { padding: 2.2rem; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .dish-list { grid-template-columns: repeat(2, 1fr); }
  .drawer-cart, .drawer-checkout {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(420px, 100%);
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    transform: translateX(110%);
  }
  .drawer-cart.is-open, .drawer-checkout.is-open { transform: translateX(0); }
  .cart-bar { display: none; }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .gestore-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .gestore-actions .btn { width: auto; min-width: 11rem; }
  .order-card { padding: 1.2rem 1.25rem; }
  .order-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .status-btn {
    width: auto;
    flex: 1 1 auto;
    min-width: 9.5rem;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
  }
}
@media (min-width: 1020px) {
  .dish-list { grid-template-columns: repeat(2, 1fr); }
  .dish { grid-template-columns: 1fr 160px; min-height: 160px; }
}


/* ---- Tracking, sold out, owner items, menu admin ---- */
#track-view, #menu-admin-view, #hours-admin-view, #location-admin-view, #promo-admin-view, #settings-admin-view, #logo-admin-view, #messages-admin-view, #campaigns-admin-view { display: none; }
#track-view.is-active, #menu-admin-view.is-active, #hours-admin-view.is-active, #location-admin-view.is-active, #promo-admin-view.is-active, #settings-admin-view.is-active, #logo-admin-view.is-active, #messages-admin-view.is-active, #campaigns-admin-view.is-active { display: block; }
.chip-track { display: none; }
.chip-track.is-visible { display: inline-flex; }
body.tracking .cart-btn,
body.tracking .chip-pickup,
body.tracking .cart-bar { display: none !important; }
body.tracking .chip-gestore-back { display: inline-flex; }
body.gestore .chip-track { display: none !important; }

.dish.is-soldout { opacity: 0.72; }
.dish.is-soldout .dish-photo { filter: grayscale(0.35); }
.soldout {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #FECACA;
  color: #7F1D1D;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}
.add-btn:disabled, .qty-ctrl.is-disabled { opacity: 0.4; pointer-events: none; }

/* Owner subnav */
.owner-subnav {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.7rem 1rem 0;
  display: flex;
  gap: 0.4rem;
}
.owner-subnav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.78rem;
  border: 1.5px solid var(--orange);
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.owner-subnav a.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.gestore-note {
  max-width: 960px;
  margin: 0 auto 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--yellow);
  color: var(--text);
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  border: 1px solid #E0A800;
}

/* Owner line items */
.order-items li.order-item-row,
.order-item-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  align-items: stretch;
}
.order-item-row:last-of-type { border-bottom: 0; }
.order-item-main { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.order-item-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.item-tool {
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 650;
}
.item-tool.is-danger { color: var(--red-dark); border-color: #F5B7B0; background: var(--red-soft); }
.order-total .old-total {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  margin-right: 0.4rem;
}
.badge-cancelled { background: #FECACA; color: #7F1D1D; }
.status-btn[data-status="cancelled"].is-current { background: #9A361C; border-color: #9A361C; }

.remove-panel {
  grid-column: 1 / -1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  display: grid;
  gap: 0.45rem;
}
.remove-panel p { margin: 0; font-size: 0.88rem; }
.remove-panel textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: var(--surface);
  resize: vertical;
  min-height: 64px;
}
.remove-panel-actions { display: flex; gap: 0.4rem; }
.remove-panel-actions .btn { flex: 1; min-height: 44px; }

/* Tracking page */
.track-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.1rem 1rem 3rem;
}
.track-wrap h1 {
  font-family: var(--display);
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}
.track-id {
  display: inline-block;
  background: var(--gold-soft);
  color: #7A4E00;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  margin: 0.3rem 0 0.8rem;
}
.track-status-msg {
  background: var(--leaf-soft);
  color: var(--leaf);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
.track-status-msg.is-cancelled { background: #FEE2E2; color: #7F1D1D; }
.track-status-msg.is-ready { background: var(--leaf-soft); color: var(--leaf); }

.timeline {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  position: relative;
  padding-bottom: 0.95rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline li:last-child::before { display: none; }
.tl-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  z-index: 1;
}
.timeline li.is-done .tl-dot { background: var(--leaf); border-color: var(--leaf); }
.timeline li.is-current .tl-dot { background: var(--terracotta); border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(218,41,28,0.18); }
.timeline li.is-done, .timeline li.is-current { font-weight: 650; }
.timeline li.is-todo { color: var(--text-muted); }
.tl-label { padding-top: 0.05rem; font-size: 0.95rem; }

.change-notice {
  background: var(--yellow-soft);
  border: 1px solid var(--orange);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}
.change-notice h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--terracotta-dark);
}
.change-notice ul { margin: 0.3rem 0 0.6rem; padding-left: 1.1rem; }
.change-notice .totals { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.change-notice .old { text-decoration: line-through; color: var(--text-muted); font-size: 1rem; }
.change-notice .new { font-weight: 800; font-size: 1.2rem; color: var(--text); }
.owner-msg {
  margin: 0.5rem 0 0;
  background: var(--surface);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.track-card h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.track-items { list-style: none; margin: 0; padding: 0; }
.track-items li { display: flex; justify-content: space-between; padding: 0.28rem 0; }
.track-items li.is-removed { color: var(--text-muted); text-decoration: line-through; }
.track-log { list-style: none; margin: 0; padding: 0; }
.track-log li { display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.5rem; padding: 0.35rem 0; border-top: 1px dashed var(--border); font-size: 0.88rem; }
.track-log time { color: var(--text-muted); font-size: 0.78rem; }
.my-orders { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.my-orders a {
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 650;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.my-orders a.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.track-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
  line-height: 1.45;
}

/* Menu admin */
.menu-admin { max-width: 960px; margin: 0 auto; padding: 0 1rem 3rem; }
.menu-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.menu-admin-toolbar .btn { min-height: 44px; }
.admin-cat { margin: 0 0 1.2rem; }
.admin-cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.admin-cat-head h2 { font-family: var(--display); font-size: 1.25rem; margin: 0; margin-right: auto; }
.icon-btn {
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700;
}
.admin-dish {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  align-items: start;
}
.admin-dish img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-warm);
}
.admin-dish h3 { margin: 0 0 0.15rem; font-size: 0.98rem; }
.admin-dish .muted { color: var(--text-muted); font-size: 0.8rem; margin: 0; }
.admin-dish-tools { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }
.admin-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.admin-form h2 { font-family: var(--display); margin: 0 0 0.8rem; font-size: 1.3rem; }
.admin-form .field { margin-bottom: 0.75rem; }
.admin-form label { display: block; font-weight: 650; font-size: 0.85rem; margin-bottom: 0.3rem; }
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.15);
}
.photo-preview {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin: 0.4rem 0;
  background: var(--bg-warm);
  display: none;
}
.photo-preview.is-on { display: block; }
.check-row { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; min-height: 44px; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.4rem; }
.admin-form-actions .btn { flex: 1; min-height: 46px; }
.form-error.is-visible { display: block; color: var(--terracotta-dark); font-size: 0.85rem; }

@media (min-width: 720px) {
  .menu-admin-toolbar { justify-content: flex-start; }
  .admin-form-actions .btn { flex: 0 0 auto; min-width: 10rem; }
  .owner-subnav { justify-content: flex-start; }
  .owner-subnav a { flex: 0 0 auto; min-width: 9rem; padding: 0 1rem; }
}


/* Hours admin */
.hours-admin { max-width: 720px; margin: 0 auto; padding: 0 1rem 3rem; }
.hours-toolbar { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.8rem; }
.hours-toolbar .btn { min-height: 44px; }
.hours-preview {
  background: var(--yellow);
  color: var(--text);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  line-height: 1.45;
}
.hours-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
}
.hours-day.is-closed { opacity: 0.85; background: var(--bg-warm); }
.hours-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.hours-day-head h2 { font-family: var(--display); font-size: 1.15rem; margin: 0; }
.hours-day-head .btn { min-height: 40px; font-size: 0.8rem; }
.hours-day-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.hours-day.is-24h { border-color: var(--orange); }
.hours-section {
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}
.hours-section:first-of-type { border-top: 0; padding-top: 0.25rem; }
.hours-section h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 0.98rem;
}
.hours-section-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0 0.15rem; }
.hours-section-actions .btn { min-height: 40px; font-size: 0.8rem; }
.hours-section-orders { background: var(--bg-warm); margin-left: -0.35rem; margin-right: -0.35rem; padding: 0.7rem 0.35rem 0.5rem; border-radius: 12px; border-top: 0; }
.hours-warn { color: var(--red, #DA291C); font-size: 0.85rem; font-weight: 650; margin: 0.5rem 0 0; }
.hours-preview p { margin: 0 0 0.35rem; }
.hours-preview p:last-child { margin: 0; }
.hours-window {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 0.4rem;
  align-items: end;
  margin-top: 0.5rem;
}
.hours-window label { font-size: 0.78rem; font-weight: 700; display: block; }
.hours-window select {
  width: 100%;
  min-height: 44px;
  margin-top: 0.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--orange);
  padding: 0.4rem 0.5rem;
  background: var(--orange-soft);
  color: var(--text);
}
.hours-sep { padding-bottom: 0.75rem; color: var(--text-muted); font-size: 0.82rem; font-weight: 650; }
.hours-add { margin-top: 0.65rem; min-height: 44px; }
.hours-day .muted { color: var(--text-muted); font-size: 0.88rem; margin: 0.2rem 0 0; }
@media (max-width: 520px) {
  .hours-window { grid-template-columns: 1fr; }
  .hours-sep { padding: 0; }
}
@media (min-width: 720px) {
  .owner-subnav a { min-width: 7rem; }
}


/* Promos */
.promo-badges {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  z-index: 2;
}
.promo-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.promo-badge-qty { background: var(--orange); color: #1C100C; }
.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  margin-right: 0.3rem;
}
.price-special {
  color: var(--red);
  font-weight: 800;
  font-size: 1.1rem;
}
.price.is-promo { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem; }
.cat-link-promo {
  background: var(--yellow);
  color: var(--yellow-ink);
  border-color: var(--yellow);
}
.cat-link-promo.is-active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.discount-line {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--red-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.2rem 0;
}
.progress-hint {
  margin: 0.35rem 0 0.2rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--orange-dark);
}
.savings-row {
  margin: 0.45rem 0 0.35rem;
  background: var(--yellow);
  color: var(--text);
  font-weight: 800;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 0.95rem;
}
.promo-mini {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--yellow);
  color: var(--yellow-ink);
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
  margin-left: 0.25rem;
  text-transform: none;
}
.promo-admin { max-width: 800px; margin: 0 auto; padding: 0 1rem 3rem; }
.promo-stack-note {
  background: var(--yellow);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}
.promo-card {
  display: grid;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
}
.promo-card.is-off { opacity: 0.72; }
.promo-card h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.promo-state {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--yellow-soft);
  color: var(--yellow-ink);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.promo-card.is-off .promo-state { background: var(--bg-warm); color: var(--text-muted); }
.promo-dates {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  margin: 0.7rem 0;
}
.promo-dates legend { font-weight: 700; padding: 0 0.3rem; }
.promo-toolbar { margin-bottom: 0.8rem; }
.owner-subnav { flex-wrap: wrap; }


/* Payment / GCash (demo) */
.pay-options {
  display: grid;
  gap: 0.5rem;
}
.pay-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
}
.pay-option.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.15);
}
.pay-option-gcash {
  background: #007CFF;
  border-color: #0063CC;
  color: #fff;
}
.pay-option-gcash.is-active {
  border-color: #004A99;
  box-shadow: 0 0 0 3px rgba(0, 124, 255, 0.28);
}
.pay-option input { width: 18px; height: 18px; accent-color: currentColor; }
.gcash-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1.5px solid #007CFF;
  background: #F3F8FF;
}
.gcash-amount { font-size: 1.05rem; margin: 0 0 0.4rem; }
.gcash-amount strong { color: #0057CC; font-size: 1.25rem; }
.gcash-qr-wrap {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin: 0.7rem 0 0.9rem;
}
.gcash-qr-wrap img, .gcash-qr-preview {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #C9D8F0;
}
.gcash-qr-wrap span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0057CC;
  text-align: center;
}
.gcash-panel label { display: block; font-weight: 650; margin: 0.45rem 0 0.25rem; }
.gcash-panel input[type="text"],
.gcash-panel input[type="tel"],
.gcash-panel input[id="gcash-ref"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}
.order-payment {
  background: var(--yellow-soft);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  margin: 0.6rem 0;
}
.order-payment strong { display: block; margin-top: 0.15rem; }
.pay-status-pending, .pay-status.pay-status-pending { background: var(--yellow); color: var(--text); }
.pay-status-paid, .order-payment.pay-status-paid { background: var(--leaf-soft); }
.pay-status-rejected, .order-payment.pay-status-rejected { background: var(--red-soft); }
.pay-status {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin: 0.6rem 0 0.8rem;
}
.pay-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.pay-actions .btn { min-height: 44px; font-size: 0.82rem; }
.refund-note {
  margin: 0.45rem 0 0;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 800;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}
.settings-admin { max-width: 720px; margin: 0 auto; padding: 0 1rem 3rem; }


/* ---- Ulam ng Araw, alerts, notify, slots, PWA extras ---- */
.ulam-araw {
  margin: 1.2rem auto 0;
  max-width: 1100px;
  padding: 1.1rem 1.1rem 0.4rem;
  background: linear-gradient(180deg, #FFF3C4 0%, #FFF8EE 70%);
  border: 3px solid var(--yellow, #FFC72C);
  border-radius: 18px;
  box-shadow: 0 8px 0 rgba(218, 41, 28, 0.12);
}
.ulam-araw h2 {
  margin: 0 0 0.2rem;
  color: var(--red, #DA291C);
  font-size: 1.45rem;
}
.popular-day {
  background: var(--red, #DA291C);
  color: #fff;
}
.item-tool.is-day {
  background: var(--yellow, #FFC72C);
  color: #3a1a00;
  font-weight: 700;
}

.slot.is-full,
.slot:disabled.is-full {
  opacity: 0.55;
  cursor: not-allowed;
  background: #eee;
  color: #666;
  position: relative;
}
.slot-full {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--red, #DA291C);
  text-transform: uppercase;
}

.hours-capacity input {
  max-width: 8rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0;
  font-weight: 600;
}

.sound-bar {
  max-width: 1100px;
  margin: 0.8rem auto 0;
  padding: 0 1rem;
}
.sound-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  background: #fff;
  border: 2px solid var(--yellow, #FFC72C);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}
.new-order-flash {
  font-weight: 800;
  color: var(--red, #DA291C);
  animation: mp-flash 0.8s ease-in-out infinite alternate;
}
.alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 99px;
  background: var(--yellow, #FFC72C);
  color: #3a1a00;
  font-size: 0.72rem;
  font-weight: 800;
  animation: mp-flash 0.8s ease-in-out infinite alternate;
}
a.has-alert {
  position: relative;
}
body.has-order-alert .site-header {
  box-shadow: 0 0 0 3px var(--yellow, #FFC72C);
}
@keyframes mp-flash {
  from { opacity: 1; }
  to { opacity: 0.35; }
}

.notify-box {
  margin: 0.75rem 0;
  padding: 0.7rem 0.8rem;
  background: #FFF8E0;
  border-left: 4px solid var(--orange, #FF8C00);
  border-radius: 8px;
  font-size: 0.92rem;
}
.notify-log {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}
.notify-log li {
  margin: 0.3rem 0;
}
.notify-log time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted, #6b5b4f);
}

.mp-toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%) translateY(20px);
  z-index: 80;
  max-width: min(92vw, 420px);
  background: #1a1a1a;
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 3px solid var(--yellow, #FFC72C);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.mp-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Language switcher: owner area only */
.lang-switch {
  display: none;
}
body.gestore .lang-switch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.15rem;
}
.lang-btn {
  appearance: none;
  border: 2px solid rgba(255,255,255,0.35);
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  width: 38px;
  height: 26px;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-btn svg {
  width: 30px;
  height: 17px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
  border-color: var(--yellow, #FFC72C);
  box-shadow: 0 0 0 1px var(--red, #DA291C);
}
.lang-btn:focus-visible {
  outline: 2px solid var(--yellow, #FFC72C);
  outline-offset: 2px;
}
@media (max-width: 400px) {
  .lang-btn { width: 34px; height: 24px; }
  .lang-btn svg { width: 26px; height: 15px; }
}

/* Boot + auth (Supabase) */
body.is-booting > *:not(#mp-boot):not(.demo-banner-customer):not(.demo-banner-gestore) {
  visibility: hidden;
}
.mp-boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 248, 240, 0.92);
  padding: 1.5rem;
}
.mp-boot[hidden] { display: none !important; }
.mp-boot-card {
  background: #fff;
  border: 2px solid var(--yellow, #FFC72C);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  max-width: 22rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.mp-boot-card p { margin: 0 0 1rem; color: #3b1f12; font-weight: 600; }
.boot-banner {
  background: #DA291C;
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}
.boot-banner[hidden] { display: none !important; }
.auth-view { display: none; padding: 1.5rem 1rem 3rem; }
.auth-view.is-active { display: block; }
.auth-form {
  max-width: 28rem;
  margin: 1.5rem auto 0;
  background: #fff;
  border: 2px solid var(--yellow, #FFC72C);
  border-radius: 18px;
  padding: 1.5rem;
}
.auth-form h1 { margin-top: 0; color: var(--red, #DA291C); }
.chip-logout {
  background: #fff;
  color: var(--red, #DA291C);
  border: 2px solid #fff;
  font-weight: 700;
  cursor: pointer;
}
.chip-logout:hover { background: var(--yellow, #FFC72C); border-color: var(--yellow, #FFC72C); }
/* `.chip { display: inline-flex }` would otherwise override the HTML hidden attribute */
.chip[hidden],
[hidden] { display: none !important; }

.link-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--red, #DA291C);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.auth-switch-wrap { margin-top: 1rem; text-align: center; }

/* Composed logo: emblem + wordmark on the red header, no white box */
.brand {
  min-width: 0;
}
.brand-mark.is-logo,
.brand-mark.is-emblem {
  width: auto;
  height: 44px;
  max-width: min(22vw, 58px);
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
}
.brand-word {
  height: 36px;
  width: auto;
  max-width: min(48vw, 240px);
  object-fit: contain;
  object-position: left center;
  background: transparent;
  flex-shrink: 1;
  min-width: 0;
}
@media (min-width: 700px) {
  .brand-mark.is-logo,
  .brand-mark.is-emblem {
    height: 52px;
    max-width: 64px;
  }
  .brand-word {
    height: 42px;
    max-width: 280px;
  }
}
body.has-brand-word .brand-name { display: none; }
.logo-admin { max-width: 960px; margin: 0 auto 2.5rem; padding: 0 1rem; }
.logo-live { margin: 0 0 1.4rem; }
.logo-live h2,
.logo-section h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
}
.logo-live-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--red, #DA291C);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  min-height: 5.5rem;
}
.logo-live-mark {
  height: 56px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  background: transparent;
}
.logo-live-word {
  height: 46px;
  width: auto;
  max-width: min(70vw, 420px);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
.logo-live-fallback {
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
}
.logo-section { margin: 0 0 1.6rem; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.logo-grid--emblem {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.logo-grid--wordmark {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .logo-grid--wordmark { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .logo-grid--emblem { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.logo-pick {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.85rem 0.7rem 0.65rem;
  background: var(--red, #DA291C);
  border: 3px solid rgba(255, 199, 44, 0.35);
  border-radius: 16px;
  cursor: pointer;
  min-height: 7.5rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.logo-pick--emblem { min-height: 7.2rem; padding: 0.7rem 0.4rem 0.55rem; }
.logo-pick--wordmark { min-height: 6.5rem; }
.logo-pick img {
  width: 100%;
  height: 5.4rem;
  object-fit: contain;
  display: block;
  background: transparent;
}
.logo-pick--emblem img { height: 5.2rem; }
.logo-pick--wordmark img { height: 4.6rem; }
.logo-pick-num {
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--red, #DA291C);
  background: var(--yellow, #FFC72C);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.logo-pick-badge {
  margin-top: 0.35rem;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--yellow, #FFC72C);
}
.logo-pick:hover { border-color: var(--yellow, #FFC72C); transform: translateY(-1px); }
.logo-pick.is-selected {
  border-color: var(--yellow, #FFC72C);
  box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.4);
}

/* Demo lock: no customer orders until the owner unlocks */
body.orders-locked .demo-banner-customer.is-live,
body.orders-live .demo-banner-customer.is-locked,
body:not(.orders-locked) .demo-banner-customer.is-locked { display: none; }
body.orders-locked .demo-banner-customer.is-locked { display: block; }
body.orders-live .demo-banner-customer.is-live { display: block; }
body.gestore .demo-banner-customer { display: none !important; }
body.gestore.orders-locked .demo-banner-gestore.is-locked { display: block; }
body.gestore.orders-locked .demo-banner-gestore.is-live,
body.gestore.orders-live .demo-banner-gestore.is-locked { display: none; }
body.gestore.orders-live .demo-banner-gestore.is-live { display: block; }
body:not(.gestore) .demo-banner-gestore { display: none !important; }

.orders-locked-box {
  background: #fff4e5;
  border: 2px solid var(--red, #DA291C);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  color: #5a120c;
  font-weight: 600;
  line-height: 1.45;
}
.orders-locked-box p { margin: 0; }
body.orders-locked #btn-submit-order { display: none; }

.site-lock-admin { max-width: 960px; margin: 0 auto 1.25rem; padding: 0 1rem; }
.site-lock-card {
  background: #fff;
  border: 3px solid var(--red, #DA291C);
  border-radius: 16px;
  padding: 1rem 1.15rem 1.15rem;
  box-shadow: 0 4px 16px rgba(181, 30, 20, 0.12);
}
.site-lock-card.is-live { border-color: #1f7a3a; }
.site-lock-card h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.site-lock-card p { margin: 0 0 0.85rem; }

/* Messages admin */
.messages-admin { max-width: 720px; margin: 0 auto; padding: 0 1rem 3rem; }
.msg-section {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.15rem;
  margin: 0 0 1rem;
  box-shadow: 0 6px 18px rgba(218, 41, 28, 0.06);
}
.msg-section h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--red, #DA291C);
}
.msg-section > p { margin: 0 0 0.85rem; }
.msg-section .hint { margin: 0.55rem 0 0; }
.msg-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}
.msg-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.msg-switch-ui {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 32px;
  background: #d9c7b0;
  border-radius: 999px;
  transition: background 0.15s;
}
.msg-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.msg-switch input:checked + .msg-switch-ui {
  background: var(--red, #DA291C);
}
.msg-switch input:checked + .msg-switch-ui::after {
  transform: translateX(20px);
  background: var(--yellow, #FFC72C);
}
.msg-switch input:focus-visible + .msg-switch-ui {
  outline: 3px solid var(--yellow, #FFC72C);
  outline-offset: 2px;
}
.msg-switch input:disabled + .msg-switch-ui { opacity: 0.6; }
.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
}
.msg-actions .btn { min-height: 44px; }
.msg-section textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  min-height: 5.2rem;
  resize: vertical;
  background: #fff;
}
.msg-section textarea:focus {
  outline: 2px solid var(--yellow, #FFC72C);
  border-color: var(--red, #DA291C);
}
.msg-preview {
  margin: 0.4rem 0 0.2rem;
  background: var(--bg);
  border-radius: 14px;
  padding: 0.8rem 0.85rem 0.35rem;
}
.msg-preview h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}
.msg-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.7rem;
}
.msg-preview-chip {
  min-height: 40px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.msg-preview-chip.is-active {
  background: var(--red, #DA291C);
  border-color: var(--red, #DA291C);
  color: #fff;
}
.msg-preview .track-status-msg { margin-bottom: 0.6rem; }
.msg-perm { font-weight: 700; margin: 0.7rem 0 0; }
.msg-perm-granted { color: var(--leaf, #1F7A3A); }
.msg-perm-denied { color: var(--red-dark, #B51E14); }


/* Campaigns admin */
.campaigns-admin { max-width: 800px; margin: 0 auto; padding: 0 1rem 3rem; }
.camp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.camp-filters { margin: 0; flex: 1 1 auto; }
.camp-toolbar .btn { min-height: 44px; }
.camp-list {
  display: grid;
  gap: 0.75rem;
}
.camp-card {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 0.7rem;
  box-shadow: 0 6px 18px rgba(218, 41, 28, 0.06);
  min-height: 96px;
}
.camp-card:hover { border-color: var(--red, #DA291C); }
.camp-card-media, .camp-card-ph {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--red, #DA291C), #8a160f);
}
.camp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.camp-card-body { flex: 1 1 auto; min-width: 0; }
.camp-card-body h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0.2rem 0 0.2rem;
}
.camp-card-body p { margin: 0; font-size: 0.9rem; }
.camp-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  background: #eee3d3;
  color: var(--text);
}
.camp-chip-draft { background: #eee3d3; }
.camp-chip-ready { background: var(--yellow, #FFC72C); color: var(--yellow-ink, #5C3A00); }
.camp-chip-published { background: var(--leaf-soft, #E3F6E8); color: var(--leaf, #1F7A3A); }
.camp-chip-paused { background: var(--orange-soft, #FFE0B3); color: var(--orange-dark, #C65E00); }
.camp-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.camp-copy-lab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.camp-copy-lab label { margin: 0; }
.btn-copy {
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  flex: 0 0 auto;
}
.btn-copy.is-copied {
  background: var(--leaf-soft, #E3F6E8);
  color: var(--leaf, #1F7A3A);
  border-color: var(--leaf, #1F7A3A);
}
.camp-preview {
  margin: 0.6rem 0 0.2rem;
  background: var(--bg);
  border-radius: 14px;
  padding: 0.8rem 0.85rem 1rem;
}
.camp-preview h3 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.camp-preview-hint {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted, #6A4A36);
}
.camp-phone {
  max-width: 360px;
  margin: 0 auto;
  background: #f6f1ea;
  border: 3px solid var(--red, #DA291C);
  border-radius: 32px;
  padding: 0.7rem 0.42rem 0.95rem;
  box-shadow: 0 16px 32px rgba(28, 16, 12, 0.22);
}
.camp-phone-bar {
  display: flex;
  justify-content: center;
  margin: 0.1rem 0 0.45rem;
}
.camp-phone-bar span {
  width: 88px;
  height: 8px;
  border-radius: 999px;
  background: #d7cfc6;
}
.camp-feed {
  background: #F0F2F5;
  border-radius: 6px;
  overflow: hidden;
}
.camp-ad {
  background: #fff;
  color: #050505;
}
.camp-ad-head {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0.75rem 0.3rem;
}
.camp-ad-avatar,
.camp-ad-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--red, #DA291C);
  display: block;
}
.camp-ad-mark {
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--yellow, #FFC72C);
}
.camp-ad-id { flex: 1 1 auto; min-width: 0; }
.camp-ad-id strong,
.camp-ad-head strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: #050505;
}
.camp-ad-id em,
.camp-ad-head em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  color: #65676B;
  margin-top: 0.08rem;
}
.camp-ad-menu {
  flex: 0 0 auto;
  color: #65676B;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.15rem 0.1rem;
  user-select: none;
}
.camp-ad-body {
  margin: 0;
  padding: 0.1rem 0.75rem 0.55rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #050505;
}
.camp-ad-more {
  display: inline;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: #65676B;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  min-height: 0;
  text-decoration: none;
}
.camp-ad-more:hover,
.camp-ad-more:focus-visible {
  text-decoration: underline;
  color: #050505;
}
.camp-ad-media {
  background: #E4E6EB;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.camp-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camp-preview-ph {
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #65676B;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
  background: #E4E6EB;
}
.camp-ad-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem 0.75rem;
  background: #F0F2F5;
}
.camp-ad-copy { flex: 1 1 auto; min-width: 0; }
.camp-ad-host {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #65676B;
}
.camp-ad-copy strong { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.25; color: #050505; }
.camp-ad-copy span { display: block; font-size: 0.8rem; color: #65676B; margin-top: 0.12rem; }
.camp-ad-cta {
  flex: 0 0 auto;
  background: #E4E6EB;
  color: #050505;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  max-width: 44%;
  text-align: center;
}
.camp-dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.45rem;
  margin: 0.6rem 0 0;
}
.camp-dish {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.3rem;
  min-height: 44px;
  text-align: center;
}
.camp-dish img { width: 100%; height: 68px; object-fit: cover; border-radius: 8px; }
.camp-dish span { font-size: 0.7rem; font-weight: 650; line-height: 1.2; }
.camp-dish.is-active {
  border-color: var(--red, #DA291C);
  box-shadow: 0 0 0 2px var(--yellow, #FFC72C);
}
.camp-kit h3 { margin: 1rem 0 0.5rem; font-size: 1rem; }
.camp-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: campstep;
}
.camp-steps li {
  counter-increment: campstep;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}
.camp-steps li::before {
  content: counter(campstep);
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red, #DA291C);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.camp-steps a { color: var(--red-dark, #B51E14); font-weight: 700; text-decoration: underline; }
@media (max-width: 560px) {
  .camp-inline { grid-template-columns: 1fr; }
  .camp-card { align-items: flex-start; }
}

/* Campaigns guide (owner area only) */
.camp-guide {
  max-width: 800px;
  margin: 0 auto 1.1rem;
  padding: 0 1rem;
}
.camp-guide-box {
  border: 2px solid var(--yellow, #FFC72C);
  border-radius: var(--radius);
  background: var(--bg-warm, #FFE8C2);
  box-shadow: var(--shadow);
}
.camp-guide-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 26;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  background: var(--yellow, #FFC72C);
  color: var(--yellow-ink, #5C3A00);
  border-radius: calc(var(--radius) - 2px);
  font-weight: 750;
  font-size: 1rem;
}
.camp-guide-box[open] .camp-guide-bar {
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  border-bottom: 2px solid var(--red, #DA291C);
}
.camp-guide-bar::-webkit-details-marker,
.camp-guide-bar::marker { display: none; content: ""; }
.camp-guide-bar::before {
  content: "";
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--red, #DA291C);
  box-shadow: inset 0 0 0 2px #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC72C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.95rem;
  transition: transform 0.15s ease;
}
.camp-guide-box[open] .camp-guide-bar::before { transform: rotate(180deg); }
.camp-guide-bar-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.camp-guide-bar-hint {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--yellow-ink, #5C3A00);
  opacity: 0.9;
}
.camp-guide-box:not([open]) .camp-guide-close { display: none; }
.camp-guide-box[open] .camp-guide-open { display: none; }
.camp-guide-panel {
  padding: 1rem 1rem 1.4rem;
  background: var(--bg, #FFF8EE);
  border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
}
.camp-guide-head h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.camp-guide-head > p { margin: 0 0 0.85rem; font-size: 0.95rem; }
.camp-guide-pdf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1rem !important;
}
.camp-guide-pdf-row .btn { min-height: 44px; }
.camp-guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
}
.camp-guide-toc a {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--red-dark, #B51E14);
  background: var(--yellow-soft, #FFE89A);
  border: 1.5px solid var(--yellow, #FFC72C);
  border-radius: 999px;
}
.camp-guide-toc a:hover { background: var(--yellow, #FFC72C); color: var(--yellow-ink, #5C3A00); }
.camp-guide-sec {
  scroll-margin-top: calc(var(--header-h) + 64px);
  margin: 0 0 1.35rem;
  padding: 0.95rem 0.95rem 1rem;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #F0D7B0);
  border-radius: var(--radius-sm, 12px);
}
.camp-guide-sec h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
}
.camp-guide-sec p { margin: 0 0 0.7rem; font-size: 0.95rem; }
.camp-guide-sec p:last-child { margin-bottom: 0; }
.camp-guide-list, .camp-guide-steps, .camp-guide-groups {
  margin: 0 0 0.75rem;
  padding: 0 0 0 0.15rem;
  display: grid;
  gap: 0.45rem;
}
.camp-guide-list li, .camp-guide-steps li, .camp-guide-groups li {
  margin: 0;
  padding: 0.45rem 0.55rem 0.45rem 0.15rem;
  font-size: 0.95rem;
}
.camp-guide-steps {
  list-style: none;
  counter-reset: cgstep;
  gap: 0.55rem;
}
.camp-guide-steps li {
  position: relative;
  padding: 0.65rem 0.7rem 0.65rem 3rem;
  background: var(--yellow-soft, #FFE89A);
  border-radius: 12px;
  border: 1px solid var(--border, #F0D7B0);
  counter-increment: cgstep;
}
.camp-guide-steps li::before {
  content: counter(cgstep);
  position: absolute;
  left: 0.55rem;
  top: 0.6rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--red, #DA291C);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.camp-guide-steps a, .camp-guide-list a, .camp-guide-sec a {
  color: var(--red-dark, #B51E14);
  font-weight: 700;
}
.camp-guide-groups { list-style: none; }
.camp-guide-groups li {
  padding: 0.75rem 0.8rem 0.75rem 0.9rem;
  background: var(--leaf-soft, #E3F6E8);
  border-left: 5px solid var(--leaf, #1F7A3A);
  border-radius: 0 12px 12px 0;
}
.camp-guide-callout {
  margin: 0.3rem 0 0;
  padding: 0.85rem 0.95rem;
  background: var(--yellow, #FFC72C);
  color: var(--yellow-ink, #5C3A00);
  border-radius: 14px;
  border: 2px solid var(--red, #DA291C);
}
.camp-guide-callout p { margin: 0; font-size: 0.98rem; }
.camp-guide-fig {
  margin: 0.4rem 0 0.9rem;
}
.camp-guide-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--bg, #FFF8EE);
  border: 1px solid var(--border, #F0D7B0);
}
.camp-guide-fig figcaption {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted, #6A4A36);
  font-weight: 600;
}
.camp-guide-sec-dont {
  background: var(--red-soft, #FFD6D1);
  border-color: var(--red, #DA291C);
}
.camp-guide-dont {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.camp-guide-dont li {
  position: relative;
  padding: 0.55rem 0.65rem 0.55rem 2.5rem;
  background: #fff;
  border-radius: 10px;
  font-weight: 650;
  font-size: 0.92rem;
}
.camp-guide-dont li::before {
  content: "✕";
  position: absolute;
  left: 0.55rem;
  top: 0.5rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--red, #DA291C);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
@media (max-width: 560px) {
  .camp-guide { padding: 0 0.75rem; }
  .camp-guide-bar { min-height: 48px; padding: 0.55rem 0.8rem; }
  .camp-guide-panel { padding: 0.85rem 0.75rem 1.15rem; }
  .camp-guide-sec { padding: 0.8rem 0.7rem 0.85rem; }
  .camp-guide-toc a { flex: 1 1 calc(50% - 0.4rem); }
}

/* Launch rotation on Campagne */
.camp-rotation {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1rem 1rem;
  background: var(--surface, #fff);
  border: 2px solid var(--yellow, #FFC72C);
  border-radius: var(--radius);
}
.camp-rotation h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.camp-rotation > p { margin: 0 0 0.75rem; font-size: 0.92rem; color: var(--text-muted, #6A4A36); }
.camp-rotation-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.camp-rotation-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg, #FFF8EE);
  border: 1px solid var(--border, #F0D7B0);
  border-radius: 12px;
  font-size: 0.9rem;
}
.camp-rotation-item.is-in { border-color: var(--leaf, #1F7A3A); background: var(--leaf-soft, #E3F6E8); }
.camp-rotation-days { font-weight: 800; color: var(--red-dark, #B51E14); }
.camp-rotation-cat { font-weight: 700; }
.camp-rotation-state { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: var(--leaf, #1F7A3A); }
.camp-rotation-state.is-missing { color: var(--orange-dark, #C65E00); }
.camp-rotation .btn { min-height: 44px; width: 100%; }
.camp-rotation-ok { margin: 0; }
.camp-chip-launch {
  background: var(--yellow, #FFC72C);
  color: var(--yellow-ink, #5C3A00);
  margin-left: 0.3rem;
}
.camp-launch-badge {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.4rem 0.75rem;
  background: var(--yellow, #FFC72C);
  color: var(--yellow-ink, #5C3A00);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
}
.camp-card-body .camp-chip + .camp-chip { margin-left: 0.3rem; }
.camp-ad-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0 0 0.85rem;
}
.camp-ad-lang-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted, #6A4A36);
}
.camp-ad-lang-btns {
  display: inline-flex;
  border: 1.5px solid var(--red, #DA291C);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.camp-ad-lang-btns button {
  min-height: 36px;
  padding: 0.2rem 0.85rem;
  border: 0;
  background: transparent;
  color: var(--red-dark, #B51E14);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}
.camp-ad-lang-btns button + button {
  border-left: 1.5px solid var(--red, #DA291C);
}
.camp-ad-lang-btns button.is-active {
  background: var(--red, #DA291C);
  color: #fff;
}
.camp-missing-it {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange-dark, #C65E00);
}
.camp-card-body .camp-missing-it { margin: 0.25rem 0 0; }
.camp-publish-lang {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-left: 4px solid var(--red, #DA291C);
  background: var(--yellow-soft, #FFF4CC);
  border-radius: 0 10px 10px 0;
}
.camp-publish-lang strong {
  display: block;
  font-size: 0.92rem;
  margin: 0 0 0.2rem;
}
.camp-publish-lang p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted, #6A4A36);
}
.camp-kit-it {
  margin-top: 0.45rem;
}
@media (max-width: 560px) {
  .camp-rotation { padding: 0.8rem 0.75rem; }
  .camp-rotation-state { margin-left: 0; width: 100%; }
}


/* Hero secondary CTA */
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid var(--yellow);
}
.btn-hero-ghost:hover { background: var(--yellow); color: var(--yellow-ink); }

/* Saan kami — customer location */
.saan-kami {
  max-width: 1100px;
  margin: 1.1rem auto 0.4rem;
  padding: 0 1rem;
}
.saan-kami .saan-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}
.saan-kami h2,
.saan-kami h3 {
  font-family: var(--display);
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  color: var(--text);
}
.saan-kami h3 { font-size: 1.15rem; }
.saan-kami p { margin: 0 0 0.55rem; }
.saan-addr {
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.4;
}
.saan-note { color: var(--text-muted); font-size: 0.9rem; }
.saan-note span { font-weight: 650; color: var(--text); }
.saan-pending { color: var(--text-muted); }
.saan-pickup { font-size: 0.88rem; color: var(--text-muted); }
.saan-privacy { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0 !important; }
.saan-dist {
  font-weight: 700;
  font-size: 1rem;
  color: var(--red-dark);
}
.saan-dist.is-ready { color: var(--leaf); }
.saan-ests { display: flex; flex-direction: column; gap: 0.1rem; margin-top: 0.2rem; }
.saan-est { display: block; font-weight: 500; font-size: 0.82rem; color: var(--text-muted); }
.saan-map {
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0.35rem 0 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  z-index: 0;
  position: relative;
}
.saan-map .leaflet-container {
  height: 100%;
  width: 100%;
  z-index: 0;
  background: var(--bg-warm);
  font-family: var(--font);
}
.saan-dirs { margin: 0.7rem 0 0.55rem; }
.saan-dirs-label {
  display: block;
  font-weight: 650;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.saan-dirs-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.saan-dirs-btns .btn { min-height: 42px; padding: 0.55rem 0.9rem; font-size: 0.88rem; }
.saan-kami .saan-ask { min-height: 42px; }

.saan-pin { background: none !important; border: 0 !important; }
.saan-pin-dot {
  display: block;
  width: 20px;
  height: 20px;
  margin: 4px auto 0;
  background: var(--red);
  border: 2px solid var(--yellow);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(28, 16, 12, 0.35);
}

/* Compact (checkout, confirm, track, owner preview) */
.saan-kami--compact {
  max-width: none;
  margin: 0 0 1rem;
  padding: 0;
}
.saan-kami--compact .saan-inner {
  box-shadow: none;
  padding: 0.85rem 0.9rem;
}
.saan-kami--compact .saan-map { height: 180px; }
.drawer-checkout .saan-kami--compact { margin: 0 0 1rem; }
.confirm-wrap .saan-kami--compact,
.track-wrap .saan-kami--compact { margin: 1rem 0; }

#store-address { font-weight: 650; }

/* Owner location page */
.location-admin { max-width: 720px; margin: 0 auto; padding: 0 1rem 3rem; }
.loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 0.8rem;
}
@media (min-width: 560px) {
  .loc-grid { grid-template-columns: 1fr 1fr; }
  .saan-map { height: 260px; }
}
.loc-search-row { display: flex; gap: 0.4rem; align-items: stretch; }
.loc-search-row input { flex: 1; min-width: 0; }
.loc-search-row .btn { flex: 0 0 auto; }
.loc-search-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.loc-search-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.loc-search-item:last-child { border-bottom: 0; }
.loc-search-item:hover, .loc-search-item:focus { background: var(--yellow-soft); }
.loc-editor-map {
  height: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0.4rem 0 1rem;
  background: var(--bg-warm);
  position: relative;
  z-index: 0;
}
.loc-editor-map .leaflet-container {
  height: 100%;
  width: 100%;
  z-index: 0;
  font-family: var(--font);
}
.loc-preview-sec {
  margin-top: 1.4rem;
}
.loc-preview-sec h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}
.loc-preview.saan-kami--compact .saan-inner {
  border-style: dashed;
}
