/* Collection ordering: menu grid, "Your Order" panel, item + checkout sheets, order tracking */

.order-head { padding: 34px 0 30px; }
.order-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.order-head .eyebrow { margin-bottom: 6px; }
.order-head-sub { margin: 6px 0 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.order-offer { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 116px; height: 116px; border-radius: 50%; background: var(--gold); color: var(--on-gold); text-align: center; box-shadow: 0 0 0 6px rgba(183, 148, 64, .25); transform: rotate(-8deg); }
.order-offer b { font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 700; }
.order-offer span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; margin-top: 4px; max-width: 78px; }
@media (max-width: 600px) { .order-offer { width: 86px; height: 86px; } .order-offer b { font-size: 22px; } .order-offer span { font-size: 9.5px; } }

.order-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 360px; gap: 34px; align-items: start; padding-top: 28px; padding-bottom: 80px; }
.order-cats { position: sticky; top: calc(var(--header-h) + 20px); }
.order-cats-inner { display: flex; flex-direction: column; gap: 2px; }
.order-cats a { font-family: var(--display); font-size: 15px; text-decoration: none; padding: 9px 14px; border-left: 2px solid var(--line); color: var(--muted); transition: all .15s; }
.order-cats a:hover { color: var(--navy); border-color: var(--gold-light); }
.order-cats a.active { color: var(--navy); border-color: var(--gold); background: var(--cream); font-weight: 600; }

.order-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.order-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: 30px; padding: 0 16px; min-height: 48px; border: 1.5px solid transparent; }
.order-search:focus-within { border-color: var(--gold); background: #fff; }
.order-search svg { width: 20px; height: 20px; color: var(--gold-text); flex: none; }
.order-search input { border: 0; background: transparent; width: 100%; font-size: 16px; padding: 10px 0; outline: none; }
.order-empty { padding: 30px 0; color: var(--muted); }

.o-section { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + 70px); }
.o-section h2 { font-family: var(--display); font-size: 25px; font-weight: 600; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.o-section h2 small { font-family: var(--serif); font-size: 14px; font-style: italic; color: var(--gold-text); font-weight: 400; margin-left: 6px; }
.o-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 1700px) { .o-grid:not(.o-grid-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.o-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); display: flex; }
.o-item:hover { border-color: var(--gold-light); box-shadow: 0 6px 20px rgba(8, 14, 48, .07); }
.o-item.in-order { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.o-open { all: unset; box-sizing: border-box; flex: 1; min-width: 0; padding: 16px 64px 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; border-radius: 8px; }
.o-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.o-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.o-name { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.35; }
.o-num { font-size: 12px; color: var(--gold-text); margin-right: 8px; font-weight: 400; }
.o-price { font-family: var(--serif); font-weight: 700; white-space: nowrap; font-size: 15.5px; }
.o-price small { font-weight: 400; color: var(--muted); font-size: 12px; }
.o-thai { font-family: var(--serif); font-style: italic; color: var(--gold-text); font-size: 13.5px; }
.o-desc { color: var(--muted); font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o-desc-full { -webkit-line-clamp: unset; display: block; }
.o-desc b { color: var(--navy); font-weight: 500; }
.o-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.o-foot:empty { display: none; }
.o-unavail { display: none; }
.o-add { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); background: #fff; color: var(--gold-text); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.o-add svg { width: 20px; height: 20px; }
.o-add:hover { background: var(--gold); color: #fff; transform: scale(1.06); }
.o-qty { position: absolute; top: -9px; right: -9px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 500; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(8, 14, 48, .25); }
.o-item.o-off, .o-item.unavailable { opacity: .55; }
.o-item.unavailable .o-add { display: none; }
.o-item.unavailable .o-unavail { display: inline-flex; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; background: var(--bad-bg); color: var(--bad); font-weight: 500; }
.o-item.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.02); } }

/* Your Order panel */
.your-order { position: sticky; top: calc(var(--header-h) + 20px); }
.yo-inner { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 22px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.yo-head { display: flex; align-items: center; justify-content: space-between; }
.yo-head h2 { font-family: var(--display); font-size: 24px; margin: 0; font-weight: 600; }
.yo-close { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.yo-close svg { width: 24px; height: 24px; }
.yo-when { background: var(--cream); border-radius: 8px; padding: 12px 14px; }
.yo-when-label { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--gold-text); margin-bottom: 8px; }
.yo-when-label svg { width: 16px; height: 16px; }
.yo-when-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yo-when select { width: 100%; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; padding: 8px 10px; font-family: var(--serif); font-size: 15px; }
.yo-when-note { margin: 8px 0 0; font-size: 14px; color: var(--warn); }
.yo-when-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.yo-lines { display: flex; flex-direction: column; }
.yo-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.yo-line:last-child { border-bottom: 0; }
.yo-line-name { font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.35; }
.yo-line-meta { font-size: 13px; color: var(--muted); grid-column: 1; }
.yo-line-price { font-family: var(--serif); font-weight: 700; font-size: 15px; text-align: right; }
.yo-line-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.yo-line .stepper { transform: scale(.9); transform-origin: left center; }
.yo-remove { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 6px; }
.yo-remove:hover { color: var(--bad); }
.yo-empty { text-align: center; padding: 18px 0 6px; color: var(--navy); }
.yo-empty img { margin: 0 auto 10px; opacity: .55; }
.yo-empty p { margin: 0; }
.yo-totals { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.yo-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.yo-discount { color: var(--gold-text); font-weight: 500; }
.yo-total { font-family: var(--serif); font-size: 17px; font-weight: 700; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.yo-fine { text-align: center; margin: -4px 0 0; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 30px; background: #fff; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--navy); border-radius: 50%; }
.stepper button:hover { background: var(--cream); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper svg { width: 18px; height: 18px; }
.stepper output { min-width: 28px; text-align: center; font-weight: 500; font-size: 16px; }

.yo-bar { display: none; }

@media (max-width: 1180px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .order-cats { grid-column: 1 / -1; position: sticky; top: var(--header-h); z-index: 15; background: #fff; margin: 0 -20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
  .order-cats-inner { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 8px 0; gap: 6px; }
  .order-cats-inner::-webkit-scrollbar { display: none; }
  .order-cats a { border: 1px solid var(--line); border-radius: 30px; white-space: nowrap; padding: 7px 14px; font-size: 14px; }
  .order-cats a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
  .order-layout { padding-top: 0; }
  .your-order { top: calc(var(--header-h) + 70px); }
}
@media (max-width: 900px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); }
  .your-order { position: fixed; inset: 0; z-index: 120; top: 0; background: rgba(4, 7, 26, .5); display: none; }
  .your-order.open { display: block; }
  .yo-inner { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); animation: sheetup .3s var(--ease); }
  .yo-close { display: grid; place-items: center; }
  .yo-bar { position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--gold); color: var(--on-gold); border: 0; border-radius: 10px; padding: 14px 18px; font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .04em; box-shadow: 0 10px 30px rgba(8, 14, 48, .3); cursor: pointer; }
  .yo-bar[hidden] { display: none; }
  .yo-bar-count { background: var(--navy); color: #fff; border-radius: 20px; min-width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; padding: 0 8px; }
  body[data-page='collection'] .order-layout { padding-bottom: 96px; }
}
@keyframes sheetup { from { transform: translateY(40px); opacity: .5; } }

/* dialogs (item options + checkout) */
dialog.sheet { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; margin: 0; }
dialog.sheet::backdrop { background: rgba(4, 7, 26, .6); backdrop-filter: blur(2px); }
dialog.sheet[open] { display: grid; place-items: center; }
.sheet-inner { position: relative; background: #fff; width: min(100% - 24px, 520px); max-height: calc(100vh - 40px); border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .25s var(--ease); }
.sheet-wide .sheet-inner { width: min(100% - 24px, 920px); }
@keyframes pop { from { transform: translateY(18px) scale(.98); opacity: 0; } }
.sheet-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.sheet-close svg { width: 22px; height: 22px; }
.sheet-body { padding: 28px 28px 18px; overflow-y: auto; }
.sheet-body h2 { font-family: var(--serif); font-size: 23px; font-weight: 700; padding-right: 44px; margin-bottom: 4px; }
.sheet-foot { display: flex; gap: 14px; align-items: center; padding: 14px 28px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.sheet-foot .btn { flex: 1; }
.opt-group { margin-top: 20px; border: 0; padding: 0; }
.opt-group legend { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 10px; padding: 0; }
.opt-group legend small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 300; }
.choice-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice-row:hover { border-color: var(--gold-light); }
.choice-row:has(input:checked) { border-color: var(--navy); background: var(--cream); }
.choice-row input { accent-color: var(--navy); width: 18px; height: 18px; }
.choice-row span { flex: 1; }
.choice-row b { font-family: var(--serif); }
.err { color: var(--bad); font-size: 14px; margin: 8px 0 0; min-height: 0; }
@media (max-width: 600px) {
  dialog.sheet[open] { place-items: end center; }
  .sheet-inner, .sheet-wide .sheet-inner { width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; animation: sheetup .3s var(--ease); }
  .sheet-body { padding: 24px 18px 14px; }
  .sheet-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
}

.co-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; margin-top: 10px; }
@media (max-width: 760px) { .co-grid { grid-template-columns: 1fr; } .co-summary { order: -1; } }
.co-h { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--gold-text); margin: 6px 0 12px; font-family: var(--sans); }
.co-summary { background: var(--cream); border-radius: 10px; padding: 18px 20px; align-self: start; }
.co-when { font-family: var(--serif); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.co-lines { font-size: 14.5px; margin-bottom: 10px; }
.co-lines div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.co-lines small { display: block; color: var(--muted); }

.confirm-card .emblem { width: 110px; }
.confirm-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.confirm-facts div { background: var(--cream); padding: 14px 10px; border-radius: 8px; }
.confirm-facts span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.confirm-facts b { font-family: var(--serif); font-size: 17px; }
@media (max-width: 560px) { .confirm-facts { grid-template-columns: 1fr; } }

/* order status page */
.spinner-lg { display: inline-block; width: 38px; height: 38px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin: 20px 0 10px; }
.timeline { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ''; position: absolute; top: 17px; left: 12.5%; right: 12.5%; height: 3px; background: var(--line); }
.timeline li { position: relative; text-align: center; font-size: 13.5px; color: var(--muted); padding-top: 46px; }
.timeline li::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.timeline li.done { color: var(--navy); font-weight: 500; }
.timeline li.done::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 5px #fff; }
.timeline li.now::before { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(183, 148, 64, .2), inset 0 0 0 5px #fff; } }
.timeline li.bar { position: absolute; top: 17px; left: 12.5%; height: 3px; padding: 0; background: var(--gold); transition: width .6s var(--ease); }
.timeline li.bar::before { display: none; }

.kitchen-status-wrap { padding-top: 18px; }
.kitchen-status-wrap:has(> [hidden]) { padding-top: 0; }
.kitchen-status { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; align-items: baseline; }
.kitchen-status .ks-hours { font-size: 14px; opacity: .85; }
