@charset "UTF-8";
:root {
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: #20271e;
  background: #f3f5ef;
  font-synthesis: none;
  --green: #58b91b;
  --dark: #285e10;
  --muted: #768070;
  --line: #e9ece5;
  --surface: #fff;
}
* {
  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 {
  outline: 3px solid #97ce71;
  outline-offset: 3px;
}
input:focus,
textarea:focus {
  outline: 2px solid #78bb51;
  outline-offset: 1px;
}
.app {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  min-height: 100dvh;
  padding-bottom: 100px;
  box-shadow: 0 0 70px #22331808;
}
.header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 34px;
  letter-spacing: -2px;
  font-weight: 850;
}
.brand span {
  color: var(--green);
}
.guest {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}
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;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #819275;
  font-weight: 650;
  margin-bottom: 12px;
}
.subtle,
.hint,
.footnote {
  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;
}
.table-badge {
  background: #f0f7e9;
  border: 1px solid #dfedcf;
  padding: 14px 18px;
  min-width: 85px;
  text-align: center;
  border-radius: 12px;
}
.table-badge span {
  display: block;
  font-size: 10px;
  color: #728464;
  white-space: nowrap;
}
.table-badge strong {
  display: block;
  font-size: 22px;
  color: #345826;
  margin-top: 4px;
  max-width: 120px;
  overflow-wrap: anywhere;
}
.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: 10px;
}
.search > span {
  font-size: 28px;
  line-height: 1;
  color: #7f8c76;
}
.search input {
  width: 100%;
  padding: 13px 0;
  background: none;
  border: 0;
  font-size: 13px;
  outline-offset: 6px;
}
.menu-tools > .subtle {
  font-size: 11px;
  white-space: nowrap;
}
.catalog {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 26px;
  border-top: 1px solid var(--line);
}
.categories {
  padding: 18px 0;
  background: #f7f8f4;
  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: #6c7665;
  border-left: 3px solid transparent;
}
.category[aria-pressed='true'] {
  background: #fff;
  color: var(--dark);
  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: 10px;
  color: #99a28f;
}
.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: #eef2e7;
  color: #a2b191;
  font-size: 28px;
  font-weight: 600;
}
.dish-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dish-info > p {
  color: #89917f;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  gap: 10px;
}
.price {
  font-size: 20px;
  letter-spacing: -0.7px;
}
.price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.add {
  background: var(--green);
  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(900px, 100%) - 48px);
  border-radius: 16px;
  background: #25321f;
  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: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #c9e5ad;
}
.cart-summary strong {
  font-size: 21px;
}
.cart-summary small {
  display: block;
  font-size: 10px;
  color: #aabb9e;
  margin-top: 4px;
}
.primary,
.secondary {
  min-height: 46px;
  border-radius: 10px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover,
.add:hover {
  background: #4ca515;
}
.secondary {
  background: #f0f3ea;
  color: #46533a;
  border: 1px solid #e2e8dc;
}
.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 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: #8b9482;
  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: var(--green);
  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: #778469;
}
.panel {
  margin: 16px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: #fff;
}
.form h2 {
  font-size: 18px;
  margin-bottom: 24px;
}
.form label {
  font-size: 13px;
  display: block;
  margin: 20px 0 9px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #dce3d5;
  border-radius: 9px;
  background: #fafbf8;
  resize: vertical;
  font-size: 15px;
}
.required {
  color: #539528;
}
.hint {
  font-size: 12px;
  margin-top: 10px;
}
.wide {
  width: 100%;
}
.form .wide {
  margin-top: 24px;
}
.footnote {
  text-align: center;
  font-size: 11px;
  margin: 20px 32px;
}
.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.cart-line:first-child {
  padding-top: 0;
}
.cart-line small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 10px;
}
.cart-line strong {
  font-size: 15px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
}
.step {
  width: 32px;
  height: 32px;
  border: 1px solid #dae5d0;
  background: #f7faf3;
  color: #39711b;
  border-radius: 8px;
  font-size: 20px;
}
.cart-estimate {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 14px;
}
.cart-estimate strong {
  font-size: 21px;
}
.lines {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 20px;
  font-size: 13px;
}
.line strong {
  font-weight: 550;
}
.line small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.line > span {
  color: var(--muted);
}
.totals {
  border-top: 1px dashed #dbe2d3;
  margin: 24px 0 0;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}
.totals > div,
.metadata > div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}
.totals dt,
.metadata dt {
  color: var(--muted);
  flex-shrink: 0;
}
.totals dd,
.metadata dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.totals .grand {
  font-size: 17px;
  margin-top: 7px;
  align-items: center;
}
.grand dd {
  font-size: 26px;
  font-weight: 650;
}
.grand dt {
  color: #263120;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.actions > * {
  flex: 1;
}
.order-status {
  text-align: center;
  padding: 14px 20px 20px;
}
.status-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #faf4e2;
  color: #a68a30;
  font-size: 30px;
}
.success .status-icon {
  background: #eef7e5;
  color: #51942c;
}
.order-status h2 {
  font-size: 24px;
}
.order-status p {
  font-size: 13px;
  color: #8b957f;
  margin-top: 10px;
}
.attribution {
  display: inline-block;
  background: #f0f7eb;
  color: #648348;
  font-size: 12px;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 20px;
}
.metadata {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  margin: 0;
}
.text-button {
  background: none;
  color: #6d7d5d;
  font-size: 12px;
  padding: 12px 0;
  text-decoration: underline;
}
.page-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 32px 22px;
}
.pending-list {
  margin: 16px 32px;
}
.pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #deebcd;
  background: #f6faef;
  padding: 18px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 10px;
}
.pending small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: #89967a;
}
.pending b {
  font-size: 12px;
  color: #568034;
}
.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: #5d873e;
  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: #293720;
}
.order-card-foot strong span {
  margin-left: 20px;
  color: #b0bba5;
  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: #87907e;
  max-width: 330px;
}
.empty-mark {
  font-size: 44px;
  letter-spacing: -5px;
  color: #a2b38e;
  margin-bottom: 10px;
}
.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: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.notice[hidden],
.toast[hidden] {
  display: none;
}
.toast {
  position: fixed;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  background: #263720ed;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 20;
  box-shadow: 0 4px 18px #0002;
  max-width: 90vw;
}
dialog {
  padding: 0;
  border: 0;
  border-radius: 20px;
  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: 14px;
  top: 14px;
  background: #fffffff0;
  color: #4e5b46;
  border-radius: 50%;
  height: 36px;
  width: 36px;
  font-size: 25px;
}
.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: 10px;
  font-weight: 400;
  color: #7c8a70;
  margin-left: 5px;
}
.choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #e1e7d9;
  background: #fafbf7;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  cursor: pointer;
}
.choice b {
  font-size: 11px;
  font-weight: 400;
  color: #839271;
}
.choice input:checked + span {
  border-color: #72b847;
  background: #eff8e8;
  color: #3c761d;
}
.choice input:focus-visible + span {
  outline: 2px solid #81b45c;
  outline-offset: 2px;
}
.form-error {
  font-size: 12px;
  color: #a45436;
  min-height: 20px;
  margin-bottom: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 600px) {
  .header {
    height: 63px;
    padding: 0 20px;
  }
  .brand {
    font-size: 30px;
  }
  .store {
    padding: 26px 20px 24px;
    gap: 10px;
  }
  .store h1 {
    font-size: 23px;
  }
  .store .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .store .subtle {
    font-size: 11px;
  }
  .table-badge {
    padding: 11px;
    min-width: 72px;
  }
  .table-badge strong {
    font-size: 20px;
    max-width: 78px;
  }
  .menu-tools {
    padding: 0 20px 22px;
    gap: 10px;
  }
  .menu-tools > .subtle {
    display: none;
  }
  .catalog {
    grid-template-columns: 88px 1fr;
    gap: 15px;
  }
  .categories {
    padding: 12px 0;
  }
  .category {
    font-size: 12px;
    padding: 12px 10px;
  }
  .dish-list {
    padding: 20px 16px 110px 0;
  }
  .section-heading span {
    display: none;
  }
  .dish {
    gap: 11px;
    padding: 17px 0;
  }
  .dish-image {
    width: 80px;
    height: 88px;
    border-radius: 9px;
  }
  .dish h3 {
    font-size: 14px;
  }
  .dish-info > p {
    font-size: 10px;
    margin-top: 4px;
    -webkit-line-clamp: 1;
  }
  .dish-bottom {
    padding-top: 8px;
  }
  .price {
    font-size: 17px;
  }
  .add {
    font-size: 12px;
    min-width: 31px;
    min-height: 31px;
    padding: 6px 8px;
  }
  .cart-bar {
    width: calc(100% - 24px);
    padding: 10px;
    bottom: calc(73px + env(safe-area-inset-bottom));
    border-radius: 14px;
    gap: 8px;
  }
  .cart-bar .primary {
    padding: 12px 17px;
    gap: 12px;
  }
  .cart-summary {
    gap: 9px;
  }
  .cart-summary small {
    font-size: 9px;
  }
  .cart-summary strong {
    font-size: 19px;
  }
  .bag {
    width: 36px;
    height: 36px;
  }
  .nav {
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .nav a.active:before {
    top: -11px;
  }
  .page-title {
    padding: 25px 18px 14px;
    gap: 12px;
  }
  .panel {
    margin: 14px 16px;
    padding: 20px;
    border-radius: 13px;
  }
  .page-note,
  .pending-list {
    margin-left: 20px;
    margin-right: 20px;
  }
  .line {
    gap: 13px;
    font-size: 12px;
  }
  .actions {
    gap: 8px;
  }
  .actions .primary,
  .actions .secondary {
    font-size: 13px;
    padding: 13px 10px;
  }
  .dialog-content {
    padding: 22px;
  }
  .app {
    padding-bottom: 92px;
  }
  .footnote {
    margin: 20px;
  }
  .order-card-head {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .dish-image {
    width: 65px;
    height: 77px;
  }
  .catalog {
    grid-template-columns: 78px 1fr;
    gap: 11px;
  }
  .dish-list {
    padding-right: 12px;
  }
  .store h1 {
    font-size: 20px;
  }
  .dish {
    gap: 8px;
  }
  .cart-summary small {
    font-size: 8px;
  }
  .line {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loader {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}
