/* ============================================================
   ORDER PAGE – Menu + right “Order now” column
   Loaded after style.css / modern.css / loader.css
   ============================================================ */

.page-order main.order-main {
  max-width: 72rem;
  margin: 0 auto;
  padding-top: 0;
}

/* ─── Coming soon banner (restored; order-specific spacing) ─ */
.page-order .coming-soon-banner--order {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* ─── Top hero – light cream background (distinct from dark retail heroes) ─ */
.order-hero--light {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 1.35rem;
  padding: clamp(1.85rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
  border-radius: 0 0 clamp(18px, 3.5vw, 26px) clamp(18px, 3.5vw, 26px);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(212, 184, 122, 0.35) 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 0% 100%, rgba(245, 237, 219, 0.9) 0%, transparent 48%),
    linear-gradient(165deg, #fffefb 0%, #faf6ef 38%, #f3e9d4 100%);
  border: 1px solid rgba(184, 151, 93, 0.35);
  border-top: none;
  box-shadow:
    0 16px 48px rgba(42, 21, 8, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.order-hero__texture {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8975d' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.order-hero--light .order-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.order-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--caramel-600);
}

.order-hero--light .order-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.55rem);
  line-height: 1.12;
  color: var(--brand-900);
  letter-spacing: -0.02em;
}

.order-hero--light .order-hero__lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.9vw, 1.06rem);
  line-height: 1.65;
  color: var(--text-mid);
}

/* ─── Intro line ───────────────────────────────────────────── */
.order-page-intro {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 0 1rem;
}

.order-page-intro p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-mid);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.order-page-intro__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel-600);
  margin-bottom: 0.4rem;
}

/* ─── Right column: Order now (sticky cart panel) ───────────── */
.page-order .cart-panel--order-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}

.page-order .cart-panel__sidebar-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.page-order .cart-panel--order-sidebar h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.page-order .cart-panel__soon-note {
  font-size: 0.85rem;
  color: #6b5344;
  margin-top: 0.75rem;
}

/* ─── Menu item badge (in-store only Clover items) ────────── */
.menu-item-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--brand-800);
  background: rgba(184, 151, 93, 0.22);
  border: 1px solid rgba(184, 151, 93, 0.4);
  border-radius: 4px;
}

.menu-item-preview-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--caramel-600);
  font-weight: 500;
}

.item-options-browse-note {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--brand-800);
  background: rgba(184, 151, 93, 0.12);
  border: 1px solid rgba(184, 151, 93, 0.25);
  border-radius: 8px;
}

.page-order .item-options-actions .confirm-btn[disabled],
.page-order .confirm-btn.is-browse-only {
  cursor: not-allowed;
  opacity: 0.9;
  background: linear-gradient(135deg, rgba(107, 66, 38, 0.35), rgba(61, 35, 20, 0.55));
  color: rgba(252, 249, 244, 0.95);
  border: 1px dashed rgba(212, 184, 122, 0.45);
}

/* ─── Menu grid: don’t stretch items in the same row to match a tall neighbor ─ */
@media (min-width: 700px) {
  .page-order .menu-categories {
    align-items: start;
  }
}

/* ─── Item cards: solid surface + visible hover (overrides duplicate / motion rules) ─ */
.page-order .menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.75rem 1rem;
  padding: 1rem 1rem;
  margin: 0 0 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  align-self: start;
  box-shadow: none;
}

.page-order .menu-item:hover {
  background: var(--surface-warm);
  border-color: var(--caramel-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.page-order .menu-item:last-child {
  margin-bottom: 0;
}

/* Options panel inside modal (not inline in the grid row) */
.item-options-panel--modal {
  flex-basis: auto;
  margin-top: 0;
  max-width: 100%;
}

/* ─── Item options modal ─────────────────────────────────────────────────── */
.order-item-options-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.order-item-options-modal[hidden] {
  display: none !important;
}

.order-item-options-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 14, 5, 0.45);
  backdrop-filter: blur(4px);
}

.order-item-options-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: min(92vh, 44rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 1rem 1rem 0 0;
  box-shadow:
    0 -8px 40px rgba(30, 14, 5, 0.18),
    0 0 0 1px rgba(184, 151, 93, 0.2);
  overflow: hidden;
}

@media (min-width: 540px) {
  .order-item-options-modal {
    align-items: center;
    padding: 1rem;
  }

  .order-item-options-modal__dialog {
    border-radius: 1rem;
    max-height: min(88vh, 44rem);
  }
}

.order-item-options-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.order-item-options-modal__title-wrap {
  min-width: 0;
}

.order-item-options-modal__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-800);
}

.order-item-options-modal__price {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.order-item-options-modal__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.5rem;
  background: rgba(184, 151, 93, 0.12);
  color: var(--brand-800);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.order-item-options-modal__close:hover {
  background: rgba(184, 151, 93, 0.22);
}

.order-item-options-modal__body {
  padding: 1rem 1rem 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
  .page-order .menu-item:hover {
    transform: none;
  }
}
