/* ============================================================================
   SMOKEHOUSE 61 - ONLINE ORDERING
   DoorDash-inspired UI  ·  single restaurant / single outlet
   ========================================================================== */

:root {
  --red:          #e23744;   /* primary accent  */
  --red-dark:     #c92b37;
  --red-soft:     #fdecec;
  --ink:          #191919;
  --ink-2:        #4f4f4f;
  --ink-3:        #767676;
  --line:         #e6e6e6;
  --line-2:       #f0f0f0;
  --bg:           #ffffff;
  --bg-2:         #f7f7f7;
  --green:        #1c8a4d;
  --amber:        #b8860b;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 6px 24px rgba(0,0,0,.06);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.16);
  --header-h:     60px;
  --platform-bar-h: 40px;
  --page-pad:     clamp(16px, 3vw, 40px);
  --content-max:  1680px;
  --font:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); font-size: 15px; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--page-pad); }
.layout-full {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.muted { color: var(--ink-3); }
.hidden { display: none !important; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; border-radius: 999px;
  padding: 12px 22px; transition: transform .06s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:disabled { background: #e7a9ad; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--bg-2); color: var(--ink); }
.btn-ghost:hover { background: #ededed; }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---- Account header (marketplace; mirrors irestrack-ui consumer chrome) ---- */
.acct-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.acct-menu-wrap { position: relative; }
.acct-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff;
}
.acct-menu-trigger:hover { border-color: var(--ink-3); }
.avatar {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none;
}
.acct-menu-avatar { width: 32px; height: 32px; font-size: 12px; }
.acct-menu-chevron { font-size: 10px; color: var(--ink-3); }
.acct-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(320px, calc(100vw - 24px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); z-index: 120; overflow: hidden;
}
.acct-menu-promo { background: linear-gradient(135deg, #f3e8ff, var(--red-soft)); padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.acct-menu-promo strong { display: block; font-size: 14px; margin-bottom: 4px; }
.acct-menu-promo a { color: var(--red); font-weight: 700; }
.acct-menu-user { display: flex; gap: 11px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line-2); }
.acct-menu-sub { font-size: 12.5px; color: var(--red); font-weight: 700; }
.acct-menu-links a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; font-weight: 600; font-size: 14px;
}
.acct-menu-links a:hover { background: var(--bg-2); }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-brand { background: var(--red-soft); color: var(--red); }
.acct-menu-signout { border-top: 1px solid var(--line-2); padding: 8px; }
.acct-menu-signout-btn { width: 100%; text-align: left; padding: 10px 14px; font-weight: 600; color: var(--ink-2); }
.acct-menu-signout-btn:hover { background: var(--bg-2); }
.acct-bell { position: relative; }
.acct-bell-dot {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  border-radius: 99px; background: var(--red); border: 2px solid #fff;
}
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; color: var(--ink-3);
  border: 1px solid var(--line); background: #fff;
}
.icon-btn:hover { border-color: var(--ink-3); color: var(--ink); }

/* ============================================================================
   HEADER
   ========================================================================== */
.mp-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.mp-platform-bar {
  position: relative;
  z-index: 65;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}
.mp-platform-bar__row,
.mp-platform-bar .layout-full {
  max-width: none;
}
.mp-platform-bar__row {
  height: var(--platform-bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.site-header .layout-full {
  max-width: none;
}
.mp-irestrack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fff;
}
.mp-irestrack-mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 900;
}
.mp-platform-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}
.mp-platform-acct { display: flex; align-items: center; flex-shrink: 0; }
.mp-platform-acct .acct-header-actions { gap: 6px; flex-wrap: nowrap; }
.mp-platform-acct .acct-menu-name { display: none; }
.mp-platform-acct .btn-ghost {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  padding: 7px 14px;
  font-size: 13px;
}
.mp-platform-acct .btn-ghost:hover { background: rgba(255,255,255,.22); }
.mp-platform-acct .acct-menu-trigger { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
.mp-platform-acct .acct-menu-chevron { color: rgba(255,255,255,.7); }
.mp-platform-acct .icon-btn { color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.mp-platform-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; flex-shrink: 0; }
.mp-platform-links a {
  padding: 6px 12px; border-radius: 999px; font-weight: 600;
  color: rgba(255,255,255,.88);
}
.mp-platform-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.mp-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding: 6px 10px;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}
.mp-nav-mobile {
  display: none !important;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--page-pad) 14px;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg);
  z-index: 70;
}
.mp-nav-mobile.open { display: flex !important; }
.mp-nav-mobile[hidden] { display: none !important; }
.mp-nav-mobile a {
  padding: 11px 4px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  border-radius: 8px;
}
.mp-nav-mobile a:hover { background: rgba(255,255,255,.1); }
body.mp-nav-open { overflow: hidden; }

.site-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  background: #fff;
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: var(--header-h);
  flex-wrap: nowrap;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; min-width: 0; flex-shrink: 0;
}
.brand .dot { width: 32px; height: 32px; border-radius: 10px; background: var(--red);
  display: grid; place-items: center; color: #fff; font-size: 16px; flex: none; }
.brand-logo { height: 36px; width: auto; max-width: 140px; object-fit: contain; flex: none; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.header-search {
  flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border-radius: 999px; padding: 10px 16px;
  border: 1px solid transparent;
}
.header-search:focus-within { border-color: var(--line); background: #fff; }
.header-search input { flex: 1; border: none; background: none; outline: none; min-width: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.nav-link { padding: 9px 12px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.nav-link:hover { background: var(--bg-2); color: var(--ink); }

.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 10px 16px; font-weight: 700;
}
.cart-btn:hover { background: #000; }
.cart-btn .count {
  background: var(--red); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.mp-flash { margin-top: 12px; }
.mp-main { min-height: 50vh; }

/* ============================================================================
   RESTAURANT HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #4a3030);
}
.hero-full {
  width: 100%;
  height: clamp(240px, 42vh, 480px);
}
.hero img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.hero-no-img img { display: none; }
.hero:not(.hero-no-img)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 30%, rgba(0,0,0,.45) 100%);
}

.hero-card {
  margin-top: -72px;
  position: relative; z-index: 2;
}
.hero-card-inner {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 26px;
}
.hero-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.hero-tagline { color: var(--ink-2); margin-top: 4px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.hero-meta .sep { color: var(--line); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); }
.rating .star { color: #f5a623; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600;
}
.pill-open  { background: #e7f5ec; color: var(--green); }
.pill-closed{ background: #fbe9e9; color: var(--red); }

/* ---- Service toggle (pickup / delivery) --------------------------------- */
.service-toggle {
  display: inline-flex; background: var(--bg-2); border-radius: 999px;
  padding: 4px; margin-top: 16px;
}
.service-toggle button {
  border-radius: 999px; padding: 9px 20px; font-weight: 700; font-size: 14px;
  color: var(--ink-3);
}
.service-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ============================================================================
   MENU LAYOUT
   ========================================================================== */
.menu-layout.layout-full,
.hero-card.layout-full {
  max-width: none;
}
.menu-layout {
  margin: 28px auto 60px;
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}

/* ---- Category rail ------------------------------------------------------- */
.cat-rail { position: sticky; top: calc(var(--header-h) + var(--platform-bar-h) + 16px); }
.cat-rail h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--ink-3); margin-bottom: 10px; }
.cat-rail a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--ink-2); margin-bottom: 2px;
}
.cat-rail a:hover { background: var(--bg-2); }
.cat-rail a.active { background: var(--red-soft); color: var(--red); }

/* ---- Menu sections ------------------------------------------------------- */
.menu-section { margin-bottom: 38px; scroll-margin-top: calc(var(--header-h) + var(--platform-bar-h) + 24px); }
.menu-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.menu-section .count { color: var(--ink-3); font-size: 14px; margin-bottom: 14px; }

.item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.item-card {
  display: flex; gap: 14px; text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; transition: box-shadow .15s ease, border-color .15s ease;
}
.item-card:hover { box-shadow: var(--shadow); border-color: #dcdcdc; }
.item-card.sold-out { opacity: .55; pointer-events: none; }
.item-info {
  flex: 1; min-width: 0; display: block; text-align: left;
  background: none; border: none; padding: 0; cursor: pointer; color: inherit;
}
.item-info .name { font-weight: 700; font-size: 15.5px; }
.item-info .desc {
  color: var(--ink-3); font-size: 13.5px; margin: 4px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.item-info .price { font-weight: 700; }
.add-inline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--red-soft); color: var(--red); border: 1.5px solid transparent;
  flex: none;
}
.add-inline:hover { background: var(--red); color: #fff; }
.item-tags { display: flex; gap: 6px; margin-bottom: 6px; }
.tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 6px;
}
.tag-pop { background: var(--red-soft); color: var(--red); }
.tag-veg { background: #e7f5ec; color: var(--green); }

.item-thumb {
  position: relative; width: 116px; height: 116px; flex: none;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-2);
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-thumb .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 30px; background: linear-gradient(135deg,#fbe3e4,#f7f0e8);
}
.add-fab {
  position: absolute; right: 7px; bottom: 7px;
  width: 36px; height: 36px; border-radius: 999px; background: #fff;
  box-shadow: var(--shadow); color: var(--ink); font-size: 22px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
  border: 1.5px solid var(--line);
}
.add-fab:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ============================================================================
   CART SIDEBAR  (sticky on desktop, slide-over on mobile)
   ========================================================================== */
.cart-panel {
  position: sticky; top: calc(var(--header-h) + var(--platform-bar-h) + 16px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.cart-panel.cart-panel-focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft), var(--shadow);
}
.cart-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px; border-bottom: 1px solid var(--line-2);
}
.cart-panel-head h3 { font-size: 18px; font-weight: 800; padding: 0; border: none; }
.cart-close {
  display: none; width: 36px; height: 36px; border-radius: 999px;
  background: var(--bg-2); font-size: 22px; line-height: 1;
}
.cart-items { max-height: 46vh; overflow-y: auto; padding: 6px 8px; }

.cart-empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.cart-empty .ico { font-size: 38px; margin-bottom: 8px; }

.cart-line { display: flex; gap: 10px; padding: 12px; border-radius: var(--radius-sm); }
.cart-line:hover { background: var(--bg-2); }
.cart-line .qpill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px;
  font-size: 13px; font-weight: 700; height: fit-content;
}
.cart-line .qpill button { width: 20px; height: 20px; color: var(--red); font-size: 16px;
  display: grid; place-items: center; }
.cart-line .l-body { flex: 1; min-width: 0; }
.cart-line .l-name { font-weight: 700; font-size: 14px; }
.cart-line .l-opts { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.cart-line .l-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.cart-line .l-remove { color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.cart-line .l-remove:hover { color: var(--red); }

.cart-summary { padding: 14px 20px; border-top: 1px solid var(--line-2); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px;
  color: var(--ink-2); margin-bottom: 7px; }
.sum-row.total { font-size: 17px; font-weight: 800; color: var(--ink);
  border-top: 1px solid var(--line-2); padding-top: 11px; margin-top: 4px; }
.cart-foot { padding: 0 20px 20px; }
.min-warn { font-size: 12.5px; color: var(--amber); margin-bottom: 10px; text-align: center; }

/* ============================================================================
   ITEM-DETAIL MODAL
   ========================================================================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.5); display: flex; align-items: center;
  justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; width: 100%; max-width: 540px;
  border-radius: var(--radius); max-height: 92vh;
  display: flex; flex-direction: column; transform: scale(.96);
  transition: transform .2s ease;
}
.modal-mask.show .modal { transform: scale(1); }
.modal-hero { position: relative; height: 220px; background: var(--bg-2); flex: none; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero .ph { width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 60px; background: linear-gradient(135deg,#fbe3e4,#f7f0e8); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  font-size: 20px; display: grid; place-items: center;
}
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-body h2 { font-size: 22px; font-weight: 800; }
.modal-body .m-desc { color: var(--ink-2); margin: 6px 0 4px; }
.modal-body .m-price { font-weight: 700; }

.mod-group { border-top: 1px solid var(--line-2); padding: 16px 0 4px; }
.mod-group:first-of-type { margin-top: 8px; }
.mod-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; }
.mod-head .m-title { font-weight: 700; }
.mod-head .m-rule { font-size: 12px; color: var(--ink-3); }
.req-badge { background: var(--bg-2); color: var(--ink-2); font-size: 11px;
  font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }

.mod-opt {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  cursor: pointer; border-bottom: 1px solid var(--line-2);
}
.mod-opt:last-child { border-bottom: none; }
.mod-opt input { width: 19px; height: 19px; accent-color: var(--red); }
.mod-opt .o-name { flex: 1; }
.mod-opt .o-price { color: var(--ink-3); font-size: 14px; }

.modal-foot {
  padding: 14px 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; flex: none;
}
.qty-stepper {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.qty-stepper button { font-size: 20px; color: var(--red); width: 22px; line-height: 1; }
.qty-stepper button:disabled { color: var(--line); }
.qty-stepper .q { font-weight: 800; min-width: 18px; text-align: center; }

/* ============================================================================
   GENERIC PAGE / FORM SHELL  (checkout, account, tracking, confirmation)
   ========================================================================== */
.page { max-width: var(--content-max); margin: 30px auto 70px; }
.page.layout-full { width: 100%; }
.page-narrow { max-width: 520px; }
.page h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.crumb { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.crumb a:hover { color: var(--red); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px;
}
.card h2 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.card h2 .step { color: var(--red); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.field label .req { color: var(--red); font-weight: 700; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); outline: none; transition: border-color .12s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 70px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.checkout-grid { display: grid; grid-template-columns: 1fr 350px; gap: 24px; align-items: start; }
.order-summary { position: sticky; top: calc(var(--header-h) + var(--platform-bar-h) + 16px); }

/* segmented control (delivery/pickup, asap/later, payment) */
.seg { display: grid; gap: 10px; }
.seg.cols-2 { grid-template-columns: 1fr 1fr; }
.seg-opt {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; cursor: pointer; transition: border-color .12s, background .12s;
}
.seg-opt:hover { border-color: var(--ink-3); }
.seg-opt.active { border-color: var(--red); background: var(--red-soft); }
.seg-opt.seg-opt-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.seg-opt .so-title { font-weight: 700; }
.seg-opt .so-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.payment-single {
  border: 1.5px solid var(--red); background: var(--red-soft);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.payment-single .so-title { font-weight: 700; }
.payment-single .so-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* tip selector */
.tip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tip-chip {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px;
  font-weight: 700; font-size: 14px;
}
.tip-chip.active { border-color: var(--red); background: var(--red); color: #fff; }

.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px;
  margin-bottom: 16px; font-weight: 600; }
.alert-error  { background: #fbe9e9; color: var(--red-dark); }
.alert-ok     { background: #e7f5ec; color: var(--green); }
.alert-notice { background: #fff6e0; color: var(--amber); }

/* ============================================================================
   ORDER TRACKING TIMELINE
   ========================================================================== */
.track-hero {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 18px;
}
.track-hero .eta { font-size: 32px; font-weight: 800; margin: 6px 0; }
.track-hero .code { opacity: .85; font-size: 13px; letter-spacing: .5px; }

.timeline { list-style: none; position: relative; padding-left: 8px; }
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li::before {
  content: ""; position: absolute; left: 9px; top: 22px; bottom: -4px;
  width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .node {
  position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  border-radius: 999px; border: 2px solid var(--line); background: #fff;
}
.timeline li.done .node    { background: var(--green); border-color: var(--green); }
.timeline li.current .node { background: var(--red); border-color: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft); }
.timeline .t-title { font-weight: 700; }
.timeline li.done .t-title { color: var(--ink-3); }
.timeline li.current .t-title { color: var(--red); }
.timeline .t-note { font-size: 13px; color: var(--ink-3); }

/* ---- Order history rows -------------------------------------------------- */
.order-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}
.order-row:last-child { border-bottom: none; }
.order-row .o-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--red-soft); display: grid; place-items: center; font-size: 20px;
}
.order-row .o-main { flex: 1; min-width: 0; }
.order-row .o-code { font-weight: 700; }
.order-row .o-sub { color: var(--ink-3); font-size: 13px; }
.status-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status-completed { background: #e7f5ec; color: var(--green); }
.status-active    { background: var(--red-soft); color: var(--red); }

/* ---- Confirmation -------------------------------------------------------- */
.confirm-hero { text-align: center; padding: 40px 20px 10px; }
.confirm-hero .check {
  width: 72px; height: 72px; border-radius: 999px; background: var(--green);
  color: #fff; font-size: 38px; display: grid; place-items: center; margin: 0 auto 16px;
}
.confirm-hero h1 { font-size: 26px; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 34px 0; margin-top: 40px; color: var(--ink-3); font-size: 13.5px;
}
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; }
.site-footer .f-brand { font-weight: 800; color: var(--ink); font-size: 16px; }
.site-footer a:hover { color: var(--red); }

/* ============================================================================
   MOBILE SLIDE-OVER + RESPONSIVE
   ========================================================================== */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }

@media (min-width: 1041px) {
  .drawer-mask { display: none !important; }
}

.mobile-cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); display: none;
}

@media (max-width: 1040px) {
  .menu-layout { grid-template-columns: 1fr; }
  .cat-rail { display: none; }
  .cart-close { display: grid; place-items: center; }
  .cart-panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
    z-index: 95; border-radius: 0; transform: translateX(105%);
    transition: transform .25s ease; display: flex; flex-direction: column;
  }
  .cart-panel.open { transform: translateX(0); }
  .cart-items { max-height: none; flex: 1; }
  .mobile-cart-bar { display: block; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (min-width: 721px) {
  .mp-nav-mobile,
  .mp-nav-mobile.open { display: none !important; }
  .mp-nav-toggle { display: none !important; }
}

@media (max-width: 720px) {
  .mp-platform-links { display: none; }
  .mp-platform-acct > .acct-header-actions > a.btn-ghost { display: none; }
  .mp-nav-toggle { display: inline-flex; }
  .header-search { display: none; }
  .item-grid { grid-template-columns: 1fr; }
  .hero-full { height: clamp(180px, 32vh, 260px); }
  .add-inline { display: none; }
  .hero-card h1 { font-size: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .seg.cols-2 { grid-template-columns: 1fr; }
  .nav-link.hide-sm { display: none; }
}

/* keep content clear of the fixed mobile cart bar */
@media (max-width: 1040px) {
  body.has-mobile-bar { padding-bottom: 76px; }
}

/* ============================================================================
   CONFIRMATION — 60s acceptance wait
   ========================================================================== */
.accept-timer {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}
.accept-timer__ring {
  transform: rotate(-90deg);
}
.accept-timer__track {
  fill: none;
  stroke: var(--line-2, #e5e7eb);
  stroke-width: 8;
}
.accept-timer__progress {
  fill: none;
  stroke: var(--red, #e23744);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s linear;
}
.accept-timer__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ink, #111);
}
.accept-timer__secs {
  font-size: 32px;
  line-height: 1;
}
.accept-timer__unit {
  font-size: 12px;
  color: var(--muted, #6b7280);
  font-weight: 600;
}
.confirm-hero .check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green, #16a34a);
  color: #fff;
  font-size: 36px;
  line-height: 72px;
  margin: 0 auto 16px;
}

.order-confirm-card { padding: 28px 24px 24px; text-align: center; }
.order-confirm-top { margin-bottom: 20px; }
.order-confirm-icon { font-size: 42px; line-height: 1; margin-bottom: 8px; }
.order-confirm-code {
  font-size: 28px; font-weight: 800; letter-spacing: .05em; margin: 14px 0 8px;
}
.order-status-panel {
  text-align: left; margin: 0 0 22px; padding: 16px 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2, #f6f6f8);
}
.order-status-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--ink-3); margin-bottom: 6px;
}
.order-status-value { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.order-status-hint { font-size: 12.5px; margin-top: 8px; margin-bottom: 0; }
.order-status-panel.is-pending { border-color: #f5d9a8; background: #fdf8ec; }
.order-status-panel.is-pending .order-status-value { color: #9a6700; }
.order-status-panel.is-accepted { border-color: #b8e6c8; background: #edf9f0; }
.order-status-panel.is-accepted .order-status-value { color: #1c8a4d; }
.order-status-panel.is-declined { border-color: #f0c4c4; background: #fdf0f0; }
.order-status-panel.is-declined .order-status-value { color: #b42318; }
.order-status-panel.is-idle { border-color: var(--line); background: #f8f9fb; text-align: center; }
.order-status-panel.is-idle .order-status-value { color: var(--ink); }
.order-status-panel.is-idle #orderStatusPostWait { text-align: center; }
.order-confirm-actions {
  display: flex; flex-direction: column; gap: 10px;
  align-items: stretch;
}
.order-confirm-actions .btn { width: 100%; }
