/* ==========================================================================
   Order + reserve flows
   ========================================================================== */

.order-step { display: none; padding-block: calc(var(--sp-6) + 3rem) var(--sp-7); }
.order-step.is-active { display: block; }

.order-head { max-width: 60ch; }
.order-facts { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.fact {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
  padding: .35rem .85rem; border: 1px solid var(--line-soft); border-radius: 999px;
}

/* ---------- two-column order layout ---------- */
.order-layout { display: grid; gap: var(--sp-5); margin-top: var(--sp-5); align-items: start; }
@media (min-width: 1000px) {
  .order-layout { grid-template-columns: minmax(0,1fr) 360px; gap: var(--sp-6); }
}

.order-menu { min-width: 0; }
.order-menu .menu-nav { top: 68px; }

/* ---------- cart ---------- */
.order-cart { display: none; }
@media (min-width: 1000px) {
  .order-cart { display: block; position: sticky; top: 96px; }
}
.cart-inner {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: var(--sp-4);
  max-height: calc(100svh - 130px); overflow-y: auto;
}
.cart-lines { margin-top: var(--sp-3); }
.cart-line {
  display: grid; grid-template-columns: auto 1fr auto; gap: .75rem;
  align-items: start; padding: .7rem 0; border-bottom: 1px solid var(--line-soft);
}
.cart-line-name { font-size: .92rem; line-height: 1.4; }
.cart-line-price { font-size: .9rem; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.qty button {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 1rem; line-height: 1;
  transition: background var(--dur) var(--ease);
}
.qty button:hover { background: rgba(201,184,126,.12); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 24px; text-align: center; font-size: .88rem; font-variant-numeric: tabular-nums; }

.cart-totals { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: .25rem 0; font-size: .92rem; color: var(--text-dim); }
.total-row-grand { color: var(--cream); font-size: 1.05rem; padding-top: .6rem; margin-top: .4rem; border-top: 1px solid var(--line-soft); }
.total-row-grand span:last-child { color: var(--gold); }

/* ---------- menu items with an add button ---------- */
.menu-item.orderable { grid-template-columns: 1fr auto; }
.add-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; min-height: 40px;
  background: transparent; border: 1px solid rgba(201,184,126,.45); border-radius: var(--radius);
  color: var(--gold); cursor: pointer;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  transition: all var(--dur) var(--ease);
}
.add-btn:hover { background: rgba(201,184,126,.12); border-color: var(--gold); }
.add-btn.is-added { background: var(--gold); border-color: var(--gold); color: var(--forest-ink); }

.in-cart-badge {
  display: inline-block; min-width: 22px; padding: 0 .35rem;
  background: var(--gold); color: var(--forest-ink);
  border-radius: 999px; font-size: .7rem; font-weight: 500; text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- mobile order bar + cart sheet ---------- */
.order-bar {
  position: fixed; inset: auto 0 0; z-index: 85;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(22,33,26,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
@media (min-width: 1000px) { .order-bar { display: none !important; } }
.order-bar-summary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: none; border: 0; color: var(--text); cursor: pointer;
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
}
.order-bar-count {
  display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .4rem;
  background: var(--gold); color: var(--forest-ink); border-radius: 999px;
  font-size: .78rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
.order-bar-total { margin-left: auto; color: var(--gold); }

body.has-order-bar { padding-bottom: 0; }

/* cart as a bottom sheet on small screens */
@media (max-width: 999px) {
  .order-cart.is-open {
    display: block; position: fixed; inset: auto 0 0; z-index: 95;
    max-height: 82svh;
  }
  .order-cart.is-open .cart-inner {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 0;
    max-height: 82svh;
    padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-lg);
  }
  .cart-scrim {
    position: fixed; inset: 0; z-index: 94; background: rgba(0,0,0,.6);
    opacity: 0; transition: opacity .3s var(--ease);
  }
  .cart-scrim.is-open { opacity: 1; }
}

/* ---------- confirmation ---------- */
.confirm-mark { color: var(--gold); width: 64px; margin: 0 auto; }
.confirm-mark svg { width: 100%; }
.confirm-code {
  font-family: var(--display); font-size: var(--step-4); letter-spacing: .18em;
  margin: .2em 0; line-height: 1;
}

.summary-line {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: .45rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem;
}
.summary-line:last-of-type { border-bottom: 0; }
.summary-line .qty-badge { color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- reservation-specific ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.slot-grid .choice span { width: 100%; }

.party-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: .5rem; }

.step-dots { display: flex; gap: .5rem; justify-content: center; margin-bottom: var(--sp-5); }
.step-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step-dot.is-on { background: var(--gold); transform: scale(1.35); }

.loading {
  display: inline-block; width: 15px; height: 15px;
  border: 2px solid rgba(201,184,126,.28); border-top-color: var(--gold);
  border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-busy { pointer-events: none; opacity: .75; }
