@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #101110;
  --charcoal: #181b18;
  --panel: #202420;
  --panel-strong: #292e29;
  --paper: #f5f1e8;
  --paper-muted: #b6b4ab;
  --amber: #f6a623;
  --amber-soft: #ffc665;
  --sage: #a8d5ba;
  --lilac: #b9b3ff;
  --line: rgba(245, 241, 232, .14);
  --line-strong: rgba(245, 241, 232, .24);
  --danger: #df836a;
  --shadow: 0 22px 70px rgba(0,0,0,.25);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--paper); font-family: var(--sans); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.app-shell { min-height: 100vh; overflow-x: hidden; }
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(16,17,16,.87); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.04em; }
.brand-mark { width: 32px; height: 32px; }
.brand-wordmark strong { font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.table-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--paper-muted); background: rgba(245,241,232,.06); border: 1px solid var(--line); border-radius: 99px; font: 11px var(--mono); letter-spacing: .02em; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(168,213,186,.12); }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; position: relative; border: 1px solid var(--line-strong); background: transparent; border-radius: 50%; cursor: pointer; transition: .18s ease; }
.icon-button:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.bag-icon { width: 17px; height: 16px; display: block; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.bag-icon::before { content: ''; position: absolute; left: 4px; top: -6px; width: 7px; height: 8px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; }
.count-badge { position: absolute; top: -3px; right: -2px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; font: 10px var(--mono); background: var(--amber); color: var(--ink); border-radius: 99px; }

.page-wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; gap: 32px; padding: clamp(34px, 6vw, 80px) 0 54px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .15em; font: 10px var(--mono); color: var(--amber); }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.hero h1 { max-width: 620px; margin: 20px 0 18px; font-size: clamp(46px, 7vw, 84px); line-height: .97; letter-spacing: -.08em; font-weight: 800; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-subtitle { max-width: 460px; margin: 0; color: var(--paper-muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 99px; cursor: pointer; font-weight: 700; font-size: 13px; transition: transform .18s ease, background .18s ease, border .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--amber); color: var(--ink); }
.button-primary:hover { background: var(--amber-soft); }
.button-secondary { color: var(--paper); background: transparent; border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--paper); }
.button-quiet { min-height: 40px; background: rgba(245,241,232,.08); color: var(--paper-muted); }
.button-full { width: 100%; }
.hero-note { margin-top: 34px; display: flex; align-items: center; gap: 11px; color: var(--paper-muted); font-size: 12px; }
.qr-stamp { width: 26px; height: 26px; border: 2px solid var(--amber); border-radius: 5px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; padding: 4px; }
.qr-stamp span { background: var(--amber); }
.qr-stamp span:nth-child(2), .qr-stamp span:nth-child(5), .qr-stamp span:nth-child(7) { background: transparent; }
.hero-visual { min-height: 420px; border-radius: var(--radius-lg); background-image: linear-gradient(90deg, rgba(16,17,16,.9) 0%, rgba(16,17,16,.32) 62%, rgba(16,17,16,.05) 100%), url('/manus-storage/async-images/p3lmRtsVHk9SbInVG0MTLo/image-1.webp'); background-size: cover; background-position: center; position: relative; overflow: hidden; border: 1px solid var(--line); }
.hero-visual::after { content: ''; position: absolute; inset: auto 24px 24px; height: 1px; background: rgba(245,241,232,.4); }
.hero-visual-copy { position: absolute; inset: auto 28px 42px; z-index: 1; max-width: 240px; }
.hero-visual-copy strong { display: block; font-size: 24px; letter-spacing: -.06em; }
.hero-visual-copy span { display: block; margin-top: 8px; color: rgba(245,241,232,.76); font-size: 12px; line-height: 1.5; }
.hero-sticker { position: absolute; top: 22px; right: 22px; display: inline-flex; padding: 9px 12px; background: var(--paper); color: var(--ink); border-radius: 99px; font: 11px var(--mono); transform: rotate(4deg); }

.menu-section { padding: 16px 0 160px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.07em; line-height: 1; }
.section-heading p { max-width: 300px; margin: 0; color: var(--paper-muted); font-size: 13px; line-height: 1.5; text-align: right; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -4px 26px; padding: 4px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex: 0 0 auto; padding: 11px 15px; color: var(--paper-muted); background: transparent; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-size: 12px; font-weight: 700; }
.category-tab:hover { color: var(--paper); border-color: var(--line-strong); }
.category-tab.active { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.menu-layout { display: grid; grid-template-columns: 1fr 320px; align-items: start; gap: 32px; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.menu-card { overflow: hidden; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border .18s ease, transform .18s ease; }
.menu-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.menu-card.unavailable { opacity: .52; filter: saturate(.35); }
.menu-card-image { height: 182px; position: relative; overflow: hidden; background: var(--panel-strong); }
.menu-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.menu-card:hover img { transform: scale(1.04); }
.unavailable .menu-card-image::after { content: '86’d'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16,17,16,.62); color: var(--paper); font-size: 20px; font-weight: 800; letter-spacing: -.06em; }
.menu-card-body { padding: 16px; }
.menu-card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.menu-card h3 { margin: 0; font-size: 17px; letter-spacing: -.04em; }
.price { color: var(--amber); font: 14px var(--mono); white-space: nowrap; }
.menu-card p { min-height: 40px; margin: 8px 0 14px; color: var(--paper-muted); font-size: 12px; line-height: 1.5; }
.tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border-radius: 99px; background: rgba(168,213,186,.12); color: var(--sage); font: 10px var(--mono); }
.tag.gf { color: var(--lilac); background: rgba(185,179,255,.12); }
.menu-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.add-button { min-height: 38px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.add-button:hover { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.unavailable .add-button { cursor: not-allowed; }
.quantity { display: inline-flex; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--paper-muted); }
.qty-button { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; }
.qty-button:hover { background: var(--paper); color: var(--ink); }

.order-summary { position: sticky; top: 98px; padding: 22px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-md); }
.order-summary-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.order-summary h3 { margin: 0; font-size: 18px; letter-spacing: -.04em; }
.order-summary-header span { color: var(--paper-muted); font: 11px var(--mono); }
.summary-empty { padding: 28px 0; color: var(--paper-muted); font-size: 12px; line-height: 1.5; }
.summary-empty strong { display: block; margin-bottom: 7px; color: var(--paper); font-size: 15px; }
.summary-line { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.summary-line span:last-child { color: var(--paper-muted); font-family: var(--mono); }
.summary-total { display: flex; justify-content: space-between; padding-top: 18px; font-weight: 800; }
.summary-total span:last-child { color: var(--amber); font: 18px var(--mono); }
.mobile-order-tray { display: none; }

.cart-drawer { position: fixed; inset: 0 0 0 auto; z-index: 50; display: flex; flex-direction: column; width: min(100%, 460px); background: var(--charcoal); border-left: 1px solid var(--line-strong); transform: translateX(105%); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow); }
.cart-drawer.open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.68); }
.drawer-handle { display: none; }
.drawer-header { display: flex; align-items: start; justify-content: space-between; padding: 26px 24px 20px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -.07em; }
.muted-count { color: var(--paper-muted); font: 13px var(--mono); letter-spacing: 0; }
.close-button { width: 34px; height: 34px; }
.close-icon { font-size: 24px; line-height: 1; font-weight: 300; }
.cart-content { flex: 1; overflow-y: auto; padding: 20px 24px 28px; }
.cart-empty { min-height: 360px; display: grid; place-content: center; text-align: center; color: var(--paper-muted); }
.cart-empty .empty-mark { width: 54px; height: 54px; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(246,166,35,.1); color: var(--amber); border-radius: 50%; font-size: 24px; }
.cart-empty h3 { margin: 0 0 8px; color: var(--paper); letter-spacing: -.04em; }
.cart-empty p { max-width: 240px; margin: 0 auto; font-size: 12px; line-height: 1.6; }
.cart-line { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-line-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cart-line-name { font-size: 14px; font-weight: 700; }
.cart-line-price { color: var(--amber); font: 12px var(--mono); }
.cart-line-meta { margin-top: 5px; color: var(--paper-muted); font: 11px var(--mono); }
.cart-line-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.special-input, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(245,241,232,.05); color: var(--paper); padding: 11px 12px; outline: 0; }
.special-input { font-size: 11px; }
.special-input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #777b74; }
.cart-section { margin-top: 22px; }
.cart-section h3 { margin: 0 0 12px; font-size: 14px; letter-spacing: -.02em; }
.tip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tip-choice { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--paper-muted); cursor: pointer; font: 11px var(--mono); }
.tip-choice.active, .tip-choice:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.custom-tip { margin-top: 8px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--paper-muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.payment-placeholder { display: flex; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(245,241,232,.035); }
.payment-lock { color: var(--sage); font-size: 18px; }
.payment-placeholder strong { display: block; font-size: 12px; }
.payment-placeholder p { margin: 4px 0 0; color: var(--paper-muted); font-size: 11px; line-height: 1.45; }
.order-totals { padding: 16px 0; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--paper-muted); font-size: 12px; }
.total-row span:last-child { color: var(--paper); font-family: var(--mono); }
.total-row.grand { padding-top: 12px; color: var(--paper); font-weight: 800; }
.total-row.grand span:last-child { color: var(--amber); font-size: 18px; }
.checkout-note { margin: 10px 0 18px; color: var(--paper-muted); font-size: 11px; line-height: 1.55; }

.confirmation, .status-page { width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: clamp(58px, 10vw, 120px) 0 120px; }
.confirmation-card { padding: clamp(28px, 6vw, 56px); text-align: center; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.confirmation-mark { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 28px; border: 1px solid rgba(168,213,186,.4); border-radius: 50%; color: var(--sage); font-size: 32px; }
.confirmation h1 { margin: 0; font-size: clamp(40px, 8vw, 72px); letter-spacing: -.09em; line-height: .95; }
.confirmation h1 span { display: block; color: var(--amber); }
.confirmation-copy { max-width: 350px; margin: 20px auto 0; color: var(--paper-muted); font-size: 14px; line-height: 1.65; }
.order-number { margin: 28px auto; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 14px; }
.order-number span { display: block; color: var(--paper-muted); font: 10px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.order-number strong { display: block; margin-top: 8px; color: var(--paper); font: 28px var(--mono); letter-spacing: .06em; }
.confirmation-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.status-page { width: min(820px, calc(100% - 40px)); }
.status-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.status-header h1 { margin: 16px 0 0; font-size: clamp(38px, 7vw, 68px); letter-spacing: -.09em; line-height: .95; }
.status-header p { max-width: 250px; margin: 0; color: var(--paper-muted); font-size: 12px; line-height: 1.55; text-align: right; }
.status-card { padding: 28px; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.status-order-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.status-order-meta strong { font: 18px var(--mono); }
.status-order-meta span { color: var(--paper-muted); font-size: 12px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding: 34px 0 10px; }
.timeline::before { content: ''; position: absolute; top: 49px; left: 9%; right: 9%; height: 2px; background: var(--line-strong); }
.timeline-progress { position: absolute; top: 49px; left: 9%; height: 2px; background: var(--amber); transition: width .3s ease; }
.timeline-step { position: relative; z-index: 1; text-align: center; }
.timeline-dot { width: 30px; height: 30px; display: grid; place-items: center; margin: 0 auto 12px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--charcoal); color: var(--paper-muted); font: 11px var(--mono); }
.timeline-step.done .timeline-dot, .timeline-step.current .timeline-dot { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.timeline-step.current .timeline-dot { box-shadow: 0 0 0 6px rgba(246,166,35,.15); }
.timeline-step label { display: block; color: var(--paper-muted); font-size: 11px; }
.timeline-step.done label, .timeline-step.current label { color: var(--paper); font-weight: 700; }
.status-message { margin: 24px 0; padding: 16px; background: rgba(246,166,35,.08); border-left: 2px solid var(--amber); border-radius: 0 12px 12px 0; color: var(--paper); font-size: 13px; line-height: 1.55; }
.status-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.status-actions .button { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; max-width: calc(100% - 36px); padding: 12px 16px; background: var(--paper); color: var(--ink); border-radius: 99px; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); }
.modal-card { width: min(440px, 100%); padding: 26px; background: var(--charcoal); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.modal-card h2 { margin: 0 0 10px; letter-spacing: -.05em; }
.modal-card p { margin: 0 0 18px; color: var(--paper-muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-visual { min-height: 300px; }
  .menu-layout { grid-template-columns: 1fr; }
  .order-summary { display: none; }
  .mobile-order-tray { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; background: rgba(41,46,41,.95); border: 1px solid var(--line-strong); border-radius: 99px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
  .tray-meta { display: flex; align-items: center; gap: 9px; color: var(--paper-muted); font: 11px var(--mono); }
  .tray-total { color: var(--amber); font-size: 13px; }
  .mobile-order-tray .button { min-height: 40px; padding: 0 15px; }
}
@media (max-width: 620px) {
  .site-header { height: 68px; padding: 0 18px; }
  .table-pill { padding: 7px 9px; font-size: 10px; }
  .page-wrap { width: min(100% - 32px, 1240px); }
  .hero { padding-top: 36px; gap: 26px; }
  .hero h1 { font-size: clamp(47px, 14vw, 72px); }
  .hero-visual { min-height: 290px; border-radius: 20px; }
  .hero-actions .button { flex: 1; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; text-align: left; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card-image { height: 204px; }
  .cart-drawer { width: 100%; inset: auto 0 0; height: min(93vh, 780px); border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 24px 24px 0 0; transform: translateY(105%); }
  .cart-drawer.open { transform: translateY(0); }
  .drawer-handle { display: block; width: 42px; height: 4px; margin: 8px auto 0; background: var(--line-strong); border-radius: 99px; }
  .drawer-header { padding-top: 16px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .field.full { grid-column: auto; }
  .confirmation, .status-page { width: min(100% - 32px, 820px); padding-top: 56px; }
  .status-header { display: block; }
  .status-header p { margin-top: 16px; text-align: left; }
  .status-card { padding: 20px 16px; }
  .timeline { padding-top: 28px; }
  .timeline-step label { font-size: 10px; }
  .timeline::before, .timeline-progress { left: 11%; right: 11%; }
  .status-actions { display: grid; }
  .status-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
