/* Use installed fonts so menu access never waits for an external font service. */

:root {
  color-scheme: light;
  --ink: #252923;
  --muted: #787d73;
  --paper: #f5f1e8;
  --white: #fffdf8;
  --line: #dfded4;
  --red: #ad3426;
  --red-dark: #82281f;
  --green: #35634f;
  --gold: #d69d46;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.page-shell { width: min(1120px, 100%); margin: 0 auto; padding: 0 28px 110px; }
.masthead { height: 68px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #c8c6bb; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.brand img { width: 34px; height: 28px; object-fit: contain; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 1.5px; }
.store-status { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--muted); font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #43875f; }
#locale-select { width: 172px; max-width: 210px; flex-shrink: 0; padding: 7px 22px 7px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--white); font-size: 11px; }
.hero { position: relative; height: clamp(230px, 35vw, 360px); margin-top: 25px; overflow: hidden; background: #463c31; }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #171b18d9 0%, #171b1873 44%, transparent 82%), linear-gradient(0deg, #171b1850, transparent 45%); }
.hero-copy { position: absolute; left: clamp(22px, 5vw, 64px); bottom: clamp(24px, 5vw, 54px); color: white; }
.hero-kicker, .eyebrow { margin: 0 0 7px; color: #e4bd76; font-size: 9px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.hero h1 { max-width: 70vw; margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(27px, 5vw, 48px); line-height: 1.2; font-weight: 600; }
.hero-copy > p:last-child { margin: 9px 0 0; color: #f0e8da; font-size: 12px; }
.hero-stamp { position: absolute; right: 22px; bottom: 20px; width: 126px; height: 76px; display: flex; align-items: center; gap: 8px; padding: 7px; background: var(--paper); transform: rotate(-3deg); box-shadow: 0 8px 18px #0003; }
.hero-stamp img { width: 58px; height: 60px; object-fit: cover; }
.hero-stamp span { color: var(--red); font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; line-height: 1.35; letter-spacing: 1px; }
.local-test-notice { margin-top: 12px; padding: 9px 12px; border-left: 3px solid #d69d46; background: #fff5dc; color: #684d20; font-size: 10px; line-height: 1.5; }
.menu-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 37px 0 20px; }
.menu-heading { display: flex; align-items: center; gap: 14px; }
.section-index { color: var(--red); font-family: Georgia, serif; font-size: 31px; }
.menu-heading .eyebrow { margin-bottom: 2px; color: var(--green); font-size: 8px; }
.menu-heading h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 21px; }
.search-box { width: min(270px, 48%); height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #d6d4ca; border-radius: 3px; background: var(--white); color: var(--muted); }
.search-box > span { font-size: 23px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box kbd { display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; }
.menu-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.allergen-filter-button { min-height: 40px; padding: 0 11px; border: 1px solid #bba98a; border-radius: 3px; background: #fffaf0; color: #62543f; font-size: 11px; white-space: nowrap; cursor: pointer; }
.allergen-filter-button.active { border-color: var(--red); background: #fff0ed; color: var(--red-dark); }
.allergen-filter-button span { display: inline-grid; min-width: 18px; height: 18px; margin-left: 4px; place-items: center; border-radius: 50%; background: #e9e3d8; font-size: 10px; }
.allergen-filter-list { display: grid; gap: 7px; max-height: min(58vh, 460px); overflow: auto; }
.allergen-filter-option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 9px; border-bottom: 1px solid var(--line); cursor: pointer; }
.allergen-filter-option input { accent-color: var(--red); }
.allergen-filter-option span { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 0 8px; min-width: 0; }
.allergen-filter-option img { grid-row: span 2; width: 26px; height: 26px; object-fit: contain; }
.allergen-filter-option small { color: var(--muted); font-size: 10px; }
.category-nav { position: sticky; z-index: 2; top: 0; display: flex; gap: 7px; margin: 0 -28px 15px; padding: 10px 28px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #f5f1e8ed; scrollbar-width: thin; }
.category-button { flex: 0 0 auto; min-height: 34px; padding: 0 13px; border: 1px solid transparent; border-radius: 2px; background: transparent; color: #5e655d; font-size: 11px; cursor: pointer; }
.category-button[aria-pressed="true"] { border-color: #cda76b; background: #fff9ed; color: var(--red-dark); font-weight: 700; }
.menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.menu-item { min-width: 0; min-height: 130px; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-item.is-clearance { color: #8e2b25; }
.menu-item.is-clearance .menu-photo { filter: saturate(.45); }
.menu-item.is-clearance .menu-price { color: #a7312a; }
.clearance-badge { display: inline-block; margin-bottom: 4px; padding: 2px 7px; border-radius: 3px; background: #b73832; color: #fff; font-size: 10px; font-weight: 700; }
.menu-photo { width: 108px; height: 101px; object-fit: cover; background: #ded9ce; }
.menu-copy { min-width: 0; display: flex; flex-direction: column; }
.menu-copy h3 { margin: 1px 0 4px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 15px; line-height: 1.4; }
.menu-copy p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.menu-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.menu-price { color: var(--red); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.menu-price small { margin-left: 4px; color: #92958c; font-size: 9px; font-weight: 500; }
.add-button { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 50%; background: var(--red); color: white; font-size: 20px; line-height: 1; cursor: pointer; }
.add-button:hover { background: var(--red-dark); }
.add-button:disabled { background: #aaa; cursor: not-allowed; }
.empty-menu { grid-column: 1 / -1; padding: 42px 0; color: var(--muted); text-align: center; font-size: 13px; }
.page-footer { min-height: 68px; display: flex; align-items: center; gap: 8px; margin-top: 45px; border-top: 1px solid #c8c6bb; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.page-footer img { width: 25px; height: 20px; object-fit: contain; }
.page-footer small { margin-left: auto; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.cart-button { position: fixed; z-index: 5; right: max(18px, calc((100vw - 1120px) / 2)); bottom: max(18px, env(safe-area-inset-bottom)); min-width: 245px; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 17px; border: 0; border-radius: 3px; background: var(--green); color: white; box-shadow: 0 8px 22px #15251d35; cursor: pointer; }
.cart-count { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #ffffff26; font-size: 11px; }
.cart-button strong { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }
.cart-button > span:last-child { font-size: 17px; }
.modal-root { position: fixed; z-index: 10; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: #161a17a6; }
.dialog { width: min(620px, 100%); max-height: min(88vh, 850px); display: flex; flex-direction: column; overflow: hidden; background: var(--white); box-shadow: 0 -8px 35px #0002; animation: rise .2s ease-out both; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 21px 14px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 19px; }
.dialog-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.dialog-close { width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 17px; }
.dialog-body { min-height: 0; padding: 17px 21px 21px; overflow-y: auto; }
.dialog-footer { display: flex; align-items: center; gap: 12px; padding: 13px 21px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.dialog-footer > strong { margin-left: auto; color: var(--red); font-size: 14px; }
.primary-button, .quiet-button { min-height: 43px; padding: 0 17px; border: 0; border-radius: 2px; font-size: 12px; font-weight: 700; cursor: pointer; }
.primary-button { background: var(--red); color: white; }
.primary-button:hover { background: var(--red-dark); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.quiet-button { border: 1px solid var(--line); background: white; }
.modifier-group { margin: 0 0 17px; padding: 0; border: 0; }
.modifier-group legend { margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.modifier-group legend small { margin-left: 7px; color: var(--muted); font-size: 9px; font-weight: 400; }
.modifier-option { min-height: 39px; display: flex; align-items: center; gap: 9px; padding: 5px 0; border-bottom: 1px solid #eeece5; font-size: 11px; }
.modifier-option input { accent-color: var(--red); }
.modifier-option span:last-child { margin-left: auto; color: var(--red); font-variant-numeric: tabular-nums; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { margin: 0 0 3px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 13px; }
.cart-line p { margin: 0; color: var(--muted); font-size: 10px; }
.cart-line-total { color: var(--red); font-size: 12px; font-weight: 700; text-align: right; }
.cart-line.is-clearance h3, .cart-clearance-warning { color: #a7312a; }
.cart-clearance-warning { display: block; margin: 5px 0; font-size: 11px; }
.quantity-control { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.quantity-control button { width: 27px; height: 27px; border: 1px solid var(--line); background: white; cursor: pointer; }
.quantity-control span { min-width: 15px; text-align: center; font-size: 11px; }
.cart-summary { display: grid; gap: 9px; margin-top: 14px; }
.summary-row { display: flex; justify-content: space-between; color: #62685f; font-size: 11px; }
.summary-row.total { margin-top: 4px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.summary-row.total strong { color: var(--red); font-size: 16px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { min-width: 0; display: grid; gap: 6px; margin-bottom: 13px; color: #545b52; font-size: 10px; font-weight: 650; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; min-height: 41px; padding: 9px 10px; border: 1px solid #d9d7ce; border-radius: 2px; outline: 0; background: white; color: var(--ink); font-size: 12px; }
.field textarea { min-height: 66px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px #35634f1a; }
.location-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 9px 0 12px; }
.location-state { flex: 1 1 150px; color: var(--muted); font-size: 10px; }
.location-state.error { color: var(--red); }
.location-button { min-height: 35px; padding: 0 11px; border: 1px solid #c4d0c7; border-radius: 2px; background: #f3f7f3; color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }
.local-coordinate-test { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 11px 0 13px; padding: 11px; border: 1px dashed #c8b78f; background: #fffaf0; }
.local-coordinate-test p { grid-column: 1 / -1; margin: 0; color: #765a2b; font-size: 10px; }
.local-coordinate-test label { display: grid; gap: 5px; color: #67685e; font-size: 10px; }
.local-coordinate-test input { min-width: 0; min-height: 36px; padding: 0 8px; border: 1px solid #d9d2c2; background: white; }
.local-coordinate-test button { grid-column: 1 / -1; min-height: 35px; border: 1px solid #ad8d52; background: #fff; color: #684d20; font-size: 10px; font-weight: 700; }
.map-canvas { width: 100%; height: 220px; margin-bottom: 14px; background: #e5e5dd; }
.photo-preview { width: 100%; max-height: 190px; margin: 2px 0 10px; object-fit: cover; }
.payment-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.payment-choice label { min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid var(--line); font-size: 10px; }
.payment-choice input { accent-color: var(--green); }
.notice { position: fixed; z-index: 20; left: 50%; bottom: 90px; max-width: calc(100vw - 32px); padding: 11px 15px; transform: translate(-50%, 10px); border-radius: 3px; background: #272d29; color: white; opacity: 0; pointer-events: none; font-size: 11px; transition: opacity .18s, transform .18s; }
.notice.visible { opacity: 1; transform: translate(-50%, 0); }
.loading-state, .error-state { min-height: 45vh; display: grid; place-content: center; justify-items: center; gap: 11px; color: var(--muted); text-align: center; }
.error-state strong { color: var(--ink); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 18px; }
.error-state p { max-width: 400px; margin: 0; font-size: 12px; line-height: 1.6; }
.loader { width: 26px; height: 26px; border: 2px solid #dbd8cd; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
.success-panel { padding: 24px 8px; text-align: center; }
.payment-result-page { width: min(520px, calc(100% - 32px)); min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; text-align: center; }
.payment-result-page > img { width: 56px; height: 40px; object-fit: contain; margin-bottom: 17px; }
.payment-result-page .eyebrow { color: var(--green); }
.payment-result-page h1 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 23px; }
.payment-result-page > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.65; }
.payment-result-page a { margin-top: 10px; color: var(--red); font-size: 12px; }
.success-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: #e7f0e8; color: var(--green); font-size: 24px; }
.success-panel h2 { margin: 0 0 6px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 20px; }
.success-panel p { color: var(--muted); font-size: 11px; line-height: 1.65; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 680px) {
  .page-shell { padding: 0 16px 100px; }
  .masthead { height: auto; min-height: 74px; padding: 10px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 11px; }
  .brand img { width: 29px; }
  .brand { font-size: 11px; }
  .store-status { grid-row: 2; grid-column: 1 / -1; max-width: none; margin-left: 0; font-size: 9px; }
  #locale-select { grid-row: 1; grid-column: 2; width: 150px; max-width: 48vw; font-size: 11px; }
  .hero { height: 260px; margin-top: 15px; }
  .hero-stamp { right: 12px; bottom: 12px; width: 100px; height: 62px; }
  .hero-stamp img { width: 43px; height: 48px; }
  .hero-stamp span { font-size: 8px; }
  .menu-toolbar { align-items: flex-end; flex-wrap: wrap; gap: 14px; margin: 25px 0 15px; }
  .menu-toolbar-actions { width: 100%; min-width: 0; }
  .menu-toolbar-actions .search-box { flex: 1; min-width: 0; width: auto; }
  .menu-toolbar-actions .allergen-filter-button { max-width: 65%; min-width: 0; padding: 8px 11px; white-space: normal; overflow-wrap: anywhere; }
  .menu-heading { gap: 9px; }
  .section-index { font-size: 25px; }
  .menu-heading h2 { font-size: 18px; }
  .search-box { width: 45%; height: 36px; }
  .search-box kbd { display: none; }
  .category-nav { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
  .menu-list { grid-template-columns: minmax(0, 1fr); }
  .menu-item { min-height: 116px; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 11px 0; }
  .menu-photo { width: 96px; height: 94px; }
  .menu-copy h3 { font-size: 14px; }
  .cart-button { right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); left: 16px; width: calc(100% - 32px); justify-content: flex-start; }
  .modal-root { align-items: flex-end; }
  .dialog { max-height: 92vh; }
  .dialog-head, .dialog-body { padding-right: 16px; padding-left: 16px; }
  .dialog-footer { padding-right: 16px; padding-left: 16px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .field.full { grid-column: auto; }
  .map-canvas { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.customer-member-entry {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0;padding:16px 20px;border:1px solid #cfe1da;border-radius:14px;background:#f2f8f5;}
.customer-member-entry>div {flex:1;min-width:200px;}
.customer-member-entry p {margin:5px 0 0;font-size:13px;}
#customer-member-form {display:grid;gap:16px;}
#customer-member-form label:not(.customer-member-consent) {display:grid;gap:6px;}
#customer-member-form input:not([type=checkbox]) {width:100%;padding:12px;border:1px solid #ccd9d2;border-radius:8px;font:inherit;}
.customer-member-consent {display:flex;align-items:flex-start;gap:8px;font-size:13px;}
#customer-member-error {color:#a12e2e;}

.customer-bundle-summary { white-space: pre-line; overflow-wrap: anywhere; font-size: .88rem; color: #6b6258; line-height: 1.55; }

.customer-spec-options { display: grid; gap: 10px; border: 1px solid #ddd3c5; border-radius: 12px; margin-bottom: 14px; padding: 12px; }
.customer-spec-options label { display: flex; align-items: center; gap: 10px; min-height: 42px; }.customer-spec-options strong { margin-left: auto; }.customer-spec-label { display: block; margin: 6px 0; color: #725630; }
