:root {
  --paper: #f8f2e7;
  --card: #fffdfa;
  --ink: #29231c;
  --subtle: #817669;
  --line: #e8ded0;
  --red: #ad3e2e;
  --red-dark: #8e2e22;
  --orange: #d66b36;
  --green: #466147;
  --gold: #b9812f;
  --shadow: 0 8px 28px rgba(72, 48, 26, .10);
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 1.45; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(214,107,54,.34); outline-offset: 2px; }
img { display: block; max-width: 100%; }

.app { max-width: 760px; margin: auto; padding: 18px 10px calc(118px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; margin: 4px 2px 12px 18px; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand__name { font-family: var(--font-serif); font-size: 26px; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.contact-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 74px; gap: 12px; align-items: center; margin: 0 2px 14px; padding: 11px 11px 11px 14px; border: 1px solid #ead8c0; border-radius: 14px; background: linear-gradient(115deg, #fff7ed, #f4e7d7); box-shadow: 0 3px 12px rgba(72,48,26,.045); }
.contact-card__copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.contact-card__copy strong { color: var(--ink); font-family: var(--font-serif); font-size: 16px; letter-spacing: .04em; }
.contact-card__copy span { color: #796a5d; font-size: 11px; }
.contact-card__phone { margin-top: 3px; color: var(--red); font-size: 13px; font-weight: 700; text-decoration: none; }
.contact-card__qr { width: 74px; height: 94px; padding: 0; overflow: hidden; border: 1px solid #e1d1c1; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px rgba(72,48,26,.08); }
.contact-card__qr img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.contact-card__qr:active { transform: scale(.97); }

.welcome-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(41, 35, 28, .52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: welcome-fade .22s ease both;
}
/* 兼容不支持 backdrop-filter 的页面：欢迎弹窗打开时直接模糊底层内容。 */
body.welcome-open > #app,
body.welcome-open > #sheet-root,
body.welcome-open > #toast {
  filter: blur(8px);
}
.welcome-modal__dialog {
  position: relative;
  width: 100%; max-width: 360px;
  background: var(--card);
  border-radius: 20px;
  padding: 44px 22px 26px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(41, 35, 28, .28);
  animation: welcome-pop .26s cubic-bezier(.2,.8,.3,1.2) both;
}
.welcome-modal__close {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--subtle); background: transparent;
}
.welcome-modal__close:hover { background: var(--line); color: var(--ink); }
.welcome-modal__close .icon { width: 18px; height: 18px; }
.welcome-modal__dialog h2 {
  margin: 0 0 10px; padding: 0;
  font-family: var(--font-serif);
  font-size: 21px; line-height: 1.4; letter-spacing: .04em;
  color: var(--ink); white-space: nowrap;
}
.welcome-modal__dialog p {
  margin: 0 0 24px;
  font-size: 13px; line-height: 1.7; color: var(--subtle);
}
.welcome-modal__btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--red); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .08em;
}
.welcome-modal__btn:hover { background: var(--red-dark); }
.contact-modal { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(41,35,28,.52); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: welcome-fade .18s ease both; }
.contact-modal__dialog { position: relative; width: min(340px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 30px 18px 18px; border-radius: 20px; background: var(--card); box-shadow: 0 18px 50px rgba(41,35,28,.28); text-align: center; animation: welcome-pop .22s cubic-bezier(.2,.8,.3,1.1) both; }
.contact-modal__dialog h2 { margin: 0 0 13px; color: var(--ink); font-family: var(--font-serif); font-size: 20px; letter-spacing: .04em; }
.contact-modal__close { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--subtle); background: transparent; }
.contact-modal__close:hover { color: var(--ink); background: var(--line); }
.contact-modal__close .icon { width: 18px; height: 18px; }
.contact-modal__image { width: 100%; border-radius: 10px; }
.contact-modal__phone { display: inline-block; margin-top: 13px; color: var(--red); font-size: 14px; font-weight: 700; text-decoration: none; }
.verification-modal { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(41,35,28,.58); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: welcome-fade .18s ease both; }
.verification-modal__dialog { position: relative; width: min(370px, 100%); padding: 30px 18px 22px; border-radius: 20px; background: var(--card); box-shadow: 0 18px 50px rgba(41,35,28,.28); text-align: center; animation: welcome-pop .22s cubic-bezier(.2,.8,.3,1.1) both; }
.verification-modal__dialog h2 { margin: 0 0 10px; color: var(--ink); font-family: var(--font-serif); font-size: 21px; }
.verification-modal__dialog p { margin: 0 auto 16px; max-width: 300px; color: var(--subtle); font-size: 13px; line-height: 1.65; }
.verification-modal__close { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--subtle); background: transparent; }
.verification-modal__close:hover { color: var(--ink); background: var(--line); }
.verification-modal__close .icon { width: 18px; height: 18px; }
.verification-modal__widget { display: flex; justify-content: center; min-height: 65px; }
.verification-modal__status { margin: 12px 0 0 !important; font-size: 12px !important; }
@keyframes welcome-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes welcome-pop {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search { position: sticky; z-index: 9; top: 0; display: block; margin: 0 0 14px; padding: 10px 0 12px; background: var(--paper); }
.search__icon { position: absolute; left: 12px; top: 50%; display: grid; place-items: center; width: 20px; height: 20px; transform: translateY(-50%); color: var(--subtle); }
.search__icon .icon { width: 18px; height: 18px; }
.search input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 13px; padding: 0 15px 0 40px; color: var(--ink); background: var(--card); box-shadow: 0 2px 10px rgba(72,48,26,.035); }
.search input::placeholder { color: #afa497; }

.menu-layout { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 9px; align-items: start; }
.category-nav { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 8px; }
.menu-content { min-width: 0; }
.menu-category { margin-bottom: 25px; scroll-margin-top: 82px; }
.menu-category + .menu-category { padding-top: 15px; border-top: 1px solid var(--line); }
.category-tab { width: 100%; min-height: 51px; padding: 7px 6px; border: 1px solid transparent; border-radius: 12px; color: #73685d; background: transparent; font-size: 12px; line-height: 1.25; text-align: center; }
.category-tab + .category-tab { position: relative; margin-top: 8px; }
.category-tab + .category-tab::before { content: ""; position: absolute; top: -9px; right: 10px; left: 10px; border-top: 1px solid #dfd3c6; }
.category-tab small { display: block; margin-top: 3px; color: #aa9c8d; font-size: 10px; }
.category-tab.is-active { color: var(--red); background: #fffdfa; border-color: #e9d4c1; box-shadow: 0 4px 12px rgba(82,53,27,.06); font-weight: 700; }
.category-tab.is-active small { color: var(--orange); }

.menu-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 1px 11px; }
.menu-heading h2 { margin: 0; font-family: var(--font-serif); font-size: 19px; letter-spacing: .08em; }
.menu-heading span { color: var(--subtle); font-size: 12px; }
.dish-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
.dish-card { --photo-size: 108px; display: grid; grid-template-columns: var(--photo-size) minmax(0,1fr); min-height: var(--photo-size); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--card); box-shadow: 0 3px 12px rgba(71,48,23,.055); cursor: pointer; }
.dish-card__photo { position: relative; width: var(--photo-size); height: var(--photo-size); padding: 0; background: #e9dfd0; overflow: hidden; }
.dish-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.dish-card__photo:active img { transform: scale(1.04); }
.dish-card__tag { position: absolute; top: 8px; left: 8px; padding: 3px 6px; border-radius: 5px; background: rgba(255,253,250,.92); color: #a65f2e; font-size: 10px; }
.dish-card__tag--pending { color: #8c7e70; }
.dish-card__body { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; padding: 10px 9px; }
.dish-card__title { margin: 0 0 8px; font-family: var(--font-serif); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.dish-card__title-button { display: -webkit-box; overflow: hidden; width: 100%; padding: 0; color: inherit; background: none; font: inherit; letter-spacing: inherit; text-align: left; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dish-card__tools { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.detail-link { padding: 4px 0; color: var(--subtle); background: none; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.add-btn, .qty-step { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: var(--red); font-size: 20px; line-height: 1; }
.add-btn:active, .qty-step:active { background: var(--red-dark); transform: scale(.94); }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.add-btn .icon, .qty-step .icon, .cart-stepper .icon, .mini-counter .icon, .close-btn .icon { width: 15px; height: 15px; }
.sheet--cart .close-btn .icon { width: 16px; height: 16px; }
.spec-counter .icon { width: 19px; height: 19px; }
.counter { display: flex; align-items: center; gap: 6px; }
.counter .qty-step { width: 27px; height: 27px; background: #f2e6db; color: var(--red); font-size: 18px; }
.counter strong { min-width: 14px; color: var(--ink); font-size: 13px; text-align: center; }
.spec-btn { position: relative; min-height: 28px; padding: 0 9px; border: 1px solid #e8c9b6; border-radius: 8px; color: var(--red); background: #fff5ed; font-size: 11px; font-weight: 700; }
.spec-btn i { position: absolute; top: -8px; right: -7px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid var(--card); border-radius: 999px; color: #fff; background: var(--red); font-size: 10px; font-style: normal; }
.empty { grid-column: 1 / -1; padding: 42px 15px; color: var(--subtle); text-align: center; background: rgba(255,253,250,.58); border: 1px dashed #d9cdbd; border-radius: 14px; }
.empty b { display: block; margin-bottom: 5px; color: var(--ink); font-family: var(--font-serif); font-size: 17px; }

.order-bar { position: fixed; z-index: 10; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; align-items: center; width: min(610px, calc(100% - 24px)); min-height: 64px; padding: 6px; transform: translateX(-50%); border: 1px solid rgba(225,216,205,.9); border-radius: 999px; background: rgba(255,253,249,.96); box-shadow: 0 10px 28px rgba(67,44,22,.17); backdrop-filter: blur(14px); }
.order-bar__summary { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 51px; padding: 0 9px 0 7px; color: var(--subtle); background: transparent; text-align: left; }
.cart-icon { position: relative; display: grid; place-items: center; flex: none; width: 43px; height: 43px; margin-right: 7px; border-radius: 50%; color: var(--red); background: #f8ede5; }
.cart-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.cart-icon i { position: absolute; right: -3px; top: -3px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid var(--card); border-radius: 999px; color: #fff; background: var(--red); font-size: 10px; font-style: normal; font-weight: 700; }
.cart-copy { min-width: 0; }
.order-bar__summary strong { display: block; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.order-bar__summary .cart-copy > span { display: block; overflow: hidden; margin-top: 1px; color: var(--subtle); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-btn { align-self: stretch; min-width: 105px; padding: 0 20px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #bb4936, #a43629); box-shadow: 0 3px 8px rgba(167,58,43,.24); font-weight: 700; letter-spacing: .08em; }
.checkout-btn:disabled, .order-bar__summary:disabled { color: #aaa094; background: transparent; cursor: not-allowed; }
.checkout-btn:disabled { background: #e8e0d7; box-shadow: none; }

body.sheet-open { position: fixed; width: 100%; overflow: hidden; }
.backdrop { position: fixed; z-index: 30; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(38,27,17,.42); }
.backdrop--cart { padding-bottom: 0; background: rgba(38,27,17,.22); }
.backdrop--cart .sheet--cart { position: relative; z-index: 1; margin: 0; max-height: 100dvh; padding-bottom: calc(90px + env(safe-area-inset-bottom)); background: var(--card); }
.backdrop--cart .cart-dock { position: fixed; z-index: 2; }
.backdrop--spec { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
.backdrop--spec::after { content: ""; position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; height: calc(94px + env(safe-area-inset-bottom)); background: var(--paper); pointer-events: none; }
.backdrop--spec .sheet--spec { position: relative; z-index: 2; margin-bottom: 0; }
.backdrop--spec .cart-dock { z-index: 3; animation: dockRise .32s cubic-bezier(.18,.82,.28,1.08) both; }
.backdrop--spec .cart-dock--settled { animation: none; }
.sheet { width: min(760px, 100%); max-height: min(90dvh, 800px); overflow: auto; overscroll-behavior: contain; padding: 16px 15px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--paper); animation: rise .24s ease-out; }
.sheet--no-animation { animation: none; }
.sheet--detail { display: flex; flex-direction: column; height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); }
.sheet--detail > * { flex-shrink: 0; }
.sheet--detail .sheet__handle { position: sticky; z-index: 3; top: 0; }
.sheet--cart { display: flex; flex-direction: column; height: min(56dvh, 520px); transition: height .24s ease-out, border-radius .24s ease-out; }
.sheet--cart.is-expanded { height: 100dvh; border-radius: 0; }
.sheet--cart .sheet__head { flex: none; }
.sheet__head--cart { position: relative; display: block; min-height: 61px; margin-bottom: 10px; padding: 21px 1px 0; }
.cart-head__close { position: absolute; top: -12px; right: 0; }
.cart-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cart-head__row h2 { min-width: 0; }
.sheet--cart .close-btn { display: grid; place-items: center; width: 33px; height: 33px; padding: 0; border: 1px solid #ece3d9; color: #887b6e; background: #f8f3ed; }
.sheet--cart .close-btn .icon { width: 16px; height: 16px; }
.cart-clear-btn { display: inline-flex; align-items: center; flex: none; gap: 5px; min-height: 0; margin-bottom: 3px; padding: 2px 3px 2px 9px; border-radius: 8px; color: #918579; background: transparent; font-size: 13px; font-weight: 500; }
.cart-clear-btn:active { background: #f4ece4; }
.cart-clear-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.cart-clear-btn:disabled { opacity: .42; cursor: not-allowed; }
.sheet--spec { max-height: min(43dvh, 390px); margin-bottom: 0; padding-bottom: 0; }
.sheet--spec .sheet__head { padding: 0 0 5px; }
.spec-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 5px 0 12px; }
.spec-list h3 { grid-column: 1 / -1; margin: 0 0 2px; color: var(--subtle); font-size: 13px; font-weight: 500; }
.spec-list__option { display: grid; place-items: center; width: 100%; min-height: 48px; margin: 0; padding: 5px 3px; border: 1px solid #ded6cc; border-radius: 10px; color: var(--ink); background: #fffdfa; font-size: 13px; text-align: center; }
.spec-list__option.is-selected { border: 2px solid var(--red); color: var(--red); background: #fff7f1; font-weight: 700; }
.spec-list__option i { display: none; color: var(--subtle); font-size: 11px; font-style: normal; font-weight: 400; }
.spec-sheet__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -15px; padding: 13px 15px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fffdfa; box-shadow: 0 -7px 18px rgba(72,48,26,.05); }
.spec-sheet__footer > span { overflow: hidden; color: var(--subtle); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.spec-add-btn { min-height: 44px; padding: 0 18px; border-radius: 9px; color: #fff; background: var(--red); font-weight: 700; }
.spec-counter { display: flex; align-items: center; gap: 12px; }
.spec-counter button { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: var(--red); background: #f4e6db; font-size: 23px; }
.spec-counter strong { min-width: 15px; text-align: center; }
.sheet__handle { width: 38px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: #d5c8b9; touch-action: none; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.sheet__head h2 { margin: 0; font-family: var(--font-serif); font-size: 22px; letter-spacing: .06em; }
.sheet__head p { margin: 4px 0 0; color: var(--subtle); font-size: 12px; }
.cart-list { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid var(--line); }
.cart-list__row { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-list__row img { flex: none; width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.cart-list__copy { flex: 1; min-width: 0; }
.cart-list__copy b { display: block; overflow: hidden; font-family: var(--font-serif); text-overflow: ellipsis; white-space: nowrap; }
.cart-list__copy span { display: block; overflow: hidden; margin-top: 3px; color: var(--subtle); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cart-stepper { display: flex; align-items: center; flex: none; gap: 7px; }
.cart-stepper button { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--red); background: #f1e3d8; font-size: 18px; }
.cart-stepper strong { min-width: 14px; text-align: center; }
.cart-list__empty { padding: 20px 0; color: var(--subtle); text-align: center; }
.close-btn { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 50%; color: #75685a; background: #ede4d9; font-size: 20px; }
.cart-clear-confirm { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(38,27,17,.46); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: confirmFade .16s ease-out both; }
.clear-confirm__dialog { width: min(318px, 100%); padding: 24px 20px 15px; border-radius: 18px; background: #fffdfa; box-shadow: 0 18px 42px rgba(48,31,15,.25); animation: confirmPop .2s cubic-bezier(.2,.8,.3,1.1) both; text-align: center; }
.clear-confirm__dialog h2 { margin: 0; color: var(--ink); font-family: var(--font-serif); font-size: 21px; letter-spacing: .03em; }
.clear-confirm__dialog p { margin: 8px 0 22px; color: var(--subtle); font-size: 13px; }
.clear-confirm__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.clear-confirm__actions button { min-height: 43px; border-radius: 10px; font-weight: 700; }
.clear-confirm__cancel { color: #74685d; background: #f2ebe3; }
.clear-confirm__accept { color: #fff; background: var(--red); }
.notice { margin: 0 0 13px; padding: 10px 11px; border-radius: 10px; background: #fff2df; color: #865626; font-size: 12px; line-height: 1.55; }
.notice--soft { background: #f2eee7; color: #726659; }
.confirm-list, .ingredient-preview { border-top: 1px solid var(--line); }
.confirm-dish { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.confirm-dish img { width: 48px; height: 40px; border-radius: 7px; object-fit: cover; }
.confirm-dish__name { flex: 1; min-width: 0; }
.confirm-dish__name b { display: block; overflow: hidden; font-family: var(--font-serif); text-overflow: ellipsis; white-space: nowrap; }
.confirm-dish__name span { color: var(--subtle); font-size: 11px; }
.mini-counter { display: flex; align-items: center; gap: 7px; }
.mini-counter button { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--red); background: #f1e3d8; font-size: 17px; }
.mini-counter strong { min-width: 12px; font-size: 13px; text-align: center; }
.form-block { margin: 17px 0; }
.form-block label { display: block; margin-bottom: 7px; font-family: var(--font-serif); font-weight: 700; }
.form-block label small { margin-left: 5px; color: var(--subtle); font-family: var(--font-sans); font-weight: 400; }
.form-block input, .form-block textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: var(--ink); background: #fffdfa; }
.form-block textarea { min-height: 72px; resize: vertical; line-height: 1.45; }
.section-title { margin: 18px 0 8px; font-family: var(--font-serif); font-size: 17px; }
.ingredient-check { display: flex; align-items: center; gap: 9px; padding: 9px 3px; border-bottom: 1px solid var(--line); }
.ingredient-check input { width: 18px; height: 18px; accent-color: var(--red); }
.ingredient-check b { flex: 1; font-size: 13px; }
.ingredient-check span { color: var(--red); font-size: 13px; font-weight: 700; }
.ingredient-group { margin-top: 13px; }
.ingredient-group__title { display: flex; align-items: center; gap: 7px; margin: 0 0 1px; padding-top: 3px; font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: var(--ink); }
.ingredient-group__title::before { content: ""; width: 5px; height: 5px; background: var(--red); transform: rotate(45deg); }
.primary-btn { width: 100%; min-height: 47px; border-radius: 11px; font-weight: 700; letter-spacing: .05em; }
.primary-btn { color: #fff; background: var(--red); }
.sheet__summary { margin: 13px 0; color: var(--subtle); font-size: 12px; text-align: center; }
.sheet__footer { position: sticky; bottom: -18px; margin: 0 -1px; padding: 15px 1px calc(2px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 78%, rgba(248,242,231,0)); }

.detail-photo { width: 100%; max-height: 270px; border-radius: 13px; object-fit: cover; }
.ingredient-role { margin-top: 15px; }
.ingredient-role h3 { margin: 0 0 5px; color: var(--red); font-size: 13px; }
.ingredient-role ul { margin: 0; padding: 0; list-style: none; }
.ingredient-role li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 1px; border-bottom: 1px solid var(--line); }
.ingredient-role li span:last-child { color: var(--subtle); text-align: right; }
.detail-actions { display: flex; justify-content: flex-end; gap: 9px; margin: 14px 0 18px; }
.detail-actions .primary-btn { flex: none; width: 132px; min-height: 42px; }
.detail-actions .counter { justify-content: center; min-width: 132px; padding: 8px; border: 1px solid #e5cbb7; border-radius: 11px; }
.detail-cart-wrap { position: sticky; z-index: 2; bottom: -18px; margin: auto -15px -18px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 78%, rgba(248,242,231,0)); animation: cartRise .25s ease-out both; }
.detail-cart-bar { display: flex; align-items: center; min-height: 64px; padding: 6px; border: 1px solid rgba(225,216,205,.9); border-radius: 999px; background: rgba(255,253,249,.98); box-shadow: 0 10px 28px rgba(67,44,22,.17); }
.detail-cart-bar__summary { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 51px; padding: 0 9px 0 7px; color: var(--subtle); background: transparent; text-align: left; }
.detail-cart-bar__summary strong { display: block; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.detail-cart-bar__summary .cart-copy > span { display: block; overflow: hidden; margin-top: 1px; color: var(--subtle); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.receipt-view { position: fixed; z-index: 40; inset: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #e8dfd4; }
.receipt-view__top { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(248,242,231,.94); border-bottom: 1px solid #d9cdbf; backdrop-filter: blur(10px); }
.receipt-view__top b { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--font-serif); font-size: 17px; }
.text-btn { padding: 6px 8px; color: var(--red); background: transparent; font-size: 13px; }
.receipt-wrap { width: min(560px, calc(100% - 28px)); margin: 20px auto; }
.printer-slot { width: 92%; height: 16px; margin: 0 auto; border: 5px solid #4f4a45; border-radius: 7px 7px 0 0; background: #272420; }
.receipt { position: relative; overflow: hidden; padding: 23px 19px 28px; background: #fffefa; color: #2c2925; box-shadow: 0 5px 18px rgba(53,43,34,.20); animation: printOut 1.15s cubic-bezier(.17,.72,.28,1) both; }
.receipt.is-static { animation: none; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 16px; background: radial-gradient(circle at 8px 0, transparent 8px, #fffefa 8.5px) 0 0 / 16px 16px repeat-x; }
.receipt__brand { margin-bottom: 5px; font-family: var(--font-serif); font-size: 25px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.receipt__subtitle { margin-bottom: 15px; color: #756b62; font-size: 11px; text-align: center; }
.receipt__rule { border-top: 1px dashed #b9afa3; margin: 12px 0; }
.receipt__title { margin: 0 0 7px; font-size: 13px; font-weight: 800; }
.receipt__title--ingredients { margin: 17px 0 11px; font-size: 18px; }
.receipt__line { display: flex; justify-content: space-between; gap: 15px; margin: 6px 0; font-size: 12px; }
.receipt__line span:last-child { color: #6c635c; text-align: right; }
.receipt__group { margin: 13px 0 0; }
.receipt__group h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 14px; }
.receipt__group h3::before { content: ""; width: 5px; height: 5px; background: var(--red); transform: rotate(45deg); }
.receipt__item { padding: 7px 0; border-bottom: 1px dotted #d4ccc3; }
.receipt__item-main { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; }
.receipt__item-main span:last-child { color: var(--red); white-space: nowrap; }
.receipt__purchase-hint { margin-top: 3px; color: #756b62; font-size: 11px; }
.receipt details { margin-top: 4px; color: #887e74; font-size: 11px; }
.receipt summary { cursor: pointer; }
.receipt__source { margin: 4px 0 0; padding-left: 7px; line-height: 1.5; }
.receipt__foot { margin-top: 18px; color: #756b62; font-size: 11px; line-height: 1.65; text-align: center; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 0 35px; }
.receipt-actions button { min-height: 45px; border-radius: 10px; color: #fff; background: var(--red); font-weight: 700; }
.receipt-actions .light { color: var(--red); background: #f9f0e8; }
.receipt-actions .wide { grid-column: 1 / -1; color: #5d534a; background: #d9cdc0; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); max-width: calc(100% - 34px); padding: 10px 14px; transform: translate(-50%, 18px); border-radius: 999px; color: #fff; background: rgba(42,35,28,.92); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; text-align: center; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cartRise { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes dockRise { from { transform: translate(-50%, calc(100% + 28px)); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes confirmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes confirmPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes printOut { from { max-height: 0; opacity: .45; padding-top: 0; padding-bottom: 0; } to { max-height: 2400px; opacity: 1; } }
@media (min-width: 620px) { .app { padding: 26px 18px 112px; } .dish-card { --photo-size: 110px; } .menu-layout { grid-template-columns: 104px minmax(0,1fr); gap: 14px; } .category-tab { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
