@charset "UTF-8";
/*
 * Shared patterns and their prototypes (docs/DESIGN.md「组件原型」; colours and weights follow DESIGN.md):
 * .primary / .secondary / .text-button: Joy Button solid (one per view) / soft / plain;
 * .stepper: Joy IconButton (outlined, round) around the quantity; .cart-drawer and .drawer-*: Joy Drawer (bottom);
 * .dialog-*: Joy Modal + ModalDialog; .toast: Joy Snackbar; .notice: Joy Alert (soft); .loader: Joy CircularProgress;
 * .empty: DESIGN.md empty state; .order-tabs, .product-detail-tab: Joy Tabs (underline); menu categories: Joy List +
 * ListItemButton; dish rows and cards: RIDI list rows and cover cards.
 */
:root {

  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #1d1d1f;
  background: #e5e7e5;
  font-synthesis: none;
  --green: #58b91b;
  --dark: #285e10;
  --muted: #767676;
  --line: #e7e8e8;
  --surface: #fff;
  /* Variables added after the original palette, set to its values (docs/DESIGN.md「颜色」). */
  --canvas: #f5f5f5;
  --fill: #f0f0f0;
  --text: #141414;
  --weak: #a5a5a5;
  --line-strong: #d6d6d6;
  --on-solid: #fff;
  --ink: #25321f;
  --green-pressed: #4ca515;
  --green-soft: #eef2e7;
  --green-line: #e2ead9;
  --price: #e46c22;
  --price-soft: #fff1ef;
  --price-line: #ffc2b2;
  --price-strong: #ff3b30;
  --member: #8f4a07;
  --member-soft: #fff1d2;
  --member-strong: #ffd9a0;
  --member-line: #ece0d0;
  --danger: #c41c1c;
  --danger-text: #b83222;
  --danger-soft: #fef0f0;
  --warning: #b47720;
  --warning-text: #916019;
  --warning-soft: #fff8ed;
  --warning-line: #ebd5bd;
  --info: #1f6bba;
  --identity: #714299;
  --identity-soft: #f4effa;
  --identity-line: #e2d6ef;
  --star: #a87500;
  --scrim: rgba(0,0,0,.5);
  --scrim-strong: rgba(0,0,0,.66);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus,
textarea:focus {
  outline: none;
}
button:active,
a:active {
  opacity: 0.72;
}
input,
textarea {
  caret-color: var(--green);
}
.app {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  min-height: 100dvh;
  padding-bottom: 100px;
  box-shadow: 0 0 70px #22331808;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
}
.subtle,
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.store {
  padding: 30px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.store .subtle {
  margin-top: 10px;
}
.menu-tools {
  padding: 0 32px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  background: #f5f6f2;
  border-radius: 6px;
}
.search > span {
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
}
.search input {
  width: 100%;
  padding: 13px 0;
  background: none;
  border: 0;
  font-size: 13px;
  outline-offset: 6px;
}
.menu-tools > .subtle {
  font-size: 12px;
  white-space: nowrap;
}
.catalog {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  border-top: 1px solid var(--line);
}
.categories {
  padding: 18px 0;
  background: #f5f6f2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  position: sticky;
  top: 0;
  max-height: 65dvh;
  overflow-y: auto;
}
.category {
  background: none;
  min-height: 48px;
  text-align: left;
  padding: 12px 22px;
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid transparent;
}
.category[aria-pressed='true'] {
  background: #fff;
  color: #377019;
  font-weight: 650;
  border-left-color: var(--green);
}
.dish-list {
  padding: 24px 32px 105px 0;
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.section-heading h2 {
  font-size: 17px;
}
.section-heading span {
  font-size: 12px;
  color: #999;
}
.dish {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.dish-image {
  width: 116px;
  height: 116px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.food-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  color: #c4c4c4;
  font-size: 28px;
  font-weight: 600;
}
.dish-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dish-info > p {
  color: #999;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price {
  font-size: 20px;
  letter-spacing: -0.7px;
}
.price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.add {
  background: #4ca515;
  color: #fff;
  border-radius: 9px;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 11px;
  font-size: 14px;
  font-weight: 650;
}
.cart-bar {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(min(720px, 100%) - 48px);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  box-shadow: 0 8px 24px #1e361527;
  z-index: 3;
}
.cart-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bag {
  border: 1px solid #5c6c52;
  border-radius: 6px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #999;
}
.cart-summary strong {
  font-size: 21px;
}
.cart-summary small {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.primary,
.secondary {
  min-height: 46px;
  border-radius: 6px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}
.primary {
  background: #4ca515;
  color: #fff;
}
.primary:hover,
.add:hover {
  background: #4ca515;
}
.secondary {
  background: var(--green-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 100%);
  padding: 15px 0 calc(15px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  z-index: 4;
}
.nav a {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: #999;
  min-height: 25px;
  padding: 6px;
  position: relative;
}
.nav a.active {
  color: #377019;
  font-weight: 650;
}
.nav a.active:before {
  content: '';
  position: absolute;
  top: -16px;
  width: 28px;
  height: 3px;
  border-radius: 5px;
  background: #4ca515;
  left: calc(50% - 14px);
}
.page-title {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 30px 32px 20px;
}
.page-title h1 {
  font-size: 25px;
}
.page-title .eyebrow {
  margin-bottom: 7px;
}
.back {
  font-size: 32px;
  font-weight: 300;
  width: 30px;
  display: inline-block;
  text-align: center;
  color: var(--muted);
}
.panel {
  margin: 16px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}
.hint {
  font-size: 12px;
  margin-top: 10px;
}
.wide {
  width: 100%;
}
.metadata > div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}
.metadata dt {
  color: var(--muted);
  flex-shrink: 0;
}
.metadata dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.actions > * {
  flex: 1;
}
.metadata {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  margin: 0;
}
.text-button {
  background: none;
  color: var(--muted);
  font-size: 12px;
  padding: 12px 0;
  text-decoration: underline;
}
/* Underline tabs (Joy Tabs, docs/DESIGN.md「组件·页签」): the selected status is green text over a 2px underline. */
.order-tabs {
  position: sticky;
  top: 52px;
  z-index: 11;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.order-tabs::-webkit-scrollbar {
  display: none;
}
.order-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 2px;
  border-radius: 0;
  background: none;
  box-shadow: inset 0 -2px transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.order-tabs button[aria-selected='true'] {
  color: #377019;
  box-shadow: inset 0 -2px var(--green);
}
.order-tabs span {
  margin-left: 5px;
  font-size: 11px;
  opacity: 0.75;
}
.order-card {
  display: block;
}
.order-card-head,
.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.order-card-head b {
  color: #377019;
  font-weight: 500;
}
.order-card h3 {
  margin: 21px 0 8px;
}
.order-card p {
  font-size: 12px;
  color: var(--muted);
}
.order-card-foot {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.order-card-foot strong {
  font-size: 19px;
  color: var(--text);
}
.order-card-foot strong span {
  margin-left: 20px;
  color: #999;
  font-size: 22px;
}
.empty {
  padding: 80px 24px;
  text-align: center;
  min-height: 50dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.empty h1 {
  font-size: 24px;
}
.empty p {
  font-size: 13px;
  line-height: 1.8;
  color: #999;
  max-width: 330px;
}
.empty.compact {
  min-height: 200px;
  padding: 24px 8px;
}
.empty.compact h3 {
  font-size: 14px;
}
.loader {
  width: 26px;
  height: 26px;
  border: 2px solid #e2ead9;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.notice {
  margin: 16px 24px;
  padding: 13px 16px;
  border: 1px solid #ebd5bd;
  background: #fff8ed;
  color: #846039;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}
.notice[hidden],
.toast[hidden] {
  display: none;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #263720ed;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 20;
  box-shadow: 0 4px 18px #0002;
  max-width: 90vw;
}
dialog {
  padding: 0;
  border: 0;
  border-radius: 8px;
  width: min(460px, calc(100% - 28px));
  max-height: 88dvh;
  box-shadow: 0 20px 80px #12210740;
}
dialog::backdrop {
  background: #19201666;
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(0, 0, 0, .32);
  color: #fff;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  font-size: 22px;
  line-height: 1;
}
.dialog-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}
.dialog-content {
  padding: 24px;
}
.dialog-content h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 25px 0;
}
legend {
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 650;
}
legend small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.combo-dialog-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.combo-dialog-title h2 {
  margin-bottom: 8px;
}
.combo-dialog-title > strong {
  flex-shrink: 0;
  color: #e46c22;
  font-size: 20px;
  line-height: 1.2;
}
.form-error {
  font-size: 12px;
  color: #a45436;
  min-height: 20px;
  margin-bottom: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Adapted from the supplied dining templates: menu, cart, checkout and orders. */
[hidden] { display: none !important; }
.app { background: var(--canvas); box-shadow: none; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.app.has-cart-bar { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
.app.has-cart-bar.has-cart-progress { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
html:has(.catalog), body:has(.catalog) { height: 100%; overflow: hidden; overscroll-behavior: none; }
body:has(.catalog) { position: fixed; inset: 0; width: 100%; }
.app:has(.catalog) { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.app:has(.catalog) #main { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.app:has(.catalog) .store, .app:has(.catalog) .menu-tools, .app:has(.catalog) > .notice { flex-shrink: 0; }
.app:has(.catalog) .store, .app:has(.catalog) .menu-tools, .app:has(.catalog) .cart-bar, .app:has(.catalog) .nav { touch-action: pinch-zoom; }
.store-header { display: grid; grid-template-rows: 1fr; flex-shrink: 0; transition: grid-template-rows 180ms ease; }
.store-header > .store { min-height: 0; overflow: hidden; transition: padding 180ms ease, opacity 180ms ease; }
.store-header.is-collapsed { grid-template-rows: 0fr; }
.store-header.is-collapsed > .store { padding-top: 0; padding-bottom: 0; opacity: 0; }
.store-header.is-collapsed + .menu-tools { padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { .store-header, .store-header > .store { transition: none; } }
.store { padding: 18px 16px; gap: 12px; background: #fff; }
/* Search (design 2.5): a grey pill with the icon, 取消 beside it. */
.menu-tools { padding: 0 16px 10px; background: #fff; gap: 12px; }
.search { gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--canvas); color: var(--muted); }
.search input { padding: 0; font-size: 14px; }
.search input::-webkit-search-cancel-button { display: none; }
.menu-search-cancel { flex-shrink: 0; min-height: 36px; padding: 0 2px; background: transparent; color: var(--text); font-size: 15px; }
.catalog { grid-template-columns: 88px minmax(0, 1fr); gap: 0; background: #fff; flex: 1; min-height: 0; overflow: hidden; }
/* Category rail (design 2.点单): grey column, the chosen category white with a 3px bar on its left; counts float top right. */
.categories { position: static; align-self: stretch; padding: 0; background: var(--canvas); gap: 0; min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; border-right: 0; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.category { position: relative; padding: 0 10px 0 14px; min-height: 52px; flex-shrink: 0; border-left: 0; border-radius: 0; background: transparent; font-size: 14px; color: var(--muted); font-weight: 400; text-align: left; overflow-wrap: anywhere; }
.category > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category[aria-pressed="true"] { background: #fff; color: var(--text); font-weight: 500; }
.category[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green); }
.category-count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #df182b; color: #fff; font-size: 11px; font-weight: 500; line-height: 16px; text-align: center; }
.dish-list { padding: 0 12px 22px; min-height: 0; overflow-y: auto; overscroll-behavior: none; touch-action: pan-y pinch-zoom; }
.dish-list > section:last-child { min-height: 100%; }
/* Group title: small grey over the rows, sticky inside its group until the next one pushes it away. */
.menu-section-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 8px; min-height: 40px; padding: 12px 0 6px; background: #fff; scroll-margin-top: 0; }
.menu-section-heading h2 { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; }
.menu-section-heading small { min-width: 0; overflow: hidden; color: var(--weak); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.section-heading { margin-bottom: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 17px; }
.section-heading span { display: none; }
/* Dish row (design 2.点单): 88px picture, name 16/500, tag and description grey, price 18 with the 选规格 pill or the round
   add control on its right; a sold-out row turns grey with its state in place of the control. */
.dish { display: flex; gap: 12px; align-items: stretch; padding: 10px 0 14px; border: 0; }
.dish-media, .dish-detail { padding: 0; background: transparent; color: inherit; text-align: left; }
.dish-media { flex-shrink: 0; align-self: flex-start; }
.dish-image { display: block; width: 88px; height: 88px; border-radius: 6px; background: var(--canvas); }
.dish-image.food-placeholder { display: flex; font-size: 26px; }
.dish-info { flex: 1; min-width: 0; min-height: 88px; display: flex; flex-direction: column; padding: 1px 0; }
.dish h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.dish-promo { display: inline-block; max-width: 100%; margin-top: 4px; padding: 0 5px; border-radius: 3px; background: var(--price-soft); color: var(--price); font-size: 12px; font-weight: 400; line-height: 20px; overflow-wrap: anywhere; }
.dish-detail p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; }
.dish-foot { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; min-width: 0; }
.dish-price { display: flex; align-items: baseline; gap: 2px; min-width: 0; color: var(--text); line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish-price .price-symbol, .dish-price .price-suffix { font-size: 13px; font-weight: 400; }
.dish-price .price-suffix { color: var(--muted); }
.dish-price strong { font-size: 18px; font-weight: 500; letter-spacing: 0; }
.dish-price s { margin-left: 2px; color: var(--weak); font-size: 12px; font-weight: 400; }
.dish-price.is-sale { color: var(--price-strong); }
.dish-controls { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; margin-left: auto; min-height: 28px; }
.dish-controls > .muted { color: var(--weak); font-size: 13px; line-height: 1.5; }
.dish .add, .dish .stepper { margin: -8px -10px -8px 0; }
/* 选规格 / 选套餐: a 28px green pill in a 44px tap area; the red count marks what is already in the cart. */
.dish-pick { display: flex; align-items: center; justify-content: center; height: 44px; margin: -8px 0; padding: 0 0 0 8px; border-radius: 0; background: transparent; line-height: 1; }
.dish-pick-capsule { position: relative; display: flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 400; white-space: nowrap; }
.dish-pick-count { position: absolute; top: -8px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border: 1px solid #fff; border-radius: 999px; background: #df182b; color: #fff; font-size: 11px; font-weight: 500; line-height: 14px; text-align: center; }
.dish-pick:disabled { opacity: 1; }
.dish-pick:disabled .dish-pick-capsule { background: var(--fill); color: var(--weak); }
/* Round stepper: 26px discs in 44px tap areas; minus outlined grey, plus filled green. */
.stepper { display: flex; align-items: center; flex-shrink: 0; gap: 0; }
.stepper output { min-width: 22px; color: var(--text); font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.step, .dish .add, .cart-pick .add { position: relative; z-index: 0; flex-shrink: 0; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: transparent; font-size: 0; line-height: 0; }
.step::before, .dish .add::before, .cart-pick .add::before { --stroke: #555; content: ""; position: absolute; z-index: -1; top: 9px; left: 9px; width: 26px; height: 26px; box-sizing: border-box; border: 1px solid #c8c8c8; border-radius: 50%; background: linear-gradient(var(--stroke), var(--stroke)) center / 10px 2px no-repeat, #fff; }
.step[data-delta="1"]::before, .dish .add::before, .cart-pick .add::before { --stroke: #fff; border-color: var(--green); background: linear-gradient(var(--stroke), var(--stroke)) center / 11px 2px no-repeat, linear-gradient(var(--stroke), var(--stroke)) center / 2px 11px no-repeat, var(--green); }
.step:disabled, .dish .add:disabled, .cart-pick .add:disabled { opacity: 1; }
.step:disabled::before, .dish .add:disabled::before, .cart-pick .add:disabled::before { --stroke: #a5a5a5; border-color: #e5e5e5; background-color: #f5f5f5; }
.step:hover, .dish .add:hover, .dish .add:active, .cart-pick .add:hover, .cart-pick .add:active { background: transparent; color: transparent; }
.price { font-size: 16px; color: var(--price); letter-spacing: 0; }
.add { min-width: 36px; min-height: 36px; border-radius: 18px; padding: 5px 8px; background: #fff; color: var(--dark); border: 1px solid #b8d3aa; font-size: 14px; }
.add:hover { color: #fff; }
/* Closed (design 2.7.1): a dark bar where the cart bar would be. */
.menu-closed { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px; background: #3b3838; color: #fff; text-align: center; }
.menu-closed strong { font-size: 15px; font-weight: 500; }
.menu-closed span { color: #a8a5a5; font-size: 12px; }
.app:has(.catalog) [data-menu-closed] { flex-shrink: 0; }
/* Static white cart bar above the bottom navigation (customer-mini DESIGN_LANGUAGE 购物条): the full-width offer progress strip,
   then the bag with its count, 原价 struck and 券后约, the fee note and 去结算. The open drawer repeats it as its footer. */
.cart-bar { bottom: calc(56px + env(safe-area-inset-bottom)); display: block; width: min(720px, 100%); height: auto; border-radius: 0; padding: 0; background: transparent; color: #141414; box-shadow: none; }
.cart-progress { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 34px; padding: 0 12px; border-radius: 0; background: linear-gradient(100deg, #ffe9e3, #fff5e2); color: #ff3b30; font-size: 12px; text-align: left; }
.cart-progress-steps { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; }
.cart-progress-step { flex-shrink: 0; display: flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid #ffc2b2; border-radius: 999px; background: rgba(255, 255, 255, .7); line-height: 1; white-space: nowrap; }
.cart-progress-step.is-active { border-color: transparent; background: linear-gradient(100deg, #ff7a45, #ff3b30); color: #fff; }
.cart-progress-link { flex-shrink: 0; width: 12px; height: 1px; background: #ffc2b2; }
.cart-progress-more { flex-shrink: 0; display: flex; align-items: center; gap: 2px; }
.cart-progress-more i { font-size: 14px; font-style: normal; }
/* Design 2.点单 cart bar: grey strip, the white round bag lifted over its top edge, the amount, and 去结算 as a flush green block. */
.cart-bar-main { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 0 0 12px; background: #f2f2f2; }
.cart-summary { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 0; background: transparent; color: inherit; text-align: left; }
.cart-bag { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -18px; border-radius: 50%; background: #fff; color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.cart-bar:has(.cart-progress) .cart-bag { width: 44px; height: 44px; margin-top: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.cart-icon { width: 26px; height: 26px; color: #555; }
.cart-bag.is-full .cart-icon { color: var(--green); }
.cart-bag.is-bump { animation: cart-bump 300ms ease-out; }
@keyframes cart-bump { 40% { transform: scale(1.15); } }
/* Added-dish flight (app.js flyToCart): x moves linearly, y eases up then down, which draws the arc. */
.fly-dot { position: fixed; left: 0; top: 0; z-index: 1000; width: 0; height: 0; pointer-events: none; font-style: normal; animation: fly-x var(--fly-ms) linear forwards; }
.fly-dot > i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); animation: fly-y var(--fly-ms) cubic-bezier(.4, -.7, .9, .7) forwards; }
@keyframes fly-x { to { transform: translateX(var(--fly-x)); } }
@keyframes fly-y { to { transform: translateY(var(--fly-y)); } }
.bag-count { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #df182b; color: #fff; font-size: 11px; font-weight: 500; line-height: 16px; text-align: center; }
.cart-bar-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-price { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-price strong { color: var(--text); font-size: 20px; font-weight: 500; line-height: 1.2; }
.cart-price strong.is-estimate, .cart-estimate { color: #e46c22; }
.cart-original { color: #a5a5a5; font-size: 12px; }
.cart-estimate { font-size: 12px; }
.cart-meta { min-width: 0; overflow: hidden; color: #787878; font-size: 12px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.cart-bar .cart-checkout, .drawer-footer .cart-checkout { flex-shrink: 0; width: 108px; max-width: 40%; min-height: 52px; padding: 0 12px; border-radius: 0; background: var(--green); color: #fff; font-size: 17px; font-weight: 500; }
.cart-bar .cart-checkout:disabled, .drawer-footer .cart-checkout:disabled { opacity: 1; background: #e3e3e3; color: #a5a5a5; }
/* Buttons (design): green pill for the main action, white outlined pill with green text for the second one. */
.primary, .secondary { border-radius: 999px; font-size: 15px; padding: 11px 22px; gap: 8px; min-height: 44px; }
.secondary { background: #fff; color: var(--green-pressed); border: 1px solid var(--green); }
.nav { padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); background: #fff; backdrop-filter: none; border-top: 1px solid var(--line); }
.nav a { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; line-height: 1.2; color: #999; }
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav a.active { color: var(--green); font-weight: 500; }
.nav a.active:before { display: none; }
.page-title { background: #fff; color: var(--text); position: relative; justify-content: center; min-height: 52px; padding: 12px 52px; margin-bottom: 10px; }
.page-title h1 { font-size: 17px; font-weight: 500; letter-spacing: 0; text-align: center; }
.back { position: absolute; left: 8px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--text); }
.chevron.is-back { width: 11px; height: 11px; margin-left: 4px; transform: rotate(-135deg); }
.compact-title { position: sticky; top: 0; z-index: 12; min-height: 52px; padding: 10px 56px; box-shadow: 0 1px 0 var(--line); }
.compact-title .back { left: 8px; top: 4px; }
.panel { margin: 10px 12px; border: 0; border-radius: 8px; padding: 16px; }
.panel .section-heading { align-items: center; }
.panel .section-heading .text-button { padding: 6px; text-decoration: none; }
/* Expanded cart (customer-mini COMPONENTS.md 展开购物车, PR#10245): the 凑单条 on a light price-coloured wash at the top,
   then 已选商品 with the fee note, then rows — 76px thumbnail, name 15/500 (折 tag for a single-item offer), options 12/400,
   the price row at the bottom with the stepper on its right; rows separated by space, no lines or cards. */
#cart-drawer > .drawer-handle { display: none; }
#cart-drawer .drawer-header { gap: 8px; padding: 8px 16px 4px; border-bottom: 0; }
#cart-drawer .drawer-header h2 { flex-shrink: 0; margin-right: 0; }
.cart-fees { flex: 1; min-width: 0; overflow: hidden; color: #787878; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.cart-addon { flex-shrink: 0; padding: 4px 0 10px; background: linear-gradient(105deg, #fff1e8, #fff7e6); }
.cart-addon-head { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 16px; }
.cart-addon-line { flex: 1; min-width: 0; display: flex; align-items: baseline; overflow: hidden; color: #141414; font-size: 14px; line-height: 1.3; white-space: nowrap; }
.cart-addon-line em { color: #e46c22; font-style: normal; font-variant-numeric: tabular-nums; }
.cart-addon-saved { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-addon-saved em { margin-left: 4px; }
.cart-addon-saved small { overflow: hidden; color: #787878; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.cart-addon-more { flex-shrink: 0; display: flex; align-items: center; gap: 2px; height: 24px; padding: 0 8px; border: 1px solid #e46c22; border-radius: 999px; background: transparent; color: #e46c22; font-size: 12px; line-height: 1; }
.cart-addon-more i { font-size: 14px; font-style: normal; }
.cart-addon-close { flex-shrink: 0; width: 44px; height: 44px; padding: 0; background: transparent; color: #787878; font-size: 24px; line-height: 1; }
.cart-picks { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.cart-picks::-webkit-scrollbar { display: none; }
.cart-pick { flex: 0 0 196px; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 4px; background: #fff; }
.cart-pick .cart-thumb { flex-basis: 52px; width: 52px; height: 52px; }
.cart-pick-copy { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.cart-pick-copy p { overflow: hidden; color: #141414; font-size: 14px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.cart-pick-foot { display: flex; align-items: center; justify-content: space-between; }
.cart-pick-foot strong { color: #e46c22; font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; }
.cart-pick .add { margin: -10px -10px -10px 0; }
.cart-line { display: flex; align-items: stretch; gap: 12px; padding: 10px 0; }
.cart-thumb { position: relative; flex: 0 0 76px; width: 76px; height: 76px; overflow: hidden; border-radius: 4px; background: #f0f0f0; }
.cart-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart-initial { position: absolute; inset: 0; display: grid; place-items: center; background: #f5f5f5; color: #a5a5a5; font-size: 20px; font-weight: 400; font-style: normal; }
.cart-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-copy h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #141414; font-size: 15px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.cart-tag { display: inline-block; margin-right: 4px; padding: 0 4px; border: 1px solid #ffb3aa; border-radius: 4px; color: #ff4d3d; font-size: 12px; font-weight: 400; line-height: 1.5; vertical-align: 1px; }
.cart-spec { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #787878; font-size: 12px; font-weight: 400; line-height: 1.5; }
.cart-warn { color: #b83222; font-size: 12px; line-height: 1.5; }
.cart-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-amount { min-width: 0; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-amount small { color: #e46c22; font-size: 12px; }
.cart-amount strong { color: #141414; font-size: 16px; font-weight: 400; }
.cart-amount strong.is-sale { color: #e46c22; }
.cart-amount s { color: #a5a5a5; font-size: 12px; }
.cart-foot .stepper { margin: -10px -10px -10px auto; }
.cart-caret { color: #a5a5a5; font-size: 12px; font-style: normal; }
.order-card-foot strong { color: #e46c22; }
.order-card h3 { font-size: 18px; }
.order-card-foot { border-top-style: dashed; }
.empty { padding: 48px 20px; gap: 8px; }
.empty h1 { font-size: 17px; font-weight: 500; }
.empty p { font-size: 14px; color: var(--muted); }
.page-title:has(+ .order-tabs) { margin-bottom: 0; }
.notice { position: fixed; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(min(720px, 100%) - 24px); margin: 0; z-index: 21; }
.app.has-cart-bar > .notice, body:has(.app.has-cart-bar) .toast { bottom: calc(132px + env(safe-area-inset-bottom)); }
.app.has-cart-progress > .notice, body:has(.app.has-cart-progress) .toast { bottom: calc(166px + env(safe-area-inset-bottom)); }
body.drawer-open { overflow: hidden; }
.cart-drawer { position: fixed; inset: auto 0 0; margin: 0 auto; width: min(720px, 100%); max-width: 100%; max-height: min(82dvh, 760px); border-radius: 4px 4px 0 0; color: #1d1d1f; background: #fff; overflow: hidden; }
.cart-drawer[open] { display: flex; flex-direction: column; animation: drawer-up 240ms cubic-bezier(.2,.8,.2,1); }
.cart-drawer::backdrop { background: #0007; backdrop-filter: none; }
.drawer-handle { flex-shrink: 0; width: 36px; height: 4px; border-radius: 4px; background: #d6d6d6; margin: 10px auto 0; }
.drawer-header { display: flex; align-items: center; gap: 18px; padding: 6px 16px 12px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.drawer-header h2 { font-size: 16px; font-weight: 500; margin-right: auto; }
.drawer-header .text-button { text-decoration: none; min-height: 44px; }
.drawer-close { width: 44px; height: 44px; font-size: 28px; background: transparent; color: #777; }
.drawer-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 0 16px; }
.drawer-footer { flex-shrink: 0; padding: 0 0 env(safe-area-inset-bottom); background: #fff; }
@keyframes drawer-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 360px) { .catalog { grid-template-columns: 70px minmax(0, 1fr); } .category { padding-left: 10px; } .dish { gap: 8px; } .dish-image { width: 70px; height: 72px; } .dish-list { padding-left: 10px; padding-right: 10px; } .dish-info { min-height: 72px; } .cart-bar-main { padding-right: 12px; padding-left: 12px; } .cart-bar .cart-checkout, .drawer-footer .cart-checkout { min-width: 96px; } }
@media (prefers-reduced-motion: reduce) { .cart-drawer[open] { animation: none; } }
/* STOREID01: the store's member agreement (store-agreement.js), a bottom drawer that only closes by answering. */
.store-agreement-text { white-space: pre-wrap; font-size: 14px; line-height: 1.7; margin: 12px 0; }
.store-agreement-actions { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.store-agreement-actions .contact-row > button { flex: 1; min-height: 44px; }
.store-join { display: block; margin: 4px 16px 0; min-height: 36px; font-size: 13px; }

/* 外卖配送: the checkout's address list and the new-address sheet with its map pin (delivery.js). */
.checkout-delivery .delivery-head h2 { font-size: 16px; font-weight: 500; margin: 0 0 4px; }
/* Address list (design 2.3.1): one row per address, the chosen one marked green, 编辑 on the right. */
.delivery-row { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.delivery-row input[type=radio] { accent-color: var(--green); width: 18px; height: 18px; }
.delivery-row label { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.delivery-row input { margin-top: 3px; flex-shrink: 0; }
.delivery-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.delivery-row strong { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.delivery-row small { color: var(--muted); font-size: 13px; }
.delivery-row em { font-style: normal; font-size: 12px; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); }
.delivery-row.is-out label { cursor: default; color: var(--weak); }
.delivery-row .text-button { flex-shrink: 0; min-height: 32px; }
.delivery-sheet .delivery-form { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
.delivery-form header { display: flex; align-items: center; justify-content: space-between; }
.delivery-form header h2 { font-size: 16px; font-weight: 500; }
/* New address (design 2.3.1.3): label on the left, the input on the right, one line under each row. */
.delivery-form .field { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.delivery-form .field span { font-size: 15px; color: var(--text); }
.delivery-form .field input { font: inherit; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--text); }
.delivery-tags { display: flex; flex-wrap: wrap; gap: 14px; border: 0; padding: 0; margin: 0; }
.delivery-tags legend { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.delivery-tags label { display: flex; align-items: center; gap: 4px; min-height: 32px; }
.map-picker { position: relative; flex-shrink: 0; height: 220px; overflow: hidden; border-radius: 4px; background: var(--fill); touch-action: none; cursor: grab; user-select: none; }
.map-picker.is-dragging { cursor: grabbing; }
.map-tiles { position: absolute; inset: 0; }
.map-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
.map-pin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 22px; height: 22px; margin: -24px 0 0 -11px; border-radius: 50% 50% 50% 0; background: #d9483b; transform: rotate(-45deg); box-shadow: 0 2px 4px rgba(0,0,0,.35); pointer-events: none; }
.map-pin::after { content: ''; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); }
.map-zoom { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.map-zoom button { width: 36px; height: 36px; min-height: 36px; padding: 0; font-size: 18px; }
.delivery-form .field input { min-height: 50px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; font-size: 15px; }
.delivery-form .field input:focus { outline: none; }
.delivery-tags { align-items: center; gap: 10px; padding: 8px 0 4px; }
.delivery-tags legend { float: left; width: 76px; margin: 6px 0 0; color: var(--text); font-size: 15px; }
.delivery-tags label input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-tags label span { display: inline-block; padding: 5px 16px; border-radius: 4px; background: var(--canvas); font-size: 14px; }
.delivery-tags label input:checked + span { background: #edf7e6; color: var(--green-pressed); }
.delivery-tags label input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 1px; }
.map-zoom button { border-radius: 4px; background: #fff; color: var(--text); border-color: var(--line); }
