:root {
  --font-ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-commerce-number: "DIN Alternate", "DIN Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --canvas: #e7ece9;
  --surface: #ffffff;
  --surface-soft: #f5f6f5;
  --ink: #171a18;
  --muted: #727975;
  --line: #e7e9e7;
  --mall: #f7899e;
  --mall-dark: #f9a8b8;
  --food: #E98B55;
  --food-dark: #A95732;
  --wallet: #315c7c;
  --msg: #2e9f65;
  --warning: #f3a712;
  --shadow: 0 28px 80px rgba(18, 31, 24, 0.2), 0 3px 10px rgba(18, 31, 24, 0.12);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}

button,
input,
select,
textarea { font: inherit; }

button {
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:active { transform: scale(0.98); }
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
button[disabled] { cursor: not-allowed; transform: none; }

img {
  display: block;
  max-width: 100%;
}

svg { width: 1em; height: 1em; }

.app-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

html.preview-mobile body,
.app-stage.is-mobile {
  background-color: #fbf1ed;
  background-image: url("../assets/ui/mobile-preview-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

html.preview-mobile .app-stage::after,
.app-stage.is-mobile::after { display: none; }

.app-stage.is-mobile .stage-copy { display: none; }

.app-stage > #app { width: 100%; }
.app-stage.is-web { display: block; padding: 0; overflow: hidden; }
.app-stage.is-web .stage-copy { display: none; }

.app-stage::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: #d5deda;
  z-index: -1;
}

.stage-copy {
  position: fixed;
  left: max(38px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: 230px;
  transform: translateY(-50%);
  color: #252a27;
}

.stage-kicker {
  display: block;
  margin-bottom: 12px;
  color: #66706a;
  font-size: 10px;
  font-weight: 700;
}

.stage-copy h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.stage-copy p {
  margin: 14px 0 0;
  color: #68716c;
  font-size: 14px;
}

.phone {
  width: auto;
  height: min(844px, calc(100vh - 48px));
  max-width: 390px;
  aspect-ratio: 390 / 844;
  padding: 8px;
  position: relative;
  border: 1px solid #242725;
  border-radius: 46px;
  background: #101210;
  box-shadow: var(--shadow);
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 37px;
  background: var(--surface);
}

.status-bar {
  height: 48px;
  padding: 12px 18px 0;
  display: flex;
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-system);
  font-weight: 700;
  pointer-events: none;
}

.status-bar .right {
  display: flex;
  gap: 5px;
  align-items: center;
}

.status-bar .right svg { width: 13px; height: 13px; }

.status-dot {
  width: 19px;
  height: 9px;
  margin-left: 1px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 1px 2px;
  border-radius: 1px;
  background: currentColor;
}

.screen-root,
.app-layer { position: absolute; inset: 0; }
.app-layer { display: none; }
.app-layer.active { display: block; }

.desktop {
  height: 100%;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #1f2925;
}

.desktop-wallpaper {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(8, 20, 30, 0.08), rgba(10, 16, 13, 0.42)), url("../assets/ui/wallpaper.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.desktop-clock {
  position: absolute;
  top: 88px;
  left: 26px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
.desktop-clock { display: none; }

.desktop-clock .time {
  font-size: 62px;
  font-weight: 600;
  line-height: 1;
}

.desktop-clock .date { margin-top: 8px; font-size: 14px; font-weight: 600; }
.desktop-clock .weather { margin-top: 3px; font-size: 12px; opacity: 0.82; }

.dock-grid {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 76px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 14px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: rgba(245, 248, 247, 0.18);
  backdrop-filter: blur(18px);
}

.app-icon {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #fff;
}

.app-icon .glyph {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.app-icon .glyph svg { width: 26px; height: 26px; stroke-width: 1.9; }
.app-icon > span { max-width: 100%; font-size: 10px; font-weight: 600; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45); }
.glyph.mall { background: #f9a8b8; }
.glyph.food { background: #E98B55; }
.glyph.msg { background: #35a968; }
.glyph.wallet { background: #315c7c; }
.glyph.catalog { color: #202522; background: #f1b84b; }

.app-badge,
.tab-badge {
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  position: absolute;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 99px;
  background: #e5483f;
  font-size: 8px;
  line-height: 1;
}

.app-badge { top: -5px; right: -5px; }
.tab-badge { top: -6px; right: -8px; }

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 120px;
  height: 4px;
  margin-left: -60px;
  border-radius: 99px;
  background: rgba(15, 18, 16, 0.42);
  z-index: 35;
}

.app-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
}

.app-shell.mall { background: #f5f5f4; }
.app-shell.food { background: #F8F0E5; }
.app-shell.plain { background: #f6f7f6; }
.app-shell.catalog { --catalog: #202522; background: #f3f5f4; }

.app-body {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 48px;
  padding-bottom: 74px;
  scrollbar-width: none;
  touch-action: pan-y;
}

.app-body::-webkit-scrollbar,
.food-cats::-webkit-scrollbar,
.shop-side::-webkit-scrollbar,
.menu-list::-webkit-scrollbar { display: none; }
.app-body.no-tab { padding-bottom: 70px; }

.tabbar {
  height: 66px;
  padding: 5px 4px 11px;
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.tabbar button {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #909691;
  font-size: 10px;
}

.tabbar button.on { color: var(--tab); font-weight: 700; }
.tabbar .mark { width: 24px; height: 24px; display: grid; place-items: center; position: relative; }
.tabbar .mark svg { width: 20px; height: 20px; }

.search-row,
.nav-row,
.page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
}

.page-head,
.nav-row {
  min-height: 46px;
  padding-top: 9px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.page-head > b { font-size: 16px; }

.back,
.sheet-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.back:hover,
.sheet-close:hover { background: #f0f2f0; }
.back svg { width: 22px; height: 22px; }

.search-box,
.fake-search {
  height: 38px;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  color: #8a908c;
  background: #fff;
  font-size: 12px;
  text-align: left;
}

.search-box svg,
.fake-search svg { width: 16px; height: 16px; flex: 0 0 auto; }

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

.search-box > .search-submit {
  width: 30px;
  height: 30px;
  margin: 0 -7px 0 4px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: inherit;
  border-radius: 6px;
}
.search-box > .search-submit:hover,
.search-box > .search-submit:focus-visible { background: rgba(247, 137, 158, 0.12); }
.search-box > .search-submit svg { width: 16px; height: 16px; }

.chip {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
}

.chip svg { width: 18px; height: 18px; }
.commerce-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #58635c;
  border: 1px solid rgba(32, 37, 34, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}
.commerce-back:hover,
.commerce-back:focus-visible { color: #202622; background: #fff; }
.commerce-back svg { width: 18px; height: 18px; }
.mall-top-actions,
.food-top-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.mall-top { padding-bottom: 6px; color: #fff; background: var(--mall); }
.mall-top .search-box { color: #818783; background: #fff; }

.mall-hero {
  height: 128px;
  margin: 10px 12px 12px;
  padding: 17px 16px;
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 8px;
  background-image: linear-gradient(90deg, rgba(45, 17, 8, 0.82) 0%, rgba(45, 17, 8, 0.42) 62%, rgba(45, 17, 8, 0.05) 100%), url("../assets/products/nuts.jpg");
  background-position: center 48%;
  background-size: cover;
}

.mall-hero small { display: block; margin-bottom: 4px; color: #ffd4ae; font-size: 10px; font-weight: 700; }
.mall-hero b { display: block; max-width: 230px; font-size: 21px; line-height: 1.25; }
.mall-hero span { display: block; margin-top: 7px; font-size: 11px; opacity: 0.9; }
.mall-hero em {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.mall-hero em svg { width: 13px; height: 13px; }

.icon-grid {
  margin: 0 12px 12px;
  padding: 12px 5px 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.icon-grid button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #404541;
  font-size: 10px;
}

.mini-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.mini-ico img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mini-ico svg { width: 19px; height: 19px; stroke-width: 1.8; }
.mini-ico.c0 { color: #295b86; background: #e5f0f8; }
.mini-ico.c1 { color: #48715a; background: #e5f2e8; }
.mini-ico.c2 { color: #9b4d3e; background: #f7e7e3; }
.mini-ico.c3 { color: #9a6a1e; background: #f8efd9; }
.mini-ico.c4 { color: #c33f3a; background: #fde7e5; }
.mini-ico.c5 { color: #64548f; background: #ece9f6; }
.mini-ico.c6 { color: #9b4668; background: #f7e7ee; }
.mini-ico.c7 { color: #676c45; background: #eef0df; }
.mini-ico.c8 { color: #5f6762; background: #ecefed; }
.mini-ico.c9 { color: #ba6635; background: #f7e9df; }

.section { margin: 0 12px 12px; }

.section-title {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 1px 9px;
  font-size: 15px;
  font-weight: 600;
}

.section-title small {
  min-width: 0;
  color: #929894;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.deal-card,
.white-card,
.product-card,
.shop-card,
.food-item,
.order-card,
.bill-card,
.msg-card { background: #fff; }

.deal-card {
  min-height: 108px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-position: right center;
  background-size: cover;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.deal-card:hover,
.deal-card:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(61, 61, 61, 0.1); }
.deal-card:focus-visible { outline: 2px solid #3D3D3D; outline-offset: 2px; }

.deal-row > .deal-card { background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.92) 55%, rgba(255,255,255,0.15)), url("../assets/products/towels.jpg"); }
.deal-mini .deal-card { background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.76)), url("../assets/products/earphones.jpg"); }
.deal-card.promo-image-card {
  min-height: 0;
  padding: 0;
  aspect-ratio: 9 / 5;
  border-radius: 8px;
  background: none;
}
.deal-card.promo-image-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.deal-card .kicker,
.deal-card h3,
.deal-card .sub { position: relative; z-index: 1; }
.deal-card .kicker { color: var(--mall); font-size: 10px; font-weight: 600; }
.deal-card h3 { margin: 5px 0 7px; font-size: 15px; }
.deal-card .sub { max-width: 120px; }
.deal-mini { display: grid; gap: 8px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.thumb {
  height: 164px;
  position: relative;
  overflow: hidden;
  background: #ecefec;
}

.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.ph.media { background: #edf0ed; }
.ph.media img { width: 100%; height: 100%; object-fit: contain; }

.thumb .badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 6px;
  color: #fff;
  border-radius: 4px;
  background: rgba(210, 45, 38, 0.92);
  font-size: 9px;
  font-weight: 700;
}

.product-card .meta { padding: 9px 9px 11px; }
.food-item .meta { min-width: 0; padding: 0; }

.product-card h4,
.food-item h4,
.shop-card h3 {
  margin: 0 0 5px;
  color: #252925;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.product-card h4 {
  height: 37px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price { color: var(--mall); font-size: 16px; font-weight: 700; }
.price small { font-size: 10px; }
.old { margin-left: 4px; color: #aeb3af; font-size: 10px; text-decoration: line-through; }
.sub { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.food-top { padding: 48px 0 8px; color: #4A3328; background: #FFF0A8; box-shadow: inset 0 -1px 0 rgba(178, 132, 39, .12); }
.app-shell.food > .app-body { padding-top: 0; }

.addr-row {
  padding: 9px 13px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.addr-row b,
.addr-row > span,
.food-top-actions { display: flex; align-items: center; gap: 4px; min-width: 0; }
.food-top-actions > button:first-child { color: #7E4A34; font-size: 11px; }
.addr-row b { max-width: 250px; font-size: 14px; }
.addr-row b span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.addr-row svg { width: 15px; height: 15px; flex: 0 0 auto; }

.food-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 12px 9px;
  scrollbar-width: none;
}

.food-cats button {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 7px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #7E4A34;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.food-cats button.on { color: #fff; background: var(--food-dark); font-weight: 700; }
.food-cat-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #8B5E31; background: rgba(255,255,255,.78); }
.food-cats button.on .food-cat-icon { color: #FFF0A8; background: rgba(255,255,255,.18); }
.food-cat-icon svg { width: 18px; height: 18px; stroke-width: 2; }

.food-search-box { color: #A95732; border-color: rgba(169, 87, 50, .14); background: #FFF9F2; }
.food-search-box input { color: #4A3328; }
.food-search-box > button { width: 24px; height: 24px; display: grid; place-items: center; color: #A95732; }
.food-search-box > button svg { width: 14px; height: 14px; }
.food-results-head { min-height: 46px; padding: 14px 12px 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.food-results-head > div:first-child { display: flex; align-items: baseline; gap: 7px; }
.food-results-head b { color: #4A3328; font-size: 15px; }
.food-results-head span { color: #9B7867; font-size: 10px; }
.food-sort { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #EAD8C7; border-radius: 8px; background: #FFF9F2; }
.food-sort button { padding: 4px 7px; color: #9B7867; border-radius: 5px; font-size: 10px; }
.food-sort button.on { color: #fff; background: var(--food); font-weight: 700; }
.food-empty { padding: 60px 20px; color: #9B7867; text-align: center; }
.food-empty > div { width: 46px; height: 46px; margin: 0 auto 12px; display: grid; place-items: center; color: var(--food-dark); border-radius: 50%; background: #FFF0E2; }
.food-empty svg { width: 22px; height: 22px; }
.food-empty h3 { margin: 0; color: #4A3328; font-size: 15px; }
.food-empty p { margin: 6px 0 14px; font-size: 11px; }
.food-empty button { padding: 8px 15px; color: #fff; border-radius: 7px; background: var(--food); font-size: 11px; font-weight: 700; }

.shop-card {
  width: calc(100% - 24px);
  margin: 10px 12px 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.shop-logo {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 6px;
  background: #ecefec;
}

.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-card h3 { margin-top: 1px; font-size: 14px; }
.stars { color: #c97a08; font-size: 11px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { padding: 2px 5px; color: #b84c25; border: 1px solid #f3cbbd; border-radius: 3px; font-size: 9px; }
.tag.blue { color: var(--food-dark); border-color: #b7ddd8; }

.detail-hero {
  height: 320px;
  overflow: hidden;
  background: #ecefec;
}
.detail-hero .ph { height: 320px; font-size: 48px; }

.detail-gallery { background: #eef6fc; }
.detail-gallery-main {
  height: 322px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef6fc;
}
.detail-gallery-main > img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.detail-gallery-main > .ph { width: 100%; height: 100%; font-size: 48px; }
.detail-gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 7px;
  color: #fff;
  border-radius: 10px;
  background: rgba(61, 61, 61, 0.66);
  font-size: 10px;
  line-height: 1.2;
}
.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: #fff;
  scrollbar-width: none;
}
.detail-gallery-thumbs::-webkit-scrollbar { display: none; }
.detail-gallery-thumbs button {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1e4e2;
  border-radius: 4px;
  background: #f5f7f5;
}
.detail-gallery-thumbs button.on { border: 2px solid #f7899e; }
.detail-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.detail-image-list { display: grid; gap: 10px; margin-top: 12px; }
.detail-image-list figure { margin: 0; overflow: hidden; border-radius: 4px; background: #f5f7f5; }
.detail-image-list img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.detail-image-list figcaption { padding: 5px 8px 7px; color: #9a9f9c; font-size: 10px; text-align: center; }

.price-panel,
.block,
.sku-sheet {
  margin-bottom: 8px;
  padding: 13px;
  background: #fff;
}

.price-panel .now { color: var(--mall); font-size: 28px; font-weight: 700; }
.price-panel .now span { font-size: 13px; }
.price-panel h3 { font-size: 17px; line-height: 1.4; }
.guarantee { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; color: #757c78; font-size: 10px; }

.buybar {
  height: 68px;
  padding: 7px 10px 13px;
  display: grid;
  grid-template-columns: 68px 1fr 1fr;
  align-items: center;
  gap: 7px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.ghost-btn,
.solid-btn,
.pay-btn {
  height: 42px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.ghost-btn { color: #a85c09; background: #fff0d8; }
.solid-btn { color: #fff; background: var(--mall); }
.solid-btn.food { background: var(--food); }
.solid-btn[disabled],
.pay-btn[disabled],
.ghost-btn[disabled] { opacity: 0.45; }

.shop-page {
  height: calc(100% - 132px);
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
}

.shop-side { overflow-y: auto; background: #F3E6D7; scrollbar-width: none; }
.shop-side button { width: 100%; padding: 15px 9px; color: #6f7671; font-size: 11px; text-align: left; }
.shop-side button.on { color: var(--food-dark); border-left: 3px solid var(--food); background: #FFF9F2; font-weight: 600; }
.menu-list { overflow-y: auto; background: #fff; scrollbar-width: none; }

.food-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #eef0ee;
  text-align: left;
}

.food-thumb {
  width: 82px;
  height: 82px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.food-thumb .ph { height: 82px; font-size: 17px; }

.plus {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-left: auto;
  color: #fff;
  border-radius: 50%;
  background: var(--food);
}
.plus svg { width: 15px; height: 15px; }

.cart-dock {
  height: 54px;
  padding: 0 6px 0 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 25;
  color: #fff;
  border-radius: 8px;
  background: #232724;
  box-shadow: 0 8px 24px rgba(18, 22, 19, 0.24);
}

.cart-dock .go {
  height: 42px;
  padding: 0 16px;
  color: #fff;
  border-radius: 7px;
  background: var(--food);
  font-size: 12px;
  font-weight: 600;
}
.cart-dock .go[disabled] { color: #aeb3af; background: #484c49; }

.white-card { border: 1px solid var(--line); border-radius: 8px; }

.cart-line,
.bill-line {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f1f0;
  font-size: 12px;
}
.cart-line:last-child,
.bill-line:last-child { border-bottom: 0; }
.cart-line > :first-child { min-width: 0; }

.qty { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.qty button { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #dfe2df; border-radius: 50%; background: #fff; }

.sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  background: rgba(13, 17, 15, 0.48);
  backdrop-filter: blur(2px);
}

.sheet.show { display: flex; animation: fade-in 160ms ease-out; }

.sheet-card {
  width: 100%;
  max-height: 88%;
  padding: 16px 14px 34px;
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.16);
  animation: rise 220ms ease-out;
}

.sheet-card > .section-title { margin-bottom: 10px; font-size: 16px; }
.sheet-close { width: 30px; height: 30px; }
.sheet-close svg { width: 18px; height: 18px; }

.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.pin-grid button,
.spec-chip {
  height: 44px;
  border-radius: 8px;
  background: #f1f3f1;
  font-size: 17px;
  font-weight: 600;
}

.spec-chip { height: 34px; padding: 0 11px; font-size: 11px; }
.spec-chip.on { color: var(--food-dark); border: 1px solid #E7A27C; background: #FFF0E2; }
.dots { display: flex; justify-content: center; gap: 10px; margin: 12px 0; }
.dots i { width: 10px; height: 10px; display: block; border-radius: 50%; background: #dfe2df; }
.dots i.on { background: #222724; }

#food-remark { font-size: 12px !important; border-color: var(--line) !important; border-radius: 8px !important; background: #f8f9f8; }

.toast {
  max-width: 230px;
  padding: 9px 13px;
  display: none;
  position: absolute;
  left: 50%;
  top: 45%;
  z-index: 50;
  transform: translate(-50%, -50%);
  color: #fff;
  border-radius: 7px;
  background: rgba(20, 24, 21, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  text-align: center;
}
.toast.show { display: block; animation: fade-in 140ms ease-out; }

.list-empty { padding: 56px 20px; color: #939995; font-size: 12px; text-align: center; }

.order-card,
.bill-card,
.msg-card {
  width: calc(100% - 24px);
  margin: 10px 12px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.msg-body { color: #525954; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }

.wallet-hero {
  margin: 10px 12px 12px;
  padding: 20px 17px;
  color: #5a3742;
  border-radius: 8px;
  background: #fce4ec;
  box-shadow: 0 8px 22px rgba(190, 96, 122, 0.18);
}
.wallet-hero .bal { margin: 5px 0; font-size: 32px; font-weight: 700; }

.order-card { display: block; }
.order-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.order-card-top > b { font-size: 12px; }
.order-channel { padding: 3px 6px; border-radius: 4px; font-size: 9px; font-weight: 600; }
.order-channel.mall { color: var(--mall-dark); background: #fdebea; }
.order-channel.food { color: var(--food-dark); background: #FFF0E2; }
.order-summary { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.order-detail-body { padding-bottom: 92px !important; background: #F8F0E5; }
.order-detail-body .page-head { position: sticky; top: 0; z-index: 12; background: transparent; box-shadow: none; }
.head-id { margin-left: auto; color: var(--muted); font-size: 9px; }
.track-hero { margin: 10px 12px 0; padding: 17px; color: #fff; border-radius: 8px; background: #292f2c; }
.track-hero.mall { background: #9f352f; }
.track-live { display: flex; align-items: center; gap: 6px; font-size: 9px; opacity: 0.86; }
.track-live span { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.14); }
.track-hero h2 { margin: 14px 0 4px; font-size: 22px; }
.track-hero p { min-height: 34px; margin: 0 0 10px; font-size: 11px; line-height: 1.55; opacity: .88; }
.track-hero > b { font-size: 11px; }

.track-stage-progress { margin: 16px -2px -3px; padding: 15px 0 0; position: relative; border-top: 1px solid rgba(255,255,255,.22); }
.track-line { height: 2px; position: absolute; left: 25px; right: 25px; top: 28px; background: rgba(255,255,255,.28); }
.track-line i { width: var(--progress); height: 100%; display: block; background: #fff; transition: width 220ms ease; }
.track-steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.track-steps > div { display: flex; flex-direction: column; align-items: center; gap: 7px; color: rgba(255,255,255,.62); font-size: 9px; }
.track-steps i { width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(52,59,55,.38); color: #fff; font-size: 9px; font-style: normal; font-weight: 600; }
.track-steps i svg { width: 12px; height: 12px; }
.track-steps .on { color: #fff; font-weight: 700; }
.track-steps .on i { color: #343b37; border-color: #fff; background: #fff; }

.food-track-progress { margin: 0 12px 10px; padding: 19px 10px 13px; position: relative; background: #fff; border: 1px solid #F0D88B; border-radius: 8px; box-shadow: 0 2px 8px rgba(213, 157, 0, .08); }
.food-track-progress .track-line { left: 36px; right: 36px; top: 31px; background: #dfe3e0; }
.food-track-progress .track-line i { background: #343b37; }
.food-track-progress .track-steps > div { color: #a0a6a2; }
.food-track-progress .track-steps i { border-color: #dfe3e0; background: #fff; color: #343b37; }
.food-track-progress .track-steps .on { color: #343b37; }
.food-track-progress .track-steps .on i { color: #fff; border-color: #343b37; background: #343b37; }

.delivery-map { height: 178px; margin: 10px 12px; position: relative; overflow: hidden; border: 1px solid #E8C969; border-radius: 8px; background: #FFF5D9; box-shadow: 0 3px 12px rgba(155, 112, 28, .12); }
.delivery-map::before { content: ""; position: absolute; inset: -35% -12%; opacity: .78; background: repeating-linear-gradient(18deg, transparent 0 30px, rgba(255,255,255,.8) 30px 34px, transparent 34px 58px), repeating-linear-gradient(112deg, transparent 0 42px, rgba(232,201,116,.42) 42px 45px, transparent 45px 78px); transform: rotate(-5deg); }
.map-grid { position: absolute; inset: 0; opacity: .7; background-image: linear-gradient(58deg, transparent 0 46%, rgba(211,174,84,.26) 46% 47%, transparent 47%), linear-gradient(-26deg, transparent 0 58%, rgba(211,174,84,.22) 58% 59%, transparent 59%), linear-gradient(90deg, transparent 0 28%, rgba(211,174,84,.18) 28% 29%, transparent 29%); background-size: 170px 116px, 210px 142px, 124px 100%; }
.route-map { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; overflow: visible; }
.route-map path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-shadow { stroke: rgba(167, 104, 14, .18); stroke-width: 5.5; transform: translateY(1.5px); }
.route-line { stroke: #E39A26; stroke-width: 3.5; stroke-dasharray: 1 7; }
.map-pin, .courier { width: 32px; height: 32px; display: grid; place-items: center; position: absolute; z-index: 2; color: #fff; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(101,72,23,.24); }
.map-pin svg, .courier svg { width: 14px; height: 14px; }
.map-pin.shop { left: 10%; top: 58%; background: #E1614F; }
.map-pin.home { right: 8%; top: 18%; background: #3C7095; }
.courier { left: var(--courier-x); top: var(--courier-y); background: #EE982D; transform: translate(-50%, -50%); transition: left 220ms ease, top 220ms ease; }

.parcel-route { margin: 10px 12px; padding: 15px 13px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.parcel-route > div { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 9px; }
.parcel-route svg { width: 20px; height: 20px; color: #49524d; }
.parcel-route > i { height: 1px; background: #ccd3cf; }

.order-detail-card { margin: 10px 12px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.timeline-item { min-height: 58px; display: grid; grid-template-columns: 16px 1fr; gap: 8px; position: relative; }
.timeline-item::before { content: ""; width: 1px; position: absolute; left: 5px; top: 15px; bottom: -1px; background: #dce1de; }
.timeline-item:last-child::before { display: none; }
.timeline-item > i { width: 11px; height: 11px; margin-top: 3px; z-index: 1; border: 3px solid #fff; border-radius: 50%; background: #aeb5b1; box-shadow: 0 0 0 1px #aeb5b1; }
.timeline-item.current > i { background: var(--food); box-shadow: 0 0 0 1px var(--food); }
.timeline-item b { font-size: 11px; }
.timeline-item p { margin: 3px 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.timeline-item time { color: #a4aaa6; font-size: 8px; }
.order-address { max-width: 210px; text-align: right; }
.cart-line.total b { color: var(--mall); font-size: 16px; }
.order-actionbar { height: 78px; padding: 10px 12px 25px; position: absolute; left: 0; right: 0; bottom: 0; z-index: 24; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.order-actionbar button { width: 100%; height: 42px; }
.track-secondary { border: 1px solid #cfd5d1; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 700; }
.track-secondary svg, .order-actionbar .solid-btn svg { width: 15px; height: 15px; margin-right: 5px; vertical-align: -3px; }

.address-card { margin: 4px 0 12px; padding: 11px; display: grid; grid-template-columns: 22px 1fr 16px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9f8; }
.address-card > svg { width: 17px; height: 17px; color: var(--food-dark); }
.address-card div { min-width: 0; }
.address-card b, .address-card span { display: block; }
.address-card b { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.address-card span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.checkout-items { padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; }
.bill-line.discount b { color: var(--mall); }
.cart-line.discount b { color: var(--mall); }
.benefit-switch { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:10px 0 2px; padding:8px 10px; border-radius:8px; background:#fff6e8; color:#9a5a00; font-size:12px; }
.benefit-switch button { border:0; background:transparent; color:#d66b00; font-weight:700; cursor:pointer; }
.checkout-total { margin: 12px 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.checkout-total div { display: flex; align-items: baseline; gap: 6px; }
.checkout-total b { color: var(--mall); font-size: 22px; }
.checkout-sheet > .solid-btn, .review-sheet > .solid-btn, .success-sheet > .solid-btn { width: 100%; }
.checkout-sheet #food-remark { width: 100%; height: 40px; margin: 10px 0 0; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #f8f9f8; font-size: 11px; outline: 0; }

.pay-amount { padding: 13px 0 17px; text-align: center; }
.pay-amount small { display: block; color: var(--muted); font-size: 10px; }
.pay-amount b { display: block; margin-top: 4px; font-size: 31px; }
.payment-method { padding: 10px; display: grid; grid-template-columns: 36px 1fr 24px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; }
.payment-logo { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; border-radius: 8px; background: var(--wallet); }
.payment-method b, .payment-method small { display: block; }
.payment-method b { font-size: 11px; }
.payment-method small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.payment-method > i { width: 19px; height: 19px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--food); }
.payment-method > i svg { width: 12px; height: 12px; }
.pay-hint { min-height: 18px; color: var(--muted); font-size: 10px; text-align: center; }
.pay-hint.error {
  min-height: 40px;
  padding: 9px 12px;
  display: grid;
  place-items: center;
  color: #b42318;
  border: 1px solid #f1b4ae;
  border-radius: 8px;
  background: #fff0ee;
  font-size: 12px;
  font-weight: 700;
}
.payment-confirm {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border-radius: 10px;
  font-size: 15px;
}

.success-sheet { text-align: center; }
.success-icon { width: 54px; height: 54px; margin: 4px auto 12px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--food); }
.success-icon svg { width: 27px; height: 27px; }
.success-sheet h2 { margin: 0; font-size: 21px; }
.success-sheet > p { margin: 6px 0 18px; color: var(--muted); font-size: 11px; }
.receipt-row { padding: 9px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; }
.success-sheet .solid-btn { margin-top: 16px; }
.text-btn { height: 38px; margin-top: 5px; color: var(--muted); font-size: 11px; }

.review-shop { margin: 8px 0; font-size: 12px; text-align: center; }
.star-picker { display: flex; justify-content: center; gap: 9px; margin: 12px 0 18px; }
.star-picker button { color: #d4d8d5; }
.star-picker button.on { color: #f1a51a; }
.star-picker svg { width: 28px; height: 28px; fill: currentColor; }
.review-tags { display: flex; justify-content: center; gap: 7px; }
.review-tags button { height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; }
.review-tags button.on { color: var(--food-dark); border-color: #E7A27C; background: #FFF0E2; }
.review-sheet textarea { width: 100%; height: 78px; margin: 13px 0; padding: 10px; resize: none; border: 1px solid var(--line); border-radius: 8px; background: #f8f9f8; font: inherit; font-size: 11px; outline: 0; }

.food-choice-list { display: grid; gap: 7px; }
.food-choice-list button { min-height: 54px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #EAD8C7; border-radius: 8px; background: #FFF9F2; text-align: left; }
.food-choice-list button.on { border-color: #E7A27C; background: #FFF0E2; }
.food-choice-list button span { display: flex; flex-direction: column; gap: 3px; }
.food-choice-list button b { color: #4A3328; font-size: 12px; }
.food-choice-list button small { color: #9B7867; font-size: 10px; }
.food-choice-list button > svg { color: var(--food-dark); width: 18px; height: 18px; }
.food-profile-sheet .profile-detail-row { padding: 12px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #EAD8C7; font-size: 11px; }
.profile-detail-row span { color: #9B7867; }
.profile-detail-row b { max-width: 70%; color: #4A3328; text-align: right; }
.food-profile-sheet > .solid-btn { width: 100%; margin-top: 16px; }

.thread-list { background: #fff; }
.thread-row { width: 100%; padding: 12px; display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.thread-icon { width: 45px; height: 45px; display: grid; place-items: center; color: #fff; border-radius: 12px; }
.thread-icon.mall { background: var(--mall); }
.thread-icon.food { background: var(--food); }
.thread-icon.wallet { background: var(--wallet); }
.thread-icon svg { width: 22px; height: 22px; }
.thread-copy { min-width: 0; }
.thread-copy b, .thread-copy small { display: block; }
.thread-copy b { font-size: 13px; }
.thread-copy small { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.thread-side { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; color: #9aa09c; font-size: 8px; }
.thread-side i { min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; color: #fff; border-radius: 99px; background: var(--mall); font-style: normal; }
.message-thread { min-height: 100%; padding: 13px 12px 24px; background: #eef1ef; }
.thread-date { margin-bottom: 12px; color: #8e9691; font-size: 9px; text-align: center; }
.message-bubble { width: 84%; margin-bottom: 12px; padding: 10px 11px 8px; border: 1px solid #e0e4e1; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 3px 10px rgba(24,39,31,.05); }
.message-bubble p { margin: 0; color: #343a36; font-size: 11px; line-height: 1.6; }
.message-bubble time { display: block; margin-top: 5px; color: #9da39f; font-size: 8px; }
.message-bubble button { width: 100%; margin-top: 8px; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; color: var(--food-dark); border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; }
.message-bubble button svg { width: 13px; height: 13px; }

.hidden { display: none !important; }
.narrow { max-width: 390px; }
.ph-label { display: none; }

.catalog-body { padding-bottom: 28px; background: #f3f5f4; }
.catalog-page-head,
.catalog-head {
  position: sticky;
  top: 0;
  z-index: 12;
}
.catalog-page-head > div,
.catalog-head > div { min-width: 0; display: flex; flex-direction: column; }
.catalog-page-head > div b,
.catalog-head > div b { font-size: 16px; }
.catalog-page-head > div span,
.catalog-head > div span { max-width: 210px; overflow: hidden; color: #8b928e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, 40px);
  gap: 7px;
  padding: 12px 12px 8px;
}
.catalog-primary,
.catalog-icon-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.catalog-primary { color: #fff; background: var(--catalog); }
.catalog-primary svg,
.catalog-icon-btn svg { width: 17px; height: 17px; }
.catalog-icon-btn { color: #404743; border: 1px solid #dde1de; background: #fff; }

.catalog-search {
  height: 38px;
  margin: 0 12px 8px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7c847f;
  border: 1px solid #dde1de;
  border-radius: 7px;
  background: #fff;
}
.catalog-search svg { width: 15px; height: 15px; }
.catalog-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 11px; }

.catalog-mode-tabs {
  padding: 8px 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-bottom: 1px solid #e4e7e5;
}
.catalog-mode-tabs button { height: 35px; position: relative; color: #7c847f; font-size: 11px; font-weight: 700; }
.catalog-mode-tabs button.on { color: #1f6d57; }
.catalog-mode-tabs button.on::after { content: ""; height: 2px; position: absolute; right: 28%; bottom: 0; left: 28%; border-radius: 2px; background: #1f6d57; }

.catalog-segments {
  margin: 0 12px 9px;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #dde1de;
  border-radius: 7px;
  background: #e9ecea;
}
.catalog-segments button { height: 30px; border-radius: 5px; color: #737b76; font-size: 10px; }
.catalog-segments button.on { color: #171b18; background: #fff; box-shadow: 0 1px 4px rgba(21, 28, 23, 0.08); font-weight: 700; }

.catalog-list { border-top: 1px solid #e2e5e3; background: #fff; }
.catalog-shop-group + .catalog-shop-group { border-top: 8px solid #edf0ee; }
.catalog-group-head { min-height: 35px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #eceeec; background: #f8f9f8; }
.catalog-group-head b { min-width: 0; overflow: hidden; color: #343a36; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-group-head span { flex: 0 0 auto; color: #8c938f; font-size: 8px; }
.catalog-row {
  min-height: 88px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eceeec;
}
.catalog-row.off { background: #f6f7f6; }
.catalog-row.off .catalog-row-image,
.catalog-row.off .catalog-row-main { opacity: 0.52; }
.catalog-row-image {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  background: #55615b;
}
.catalog-row-image img { width: 100%; height: 100%; object-fit: contain; }
.catalog-store-icon { color: #2b735e; background: #e7f2ed; }
.catalog-store-icon svg { width: 24px; height: 24px; }
.catalog-initial { font-size: 16px; font-weight: 700; }
.catalog-row-main { min-width: 0; text-align: left; }
.catalog-row-main b,
.catalog-row-main span,
.catalog-row-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-row-main b { color: #222724; font-size: 12px; }
.catalog-row-main span { margin-top: 5px; color: #747c77; font-size: 9px; }
.catalog-row-main small { margin-top: 4px; color: #a06b11; font-size: 9px; }
.catalog-row-actions { display: grid; gap: 1px; }
.catalog-row-actions button { width: 28px; height: 24px; display: grid; place-items: center; color: #7b837e; border-radius: 5px; }
.catalog-row-actions button:hover { background: #ecefed; }
.catalog-row-actions svg { width: 14px; height: 14px; }
.catalog-empty { padding: 60px 20px; color: #8d9590; font-size: 11px; text-align: center; }

.catalog-form { padding-bottom: 70px; }
.catalog-head { justify-content: space-between; }
.catalog-switch { margin-left: auto !important; display: grid !important; grid-template-columns: 34px auto; align-items: center; gap: 6px; }
.catalog-switch input { position: absolute; opacity: 0; pointer-events: none; }
.catalog-switch span { width: 34px; height: 20px; padding: 2px; border-radius: 99px; background: #c9cfcb; transition: background 140ms; }
.catalog-switch span::after { content: ""; width: 16px; height: 16px; display: block; border-radius: 50%; background: #fff; transition: transform 140ms; }
.catalog-switch input:checked + span { background: #26916f; }
.catalog-switch input:checked + span::after { transform: translateX(14px); }
.catalog-switch em { color: #626a65; font-size: 9px; font-style: normal; }

.catalog-form-section {
  padding: 14px 12px 15px;
  border-bottom: 8px solid #edf0ee;
  background: #fff;
}
.catalog-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.catalog-section-title b { font-size: 13px; }
.catalog-section-title span { color: #8a928d; font-size: 9px; }
.catalog-form-section > label,
.catalog-field-grid > label { display: block; margin-top: 10px; }
.catalog-form-section label > span,
.catalog-field-grid label > span { display: block; margin-bottom: 5px; color: #5f6762; font-size: 9px; font-weight: 600; }
.catalog-form-section input,
.catalog-form-section select,
.catalog-form-section textarea {
  width: 100%;
  border: 1px solid #dfe3e0;
  border-radius: 6px;
  outline: 0;
  color: #222724;
  background: #fafbfa;
  font-size: 11px;
}
.catalog-form-section input,
.catalog-form-section select { height: 38px; padding: 0 10px; }
.catalog-form-section textarea { min-height: 82px; padding: 9px 10px; resize: vertical; line-height: 1.55; }
.catalog-form-section label > small { display: block; margin-top: 4px; color: #929994; font-size: 8px; }
.catalog-field-grid { display: grid; gap: 8px; }
.catalog-field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-money { position: relative; }
.catalog-money i { position: absolute; left: 10px; top: 11px; color: #7c847f; font-size: 11px; font-style: normal; }
.catalog-money input { padding-left: 25px; }

.catalog-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.catalog-gallery-item,
.catalog-upload {
  aspect-ratio: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe3e0;
  border-radius: 6px;
  background: #f5f7f5;
}
.catalog-gallery-item img { width: 100%; height: 100%; object-fit: contain; }
.catalog-gallery-item > span { position: absolute; left: 4px; bottom: 4px; padding: 2px 4px; color: #fff; border-radius: 3px; background: rgba(22, 28, 24, 0.75); font-size: 8px; }
.catalog-gallery-item button { width: 22px; height: 22px; display: grid; place-items: center; position: absolute; top: 3px; right: 28px; color: #fff; border-radius: 4px; background: rgba(22, 28, 24, 0.68); }
.catalog-gallery-item button.remove { right: 3px; }
.catalog-gallery-item svg { width: 12px; height: 12px; }
.catalog-upload { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #69716c; cursor: pointer; }
.catalog-upload svg { width: 21px; height: 21px; }
.catalog-upload span { margin: 0 !important; color: #3c443f !important; font-size: 9px !important; }
.catalog-upload small { color: #9aa19d; font-size: 8px; }
.catalog-upload input { display: none; }
.catalog-upload.disabled { opacity: 0.45; cursor: not-allowed; }
.viewport-web .catalog-camera-upload { display: none !important; }

.catalog-mini-preview { min-height: 96px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 11px; border: 1px solid #e1e4e2; border-radius: 7px; overflow: hidden; }
.catalog-mini-preview > div { height: 96px; display: grid; place-items: center; color: #fff; background: #55615b; }
.catalog-mini-preview > div img { width: 100%; height: 100%; object-fit: contain; }
.catalog-mini-preview p { min-width: 0; margin: 0; padding: 10px 9px 8px 0; }
.catalog-mini-preview b,
.catalog-mini-preview span,
.catalog-mini-preview em { display: block; }
.catalog-mini-preview b { max-height: 34px; overflow: hidden; font-size: 12px; line-height: 1.4; }
.catalog-mini-preview span { margin-top: 4px; color: #858d88; font-size: 8px; line-height: 1.4; }
.catalog-mini-preview em { margin-top: 7px; color: #d7463e; font-size: 14px; font-style: normal; font-weight: 700; }
.catalog-savebar { padding: 10px 12px 18px; background: #fff; }
.catalog-savebar .catalog-primary { width: 100%; }
.catalog-category-summary { min-height: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #909792; font-size: 10px; }
.catalog-category-summary span { padding: 5px 7px; color: #3e6658; border: 1px solid #cfe0d9; border-radius: 5px; background: #f0f7f4; font-size: 9px; }
.product-detail-tags { margin-top: 9px; }
.food-item-tag { max-width: 100%; margin: 3px 0 4px; padding: 2px 5px; display: inline-block; overflow: hidden; color: #187668; border-radius: 3px; background: #e8f5f2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.catalog-notice {
  max-width: 250px;
  padding: 9px 12px;
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  transform: translateX(-50%);
  color: #fff;
  border-radius: 6px;
  background: rgba(25, 30, 27, 0.92);
  font-size: 10px;
  text-align: center;
}

.catalog-save-modal > div > div.save-status-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.catalog-save-modal .save-status-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #26765f;
  border-radius: 50%;
  background: #e5f3ed;
}
.catalog-save-modal .save-status-icon svg { width: 15px; height: 15px; }
.catalog-save-modal.saving .save-status-icon { color: #a06b11; background: #fff1d8; }
.catalog-save-modal.error .save-status-icon { color: #c7433b; background: #fbe8e6; }
.catalog-save-modal .save-status-icon.spinning svg { animation: catalog-save-spin 900ms linear infinite; }
.catalog-save-modal .save-status-progress {
  padding: 9px 10px;
  color: #8a928d;
  border-radius: 6px;
  background: #f6f8f6;
  font-size: 10px;
  text-align: center;
}
.catalog-save-modal > div > div.save-status-actions { display: block; }
.catalog-save-modal .save-status-actions button { width: 100%; }
@keyframes catalog-save-spin { to { transform: rotate(360deg); } }

/* The desktop web view shares the mobile render tree but gets its own page frame. */
.viewport-shell {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.viewport-mobile {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.viewport-web {
  min-height: 100vh;
  background: #eef2ef;
}

.web-screen {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.display-mode-switch {
  display: inline-flex;
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 100;
  padding: 3px;
  gap: 2px;
  border: 1px solid rgba(32, 37, 34, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 5px 18px rgba(26, 38, 30, 0.12);
  backdrop-filter: blur(14px);
}

.display-mode-switch button {
  min-width: 82px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #707973;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.display-mode-switch button.on {
  color: #202622;
  background: #e6eee9;
  box-shadow: 0 1px 4px rgba(23, 35, 27, 0.1);
}

.display-mode-switch svg { width: 15px; height: 15px; }

.web-home-button {
  width: 74px;
  height: 40px;
  display: inline-flex;
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 100;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #58635c;
  border: 1px solid rgba(32, 37, 34, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 5px 18px rgba(26, 38, 30, 0.1);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 600;
}

.web-home-button:hover { color: #202622; background: #fff; }
.web-home-button svg { width: 16px; height: 16px; }

.viewport-web .web-screen > .app-layer { position: absolute; inset: 0; }
.viewport-web .status-bar { display: none; }
.viewport-web .app-shell { min-height: 100vh; height: 100vh; }
.viewport-web .app-body { padding-top: 0; padding-bottom: 20px; }
.viewport-web .app-body.no-tab { padding-bottom: 20px; }
.viewport-web .page-head { min-height: 60px; padding: 14px 28px; }
.viewport-web .mall-top { margin-top: 0; padding-top: 18px; }
.viewport-web .mall-top > .mall-brand-row,
.viewport-web .mall-top > .search-row,
.viewport-web .mall-top > .mall-hero,
.viewport-web .mall-top > .icon-grid,
.viewport-web .mall-top > .section,
.viewport-web .app-shell.mall > .app-body > .section { max-width: 1200px; margin-left: auto; margin-right: auto; }
.viewport-web .search-row { padding-right: 28px; padding-left: 28px; }
.viewport-web .mall-brand-row { padding-left: 116px; }
.viewport-web .mall-hero { margin-top: 16px; }
.viewport-web .icon-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); margin-top: 14px; }
.viewport-web .section { margin-bottom: 24px; }
.viewport-web .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.viewport-web .deal-row { grid-template-columns: 1.5fr 1fr; gap: 14px; }
.viewport-web .product-card { border-radius: 6px; }
.viewport-web .app-shell.mall .app-body.no-tab { overflow-y: auto; }
.viewport-web .app-shell.mall .app-body.no-tab > .detail-gallery,
.viewport-web .app-shell.mall .app-body.no-tab > .price-panel,
.viewport-web .app-shell.mall .app-body.no-tab > .block { max-width: 1200px; margin-right: auto; margin-left: auto; }
.viewport-web .app-shell.mall .app-body.no-tab > .detail-gallery { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); }
.viewport-web .app-shell.mall .app-body.no-tab > .detail-gallery + .price-panel { margin-top: 0; }
.viewport-web .app-shell.mall .detail-gallery-thumbs { grid-column: 1; }
.viewport-web .buybar { position: fixed; right: 0; bottom: 0; left: 0; padding-right: max(28px, calc((100vw - 1200px) / 2)); padding-left: max(28px, calc((100vw - 1200px) / 2)); }
.viewport-web .tabbar { top: 16px; right: 220px; bottom: auto; left: auto; width: auto; height: 48px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; }
.viewport-web .tabbar button { flex: 0 0 auto; min-width: 72px; flex-direction: row; gap: 6px; font-size: 11px; }
.viewport-web .tabbar .mark { width: 18px; height: 18px; }
.viewport-web .tabbar .mark svg { width: 17px; height: 17px; }
.viewport-web .food-top { padding-top: 18px; }
.viewport-web .food-top > .addr-row,
.viewport-web .food-top > .search-row,
.viewport-web .food-top > .food-cats,
.viewport-web .food > .shop-card { max-width: 1200px; margin-right: auto; margin-left: auto; }
.viewport-web .food-top > .search-row { padding-right: 28px; padding-left: 28px; }
.viewport-web .food-top > .food-cats { padding-right: 28px; padding-left: 28px; }
.viewport-web .food-top > .food-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}
.viewport-web .food-top > .food-cats button {
  min-width: 0;
  width: auto;
  flex: 1 1 0;
}
.viewport-web .food-top > .addr-row { padding-left: 116px; }
.viewport-web .food > .shop-card { width: min(1200px, calc(100% - 56px)); }
.viewport-web .shop-page { width: min(1200px, 100%); height: calc(100vh - 155px); margin: 0 auto; grid-template-columns: 190px minmax(0, 1fr); }
.viewport-web .shop-side button { padding-right: 22px; padding-left: 22px; }
.viewport-web .menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.viewport-web .food-item { border-right: 1px solid #eef0ee; }
.viewport-web .plain .app-body.no-tab { width: min(960px, 100%); margin: 0 auto; }
.viewport-web .plain .app-body.no-tab > .page-head { padding-left: 116px; }
.viewport-web .message-thread { min-height: calc(100vh - 60px); }
.viewport-web .catalog-body { width: min(1280px, 100%); margin: 0 auto; }
.viewport-web .catalog-page-head { padding-left: 116px; }

@media (max-width: 1100px) {
  .viewport-web .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .viewport-web .icon-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .viewport-web .tabbar { right: 212px; }
}

/* TAGI-inspired desktop storefront: quiet chrome, a single visual hero, and
   flat product-led sections. Kept inside .viewport-web so the phone UI stays
   on its existing visual contract. */
.viewport-web {
  --web-page: #ffffff;
  --web-ink: #171717;
  --web-muted: #747a78;
  --web-line: #e7e9e7;
  --web-accent: #e9899e;
  --web-ticker: #b8dce8;
  background: var(--web-page);
  color: var(--web-ink);
  font-family: "Poppins", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

.viewport-web .web-screen { background: var(--web-page); }
.viewport-web .desktop-wallpaper {
  background-image: url("../assets/ui/desktop-wallpaper.png");
  background-position: center;
  background-size: cover;
}
.viewport-web .app-shell.mall { background: var(--web-page); }
.viewport-web .app-shell.mall .app-body { background: var(--web-page); }
.viewport-web .app-shell.mall.cart-page > .app-body { padding-bottom: 112px; }
.viewport-web .mall-cart-bottom { bottom: 0; }

.viewport-web .app-shell.mall .mall-top {
  min-height: 110px;
  margin: 0;
  padding: 34px 0 0;
  position: relative;
  color: var(--web-ink);
  border-bottom: 1px solid var(--web-line);
  background: var(--web-page);
}

.viewport-web .app-shell.mall .mall-top::before {
  display: none;
}

.viewport-web .app-shell.mall .mall-brand-row {
  height: 76px;
  min-height: 0;
  padding: 0 max(28px, calc((100vw - 1200px) / 2));
  align-items: center;
  border-bottom: 1px solid var(--web-line);
}

.viewport-web .app-shell.mall .mall-brand-row b {
  color: var(--web-ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.viewport-web .app-shell.mall .mall-brand-row span {
  margin-top: 5px;
  color: var(--web-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.viewport-web .app-shell.mall .mall-brand-row .mall-checkin {
  width: 36px;
  height: 36px;
  color: var(--web-ink);
  border: 1px solid var(--web-ink);
  border-radius: 50%;
  background: transparent;
}

.viewport-web .app-shell.mall .mall-top .search-row {
  width: 260px;
  padding: 0;
  position: absolute;
  top: 54px;
  right: max(28px, calc((100vw - 1200px) / 2));
  z-index: 2;
}
.viewport-web .app-shell.mall .mall-brand-row > .commerce-back,
.viewport-web .app-shell.mall .mall-top .search-row > .commerce-back,
.viewport-web .app-shell.food .food-top .addr-row > .commerce-back { display: none; }

.viewport-web .app-shell.mall .mall-top .search-box {
  height: 38px;
  color: var(--web-muted);
  border: 1px solid var(--web-line);
  border-radius: 0;
  background: #fff;
}

.viewport-web .app-shell.mall .mall-top .search-box {
  justify-content: space-between;
  gap: 0;
}
.viewport-web .app-shell.mall .mall-top .search-box > svg { margin-left: auto; }

.viewport-web .app-shell.mall .mall-top .search-box svg { color: var(--web-ink); }

.viewport-web .app-shell.mall .mall-tabs {
  top: 50px;
  right: 310px;
  left: 330px;
  width: auto;
  height: 46px;
  padding: 0;
  justify-content: center;
  gap: 26px;
  border: 0;
  border-bottom: 1px solid var(--web-line);
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 23, 23, 0.04);
  backdrop-filter: none;
}

.viewport-web .app-shell.mall .mall-tabs button {
  min-width: 0;
  height: 46px;
  padding: 0 2px;
  position: relative;
  color: #626966;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.viewport-web .app-shell.mall .mall-tabs button.on { color: var(--web-ink); }
.viewport-web .app-shell.mall .mall-tabs button.on::after {
  content: "";
  height: 2px;
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  background: var(--web-accent);
}
.viewport-web .app-shell.mall .mall-tabs .mark { display: none; }

/* Keep desktop application chrome in the document flow. The app bar owns
   navigation and view selection so neither control obscures storefront content. */
.web-app-bar { display: none; }
.viewport-shell.has-web-app-bar {
  --web-app-bar-height: 58px;
  background: var(--web-page, #fff);
}
.viewport-shell.has-web-app-bar .web-app-bar {
  height: var(--web-app-bar-height);
  padding: 0 max(24px, calc((100vw - 1360px) / 2));
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--web-line, #e7e9e7);
  background: rgba(255, 255, 255, .96);
}
.web-app-context { min-width: 0; display: flex; align-items: center; gap: 10px; }
.web-app-home {
  height: 34px;
  padding: 0 9px 0 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  color: #58635c;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.web-app-home:hover,
.web-app-home:focus-visible { color: #202622; background: #f1f4f2; }
.web-app-home svg { width: 17px; height: 17px; }
.web-app-divider { width: 1px; height: 22px; flex: 0 0 auto; background: var(--web-line, #e7e9e7); }
.web-app-title { min-width: 0; }
.web-app-title b,
.web-app-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-app-title b { color: var(--web-ink, #171717); font-size: 15px; line-height: 1.1; }
.web-app-title span { margin-top: 3px; color: var(--web-muted, #747a78); font-size: 10px; }
.web-app-tools { min-width: 0; display: flex; justify-content: flex-end; }
.web-app-bar .display-mode-switch {
  position: static;
  padding: 2px;
  gap: 1px;
  border: 1px solid var(--web-line, #e7e9e7);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.web-app-bar .display-mode-switch button { min-width: 78px; height: 32px; font-size: 11px; }
.web-app-bar .display-mode-switch button.on { background: #e6eee9; box-shadow: none; }
.web-app-bar .web-app-tabs {
  width: auto;
  height: 100%;
  padding: 0;
  display: flex;
  position: static;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.web-app-bar .web-app-tabs button {
  min-width: 74px;
  height: 100%;
  padding: 0 9px;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  color: #626966;
  font-size: 12px;
  font-weight: 600;
}
.web-app-bar .web-app-tabs button.on { color: var(--tab); }
.web-app-bar .web-app-tabs button.on::after {
  content: "";
  height: 2px;
  position: absolute;
  right: 9px;
  bottom: 0;
  left: 9px;
  background: var(--tab);
}
.web-app-bar .web-app-tabs .mark { width: 17px; height: 17px; }
.web-app-bar .web-app-tabs .mark svg { width: 16px; height: 16px; }
.web-app-bar .mall-tabs .mark { display: none; }
.viewport-web.has-web-app-bar .web-screen {
  min-height: calc(100vh - var(--web-app-bar-height));
  height: calc(100vh - var(--web-app-bar-height));
}
.viewport-web.has-web-app-bar .app-shell { min-height: 100%; height: 100%; }
.viewport-web.has-web-app-bar .app-shell.mall .mall-brand-row { display: none; }
.viewport-web.has-web-app-bar .app-shell.mall .mall-top { min-height: 56px; padding-top: 0; }
.viewport-web.has-web-app-bar .app-shell.mall .mall-top .search-row { top: 9px; }
.viewport-mobile.has-web-app-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
}
.viewport-mobile.has-web-app-bar .web-app-bar { width: 100%; flex: 0 0 var(--web-app-bar-height); }
.viewport-mobile.has-web-app-bar .web-app-context { padding-left: max(14px, calc((100vw - 1360px) / 2)); }
.viewport-mobile.has-web-app-bar .web-app-tools { padding-right: max(14px, calc((100vw - 1360px) / 2)); }
.viewport-mobile.has-web-app-bar .web-app-bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.viewport-mobile.has-web-app-bar .web-app-title span,
.viewport-mobile.has-web-app-bar .web-app-divider { display: none; }
.viewport-mobile.has-web-app-bar .web-app-title b { font-size: 13px; }
.viewport-mobile.has-web-app-bar .web-app-home { padding-right: 6px; }
.viewport-mobile.has-web-app-bar .phone {
  height: min(844px, calc(100vh - var(--web-app-bar-height) - 12px));
  margin-top: 12px;
}

.viewport-web .app-shell.mall .mall-hero {
  width: min(1200px, calc(100% - 56px));
  height: 320px;
  margin: 28px auto 0;
  padding-left: 56px;
  grid-template-columns: minmax(0, 1fr) 400px;
  border-radius: 0;
  color: var(--web-ink);
  background: linear-gradient(105deg, #FFE4EC 0%, #E8F8F0 55%, #E4F2FA 100%);
}

.viewport-web .app-shell.mall .mall-hero-copy { padding: 76px 20px 25px 0; }
.viewport-web .app-shell.mall .mall-hero-copy b {
  max-width: 320px;
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.viewport-web .app-shell.mall .mall-hero-copy span { margin-top: 14px; color: #566460; font-size: 13px; }
.viewport-web .app-shell.mall .mall-hero-copy .hero-link {
  bottom: 25px;
  color: var(--web-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.viewport-web .app-shell.mall .mall-hero .hero-product { height: 320px; background: transparent; }
.viewport-web .app-shell.mall .mall-hero .hero-product img {
  width: 100%;
  height: 320px;
  min-height: 0;
  object-fit: contain;
  object-position: right center;
}

.viewport-web .app-shell.mall .icon-grid {
  width: min(1200px, calc(100% - 56px));
  margin: 28px auto 0;
  padding: 18px 0 20px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--web-line);
  background: transparent;
}
.viewport-web .app-shell.mall .icon-grid button { color: #4e5652; font-size: 11px; font-weight: 600; }
.viewport-web .app-shell.mall .mini-ico { width: 48px; height: 48px; border-radius: 12px; }
.viewport-web .app-shell.mall .mini-ico svg { width: 20px; height: 20px; }

.viewport-web .app-shell.mall > .app-body > .section {
  width: min(1200px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--web-line);
  background: transparent;
}

.viewport-web .app-shell.mall .deal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.viewport-web .app-shell.mall .deal-card {
  min-height: 116px;
  padding: 24px 26px;
  border-radius: 0;
  border: 1px solid var(--web-line);
}
.viewport-web .app-shell.mall .deal-card.promo-image-card {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
}
.viewport-web .app-shell.mall .deal-card h3 { font-size: 18px; font-weight: 700; }
.viewport-web .app-shell.mall .deal-card .sub { font-size: 12px; }

.viewport-web .app-shell.mall .section-title {
  margin: 0 0 18px;
  color: var(--web-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.viewport-web .app-shell.mall .section-title small { color: var(--web-muted); font-size: 11px; font-weight: 500; }
.viewport-web .app-shell.mall .product-grid { gap: 24px 16px; }
.viewport-web .app-shell.mall .product-card { border: 0; border-radius: 0; background: transparent; }
.viewport-web .app-shell.mall .thumb { aspect-ratio: 1 / 1; border-radius: 0; background: #f1f3f1; }
.viewport-web .app-shell.mall .product-card .meta { padding: 12px 0 0; }
.viewport-web .app-shell.mall .product-card h4 { height: 40px; color: var(--web-ink); font-size: 13px; font-weight: 600; }
.viewport-web .app-shell.mall .product-price-row { margin-top: 8px; }
.viewport-web .app-shell.mall .price { color: var(--web-accent); font-size: 18px; }
.viewport-web .app-shell.mall .sub { color: var(--web-muted); font-size: 10px; }

@media (min-width: 1200px) {
  .viewport-web .app-shell.mall .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.catalog-modal { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(15, 19, 17, 0.48); backdrop-filter: blur(3px); }
.catalog-modal > div { width: 100%; padding: 17px; border-radius: 8px; background: #fff; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2); }
.catalog-modal b { font-size: 14px; }
.catalog-modal p { margin: 8px 0 14px; color: #717974; font-size: 10px; line-height: 1.6; }
.catalog-modal > div > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.catalog-modal button { height: 38px; border-radius: 6px; background: #eef0ee; font-size: 11px; font-weight: 700; }
.catalog-modal button.confirm { color: #fff; background: #26765f; }
.catalog-modal button.danger { color: #fff; background: #c7433b; }

.price,
.price-panel .now,
.wallet-hero .bal,
.cart-line.total b,
.checkout-total b,
.pay-amount b,
.catalog-mini-preview em {
  font-family: var(--font-commerce-number);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* Guava mall: pale fruit tones are surfaces; darker inks carry meaning. */
.app-shell.mall {
  --guava-flesh: #F9A8B8;
  --guava-action: #F9A8B8;
  --guava-action-dark: #F7899E;
  --guava-leaf: #A8E6CF;
  --guava-blush: #FFF0F3;
  --guava-mint: #EEFBF5;
  --guava-sky: #EEF6FC;
  --guava-cream: #FFFDF9;
  --guava-ink: #3D3D3D;
  --guava-muted: #7A7A7A;
  --guava-line: rgba(171, 171, 171, 0.2);
  color: var(--guava-ink);
  background: var(--guava-cream);
}

.app-shell.mall .app-body { background: var(--guava-cream); }

.mall-top {
  margin-top: -48px;
  padding-top: 48px;
  padding-bottom: 12px;
  color: #3D3D3D;
  background: #FFFDF9;
}

.mall-brand-row {
  min-height: 46px;
  padding: 7px 12px 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mall-brand-row > div { min-width: 0; }
.mall-brand-row b,
.mall-brand-row span { display: block; }
.mall-brand-row b { font-size: 20px; line-height: 1.1; }
.mall-brand-row span { margin-top: 4px; color: #7A7A7A; font-size: 11px; }
.mall-brand-row .chip { width: 34px; height: 34px; color: #F7899E; border: 1px solid #F9A8B8; border-radius: 4px; background: #FFFFFF; }
.mall-brand-row .mall-checkin { transition: background 140ms ease, color 140ms ease, border-color 140ms ease; }
.mall-brand-row .mall-checkin:hover,
.mall-brand-row .mall-checkin:focus-visible { color: #FFFFFF; border-color: #F7899E; background: #F7899E; }
.mall-brand-row .mall-checkin.is-checked { color: #6FAF98; border-color: #A8E6CF; background: #EEFBF5; }
.mall-brand-row .mall-checkin.is-checked:hover,
.mall-brand-row .mall-checkin.is-checked:focus-visible { color: #FFFFFF; border-color: #6FAF98; background: #6FAF98; }

.mall-top .search-row { padding: 8px 12px 0; }
.mall-top .search-box {
  height: 40px;
  padding: 0 12px;
  color: #ABABAB;
  border: 1px solid #FFF0F3;
  border-radius: 8px;
  background: #FFFFFF;
}
.mall-top .search-box svg { color: #F9A8B8; }

.mall-mobile-checkin,
.mall-mobile-back { display: none; }

.mall-hero {
  height: 154px;
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
  align-items: stretch;
  color: #3D3D3D;
  border-radius: 0;
  background: linear-gradient(105deg, #FFE4EC 0%, #E8F8F0 55%, #E4F2FA 100%);
}

.mall-hero-copy {
  min-width: 0;
  padding: 26px 4px 10px 0;
  position: relative;
  z-index: 1;
}

.mall-hero-copy b { display: block; font-size: 23px; line-height: 1.18; }
.mall-hero-copy span { display: block; margin-top: 8px; color: #7A7A7A; font-size: 11px; }
.mall-hero-copy .hero-link {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 0;
  bottom: 10px;
  color: #F7899E;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.mall-hero-copy .hero-link svg { width: 13px; height: 13px; }
.mall-hero .hero-product { width: 100%; height: 154px; overflow: hidden; color: #fff; background: transparent; }
.mall-hero .hero-product img { width: 100%; height: 154px; min-height: 0; object-fit: contain; object-position: right center; }

.app-shell.mall .icon-grid {
  margin: 0;
  padding: 14px 12px 17px;
  gap: 13px 0;
  border: 0;
  border-bottom: 8px solid #FFFDF9;
  border-radius: 0;
  background: #fff;
}

.app-shell.mall .icon-grid button { gap: 7px; color: #3D3D3D; font-size: 11px; }
.app-shell.mall .mini-ico { width: 36px; height: 36px; border-radius: 8px; }
.app-shell.mall .mini-ico.c0,
.app-shell.mall .mini-ico.c4,
.app-shell.mall .mini-ico.c6 { color: #F7899E; background: #FFF0F3; }
.app-shell.mall .mini-ico.c1,
.app-shell.mall .mini-ico.c5,
.app-shell.mall .mini-ico.c7 { color: #6FAF98; background: #EEFBF5; }
.app-shell.mall .mini-ico.c2,
.app-shell.mall .mini-ico.c8 { color: #7BA9C0; background: #EEF6FC; }
.app-shell.mall .mini-ico.c3,
.app-shell.mall .mini-ico.c9 { color: #8A7A63; background: #FFFDF9; }

.app-shell.mall .section {
  margin: 0;
  padding: 14px 12px 15px;
  border-bottom: 8px solid #FFFDF9;
  background: #fff;
}

.app-shell.mall .section-title { margin-bottom: 10px; color: var(--guava-ink); font-size: 16px; }
.app-shell.mall .section-title small { color: var(--guava-muted); font-size: 11px; }

.app-shell.mall .deal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.app-shell.mall .deal-card {
  min-height: 104px;
  padding: 14px 12px;
  border: 0;
  border-radius: 4px;
  background: #EEFBF5;
  background-image: none;
}
.app-shell.mall .deal-card.promo-image-card {
  min-height: 0;
  padding: 0;
  border-radius: 8px;
  background: none;
}
.app-shell.mall .deal-mini .deal-card { background: #EEF6FC; background-image: none; }
.app-shell.mall .deal-card h3 { margin: 0 0 8px; color: var(--guava-ink); font-size: 15px; }
.app-shell.mall .deal-card .sub { color: var(--guava-muted); font-size: 11px; }

.app-shell.mall .product-grid {
  gap: 8px 6px;
  border: 0;
  background: #fff;
}
.app-shell.mall .product-card {
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.app-shell.mall .thumb {
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: #f2f2ef;
}
.app-shell.mall .thumb .badge {
  left: 7px;
  top: 7px;
  padding: 3px 5px;
  border-radius: 2px;
  background: rgba(61, 61, 61, 0.72);
  font-size: 11px;
}
.app-shell.mall .thumb .badge.soldout { background: rgba(61, 61, 61, 0.86); }
.app-shell.mall .product-card .meta { padding: 9px 2px 10px; }
.app-shell.mall .product-card h4 {
  height: 38px;
  margin-bottom: 5px;
  color: var(--guava-ink);
  font-size: 14px;
  line-height: 1.35;
}
.product-price-row { display: flex; align-items: baseline; flex-wrap: wrap; }
.product-tags {
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}
.product-tags.empty { visibility: hidden; }
.product-tag {
  min-width: 0;
  max-width: 92px;
  overflow: hidden;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-tag.primary { color: #F7899E; border-color: #F9A8B8; background: #FFF0F3; }
.product-tag.secondary { color: #3D3D3D; border-color: #A8E6CF; background: #EEFBF5; }
.app-shell.mall .product-price-row { margin-top: 7px; }
.app-shell.mall .price { color: #F7899E; }
.app-shell.mall .old { color: #ABABAB; }
.app-shell.mall .sub { color: #7A7A7A; font-size: 11px; }

.mall-filters {
  min-height: 43px;
  padding: 0 12px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--guava-line);
  background: #FFFDF9;
  scrollbar-width: none;
  touch-action: pan-x;
}
.mall-filters::-webkit-scrollbar { display: none; }
.mall-filters button {
  min-width: max-content;
  padding: 0 2px;
  position: relative;
  color: var(--guava-muted);
  font-size: 11px;
}
.mall-filters button.on { color: #F7899E; font-weight: 600; }
.mall-filters button.on::after {
  content: "";
  height: 2px;
  position: absolute;
  right: 2px;
  bottom: 0;
  left: 2px;
  background: var(--guava-action);
}

.app-shell.mall .page-head {
  border-bottom-color: var(--guava-line);
  background: rgba(255, 253, 249, 0.97);
}
.app-shell.mall .page-head > b,
.app-shell.mall .section-title,
.app-shell.mall .product-card h4,
.app-shell.mall .price-panel h3,
.app-shell.mall .deal-card h3,
.mall-brand-row b,
.mall-hero-copy b {
  font-weight: 600;
}
.app-shell.mall .search-box,
.app-shell.mall .mall-filters button,
.app-shell.mall .icon-grid button,
.app-shell.mall .sub { font-weight: 400; }
.app-shell.mall .price,
.app-shell.mall .price-panel .now,
.mall-sheet .checkout-total b,
.channel-mall .cart-line.total b { font-weight: 700; }
.app-shell.mall .white-card { border: 0; border-radius: 0; }
.app-shell.mall .mall-profile { border-left: 3px solid #F9A8B8; background: #FFF0F3; }
.app-shell.mall .white-card .order-card {
  width: 100%;
  margin: 8px 0 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--guava-line);
  border-radius: 0;
}

/* Cart and order surfaces follow a light, mobile-commerce hierarchy. */
.cart-empty-state {
  padding: 38px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-bottom: 8px solid #FFFDF9;
}
.cart-empty-art {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  color: #F7899E;
  border-radius: 50%;
  background: #FFF0F3;
}
.cart-empty-art svg { width: 58px; height: 58px; stroke-width: 1.45; }
.cart-empty-state h2 { margin: 18px 0 6px; color: #3D3D3D; font-size: 18px; font-weight: 600; }
.cart-empty-state p { margin: 0; color: #7A7A7A; font-size: 12px; }
.cart-empty-state .solid-btn { width: 132px; height: 40px; margin-top: 19px; border-radius: 4px; }
.cart-recommend { border-bottom: 0 !important; }
.cart-recommend .section-title { margin-bottom: 12px !important; }
.cart-recommend .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cart-recommend .product-card .thumb { aspect-ratio: 1 / 1; }

.cart-summary-card {
  padding: 10px 13px 13px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.mall-cart-bottom {
  position: absolute;
  right: 0;
  bottom: 66px;
  left: 0;
  z-index: 21;
  border-top: 1px solid var(--guava-line, var(--line));
  box-shadow: 0 -8px 22px rgba(35, 39, 36, 0.08);
}
.cart-summary-top { min-height: 32px; display: flex; align-items: center; gap: 7px; color: #3D3D3D; font-size: 12px; }
.cart-summary-top .cart-selected-count { margin-left: auto; color: #929894; font-size: 10px; }
.cart-summary-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-summary-total { display: flex; align-items: baseline; gap: 7px; min-width: 0; color: #777d79; font-size: 11px; }
.cart-summary-total b { color: var(--mall); font-size: 21px; line-height: 1; white-space: nowrap; }
.cart-summary-checkout { width: auto !important; min-width: 106px; height: 40px; margin: 0 !important; padding: 0 15px; flex: 0 0 auto; }
.cart-content-spacer { min-height: 112px; flex: 1 1 auto; display: grid; place-content: center; justify-items: center; gap: 8px; color: #a0a6a2; font-size: 11px; }
.cart-content-spacer-art { width: 42px; height: 42px; display: grid; place-items: center; color: #F7899E; border-radius: 50%; background: #FFF0F3; }
.cart-content-spacer-art svg { width: 21px; height: 21px; stroke-width: 1.7; }
.app-shell.mall.cart-page > .app-body { display: flex; flex-direction: column; padding-bottom: 150px; }
.app-shell.mall.cart-page > .app-body > .page-head,
.app-shell.mall.cart-page > .app-body > .section { flex: 0 0 auto; }
.cart-item { display: grid; grid-template-columns: 28px 62px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 0; }
.cart-item > :first-child { min-width: 0; }
.cart-item .cart-thumb { width: 62px; height: 62px; border-radius: 6px; overflow: hidden; background: #f4f4f1; }
.cart-item .cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-product-copy { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.cart-product-copy b { display: block; color: #3D3D3D; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.cart-product-copy .sub { margin-top: 3px; line-height: 1.4; overflow-wrap: anywhere; }
.cart-product-copy .price { margin-top: 5px; font-size: 14px; }
.cart-check { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border: 1.5px solid #C9CDCA; border-radius: 50%; background: #fff; }
.cart-check span { width: 100%; height: 100%; display: grid; place-items: center; }
.cart-check svg { width: 14px; height: 14px; stroke-width: 3; }
.cart-check.on { border-color: #F7899E; background: #F7899E; }
.cart-item .qty { gap: 6px; }
.cart-item .qty button { width: 23px; height: 23px; color: #777; }
.cart-item .qty span { min-width: 15px; text-align: center; }

.orders-panel { padding: 14px 0 12px; background: #fff; }
.orders-panel > .section-title { padding: 0 12px; }
.order-filter-tabs { display: flex; gap: 18px; padding: 3px 12px 0; overflow-x: auto; border-bottom: 1px solid var(--guava-line); scrollbar-width: none; }
.order-filter-tabs::-webkit-scrollbar { display: none; }
.order-filter-tabs button { min-width: max-content; height: 36px; position: relative; color: #7A7A7A; font-size: 11px; }
.order-filter-tabs button.on { color: #F7899E; font-weight: 600; }
.order-filter-tabs button.on::after { content: ""; height: 2px; position: absolute; right: 0; bottom: -1px; left: 0; border-radius: 2px; background: #F7899E; }
.order-filter-tabs small { min-width: 15px; height: 15px; margin-left: 3px; padding: 0 4px; display: inline-grid; place-items: center; color: #F7899E; border-radius: 10px; background: #FFF0F3; font-size: 9px; }
.orders-list { min-height: 92px; }
.orders-list .order-card { width: calc(100% - 24px); margin-top: 10px; }
.list-empty.compact { padding: 34px 20px; }
.food-orders-panel { padding-top: 0; }

.app-shell.mall .orders-panel { border-bottom: 8px solid #FFFDF9; }
.app-shell.mall .orders-panel .order-card { border-color: var(--guava-line); }
.app-shell.mall .orders-panel .order-channel.mall { color: #F7899E; background: #FFF0F3; }

.app-shell.mall .detail-hero { height: 322px; background: #EEF6FC; }
.app-shell.mall .detail-gallery { border-bottom: 8px solid #FFFDF9; }
.app-shell.mall .detail-gallery-main { height: 322px; }
.app-shell.mall .price-panel,
.app-shell.mall .block {
  margin: 0;
  padding: 15px 14px;
  border-bottom: 8px solid #FFFDF9;
}
.app-shell.mall .price-panel .now { color: #F7899E; }
.app-shell.mall .tag { color: #F7899E; border-color: #F9A8B8; border-radius: 4px; background: #FFF0F3; font-size: 11px; }
.app-shell.mall .guarantee { font-size: 11px; }
.app-shell.mall .buybar { border-top-color: var(--guava-line); background: rgba(255, 253, 249, 0.98); }
.app-shell.mall .ghost-btn { color: #3D3D3D; border: 1px solid #A8E6CF; background: #EEFBF5; }
.app-shell.mall .ghost-btn,
.app-shell.mall .solid-btn { border-radius: 4px; }

.mall-tabs { border-top-color: var(--guava-line); background: rgba(255, 253, 249, 0.97); }
.mall-tabs button { color: #ABABAB; font-weight: 400; }
.mall-tabs button.on { color: #F7899E; font-weight: 600; }
.mall-tabs .tab-badge { background: #F7899E; }

.channel-mall .order-detail-body { background: var(--guava-cream, #fffdf9); }
.channel-mall .track-hero.mall {
  margin: 10px 12px 0;
  color: #3D3D3D;
  border-radius: 4px 4px 0 0;
  background: #FFF0F3;
}
.channel-mall .track-live { color: #F7899E; opacity: 1; }
.channel-mall .track-live span { background: #F9A8B8; box-shadow: none; }
.channel-mall .track-stage-progress { border-top-color: rgba(171, 171, 171, 0.2); }
.channel-mall .track-stage-progress .track-line { background: #dfe3e0; }
.channel-mall .track-stage-progress .track-line i { background: #F9A8B8; }
.channel-mall .track-stage-progress .track-steps > div { color: #a0a6a2; }
.channel-mall .track-stage-progress .track-steps i { color: #707773; border-color: #dfe3e0; background: #fff; }
.channel-mall .track-stage-progress .track-steps .on { color: #F7899E; }
.channel-mall .track-stage-progress .track-steps .on i { color: #fff; border-color: #F9A8B8; background: #F9A8B8; }
.channel-mall .order-detail-card,
.channel-mall .parcel-route { border-color: rgba(171, 171, 171, 0.2); border-radius: 4px; }

.mall-sheet .address-card,
.mall-sheet .checkout-items,
.mall-sheet .payment-method { border-color: rgba(171, 171, 171, 0.2); border-radius: 4px; }
.mall-sheet { border-radius: 10px 10px 0 0; }
.mall-sheet .bill-line.discount b,
.mall-sheet .checkout-total b { color: var(--mall-dark); }
.mall-sheet > .solid-btn { border-radius: 4px; }

.backend-setup-sheet .sub { margin: 0 0 14px; line-height: 1.5; }
.setup-field { display: grid; gap: 6px; margin: 12px 0; color: #5f625f; font-size: 12px; }
.setup-field input,
.setup-field select { width: 100%; min-height: 42px; border: 1px solid rgba(61, 61, 61, 0.16); border-radius: 6px; padding: 0 12px; background: #fffdf9; color: #252525; font: inherit; }
.backend-setup-sheet .solid-btn { width: 100%; margin-top: 8px; }
.backend-saving-sheet { align-items: center; justify-content: center; padding: 24px; }
.backend-saving-modal {
  width: min(100%, 310px);
  padding: 28px 22px 24px;
  text-align: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
  animation: rise 180ms ease-out;
}
.backend-saving-modal strong { display: block; color: #252525; font-size: 16px; }
.backend-saving-modal p { margin: 9px 0 0; color: #777d79; font-size: 12px; line-height: 1.5; }
.backend-saving-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 16px;
  border: 3px solid #dfe8e3;
  border-top-color: #26765f;
  border-radius: 50%;
  animation: backend-saving-spin 760ms linear infinite;
}
@keyframes backend-saving-spin { to { transform: rotate(360deg); } }
.catalog-order-row { align-items: center; }
.catalog-order-amount { margin-left: auto; color: #e56a79; white-space: nowrap; }

.app-shell.food .page-head {
  min-height: 84px;
  padding-top: 48px;
  position: relative;
  z-index: 5;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(20px); } to { transform: translateY(0); } }

@media (max-width: 1000px) {
  .stage-copy { display: none; }
}

@media (max-width: 760px) {
  .app-stage { padding: 0; }
  .app-stage::after { display: none; }
  .phone {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100svh;
    aspect-ratio: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .phone-screen { border-radius: 0; }
  .status-bar { padding-top: max(12px, env(safe-area-inset-top)); }
  .tabbar { padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  .home-indicator { bottom: max(7px, env(safe-area-inset-bottom)); }

  /* Safari zooms the page when a text control is smaller than 16px. Keep
     form controls stable while preserving the compact sizing of non-form UI. */
  input,
  select,
  textarea { font-size: 16px !important; }
  .setup-field input,
  .setup-field select,
  .search-row input,
  .addr-row input,
  .checkout-sheet #food-remark,
  .review-sheet textarea { font-size: 16px !important; }

  .app-shell.food .food-cats { gap: 4px; }
  .app-shell.food .food-cats button { min-width: 0; flex: 1 1 0; padding: 6px 2px 7px; }
  .app-shell.food .food-cat-icon { width: 24px; height: 24px; border-radius: 8px; }
  .app-shell.food .food-cat-icon svg { width: 16px; height: 16px; }
}

/* The mobile mall starts with its search controls; branding remains a web-view header. */
.viewport-mobile .app-shell.mall .mall-brand-row { display: none; }
.viewport-mobile .app-shell.mall .mall-top .search-row {
  align-items: center;
  padding-top: 8px;
}
.viewport-mobile .app-shell.mall .mall-mobile-checkin {
  width: 36px;
  height: 40px;
  display: grid;
  color: #F7899E;
  border: 1px solid #F9A8B8;
  border-radius: 8px;
  background: #FFFFFF;
}
.viewport-mobile .app-shell.mall .mall-mobile-back {
  width: 36px;
  height: 40px;
  display: grid;
  color: #58635c;
  border-color: rgba(32, 37, 34, 0.14);
  border-radius: 8px;
  background: #FFFFFF;
}
.viewport-mobile .app-shell.mall .mall-mobile-checkin.is-checked {
  color: #6FAF98;
  border-color: #A8E6CF;
  background: #EEFBF5;
}

/* Show every mall category in the phone preview instead of hiding the
   trailing filters in a single horizontal row. */
.viewport-mobile .app-shell.mall .mall-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 43px;
  min-height: 86px;
  overflow: visible;
  gap: 0;
}
.viewport-mobile .app-shell.mall .mall-filters button {
  min-width: 0;
  min-height: 43px;
}

/* The phone preview is rendered inside a wide desktop viewport, so its
   compact category sizing must be scoped to the preview shell as well as the
   real mobile breakpoint. */
.viewport-mobile .app-shell.food .food-cats { gap: 4px; }
.viewport-mobile .app-shell.food .food-cats button { min-width: 0; flex: 1 1 0; padding: 6px 2px 7px; }
.viewport-mobile .app-shell.food .food-cat-icon { width: 24px; height: 24px; border-radius: 8px; }
.viewport-mobile .app-shell.food .food-cat-icon svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; }
}

/* Imported phone wallpaper: keep the web view unchanged and let the artwork
   show through the mobile app's quiet page surfaces. Content cards stay solid
   so labels and controls remain readable over the light illustration. */
.viewport-mobile .phone-screen,
.viewport-mobile .app-shell {
  background-image: url("../assets/bg/微信图片_20260827161850_97_47.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.viewport-mobile .app-shell.mall > .app-body,
.viewport-mobile .app-shell.food > .app-body,
.viewport-mobile .app-shell.plain > .app-body,
.viewport-mobile .app-shell.catalog > .app-body {
  background-color: rgba(255, 255, 255, 0.24);
}

.viewport-mobile .app-shell.mall .mall-top,
.viewport-mobile .app-shell.mall .icon-grid,
.viewport-mobile .app-shell.mall .section,
.viewport-mobile .app-shell.mall .product-grid,
.viewport-mobile .app-shell.mall .mall-filters,
.viewport-mobile .app-shell.mall .page-head,
.viewport-mobile .app-shell.plain .page-head,
.viewport-mobile .app-shell.catalog .catalog-body,
.viewport-mobile .app-shell.plain .message-thread {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Profile and order list hierarchy: identity first, then the visual state of
   each purchase. The long internal order key stays available in detail view. */
.mall-profile,
.food-profile {
  min-height: 88px;
  padding: 14px 13px !important;
  display: flex;
  align-items: center;
  gap: 11px;
}
.food-profile { border-left: 3px solid #8fcfc6; }
.profile-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: linear-gradient(135deg, #f7899e, #f6b3bf);
  box-shadow: 0 3px 10px rgba(63, 43, 45, .12);
  font-size: 17px;
  font-weight: 700;
}
.food-profile .profile-avatar { background: linear-gradient(135deg, #E98B55, #F3C39D); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.profile-copy strong { color: #3d3d3d; font-size: 16px; line-height: 1.25; }
.profile-copy span { color: #777d79; font-size: 10px; }
.profile-copy small { margin-top: 3px; overflow: hidden; color: #929894; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-more { width: 28px; height: 36px; display: grid; place-items: center; flex: 0 0 28px; color: #a4aaa6; }
.profile-more svg { width: 17px; height: 17px; }

.orders-list .order-card {
  padding: 13px 12px 10px;
  border-color: var(--guava-line, var(--line));
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 8px rgba(38, 47, 42, .04);
}
.order-shop { min-width: 0; display: flex; align-items: center; gap: 8px; }
.order-shop strong { overflow: hidden; color: #3d3d3d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.order-status { font-size: 12px !important; font-weight: 700; }
.order-status.mall { color: #e36f87; }
.order-status.food { color: #A95732; }
.order-card-body { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 0 11px; }
.order-thumbs { width: 68px; min-width: 68px; height: 64px; position: relative; }
.order-thumb { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; color: #6b716d; border: 1px solid #e9ece9; border-radius: 7px; background: #f5f7f5; font-size: 10px; font-weight: 600; }
.order-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.order-thumb > span { display: grid; place-items: center; width: 100%; height: 100%; }
.order-item-count { padding: 2px 5px; position: absolute; right: 0; bottom: -1px; color: #fff; border-radius: 4px; background: rgba(61,61,61,.72); font-size: 9px; line-height: 1.2; }
.order-card-info { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 6px; }
.order-card-info strong { overflow: hidden; color: #3d3d3d; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.order-card-info span { overflow: hidden; color: #929894; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-total { align-self: flex-start; color: #3d3d3d; font-family: var(--font-commerce-number); font-size: 16px; white-space: nowrap; }
.order-card-foot { padding-top: 8px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--guava-line, var(--line)); color: #a0a6a2; font-size: 10px; }
.order-card-foot span:last-child { display: inline-flex; align-items: center; gap: 2px; color: #777d79; }
.order-card-foot svg { width: 13px; height: 13px; }

@media (max-width: 420px) {
  .order-card-body { gap: 8px; }
  .order-thumbs { width: 62px; min-width: 62px; height: 58px; }
  .order-thumb { width: 58px; height: 58px; }
}

/* Food order and profile surfaces: give the two previously sparse tabs a
   clear rhythm while keeping the existing order cards and actions intact. */
.app-shell.food .page-head > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-shell.food .page-head-sub { overflow: hidden; color: #9B7867; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.food-order-hero,
.food-me-welcome {
  margin: 12px 12px 10px;
  padding: 16px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  color: #fff;
  border-radius: 10px;
  background: #A95732;
  box-shadow: 0 7px 18px rgba(169, 87, 50, .18);
}
.food-order-hero > div:nth-child(2),
.food-me-welcome > div:first-child { min-width: 0; flex: 1; }
.food-order-hero-icon,
.food-me-welcome-art {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  color: #A95732;
  border-radius: 12px;
  background: #F8E4A3;
}
.food-order-hero-icon svg,
.food-me-welcome-art svg { width: 22px; height: 22px; }
.food-order-hero span,
.food-me-welcome span { display: block; color: rgba(255,255,255,.76); font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.food-order-hero h2,
.food-me-welcome h2 { margin: 4px 0 3px; font-size: 18px; line-height: 1.25; }
.food-order-hero p,
.food-me-welcome p { margin: 0; color: rgba(255,255,255,.82); font-size: 10px; line-height: 1.45; }
.food-order-hero-spark { align-self: flex-start; color: #F8E4A3; opacity: .8; }
.food-order-hero-spark svg { width: 18px; height: 18px; }
.food-order-overview {
  margin: 0 12px 12px;
  padding: 10px 4px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #EAD8C7;
  border-radius: 9px;
  background: rgba(255, 255, 255, .9);
}
.food-overview-item { min-width: 0; padding: 3px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #9B7867; }
.food-overview-item + .food-overview-item { border-left: 1px solid #F0E2D5; }
.food-overview-icon { width: 27px; height: 27px; display: grid; place-items: center; color: #B56A45; border-radius: 9px; background: #FFF0E2; }
.food-overview-icon svg { width: 15px; height: 15px; }
.food-overview-item b { color: #4A3328; font-family: var(--font-commerce-number); font-size: 16px; line-height: 1; }
.food-overview-item small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.food-overview-item.on .food-overview-icon { color: #fff; background: #A95732; }
.food-overview-item.on small { color: #A95732; font-weight: 700; }
.food-orders-panel { border-top: 1px solid rgba(234, 216, 199, .45); }
.food-orders-panel .section-title { padding-top: 13px; }
.food-orders-empty { padding: 38px 24px 46px; color: #9B7867; text-align: center; }
.food-orders-empty > div { width: 52px; height: 52px; margin: 0 auto 12px; display: grid; place-items: center; color: #A95732; border-radius: 16px; background: #FFF0E2; }
.food-orders-empty svg { width: 24px; height: 24px; }
.food-orders-empty h3 { margin: 0; color: #4A3328; font-size: 15px; }
.food-orders-empty p { margin: 6px 0 15px; font-size: 10px; line-height: 1.5; }
.food-orders-empty button { min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 5px; color: #fff; border-radius: 7px; background: #A95732; font-size: 11px; font-weight: 700; }
.food-orders-empty button svg { width: 14px; height: 14px; }
.food-me-welcome { margin-bottom: 12px; background: #3F7770; box-shadow: 0 7px 18px rgba(63, 119, 112, .18); }
.food-me-welcome-art { color: #3F7770; background: #F8E4A3; }
.food-me-section { margin-bottom: 12px; }
.food-profile .profile-copy small { display: flex; align-items: center; gap: 3px; }
.food-profile .profile-copy small svg { width: 12px; height: 12px; color: #A95732; }
.food-quick-section { margin: 0 12px 12px; }
.food-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.food-quick-grid button { min-width: 0; min-height: 78px; padding: 11px; display: grid; grid-template-columns: 31px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 9px; text-align: left; border: 1px solid #EAD8C7; border-radius: 8px; background: rgba(255,255,255,.92); }
.food-quick-icon { width: 31px; height: 31px; grid-row: span 2; display: grid; place-items: center; border-radius: 10px; }
.food-quick-icon svg { width: 17px; height: 17px; }
.food-quick-icon.coral { color: #A95732; background: #FFF0E2; }
.food-quick-icon.gold { color: #A67519; background: #FFF5D8; }
.food-quick-icon.mint { color: #3F7770; background: #E4F2EF; }
.food-quick-icon.blue { color: #3D7088; background: #E7F1F6; }
.food-quick-grid b { overflow: hidden; color: #4A3328; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.food-quick-grid small { overflow: hidden; color: #9B7867; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.food-me-note { margin: 0 12px 18px; padding: 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #EAD8C7; border-radius: 8px; background: #FFF9F2; }
.food-me-note-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; color: #A95732; border-radius: 9px; background: #FFF0E2; }
.food-me-note-icon svg { width: 16px; height: 16px; }
.food-me-note div { min-width: 0; flex: 1; }
.food-me-note b { display: block; color: #4A3328; font-size: 11px; }
.food-me-note p { margin: 3px 0 0; overflow: hidden; color: #9B7867; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.food-me-note button { width: 27px; height: 27px; display: grid; place-items: center; color: #A95732; border-radius: 50%; background: #fff; }
.food-me-note button svg { width: 15px; height: 15px; }

@media (max-width: 420px) {
  .food-order-hero h2, .food-me-welcome h2 { font-size: 16px; }
  .food-overview-item small { font-size: 8px; }
  .food-quick-grid button { padding: 10px 9px; column-gap: 7px; }
}

/* User-provided transparent banner artwork replaces the former text panels. */
.food-order-hero,
.food-me-welcome {
  height: auto;
  aspect-ratio: 1240 / 420;
  padding: 0;
  display: block;
  position: relative;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.food-me-welcome { background: transparent; }
.food-order-hero img,
.food-me-welcome img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}
.food-order-hero > div,
.food-me-welcome > div { display: none; }
.viewport-web .food-order-hero,
.viewport-web .food-me-welcome { width: min(900px, calc(100% - 56px)); margin-right: auto; margin-left: auto; }
.food-order-hero-bottom { margin-top: clamp(30px, 7vh, 72px); margin-bottom: 12px; }

/* Vibe O launcher refresh: the supplied hand-drawn artwork is the visual
   anchor for the phone desktop, while the commerce screens keep their
   existing interaction and data contracts. */
:root {
  --canvas: #f1ede4;
  --surface-soft: #fffdf8;
  --line: #eadfd3;
  --ink: #4e382e;
  --muted: #8b7a70;
  --mall: #df8fa1;
  --mall-dark: #c56d83;
  --food: #d99068;
  --food-dark: #a9664d;
  --wallet: #5d8090;
  --msg: #62a993;
}

.app-stage { background: #f1ede4; }
.app-stage::after { background: #e4ded2; }
.stage-copy { color: #523a30; }
.stage-kicker { color: #a07d69; letter-spacing: .08em; }
.stage-copy p { color: #8d7669; }

.desktop {
  color: #5a4034;
  background: #f6e9a9;
}
.desktop-wallpaper {
  background-image: url("../assets/icon/新建文件夹/物流与外卖界面设计.png");
  background-position: center 42%;
  background-size: cover;
  transform: none;
}
.desktop-clock {
  top: 82px;
  left: 20px;
  padding: 10px 14px 11px;
  border: 1px solid rgba(117, 72, 46, .18);
  border-radius: 18px;
  color: #5a4034;
  background: rgba(255, 251, 225, .72);
  box-shadow: 0 8px 22px rgba(103, 70, 46, .12);
  backdrop-filter: blur(7px);
  text-shadow: none;
}
.desktop-clock .time { font-size: 54px; letter-spacing: .01em; }
.desktop-clock .date { margin-top: 6px; }
.desktop-clock .weather { color: #8a6a56; }

.dock-grid {
  left: 14px;
  right: 14px;
  bottom: 25px;
  gap: 7px;
  padding: 13px 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.app-icon { gap: 6px; color: #5a4034; }
.app-icon .glyph {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, .84);
  border-radius: 17px;
  box-shadow: 0 5px 12px rgba(92, 58, 38, .15);
}
.app-icon .glyph.image-glyph { overflow: hidden; background: #fff8dd; }
.app-icon .glyph.image-glyph img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
}
.app-icon .glyph.image-glyph.mall img { object-position: center 40%; }
.app-icon .glyph.image-glyph.food img { object-position: center 34%; }
.app-icon .glyph.image-glyph.msg img { object-position: center 35%; }
.app-icon .glyph.image-glyph.catalog img { object-position: center 40%; }
.app-icon > span { color: #5a4034; font-size: 10px; text-shadow: 0 1px 2px rgba(255, 250, 222, .9); }
.glyph.wallet { color: #fff; background: #6d91a0; }
.glyph.catalog { background: #f5c66d; }
.home-indicator { background: rgba(90, 64, 52, .48); }

/* The phone preview can be displayed inside a wide browser viewport. Keep
   launcher tiles within their grid tracks there as well as on real phones. */
.phone .dock-grid {
  column-gap: 8px;
  padding-right: 4px;
  padding-left: 4px;
}
.phone .app-icon .glyph {
  width: 100%;
  max-width: 48px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 15px;
}

/* Warm paper surfaces carry the hand-drawn launcher palette into each app. */
.app-shell.mall,
.app-shell.food,
.app-shell.plain,
.app-shell.catalog { background: #fffdf8; }
.app-shell.mall .tabbar,
.app-shell.food .tabbar,
.app-shell.plain .tabbar,
.app-shell.catalog .tabbar { border-top-color: #eadfd3; background: rgba(255, 253, 248, .96); }
.mall-top { background: #df8fa1; }
.food-top { background: #f6dc9b; }
.wallet-hero { background: #fce4ec; }
.thread-icon.msg { background: #62a993; }

@media (max-width: 600px) {
  .app-stage { padding: 0; }
  .stage-copy { display: none; }
  .dock-grid { left: 12px; right: 12px; bottom: 21px; column-gap: 12px; padding-right: 12px; padding-left: 12px; }
  .app-icon .glyph { width: 48px; height: 48px; border-radius: 15px; }
}
