/* Food theme: menu with add/remove steppers, cart, sticky cart bar.
   Everything else is in base.css. */

/* ---------- menu ---------- */
.menu-tabs {
  position: sticky;
  top: 64px;
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 32px -20px 0;
  padding: 12px 20px;
  overflow-x: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .menu-tabs { margin: 32px 0 0; padding: 12px 0; } }
.menu-tabs .chip { flex: none; min-height: 40px; text-decoration: none; display: inline-flex; align-items: center; }

.menu-section { padding-top: 40px; scroll-margin-top: 140px; }
.menu-section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 8px; }
.menu-items { border-bottom: 1px solid var(--hair); }
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
}
.dish-name { font-weight: 700; font-size: 17px; line-height: 1.35; }
.dish-note { grid-column: 1; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.dish-price { grid-column: 1; font-weight: 600; font-size: 15px; }
.dish-price.on-request { font-weight: 500; color: var(--ink-soft); font-size: 14px; }
.dish-action { grid-column: 2; grid-row: 1 / span 3; }
.tags { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: 2px; }
.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font: 500 10px/1.6 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.menu-note { margin-top: 16px; }

/* ---------- add / stepper ---------- */
.add-btn {
  min-height: 44px;
  min-width: 88px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.add-btn:hover { background: var(--ink); color: var(--paper); }
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.stepper button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 600 20px/1 var(--sans);
  cursor: pointer;
}
.stepper output { min-width: 20px; text-align: center; font-weight: 700; }
.add-btn:focus-visible, .stepper button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- cart ---------- */
.cart-empty { margin-top: 12px; color: var(--ink-soft); }
.cart-list { margin-top: 12px; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}
.cart-line-name { font-weight: 600; }
.cart-line-sub { grid-column: 1; color: var(--ink-soft); font-size: 14px; }
.cart-line .stepper { grid-column: 2; grid-row: 1 / span 2; }
.cart-line .stepper button { width: 38px; height: 38px; font-size: 18px; }
.totals { display: grid; gap: 6px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--hair); }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--ink-soft); }
.totals dd { font-weight: 600; text-align: right; }
.totals .grand dt, .totals .grand dd { color: var(--ink); font-weight: 700; font-size: 18px; }

/* ---------- sticky cart bar ---------- */
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 32px);
  max-width: 480px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.45);
  text-decoration: none;
  font-weight: 600;
  transform: translateX(-50%);
}
.cart-bar-total { margin-left: auto; font-weight: 700; }
.cart-bar-cta { color: var(--paper); opacity: 0.75; font-size: 14px; white-space: nowrap; }
.cart-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer { padding-bottom: 104px; }

@media (prefers-reduced-motion: reduce) {
  .add-btn { transition: none; }
}
