:root {
  --orange: #6f8f3e;
  --orange-dark: #405b2f;
  --gold: #d9b95f;
  --rice: #2f4028;
  --cream: #f7f1df;
  --ink: #25301f;
  --muted: #758069;
  --line: #e2decf;
  --soft: #f6f4ea;
  --paper: #ffffff;
  --danger: #b65245;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(180, 204, 107, 0.24), transparent 28rem),
    linear-gradient(135deg, #f8f3df, #e7ead8);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
  min-width: 0;
}

button {
  cursor: pointer;
  letter-spacing: 0;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  height: min(100vh, 860px);
  min-height: 720px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid #cbd2bd;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(28, 31, 36, 0.18);
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 248, 235, 0.88);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  max-width: calc(100% - 96px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-icon {
  position: absolute;
  left: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
}

.page {
  position: absolute;
  inset: 64px 0 78px 0;
  overflow: auto;
  display: none;
  animation: fade 0.18s ease-out;
}

.page.active {
  display: block;
}

@keyframes fade {
  from { opacity: 0.6; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  height: 330px;
  position: relative;
  padding: 0 20px;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.9) 0 36px, transparent 37px),
    radial-gradient(circle at 86% 28%, rgba(217, 185, 95, 0.28) 0 58px, transparent 59px),
    linear-gradient(160deg, #f8f1d8 0%, #eaf0d0 56%, #f9f4e4 100%);
  overflow: hidden;
}

.awning {
  height: 40px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: flex-start;
}

.awning span {
  min-width: 92px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 0 0 16px 16px;
  background: rgba(47, 64, 40, 0.92);
  color: #fffdf5;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-copy {
  position: absolute;
  left: 22px;
  top: 52px;
  z-index: 2;
  width: 188px;
  color: var(--rice);
}

.hero-logo-wrap {
  width: 148px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 22px;
  background: #fffdf7;
  box-shadow: 0 12px 24px rgba(47, 64, 40, 0.14);
}

.hero-logo-mark {
  color: var(--rice);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
}

.hero-badge,
.hero-copy strong,
.hero-copy p {
  display: block;
}

.hero-badge {
  width: max-content;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fffaf0;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(83, 98, 52, 0.12);
}

.hero-copy strong {
  font-size: 34px;
  line-height: 1.28;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 6px 0 0;
  color: #53643d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.cute-visual {
  position: absolute;
  right: -34px;
  bottom: 8px;
  width: 190px;
  height: 204px;
}

.lunch-plate {
  position: absolute;
  left: 14px;
  right: 0;
  bottom: 0;
  height: 108px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, #fffdf6 0 58%, #e3e8cf 59% 72%, transparent 73%),
    radial-gradient(ellipse at 50% 74%, rgba(47, 64, 40, 0.15) 0 48%, transparent 49%);
}

.rice-buddy,
.sandwich-buddy {
  position: absolute;
  filter: drop-shadow(0 12px 12px rgba(47, 64, 40, 0.16));
}

.rice-buddy {
  left: 34px;
  bottom: 68px;
  width: 78px;
  height: 94px;
  border-radius: 48% 48% 38% 38%;
  background:
    radial-gradient(circle at 38% 42%, #2f4028 0 3px, transparent 4px),
    radial-gradient(circle at 62% 42%, #2f4028 0 3px, transparent 4px),
    radial-gradient(ellipse at 50% 56%, #f3b6a1 0 7px, transparent 8px),
    linear-gradient(135deg, #efe7bd, #fff7d5);
  border: 5px solid #7fa05a;
}

.rice-buddy::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -16px;
  height: 28px;
  border-radius: 50% 50% 12px 12px;
  background: linear-gradient(90deg, #85a95d, #b9cf83);
}

.rice-buddy::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -20px;
  width: 34px;
  height: 22px;
  border-radius: 0 0 18px 18px;
  background: #415934;
}

.sandwich-buddy {
  right: 20px;
  bottom: 58px;
  width: 88px;
  height: 78px;
  border-radius: 24px 24px 18px 18px;
  background:
    radial-gradient(circle at 36% 44%, #2f4028 0 3px, transparent 4px),
    radial-gradient(circle at 62% 44%, #2f4028 0 3px, transparent 4px),
    linear-gradient(#f9d48a 0 30%, #fff7e0 31% 43%, #85a95d 44% 52%, #f5c56a 53% 100%);
  border: 5px solid #2f4028;
  transform: rotate(5deg);
}

.sandwich-buddy::before,
.sandwich-buddy::after {
  content: "";
  position: absolute;
  bottom: -14px;
  width: 16px;
  height: 24px;
  border-radius: 999px;
  background: #2f4028;
}

.sandwich-buddy::before {
  left: 24px;
}

.sandwich-buddy::after {
  right: 24px;
}

.face {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 22px;
  height: 10px;
  border-bottom: 3px solid #2f4028;
  border-radius: 0 0 18px 18px;
  transform: translateX(-50%);
}

.tomato-pin {
  position: absolute;
  right: 50px;
  bottom: 120px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d9735d;
  border: 4px solid #fffaf0;
}

.soft-spark,
.steam {
  position: absolute;
  background: rgba(255, 255, 255, 0.78);
}

.soft-spark {
  width: 18px;
  height: 18px;
  border-radius: 8px;
  transform: rotate(45deg);
}

.spark-one {
  right: 22px;
  top: 34px;
}

.spark-two {
  left: 26px;
  top: 66px;
  width: 12px;
  height: 12px;
}

.steam {
  width: 14px;
  height: 44px;
  border-radius: 999px;
  opacity: 0.85;
}

.steam-one {
  left: 82px;
  top: 28px;
  transform: rotate(16deg);
}

.steam-two {
  right: 66px;
  top: 18px;
  height: 34px;
  transform: rotate(-12deg);
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 12px;
}

.mode-card,
.gift-banner {
  border: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.mode-card {
  min-height: 140px;
  padding: 12px 10px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.mode-card.wide {
  grid-column: 1 / -1;
  min-height: 112px;
}

.mode-card strong {
  font-size: 18px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: center;
}

.mode-card small {
  color: #888;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.plate-art {
  width: 68px;
  height: 68px;
  display: block;
  position: relative;
  border-radius: 22px;
  background: #edf4d9;
  box-shadow: inset 0 0 0 2px #d6dfbd, 0 8px 18px rgba(47, 64, 40, 0.12);
}

.plate-art.chicken {
  background:
    linear-gradient(#fffaf0 0 0) 19px 46px / 30px 6px no-repeat,
    radial-gradient(circle at 50% 64%, #fff7d5 0 18px, transparent 19px),
    linear-gradient(135deg, #edf4d9, #fff8df);
}

.plate-art.chicken::before,
.plate-art.chicken::after {
  content: "";
  position: absolute;
}

.plate-art.chicken::before {
  left: 17px;
  top: 13px;
  width: 34px;
  height: 38px;
  border: 4px solid #6f8f3e;
  border-radius: 18px 18px 14px 14px;
  background:
    radial-gradient(circle at 36% 45%, #2f4028 0 2px, transparent 3px),
    radial-gradient(circle at 64% 45%, #2f4028 0 2px, transparent 3px),
    linear-gradient(#f2d67a 0 8px, #fff8df 9px 100%);
}

.plate-art.chicken::after {
  left: 24px;
  top: 7px;
  width: 20px;
  height: 12px;
  border-radius: 12px 12px 4px 4px;
  background: #405b2f;
  box-shadow:
    -12px 18px 0 -7px #d9b95f,
    12px 18px 0 -7px #d9b95f,
    0 43px 0 -6px #405b2f;
}

.plate-art.scooter {
  background:
    linear-gradient(#405b2f 0 0) 14px 46px / 44px 5px no-repeat,
    linear-gradient(135deg, #fff8df, #edf4d9);
}

.plate-art.scooter::before,
.plate-art.scooter::after {
  content: "";
  position: absolute;
}

.plate-art.scooter::before {
  left: 13px;
  top: 20px;
  width: 42px;
  height: 26px;
  border: 4px solid #405b2f;
  border-radius: 15px 18px 12px 12px;
  background:
    radial-gradient(circle at 62% 47%, #2f4028 0 2px, transparent 3px),
    linear-gradient(#d9b95f 0 10px, #fffaf0 11px 100%);
  box-shadow: 12px 7px 0 -5px #8faa52;
}

.plate-art.scooter::after {
  left: 17px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  border: 4px solid #405b2f;
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 29px 0 0 -4px #fffaf0, 29px 0 0 0 #405b2f;
}

.gift-banner {
  width: calc(100% - 32px);
  min-height: 76px;
  margin: 0 16px 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.gift-banner small,
.gift-banner strong,
.gift-banner em {
  display: block;
}

.gift-banner small {
  margin-bottom: 8px;
  font-size: 14px;
  color: #222;
  font-weight: 800;
}

.gift-banner strong {
  color: var(--rice);
  font-size: 27px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.gift-banner em {
  margin-top: 5px;
  color: #5f6c55;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.gift-banner i {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  transform: rotate(34deg);
  background:
    linear-gradient(#fff 0 0) 16px 10px / 16px 62px no-repeat,
    linear-gradient(#fff 0 0) 44px 10px / 16px 62px no-repeat,
    linear-gradient(90deg, #ffd5a2, #ff4f5d);
  border: 4px solid #111;
}

.brand-story {
  margin: 0 16px 20px;
  padding: 16px;
  border: 1px solid #d7dfbf;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(238, 244, 219, 0.96)),
    radial-gradient(circle at 100% 0, rgba(217, 185, 95, 0.24), transparent 120px);
  box-shadow: 0 10px 24px rgba(47, 64, 40, 0.08);
}

.brand-story span {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8efd4;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.brand-story h2 {
  margin: 0 0 8px;
  color: var(--rice);
  font-size: 20px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.brand-story p {
  margin: 0;
  color: #5f6c55;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.story-tags b {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fffdf5;
  color: var(--rice);
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid #dde4c9;
}

.menu-page {
  display: none;
  grid-template-columns: 118px 1fr;
  background: #fff;
}

.menu-page.active {
  display: grid;
}

.category-panel {
  background: #edf0df;
  overflow: auto;
}

.search-box {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f7f5ea;
}

.search-box span {
  width: 17px;
  height: 17px;
  border: 2px solid #9ea1a8;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-box span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  background: #9ea1a8;
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.category-list button {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: #69725b;
  font-size: 13px;
  line-height: 1.35;
  padding: 0 8px;
  overflow-wrap: anywhere;
}

.category-list button.active {
  color: var(--rice);
  background: #fffaf0;
  border-left-color: var(--orange);
  font-size: 15px;
  font-weight: 900;
}

.product-panel {
  position: relative;
  overflow: auto;
  padding: 0 12px 94px 18px;
}

.store-line {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 3;
}

.store-line strong {
  color: var(--rice);
  font-size: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-line button {
  border: 0;
  border-radius: 16px;
  background: #edf2dc;
  color: var(--orange-dark);
  padding: 7px 12px;
  font-weight: 800;
}

.delivery-panel {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f3f6e6;
  border: 1px solid #d6dfbd;
}

.delivery-panel b {
  color: var(--rice);
  font-size: 16px;
}

.delivery-panel p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.delivery-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-options button {
  border: 1px solid #d7dfbf;
  border-radius: 16px;
  background: #fff;
  color: var(--rice);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.delivery-options button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.product-group-title {
  margin: 0 0 10px;
  color: #767a82;
  font-size: 16px;
}

.product-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 14px 0 16px;
  border-bottom: 1px solid #f1f1f3;
}

.food-mark {
  position: relative;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid #d7dfbf;
  background: linear-gradient(135deg, #f5f7e8, #fffaf0);
  color: var(--rice);
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 4px rgba(143, 170, 82, 0.1);
}

.food-mark strong {
  overflow-wrap: anywhere;
}

.badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 0 0 5px 0;
  background: #ef3d36;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.product-info {
  min-width: 0;
}

.product-info h3 {
  margin: 2px 0 4px;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-info h3 small {
  display: block;
  margin-bottom: 2px;
  color: var(--orange-dark);
  font-size: 11px;
  letter-spacing: 0;
}

.product-info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
  overflow: visible;
  overflow-wrap: anywhere;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.choose-btn,
.plus-btn,
.minus-btn {
  border: 0;
  height: 36px;
  min-width: 82px;
  border-radius: 18px;
  background: var(--gold);
  color: #25301f;
  font-weight: 900;
  white-space: nowrap;
}

.plus-btn {
  min-width: 36px;
  width: 36px;
  font-size: 24px;
  line-height: 1;
}

.minus-btn {
  min-width: 36px;
  width: 36px;
  background: #e7ecd4;
  color: var(--orange-dark);
  font-size: 22px;
  line-height: 1;
}

.line-stepper {
  display: grid;
  grid-template-columns: 36px 30px 36px;
  align-items: center;
  justify-items: center;
  gap: 6px;
}

.line-stepper b {
  font-size: 17px;
}

.orders-page,
.profile-page {
  background: var(--soft);
}

.tabs {
  height: 64px;
  display: flex;
  align-items: stretch;
  background: #fffaf0;
}

.tabs button {
  border: 0;
  min-width: 96px;
  padding: 0 22px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.tabs button.active {
  color: var(--rice);
  box-shadow: inset 0 -3px 0 var(--orange);
}

.chips {
  display: flex;
  gap: 22px;
  padding: 18px 22px;
}

.chips button {
  border: 0;
  padding: 8px 15px;
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
}

.chips button.active {
  background: #edf2dc;
  color: var(--orange);
}

.empty-state {
  height: 520px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  color: var(--muted);
}

.empty-state .receipt-art {
  width: 150px;
  height: 120px;
  opacity: 0.46;
  background:
    radial-gradient(circle at 70% 30%, #d8d8db 0 20px, transparent 21px),
    linear-gradient(#d8d8db 0 0) center / 50px 78px no-repeat,
    radial-gradient(ellipse at center bottom, #d8d8db 0 58px, transparent 59px);
  border-radius: 34px;
}

.empty-state button {
  border: 1px solid var(--orange);
  border-radius: 24px;
  background: #fffaf0;
  color: var(--orange);
  padding: 12px 44px;
  font-size: 18px;
}

.order-card {
  margin: 0 14px 12px;
  padding: 16px;
  border-radius: 8px;
  background: #fffaf0;
}

.order-card header,
.order-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-card h3 {
  margin: 0 0 8px;
}

.order-card p {
  margin: 6px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.order-meta {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.payment-box {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: #f3f6e6;
  color: var(--rice);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.payment-box b {
  color: var(--ink);
}

.payment-box span,
.payment-box small {
  color: var(--muted);
}

.payment-box img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.payment-box button {
  justify-self: start;
  min-height: 36px;
  border: 0;
  border-radius: 18px;
  padding: 0 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.payment-box button:disabled {
  background: #aeb89a;
}

.payment-box.confirmed {
  background: #edf6df;
  color: #496933;
  font-weight: 800;
}

.profile-hero {
  height: 184px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 42px 18px 24px;
  background: linear-gradient(135deg, #dce8bd, #f8f1d8);
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}

.avatar span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 55%, #9fcf86 0 12px, transparent 13px),
    radial-gradient(circle at 68% 56%, #d98b32 0 13px, transparent 14px),
    #fff7e8;
}

.profile-hero p {
  margin: 0;
  color: var(--rice);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.account-card {
  margin: -30px 14px 16px;
  padding: 24px 18px 28px;
  border-radius: 10px;
  background: #fffaf0;
}

.account-card h2 {
  max-width: 245px;
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.35;
}

.account-card p,
.muted {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.profile-list {
  margin: 0 12px 24px;
  border-radius: 8px;
  background: #fffaf0;
  overflow: hidden;
}

.profile-list button {
  width: calc(100% - 32px);
  min-height: 58px;
  margin: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: var(--ink);
  font-size: 16px;
  position: relative;
}

.profile-list button::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 23px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #777b82;
  border-top: 2px solid #777b82;
  transform: rotate(45deg);
}

.cart-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 82px;
  z-index: 20;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr 112px;
  overflow: hidden;
  border-radius: 31px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.cart-bar button {
  border: 0;
}

#cart-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: #2f4028;
  color: #fff;
  text-align: left;
}

#cart-count {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  font-weight: 900;
}

#cart-total {
  font-size: 19px;
}

#cart-note {
  color: #cfd1d6;
}

#checkout-btn {
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.bottom-nav {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 12;
  height: 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fffaf0;
  border-top: 1px solid var(--line);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #65715b;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
}

.bottom-nav button.active {
  color: var(--rice);
  font-weight: 800;
}

.nav-icon {
  width: 26px;
  height: 26px;
  position: relative;
  display: block;
}

.nav-icon.home {
  border: 3px solid currentColor;
  border-radius: 6px;
  transform: rotate(45deg);
}

.nav-icon.home::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 0 0 2px 2px;
}

.nav-icon.bag {
  border: 3px solid currentColor;
  border-radius: 5px;
}

.nav-icon.bag::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -7px;
  width: 10px;
  height: 8px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.nav-icon.receipt {
  border: 3px solid currentColor;
  border-radius: 4px 4px 0 0;
}

.nav-icon.receipt::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -6px;
  height: 9px;
  background: linear-gradient(135deg, currentColor 25%, transparent 26% 50%, currentColor 51% 75%, transparent 76%);
}

.nav-icon.user::before,
.nav-icon.user::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid currentColor;
}

.nav-icon.user::before {
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.nav-icon.user::after {
  bottom: 0;
  width: 24px;
  height: 13px;
  border-radius: 15px 15px 0 0;
  border-bottom: 0;
}

.sheet {
  width: min(410px, calc(100vw - 28px));
  max-height: min(86vh, 740px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fffdf5;
  box-shadow: 0 26px 70px rgba(0,0,0,0.25);
  color: var(--ink);
}

.sheet::backdrop {
  background: rgba(37, 48, 31, 0.42);
}

.sheet form {
  position: relative;
  padding: 24px;
  max-height: min(86vh, 740px);
  overflow: auto;
}

.close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 32px;
  color: #8d967c;
}

.spec-title {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 14px;
  margin-right: 34px;
  min-width: 0;
}

.spec-title h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.spec-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.option-group {
  margin-top: 22px;
}

.option-group h3 {
  margin: 0 0 12px;
  color: var(--rice);
  font-size: 17px;
}

.option-hint {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-row button {
  max-width: 100%;
  border: 1px solid #d7dfbf;
  border-radius: 18px;
  background: #f5f7ea;
  color: var(--rice);
  padding: 8px 14px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.option-row button.active {
  border-color: var(--orange);
  background: #e9f0d6;
  color: var(--orange-dark);
  font-weight: 800;
}

.addon-row button {
  padding: 9px 12px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e7ecd4;
  color: var(--orange-dark);
  font-size: 20px;
}

.add-cart,
.primary-action {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--orange), #8faa52);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.primary-action:disabled {
  cursor: not-allowed;
  background: #d5d9c8;
  color: #727b66;
}

.checkout-head h2 {
  margin: 0 0 6px;
  color: var(--rice);
  font-size: 22px;
}

.checkout-head p {
  margin: 0 0 16px;
  color: var(--orange-dark);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.checkout-region {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #d6dfbd;
  border-radius: 10px;
  background: #f3f6e6;
}

.checkout-region strong {
  display: block;
  margin-bottom: 10px;
  color: var(--rice);
}

.checkout-delivery-options,
.checkout-school-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.checkout-delivery-options button,
.checkout-school-options button {
  min-height: 40px;
  border: 1px solid #d7dfbf;
  border-radius: 8px;
  background: #fff;
  color: var(--rice);
  padding: 8px 10px;
  font-weight: 900;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
}

.checkout-delivery-options button.active,
.checkout-school-options button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.checkout-school-field {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d7dfbf;
}

.checkout-school-field small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.checkout-warning {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.checkout-policy-note {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fffaf0;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.checkout-warning.blocked {
  color: var(--danger);
  font-weight: 800;
}

.checkout-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.checkout-line > div,
.checkout-line span,
.checkout-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkout-line small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.checkout-line b {
  white-space: nowrap;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.field span {
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  border: 1px solid #d7dfbf;
  border-radius: 8px;
  padding: 0 12px;
  outline-color: var(--orange);
  background: #fffef8;
  color: var(--ink);
}

.field select {
  cursor: pointer;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.auth-tabs {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.auth-tabs::before {
  content: "账号操作";
  margin-right: auto;
}

.auth-tabs button {
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-tabs button + button::before {
  content: "/";
  margin-right: 6px;
  color: #b8c0a5;
  font-weight: 500;
}

.auth-tabs button.active {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.login-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.login-switch button {
  height: 40px;
  border: 1px solid #d7dfbf;
  border-radius: 20px;
  background: #f3f6e6;
  color: var(--rice);
  padding: 0 10px;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.login-switch button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.auth-help {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.auth-help button {
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-weight: 900;
  text-decoration: underline;
}

.text-action {
  justify-self: end;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
}

.code-row button {
  border: 1px solid #d7dfbf;
  border-radius: 8px;
  background: #f3f6e6;
  color: var(--orange-dark);
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 80;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(47, 64, 40, 0.94);
  color: #fff;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.dialog-toast {
  position: sticky;
  left: auto;
  bottom: 12px;
  z-index: 8;
  width: fit-content;
  margin: 14px auto 0;
  max-width: calc(100% - 24px);
  transform: translateY(14px);
  text-align: center;
}

.toast.dialog-toast.show {
  transform: translateY(0);
}

.admin-shell {
  width: min(920px, calc(100vw - 28px));
  margin: 28px auto;
  color: var(--ink);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-header span {
  color: var(--orange-dark);
  font-weight: 900;
}

.admin-header h1 {
  margin: 4px 0 0;
  font-size: 28px;
}

.admin-header a {
  color: var(--rice);
  font-weight: 900;
}

.admin-login,
.admin-order {
  padding: 18px;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 14px 32px rgba(77, 86, 57, 0.12);
}

.admin-login {
  max-width: 420px;
  margin-bottom: 18px;
}

.admin-orders {
  display: grid;
  gap: 14px;
}

.admin-order header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.admin-order h2,
.admin-order p {
  margin: 0;
}

.admin-order header p,
.admin-items {
  color: var(--muted);
  line-height: 1.5;
}

.admin-grid {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 14px 0;
}

.admin-grid span {
  color: var(--muted);
}

.admin-grid b,
.admin-items {
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 18px;
  padding: 0 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

@media (max-width: 430px) {
  body {
    display: block;
    background: #fff;
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mode-card strong {
    font-size: 18px;
  }

  .product-card {
    grid-template-columns: 54px 1fr;
    gap: 10px;
  }

  .food-mark {
    width: 50px;
    height: 50px;
  }

  .product-info h3 {
    font-size: 15px;
  }

  .product-info p {
    font-size: 12.5px;
    line-height: 1.5;
  }
}
