/* Segar 365 Shop — 客人端（商场）+ 老板后台共用
 * 刻意只做浅色一套：跟 Shopee / Haroct 一样的商场感，颜色都写死在 token 上。 */
:root {
  --font-size: 16px;   /* ONE base for every text size (owner 2026-11-21: a bit bigger — was 15px). Change this to resize the whole shop. */
  --leaf: #0b7a3e;
  --leaf-2: #13a04e;
  --leaf-3: #2fc36a;
  --leaf-soft: #e7f4ea;
  --tangerine: #ff5a1f;
  --tangerine-2: #ff8a3d;
  --tangerine-soft: #fff0e8;
  --sun: #ffc93c;
  --sun-soft: #fff6dc;
  --berry: #e23b4e;
  --berry-soft: #fde9ec;
  --sky: #1f6fd6;
  --sky-soft: #e8f0fc;
  --amber: #a85d00;
  --amber-soft: #fff3dd;
  --ink: #16201a;
  --ink-2: #56615a;
  --ink-3: #8c968f;
  --line: #e4e9e4;
  --ground: #eef2ec;
  --card: #ffffff;
  --r: 14px;
  --shadow: 0 1px 2px rgba(22, 32, 26, .05), 0 6px 18px rgba(22, 32, 26, .06);
  --nav-h: 64px;
  --shell-w: 100%;   /* phone / tablet: the shop fills the screen; desktop narrows it (below) */
  --num: "Rubik", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }   /* nothing may widen the page (a phone would zoom out and leave blank sides) */
body {
  font: var(--font-size)/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--ground);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--leaf); }
:focus-visible { outline: 2px solid var(--leaf-2); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: calc(var(--font-size) - 2px); }
.tiny { font-size: calc(var(--font-size) - 3px); }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ============ 商场外框：手机宽度一栏，桌面置中 ============ */
.shell { max-width: var(--shell-w); margin: 0 auto; min-height: 100vh; background: var(--ground); position: relative; }
/* Desktop only: one centred phone-width column. Phones and tablets use the full width. */
@media (min-width: 900px) { :root { --shell-w: 520px; } .shell { box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(0,0,0,.06); } body.shop { background: #dfe7dc; } }
main { padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px)); }
.pad { padding: 0 12px; }
.page { padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- 顶部 ---------- */
.hero-head {
  background: linear-gradient(160deg, #0a6b37 0%, #0f8a45 55%, #1aa956 100%);
  color: #fff; padding: 12px 12px 58px; position: relative; overflow: hidden;
}
.hero-head::after {  /* 叶脉纹理 */
  content: ""; position: absolute; right: -40px; top: -30px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.topline { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.wordmark { font-family: var(--num); font-weight: 800; font-size: calc(var(--font-size) + 4px); letter-spacing: -.3px; white-space: nowrap; }
.wordmark b { color: var(--sun); }
.searchpill {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 10px;
  background: #fff; color: var(--ink-3); padding: 0 12px; border: 0; text-align: left; font-size: calc(var(--font-size) - 1px);
}
.searchpill svg { flex: none; color: var(--tangerine); }
.searchpill span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.iconbtn {
  position: relative; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255,255,255,.14);
  color: #fff; display: grid; place-items: center; flex: none; text-decoration: none;
}
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn .badge-n {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: var(--sun); color: var(--ink); font: 700 calc(var(--font-size) - 4px)/18px var(--num); text-align: center; border: 2px solid #0f8a45;
}
.lang-chip { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 0 10px; height: 28px; font-size: calc(var(--font-size) - 3px); font-weight: 700; }

.simplehead {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; min-height: 54px;
}
.simplehead h1 { font-size: calc(var(--font-size) + 2px); margin: 0; flex: 1; font-weight: 800; }
.simplehead .back { width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--ground); display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.simplehead .iconbtn { background: var(--ground); color: var(--ink); }
.simplehead .iconbtn .badge-n { border-color: #fff; }

/* 钱包条（压在绿色头上） */
.walletstrip {
  margin: -44px 12px 0; position: relative; z-index: 2; background: #fff; border-radius: var(--r); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; align-items: center; padding: 10px 4px;
}
.walletstrip .sep { width: 1px; height: 30px; background: var(--line); }
.walletstrip a { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 8px; padding: 0 8px; min-width: 0; }
.walletstrip .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.walletstrip .ico svg { width: 18px; height: 18px; }
.walletstrip b { display: block; font: 700 calc(var(--font-size) - 1px)/1.2 var(--num); white-space: nowrap; }
.walletstrip span { display: block; font-size: calc(var(--font-size) - 4px); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.walletstrip.guest { grid-template-columns: 1fr auto; padding: 12px 14px; gap: 10px; }
.walletstrip.guest > div { min-width: 0; }
.walletstrip.guest b { white-space: normal; line-height: 1.3; }   /* e2u: the guest line wraps instead of running under the button (phone width) */
.walletstrip.guest a.btn { flex: none; white-space: nowrap; padding: 0 14px; }   /* the strip's link style must not squeeze the Log in / Sign up button */

/* 快捷图标 */
.shortcuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 16px 8px 6px; background: var(--card); margin: 12px 12px 0; border-radius: var(--r); }
.shortcuts.scroll { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 8px; }   /* e2u: one swipeable row */
.shortcuts.scroll::-webkit-scrollbar { display: none; }
.shortcuts.scroll .sc { flex: 0 0 calc((100% - 16px) / 5); scroll-snap-align: start; }   /* e2u: 5 in view, same width + gap as the 5-per-row grid */
.sc { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: calc(var(--font-size) - 3.5px); text-align: center; border: 0; background: none; padding: 0 0 8px; line-height: 1.2; }
.sc i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-style: normal; position: relative; }
.sc i svg { width: 24px; height: 24px; }
.sc i em { position: absolute; top: -6px; right: -10px; background: var(--berry); color: #fff; font: 700 calc(var(--font-size) - 5.5px)/1 var(--num); padding: 3px 5px; border-radius: 6px; font-style: normal; white-space: nowrap; }

/* 轮播 */
.banner { margin: 12px 12px 0; border-radius: var(--r); overflow: hidden; position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; min-height: 132px; padding: 16px 16px 26px; color: #fff; position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow: hidden;
}
.slide { aspect-ratio: 6 / 5; }   /* e2u: one shape for every banner — a picture banner is 1200 × 1000 */
/* e2u (owner 2026-11-29): the banners fill the top of Home edge to edge, the head row floats over their top and the wallet strip over
   their bottom, so a ready-made banner keeps its words between the two. */
.hero-head.hasbn { padding: 0; background: none; }
.hero-head.hasbn::after { display: none; }
.hero-head.hasbn .topline { position: absolute; left: 12px; right: 12px; top: 12px; }
.hero-head.hasbn .banner { margin: 0; border-radius: 0; }
/* A ready-made banner for the tall top (the plain one looked empty): words on the left, a big icon on a soft light circle on the
   right, faint rings behind. */
.hero-head.hasbn .slide:not(.ad) { padding: 64px 20px 58px; gap: 8px; }
.hero-head.hasbn .slide:not(.ad)::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at calc(100% - 20px - min(66px, 15%)) calc(50% + 3px), rgba(255,255,255,.38), rgba(255,255,255,0) 28%); }
.hero-head.hasbn .slide:not(.ad)::after { content: ""; position: absolute; width: 90%; aspect-ratio: 1; left: -35%; top: -30%; border-radius: 50%;
  border: 18px solid rgba(255,255,255,.07); box-shadow: 380px 330px 0 -60px rgba(255,255,255,.04); pointer-events: none; }
.hero-head.hasbn .slide .b3d { width: min(132px, 30%); height: auto; aspect-ratio: 1; right: 20px; bottom: auto; top: calc(50% + 3px); transform: translateY(-50%); }
.hero-head.hasbn .slide:not(.ad) h3 { font-size: calc(var(--font-size) + 9px); max-width: 60%; text-shadow: 0 2px 6px rgba(0,0,0,.18); }
.hero-head.hasbn .slide:not(.ad) p { font-size: calc(var(--font-size) - 1px); max-width: 58%; }
.hero-head.hasbn .slide:not(.ad) .cta { font-size: calc(var(--font-size) - 1px); padding: 8px 16px; margin-top: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.16); }
.hero-head.hasbn .dots { bottom: 52px; }
.slide.ad { padding: 0; border: 0; background: var(--card); text-decoration: none; cursor: pointer; }
.slide.ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slide h3 { margin: 0; font-size: calc(var(--font-size) + 5px); line-height: 1.2; font-weight: 800; max-width: 64%; text-wrap: balance; position: relative; z-index: 1; }
.slide p { margin: 0; font-size: calc(var(--font-size) - 2.5px); opacity: .92; max-width: 62%; position: relative; z-index: 1; }
.slide .cta { align-self: flex-start; margin-top: 4px; background: #fff; color: var(--ink); border-radius: 999px; font-size: calc(var(--font-size) - 3px); font-weight: 800; padding: 5px 12px; text-decoration: none; position: relative; z-index: 1; border: 0; }
.slide .art { position: absolute; right: 6px; bottom: -8px; font-size: calc(var(--font-size) + 49px); line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.slide .art span { display: inline-block; }
.slide .art span:nth-child(2) { font-size: calc(var(--font-size) + 31px); transform: translate(-14px, -30px) rotate(-12deg); }
.slide .art span:nth-child(3) { font-size: calc(var(--font-size) + 25px); transform: translate(-24px, 2px) rotate(10deg); }
.s1 { background: linear-gradient(120deg, #ff4b1f, #ff8a3d); }
.s2 { background: linear-gradient(120deg, #0a6b37, #19b35a); }
.s3 { background: linear-gradient(120deg, #0f5c6e, #1b9aa8); }
.slide .clock { font: 800 calc(var(--font-size) + 7px)/1 var(--num); letter-spacing: .5px; position: relative; z-index: 1; }
.dots { position: absolute; bottom: 9px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: width .25s; }
.dots i.on { width: 16px; background: #fff; }

/* 区块 */
.sect { background: var(--card); margin: 12px 12px 0; border-radius: var(--r); padding: 12px 0 14px; }
.sect-h { display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; }
.sect-h h2 { margin: 0; font-size: calc(var(--font-size) + 1px); font-weight: 800; display: flex; align-items: center; gap: 6px; }
.sect-h .more { margin-left: auto; font-size: calc(var(--font-size) - 2.5px); color: var(--ink-2); text-decoration: none; border: 0; background: none; }
.flash-h h2 { color: var(--tangerine); font-style: italic; letter-spacing: .3px; }
.timer { display: inline-flex; gap: 3px; align-items: center; }
.timer b { background: var(--ink); color: #fff; font: 700 calc(var(--font-size) - 3px)/1 var(--num); padding: 4px 5px; border-radius: 5px; min-width: 24px; text-align: center; }
.timer i { font-style: normal; font-weight: 800; color: var(--ink); }
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px 2px; scroll-padding: 0 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }

.dealcard { flex: 0 0 132px; width: 132px; min-width: 0; scroll-snap-align: start; text-decoration: none; color: inherit; border: 0; background: none; padding: 0; text-align: left; }
.dealcard .art { border-radius: 12px; }
.dealcard > .row.between { flex-wrap: wrap; row-gap: 4px; min-height: 64px; align-content: flex-start; }   /* e2u: qty pill drops under the price — every card stays the same size */
.dealcard .p { font: 800 var(--font-size)/1.2 var(--num); color: var(--tangerine); margin-top: 6px; }
.dealcard .p small { font-size: calc(var(--font-size) - 4px); }
.dealcard .bar { height: 14px; border-radius: 7px; background: #ffd9c6; margin-top: 5px; position: relative; overflow: hidden; }
.dealcard .bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--tangerine), var(--tangerine-2)); border-radius: 7px; }
.dealcard .bar span { position: relative; z-index: 1; font-size: calc(var(--font-size) - 5.5px); font-weight: 800; color: #fff; display: block; text-align: center; line-height: 14px; }

.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; padding: 0 8px; }
.catcell { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: calc(var(--font-size) - 3.5px); text-align: center; color: var(--ink); text-decoration: none; line-height: 1.2; }
.catcell .art { width: 56px; height: 56px; border-radius: 16px; font-size: calc(var(--font-size) + 15px); }

/* 商品图（没照片时用分类色块 + 插图） */
.art { position: relative; aspect-ratio: 1 / 1; max-width: 100%; display: grid; place-items: center; overflow: hidden; border-radius: 0; }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.art img.noimg { position: static; width: 64%; height: auto; object-fit: contain; }   /* e2u: default picture when there is no photo */
.art .emo { font-size: calc(var(--font-size) + 43px); line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.14)); transform: translateY(2px); }
.art .emo.sm { font-size: calc(var(--font-size) + 19px); }
.art .emo.xl { font-size: calc(var(--font-size) + 105px); }
.art .emo.dup { position: absolute; font-size: calc(var(--font-size) + 15px); right: 10%; bottom: 10%; opacity: .9; transform: rotate(14deg); }
.art .off {
  position: absolute; top: 0; right: 0; background: var(--berry); color: #fff; font: 800 calc(var(--font-size) - 1px)/1.2 var(--num);   /* e2u: bigger, white on red (owner 2026-11-21) */
  padding: 3px 7px; border-bottom-left-radius: 10px; z-index: 1;
}
.art .origin {
  position: absolute; left: 6px; bottom: 6px; z-index: 1; background: rgba(255,255,255,.92); color: var(--ink);
  font-size: calc(var(--font-size) - 5px); font-weight: 700; padding: 2px 6px; border-radius: 5px;
}
.art .bulk { position: absolute; left: 0; top: 8px; z-index: 1; background: var(--leaf); color: #fff; font-size: calc(var(--font-size) - 5px); font-weight: 800; padding: 2px 7px 2px 6px; border-radius: 0 6px 6px 0; }

/* 为你推荐：两栏商品墙 */
.discover-h { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 12px 8px; color: var(--tangerine); font-weight: 800; font-size: var(--font-size); }
.discover-h::before, .discover-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #ffb899); }
.discover-h::after { background: linear-gradient(90deg, #ffb899, transparent); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
/* e2u: home waterfall (瀑布流) — two columns filled shortest-first; every other pair of photos is taller */
.grid.fall { display: flex; align-items: flex-start; }
.grid.fall .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pcard.tall .art { aspect-ratio: 4 / 5; }
.pcard { background: var(--card); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(22,32,26,.05); }
.pcard .tap { border: 0; background: none; padding: 0; text-align: left; display: block; width: 100%; }
.pcard .body { padding: 8px 9px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .nm { font-size: calc(var(--font-size) + 2px); line-height: 1.3; font-weight: 700; }   /* e2u: the product name = the card's title (owner 2026-11-21: base + 2) */
.ptags { display: flex; flex-wrap: wrap; gap: 4px; }   /* e2u: tags under the name, e.g. "Lowest in 3 days" */
.ptag { display: inline-flex; align-items: center; gap: 2px; font-size: calc(var(--font-size) - 4.5px); font-weight: 700; color: var(--berry); background: var(--berry-soft); border-radius: 4px; padding: 1px 5px; }
.ptag.green { color: var(--leaf); background: var(--leaf-soft); }   /* the shop's tags (Local, Frozen…) */
.pbadge { display: inline-block; vertical-align: 1px; margin-right: 4px; font-size: calc(var(--font-size) - 4.5px); font-weight: 800; line-height: 1.4; color: #fff; background: var(--leaf); border-radius: 4px; padding: 0 5px; }   /* before the name: New / Daily fresh */
.pproof { font-size: calc(var(--font-size) - 4px); color: var(--tangerine); font-weight: 600; }   /* bought again · sales up */
.prank { display: flex; align-items: flex-start; gap: 5px; margin-top: 2px; padding: 3px 6px; border-radius: 6px; background: var(--sun-soft); color: var(--ink-2); font-size: calc(var(--font-size) - 4px); font-weight: 700; text-decoration: none; min-width: 0; }
.prank b { flex: none; font: 900 calc(var(--font-size) - 5px)/1.4 var(--num); color: var(--ink); background: var(--sun); border-radius: 3px; padding: 0 3px; }
.prank span { flex: 1; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }   /* long names wrap, never cut */
.art .corner { position: absolute; right: 6px; bottom: 6px; z-index: 1; background: var(--berry); color: #fff; font-size: calc(var(--font-size) - 4.5px); font-weight: 800; padding: 1px 6px; border-radius: 5px; }
/* e2u: category ranking page */
.rkno { flex: none; width: 24px; text-align: center; font: 900 calc(var(--font-size) + 1px)/1 var(--num); color: var(--ink-3); }
.rkno.top { color: var(--tangerine); }
.pcard .nm small { display: block; font-weight: 400; color: var(--ink-3); font-size: calc(var(--font-size) - 3.5px); }
.pcard .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.price { color: var(--tangerine); font: 800 calc(var(--font-size) + 2px)/1 var(--num); white-space: nowrap; }
.price small { font-size: calc(var(--font-size) - 4px); font-weight: 700; margin-right: 1px; }
.per { color: var(--ink-3); font-size: calc(var(--font-size) - 4px); font-weight: 500; font-family: inherit; }
.was { color: var(--ink-3); font-size: calc(var(--font-size) - 4px); text-decoration: line-through; font-family: var(--num); }
.plus {
  width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--leaf-2); color: #fff; flex: none;
  display: grid; place-items: center; box-shadow: 0 3px 8px rgba(19,160,78,.35);
}
.plus svg { width: 14px; height: 14px; }
.qpill { display: flex; align-items: center; background: var(--leaf-soft); border-radius: 999px; height: 30px; flex: none; }
.qpill button { width: 28px; height: 30px; border: 0; background: none; color: var(--leaf); font-size: calc(var(--font-size) + 3px); font-weight: 800; line-height: 1; }
.qpill input { width: 34px; border: 0; background: none; text-align: center; font: 800 calc(var(--font-size) - 2px) var(--num); color: var(--leaf); outline: 0; padding: 0; -moz-appearance: textfield; }
.qpill input::-webkit-outer-spin-button, .qpill input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sentinel { min-height: 40px; margin-top: 16px; display: grid; place-items: center; color: var(--ink-3); font-size: calc(var(--font-size) - 3px); }

/* 分类页：左栏 + 右边清单 */
.catpage { display: grid; grid-template-columns: 88px 1fr; min-height: calc(100vh - 54px - var(--nav-h)); }
.catside { background: #f7f9f6; border-right: 1px solid var(--line); position: sticky; top: 54px; align-self: start; max-height: calc(100vh - 54px - var(--nav-h)); overflow-y: auto; scrollbar-width: none; }
.catside button { display: block; width: 100%; border: 0; background: none; padding: 14px 8px; font-size: calc(var(--font-size) - 2.5px); text-align: center; color: var(--ink-2); position: relative; line-height: 1.25; }
.catside button.on { background: #fff; color: var(--leaf); font-weight: 800; }
.catside button.on::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--leaf-2); }
.catlist { background: #fff; padding: 4px 12px 12px; min-width: 0; }
.catlist h3 { font-size: calc(var(--font-size) - 1px); margin: 12px 0 4px; }
.lrow { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.lrow:last-child { border-bottom: 0; }
.lrow .art { width: 68px; flex: none; border-radius: 10px; }
.lrow .art .emo { font-size: calc(var(--font-size) + 19px); }
.lrow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lrow .info .nm { font-weight: 700; font-size: calc(var(--font-size) + 2px); line-height: 1.25; border: 0; background: none; padding: 0; text-align: left; }
.lrow .info .nm small { display: block; font-weight: 400; color: var(--ink-3); font-size: calc(var(--font-size) - 3.5px); }

/* 标签 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; background: #fff; border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: calc(var(--font-size) - 2px); white-space: nowrap; color: var(--ink-2); }
.chip.on { border-color: var(--tangerine); color: var(--tangerine); background: var(--tangerine-soft); font-weight: 700; }
.tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: calc(54px + env(safe-area-inset-top, 0px)); z-index: 15; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1 0 auto; border: 0; background: none; padding: 12px 12px 10px; font-size: calc(var(--font-size) - 1.5px); color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--tangerine); border-color: var(--tangerine); font-weight: 800; }
.tabs a { flex: 1 0 auto; text-align: center; text-decoration: none; padding: 12px 12px 10px; font-size: calc(var(--font-size) - 1.5px); color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }   /* e2u: Activity Games | Refer */
.tabs a.on { color: var(--tangerine); border-color: var(--tangerine); font-weight: 800; }
.tabs button i { font-style: normal; font: 700 calc(var(--font-size) - 4px) var(--num); background: var(--berry); color: #fff; border-radius: 8px; padding: 1px 5px; margin-left: 3px; }

/* ---------- 通用卡片 / 按钮 / 表单 ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 14px; }
.card h3 { margin: 0 0 10px; font-size: var(--font-size); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card h3 .more { margin-left: auto; font-size: calc(var(--font-size) - 2.5px); font-weight: 500; color: var(--ink-2); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 11px;
  padding: 0 16px; height: 44px; font-weight: 800; font-size: var(--font-size); background: var(--leaf-2); color: #fff; text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; font-size: calc(var(--font-size) - 2px); border-radius: 9px; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.hot { background: linear-gradient(90deg, var(--tangerine), var(--tangerine-2)); }
.btn.red { background: var(--berry); }
.btn.soft { background: var(--leaf-soft); color: var(--leaf); }
.btn.wa { background: #1fb456; }
label.f { display: block; font-size: calc(var(--font-size) - 2.5px); color: var(--ink-2); margin-bottom: 5px; font-weight: 700; }
.in { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; outline: 0; font-size: calc(var(--font-size) + 1px); }
.in:focus { border-color: var(--leaf-2); box-shadow: 0 0 0 3px rgba(19,160,78,.14); }
textarea.in { resize: vertical; min-height: 64px; }
.field + .field { margin-top: 12px; }
.hint { font-size: calc(var(--font-size) - 3px); color: var(--ink-3); margin-top: 4px; }
.err { color: var(--berry); font-size: calc(var(--font-size) - 2px); min-height: 0; margin: 0; }
.err:empty { display: none; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; align-items: center; }
.kv .k { color: var(--ink-2); font-size: calc(var(--font-size) - 1.5px); flex: none; }
.kv .v { font-weight: 700; text-align: right; word-break: break-all; }
.sum { display: flex; justify-content: space-between; padding: 4px 0; font-size: calc(var(--font-size) - 1px); }
.sum.total { font-weight: 800; font-size: calc(var(--font-size) + 1px); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 6px; }
.sum.total .v { color: var(--tangerine); font-family: var(--num); }
.copy { border: 0; background: #fff; color: var(--tangerine); border-radius: 7px; font-size: calc(var(--font-size) - 3px); font-weight: 800; padding: 3px 8px; margin-left: 6px; }
.notice { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 9px 12px; font-size: calc(var(--font-size) - 2px); }
.notice.ico { display: flex; align-items: center; gap: 8px; }   /* e2u: an icon + its text, vertically centred */
.notice.ico > svg, .notice.ico > img { flex: none; }
.empty { text-align: center; color: var(--ink-3); padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .big { font-size: calc(var(--font-size) + 33px); }

.badge { display: inline-block; font-size: calc(var(--font-size) - 3.5px); font-weight: 800; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.b-submitted, .b-pending, .b-pending_payment { background: var(--amber-soft); color: var(--amber); }
.b-confirmed { background: var(--sky-soft); color: var(--sky); }
.b-delivered, .b-paid { background: var(--leaf-soft); color: var(--leaf); }
.b-rejected, .b-expired { background: var(--berry-soft); color: var(--berry); }

/* 购物车 / 结账 */
.line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .art { width: 60px; flex: none; border-radius: 10px; }
.line .art .emo { font-size: calc(var(--font-size) + 15px); }
.line .info { flex: 1; min-width: 0; }
.line .info b { display: block; font-size: calc(var(--font-size) - 1px); line-height: 1.3; }
.x { border: 0; background: none; color: var(--ink-3); padding: 4px; font-size: calc(var(--font-size) + 3px); line-height: 1; }
.paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: var(--shell-w); margin: 0 auto;
  background: #fff; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
}
.paybar .t { flex: 1; text-align: right; font-size: calc(var(--font-size) - 2px); color: var(--ink-2); }
.paybar .t b { color: var(--tangerine); font: 800 calc(var(--font-size) + 5px) var(--num); display: block; }
.paybar .btn { height: 46px; min-width: 132px; }
.datechips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.datechips::-webkit-scrollbar { display: none; }
.dchip { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; text-align: center; min-width: 62px; }
.dchip b { display: block; font: 800 calc(var(--font-size) + 2px)/1.1 var(--num); }
.dchip span { font-size: calc(var(--font-size) - 4px); color: var(--ink-2); }
.dchip.on { border-color: var(--leaf-2); background: var(--leaf-soft); }
.dchip.on b, .dchip.on span { color: var(--leaf); }
.paybox { background: var(--tangerine-soft); border-radius: 12px; padding: 12px 14px; }
.paybox .amt { font: 800 calc(var(--font-size) + 11px) var(--num); color: var(--tangerine); display: flex; align-items: center; }
.upload { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed #cdd8cf; border-radius: 12px; padding: 16px; text-align: center; background: #fff; color: var(--ink-2); font-size: calc(var(--font-size) - 1px); }
.upload.done { border-style: solid; border-color: var(--leaf-2); color: var(--leaf); background: var(--leaf-soft); }
.upload img { max-height: 150px; max-width: 100%; border-radius: 8px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch input { width: 22px; height: 22px; accent-color: var(--leaf-2); flex: none; }

/* 订单 */
.ocard { background: #fff; border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ocard .hd { display: flex; align-items: center; gap: 8px; font-size: calc(var(--font-size) - 2px); }
.ocard .hd b { font-size: calc(var(--font-size) - 1px); }
.drv-sec { margin: 4px 2px 0; font-size: var(--font-size); font-weight: 800; display: flex; align-items: center; gap: 8px; }   /* e2u: driver list section titles */
.thumbs { display: flex; gap: 6px; }
.thumbs .art { width: 56px; border-radius: 9px; }
.thumbs .art .emo { font-size: calc(var(--font-size) + 13px); }
.thumbs .more { width: 56px; aspect-ratio: 1; border-radius: 9px; background: var(--ground); display: grid; place-items: center; font: 700 calc(var(--font-size) - 2px) var(--num); color: var(--ink-2); }
.ocard .ft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; }   /* wraps: buttons drop to their own line on narrow screens */
.ocard .ft .tot { margin-right: auto; min-width: 0; font-size: calc(var(--font-size) - 2px); color: var(--ink-2); }
.ocard .ft .tot b { color: var(--ink); font: 800 calc(var(--font-size) + 1px) var(--num); }
.timeline { display: flex; justify-content: space-between; position: relative; padding: 4px 6px 0; }
.timeline::before { content: ""; position: absolute; left: 30px; right: 30px; top: 16px; height: 3px; background: var(--line); }
.timeline .st { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: calc(var(--font-size) - 3.5px); color: var(--ink-3); width: 72px; text-align: center; }
.timeline .st i { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: calc(var(--font-size) - 3px); }
.timeline .st.done { color: var(--ink); }
.timeline .st.done i { background: var(--leaf-2); border-color: var(--leaf-2); color: #fff; }
.timeline .st.bad i { background: var(--berry); border-color: var(--berry); color: #fff; }

/* 赚佣金 */
.earnhero {
  background: radial-gradient(120% 140% at 100% 0%, #ffb35c 0%, #ff6b2c 45%, #e8401c 100%);
  color: #fff; border-radius: 18px; padding: 18px; position: relative; overflow: hidden;
}
.earnhero .coin { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe07a, #ffb400 60%, #e08a00); opacity: .35; }
.earnhero .lbl { font-size: calc(var(--font-size) - 2.5px); opacity: .9; }
.earnhero .big { font: 800 calc(var(--font-size) + 21px)/1.1 var(--num); margin-top: 2px; }
.earnhero .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.tpq { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }   /* e2u: top-up quick amounts */
.tpq .btn { flex: 1 0 auto; }
.earnhero .stats.two { grid-template-columns: repeat(2, 1fr); }   /* e2u: Refer — earned · pending */
.earnhero .stats div { background: rgba(255,255,255,.16); border-radius: 12px; padding: 9px 10px; }
.earnhero .stats b { display: block; font: 700 var(--font-size) var(--num); }
.earnhero .stats span { font-size: calc(var(--font-size) - 4px); opacity: .9; }
.earnhero .acts { display: flex; gap: 8px; margin-top: 14px; }
.earnhero .acts .btn { flex: 1; background: #fff; color: #e8401c; height: 40px; }
.earnhero .acts .btn.ghost { background: rgba(255,255,255,.18); color: #fff; border: 0; }
.pitch { text-align: center; padding: 22px 16px; }
.pitch .pct { font: 800 calc(var(--font-size) + 49px)/1 var(--num); color: var(--tangerine); letter-spacing: -2px; }
.linkbox { display: flex; align-items: center; gap: 8px; background: var(--ground); border-radius: 10px; padding: 8px 8px 8px 12px; }
.linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(var(--font-size) - 2.5px); }
.refcode { font: 800 calc(var(--font-size) + 15px) var(--num); letter-spacing: 5px; color: var(--leaf); }
#qr { display: flex; justify-content: center; margin: 4px 0; }
#qr img, #qr canvas { width: 160px !important; height: 160px !important; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: calc(var(--font-size) - 1px); }
.steps li i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tangerine-soft); color: var(--tangerine); font: 800 calc(var(--font-size) - 3px)/24px var(--num); text-align: center; font-style: normal; }
.onelevel { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 4px; background: var(--ground); border-radius: 12px; padding: 12px 8px; font-size: calc(var(--font-size) - 3px); text-align: center; margin-top: 12px; }
.onelevel .who { background: #fff; border-radius: 10px; padding: 6px 4px; font-weight: 700; }
.onelevel .arr { font-size: calc(var(--font-size) - 4px); color: var(--leaf); font-weight: 800; }
.onelevel .arr.no { color: var(--ink-3); text-decoration: line-through; }
.tx { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.tx:last-child { border-bottom: 0; }
.tx .amt { font: 800 var(--font-size) var(--num); white-space: nowrap; }
.tx .amt.pos { color: var(--leaf-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; font-weight: 800; flex: none; }

/* 我的 */
.mehead { background: linear-gradient(160deg, #0a6b37, #19b35a); color: #fff; padding: 16px 14px 50px; }
.mehead .avatar { width: 56px; height: 56px; font-size: calc(var(--font-size) + 7px); background: #fff; }
.mehead h2 { margin: 0; font-size: calc(var(--font-size) + 3px); }
.mehead .tag { display: inline-block; background: rgba(255,255,255,.18); border-radius: 999px; padding: 2px 9px; font-size: calc(var(--font-size) - 3.5px); margin-top: 4px; }
.lift { margin-top: -38px; position: relative; z-index: 2; }
/* Me before login (2026-11-30): Log in / Sign up pill, settings gear, member tier banner, Rewards & Games card */
.guesthead .avatar svg { color: var(--leaf); }
.loginpill { display: inline-block; margin-top: 6px; border: 1.5px solid #fff; border-radius: 999px; padding: 4px 16px; color: #fff; font-weight: 700; font-size: calc(var(--font-size) - 1px); text-decoration: none; }
.gearbtn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.gearbtn svg { width: 22px; height: 22px; }
.tierban { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.10); margin-bottom: 12px; }
.tiertrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tiertrack::-webkit-scrollbar { display: none; }
.tierslide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; aspect-ratio: 100 / 36; padding-left: 22px; text-decoration: none; }
.tierslide img { height: 78%; aspect-ratio: 1; margin-right: 14px; }
.tierslide .tsm { display: block; font-size: calc(var(--font-size) + 1px); font-weight: 600; }
.tierslide .tbig { display: block; font-size: calc(var(--font-size) + 15px); font-weight: 900; line-height: 1.15; }
.tierslide .tsub { display: block; font-size: calc(var(--font-size) - 2px); opacity: .85; }
.tierdots { position: absolute; right: 14px; bottom: 10px; display: flex; gap: 4px; pointer-events: none; }
.tierdots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(0,0,0,.18); transition: width .2s; }
.tierdots i.on { width: 16px; background: rgba(0,0,0,.55); }
.rgcard { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-top: 12px; }
.rgcard .rgh { display: block; font-size: calc(var(--font-size) + 3px); font-weight: 800; }
.rgcard .rgs { display: block; font-size: calc(var(--font-size) - 2px); opacity: .95; margin-top: 2px; }
.rgcard .rggo { display: inline-block; margin-top: 8px; background: #fff; color: var(--tangerine); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: calc(var(--font-size) - 1px); }
.rgcard .rgicons { position: relative; width: 104px; height: 84px; flex: none; }
.rgcard .rgicons span { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.15); }
.iconrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.iconrow a, .iconrow button { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: calc(var(--font-size) - 3px); border: 0; background: none; padding: 4px 0; position: relative; text-align: center; }
.iconrow svg { width: 26px; height: 26px; color: var(--ink-2); }
.iconrow .n { position: absolute; top: -2px; left: calc(50% + 6px); background: var(--berry); color: #fff; font: 700 calc(var(--font-size) - 4.5px)/17px var(--num); min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px; }
.iconrow .val { font: 800 var(--font-size) var(--num); color: var(--ink); }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; color: var(--ink); font-size: var(--font-size); text-align: left; }
.menu > :last-child { border-bottom: 0; }
.menu svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }
.menu .go { margin-left: auto; color: var(--ink-3); }

/* 登录 */
.authhead { background: linear-gradient(160deg, #0a6b37, #19b35a); color: #fff; padding: 28px 18px 60px; text-align: center; position: relative; overflow: hidden; }
.authhead .emos { font-size: calc(var(--font-size) + 19px); letter-spacing: 6px; }
.authhead h1 { font-family: var(--num); margin: 8px 0 2px; font-size: calc(var(--font-size) + 11px); }
.authhead h1 b { color: var(--sun); }
.authhead .brandlogo { display: block; height: 34px; width: auto; max-width: 80%; margin: 4px auto 6px; }   /* VegeNow logo (white) on the picker */
.authcard { margin: -40px 14px 0; position: relative; z-index: 2; background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
/* e2u: Apple / Google / Facebook sign-in — all three are our own buttons in the shop's style */
.sc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--ground); border-radius: 11px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 9px; height: 38px; font-weight: 800; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.refnote { background: var(--tangerine-soft); color: var(--tangerine); border-radius: 10px; padding: 10px 12px; font-size: calc(var(--font-size) - 1px); font-weight: 700; }

/* 底部导航（中间凸起的赚佣金） */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: var(--shell-w); margin: 0 auto;
  background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav[hidden] { display: none; }   /* e2u: display:grid above would otherwise keep an empty white bar on pages without the nav */
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: calc(var(--font-size) - 4px); font-weight: 700; position: relative; }
.nav a svg { width: 24px; height: 24px; }
.nav a.on { color: var(--leaf); }
.nav a.mid { justify-content: flex-end; padding-bottom: 8px; color: var(--tangerine); }
.nav a.mid .orb {
  position: absolute; top: -20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffb35c, #ff5a1f 60%, #e23b1c); color: #fff;
  border: 4px solid #fff; box-shadow: 0 6px 16px rgba(255,90,31,.35);
}
.nav a.mid .orb svg { width: 26px; height: 26px; }
.nav .dot { position: absolute; top: 7px; left: calc(50% + 5px); background: var(--berry); color: #fff; font: 700 calc(var(--font-size) - 5px)/17px var(--num); min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px; text-align: center; }

.cartfloat {
  position: fixed; left: 0; right: 0; z-index: 25; max-width: calc(var(--shell-w) - 24px); margin: 0 auto;
  bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: #fff; border-radius: 14px; padding: 8px 8px 8px 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 26px rgba(0,0,0,.22); text-decoration: none;
  width: calc(100% - 24px);
}
.cartfloat .ic { position: relative; }
.cartfloat .ic svg { width: 26px; height: 26px; color: var(--sun); }
.cartfloat .ic i { position: absolute; top: -6px; right: -8px; background: var(--tangerine); font: 700 calc(var(--font-size) - 5px)/16px var(--num); min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; font-style: normal; text-align: center; }
.cartfloat b { font: 800 calc(var(--font-size) + 2px) var(--num); }
.cartfloat .btn { height: 38px; }

/* 弹窗 / 底部抽屉 / 提示 */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 200; bottom: calc(var(--nav-h) + 84px + env(safe-area-inset-bottom, 0px));
  background: rgba(22,32,26,.92); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: calc(var(--font-size) - 1px); max-width: calc(100% - 32px); text-align: center; pointer-events: none;
}
.modal-bg { position: fixed; inset: 0; background: rgba(10,20,14,.45); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: #fff; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 92vh; overflow: auto; animation: up .2s ease-out; }
.modal.dialog { max-width: 400px; border-radius: 18px; margin: auto 16px; }
.modal-bg.center { align-items: center; }
.modal h3 { margin: 0 0 8px; font-size: calc(var(--font-size) + 3px); }
.modal .acts { display: flex; gap: 8px; margin-top: 16px; }
.modal .acts .btn { flex: 1; }
/* the 5-second last look before the order is placed (js/pages/checkout.js placeCountdown, 1.11.0) */
.ck-title { text-align: center; }
.ck-track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ck-fill { height: 100%; width: 100%; background: var(--leaf-2); transform-origin: left; animation-name: ck-run; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes ck-run { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.ck-hint { text-align: center; color: var(--ink-2); font-size: calc(var(--font-size) - 2px); margin: 10px 0 4px; }
.ck-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ck-row b { display: block; }
.ck-row span { display: block; color: var(--ink-2); font-size: calc(var(--font-size) - 2px); margin-top: 2px; }
.ck-row > div { flex: 1; min-width: 0; }
.ck-items { list-style: none; margin: 4px 0 0; padding: 0; max-height: 150px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }   /* only the products scroll */
.ck-items li { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-2); font-size: calc(var(--font-size) - 2px); }
.ck-items li + li { border-top: 1px solid var(--line); }
.ck-items li span { flex: 1; display: block; margin: 0; }
.ck-items li b { display: inline; font-weight: 600; }
.ck-pay { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 0; }
.ck-pay b { font-size: calc(var(--font-size) + 6px); color: var(--tangerine); }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
@keyframes fade { from { opacity: 0; } }
.sheet-art { border-radius: 16px; margin: -4px 0 12px; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: -6px auto 12px; }

.demo-ribbon { position: fixed; top: 10px; right: -34px; z-index: 300; transform: rotate(45deg); background: var(--sun); color: var(--ink); font: 800 calc(var(--font-size) - 4px)/1 var(--num); padding: 5px 40px; letter-spacing: 1px; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* ================= 后台 ================= */
body.admin { background: #f1f4f0; }
.adm { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 900px) { .adm { grid-template-columns: 220px 1fr; } }
.side { background: #0e2a1a; color: #cfe3d4; display: none; }
@media (min-width: 900px) { .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; gap: 4px; } }
.side .brand { font: 800 calc(var(--font-size) + 5px) var(--num); color: #fff; padding: 4px 10px 16px; }
.side .brand b { color: var(--sun); }
.side .brand small { display: block; font: 600 calc(var(--font-size) - 4px) system-ui; color: #86a893; letter-spacing: 1px; margin-top: 2px; }
.side button { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; padding: 10px 12px; border-radius: 10px; text-align: left; font-size: calc(var(--font-size) - 1px); font-weight: 600; }
.side button svg { width: 18px; height: 18px; opacity: .85; }
.side button.on { background: #1d4a2f; color: #fff; }
.side button i { margin-left: auto; font-style: normal; background: var(--tangerine); color: #fff; font: 700 calc(var(--font-size) - 4px)/18px var(--num); min-width: 20px; height: 18px; border-radius: 9px; text-align: center; padding: 0 5px; }
.side .foot { margin-top: auto; font-size: calc(var(--font-size) - 3px); color: #86a893; padding: 10px; }
.side .foot a { color: #cfe3d4; }
.amain { min-width: 0; }
.atop { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.atop h1 { font-size: calc(var(--font-size) + 3px); margin: 0; flex: 1; }
.atabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.atabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .atabs { display: none; } .atop .mbrand { display: none; } }
.atabs button { flex: none; border: 0; background: var(--ground); border-radius: 9px; padding: 8px 12px; font-weight: 700; color: var(--ink-2); font-size: calc(var(--font-size) - 1.5px); }
.atabs button.on { background: var(--leaf); color: #fff; }
.atabs .n { background: var(--tangerine); color: #fff; border-radius: 9px; font: 700 calc(var(--font-size) - 4px) var(--num); padding: 1px 6px; margin-left: 5px; }
.abody { padding: 16px; max-width: 1100px; display: flex; flex-direction: column; gap: 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.acard { background: #fff; border-radius: var(--r); box-shadow: 0 1px 2px rgba(22,32,26,.05); padding: 14px; }
.acard.urgent { box-shadow: inset 4px 0 0 var(--tangerine), 0 1px 2px rgba(22,32,26,.05); }
.acard h3 { margin: 0 0 10px; font-size: var(--font-size); }
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .statgrid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(22,32,26,.05); display: flex; flex-direction: column; gap: 2px; }
.stat b { font: 800 calc(var(--font-size) + 7px) var(--num); }
.stat span { font-size: calc(var(--font-size) - 2.5px); color: var(--ink-2); }
.stat.hot { background: var(--tangerine-soft); }
.stat.hot b { color: var(--tangerine); }
table.t { width: 100%; border-collapse: collapse; font-size: calc(var(--font-size) - 1px); }
table.t th, table.t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: calc(var(--font-size) - 3px); color: var(--ink-3); font-weight: 700; }
table.t td.r, table.t th.r { text-align: right; }
.tscroll { overflow-x: auto; }
.qin { width: 70px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; text-align: right; font-family: var(--num); }
.qin.cut { border-color: var(--berry); background: var(--berry-soft); }
.receipt-thumb { width: 92px; height: 120px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--ground); display: grid; place-items: center; font-size: calc(var(--font-size) - 3px); color: var(--ink-3); text-decoration: none; overflow: hidden; flex: none; padding: 0; }
.receipt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cols2 { display: grid; gap: 12px; }
@media (min-width: 820px) { .cols2 { grid-template-columns: 1fr 1fr; } }
.plist .prow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plist .prow .art { width: 48px; border-radius: 9px; flex: none; cursor: pointer; }
.plist .prow .art .emo { font-size: calc(var(--font-size) + 9px); }
.plist .prow.off { opacity: .45; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--ink-3); font: calc(var(--font-size) - 2px) var(--num); }
.rank { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rank:last-child { border-bottom: 0; }
.rank .no { width: 22px; height: 22px; border-radius: 50%; background: var(--ground); display: grid; place-items: center; font: 800 calc(var(--font-size) - 3px) var(--num); flex: none; }
.rank:first-child .no { background: var(--sun); }
.rank .bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--tangerine), var(--tangerine-2)); margin-top: 4px; }
body.admin .demo-ribbon { top: auto; bottom: 16px; transform: rotate(-45deg); }

/* ================= 价格走势 / 价格指数 ================= */
.trend { background: var(--ground); border-radius: 12px; padding: 10px 12px 4px; margin-top: 10px; }
.trend svg { width: 100%; height: auto; display: block; margin-top: 4px; }
.trend text { fill: var(--ink-3); font: calc(var(--font-size) - 5px) var(--num); }
.trend text.tv { fill: var(--ink); font-weight: 700; font-size: calc(var(--font-size) - 4px); }
.pidx-hero { background: linear-gradient(135deg, #2b3a8f, #4b5bd6); color: #fff; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.pidx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pidx-stats span { background: rgba(255,255,255,.14); border-radius: 10px; padding: 8px; font-size: calc(var(--font-size) - 3px); text-align: center; }
.pidx-stats b { display: block; font: 800 calc(var(--font-size) + 5px) var(--num); }

/* ================= 首页：游戏 / 菇寮 ================= */
.gamerow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px; }
.gtile { border-radius: 14px; padding: 12px 10px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; min-height: 104px; }
.gtile .gi { font-size: calc(var(--font-size) + 11px); line-height: 1.1; letter-spacing: -2px; }
.gtile b { font-size: calc(var(--font-size) - 1px); margin-top: auto; }
.gtile span:last-child { font-size: calc(var(--font-size) - 3.5px); color: var(--ink-2); }
.gamecard { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #fff3d6, #ffd9a0); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); }
.invbanner { display: flex; align-items: center; gap: 12px; margin: 12px 12px 0; padding: 14px 16px; border-radius: var(--r); text-decoration: none; color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, #b88350 0%, #7a4e1d 55%, #4a2d0e 100%); }

/* ================= Segar 乐园 ================= */
.playhero { background: radial-gradient(130% 140% at 100% 0%, #ffcf5c 0%, #ff8a3d 45%, #ff5a1f 100%); color: #fff; border-radius: 18px; padding: 16px 18px; }
.playhero .big { font: 800 calc(var(--font-size) + 17px)/1.15 var(--num); margin: 2px 0; }
.playhero p { margin: 6px 0 12px; }
.waterchip { background: rgba(255,255,255,.2); border-radius: 12px; padding: 8px 12px; text-align: center; font-size: calc(var(--font-size) + 3px); line-height: 1.1; }
.waterchip b { font-size: calc(var(--font-size) + 7px); }
.ckrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 12px; }
.ck { background: var(--ground); border-radius: 10px; padding: 8px 2px; text-align: center; display: flex; flex-direction: column; gap: 2px; border: 2px solid transparent; }
.ck b { font: 800 calc(var(--font-size) - 2px) var(--num); color: var(--amber); }
.ck span { font-size: calc(var(--font-size) - 4.5px); color: var(--ink-3); }
.ck.got { background: var(--sun-soft); }
.ck.got b { color: var(--leaf-2); }
.ck.today { border-color: var(--tangerine); background: var(--tangerine-soft); }
.ck.big b { font-size: var(--font-size); color: var(--berry); }
.farm { background: linear-gradient(180deg, #fff 0%, #f1f9ec 100%); }
.plots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plot { position: relative; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-height: 158px; }
.plot .pe { position: relative; font-size: calc(var(--font-size) + 25px); line-height: 1; height: 58px; display: grid; place-items: end center; }
.plot .pe.bob { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) scale(1.06); } }
.plot b { font-size: calc(var(--font-size) - 2px); }
.plot .pbar { width: 80%; height: 6px; border-radius: 3px; background: #e6eee4; overflow: hidden; }
.plot .pbar i { display: block; height: 100%; background: linear-gradient(90deg, #4fc3f7, #1f8fd6); border-radius: 3px; }
.plot .btn { margin-top: auto; width: 100%; }
.plot.ripe { border-color: var(--tangerine); box-shadow: 0 0 0 3px var(--tangerine-soft); }
button.plot.empty { border-style: dashed; color: var(--ink-3); background: #fbfdf9; cursor: pointer; }
button.plot.empty .pe { font-size: calc(var(--font-size) + 11px); color: var(--leaf-2); }
.seedopt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; text-align: left; }
.seedopt .se { font-size: calc(var(--font-size) + 17px); }
.wheelwrap { position: relative; width: min(260px, 80vw); aspect-ratio: 1; margin: 6px auto 14px; max-width: 100%; }
.wheel { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--tangerine), 0 10px 24px rgba(255,90,31,.25); }
.wheel span { position: absolute; left: 50%; top: 0; width: 44px; margin-left: -22px; height: 50%; transform-origin: 50% 100%; text-align: center; padding-top: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.wheel span b { display: block; font: 800 var(--font-size) var(--num); }
.wheel span small { font-size: calc(var(--font-size) - 5.5px); font-weight: 700; }
.wheel .hub { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: #fff; color: var(--tangerine); font: 800 calc(var(--font-size) + 1px)/54px var(--num); text-align: center; font-style: normal; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pointer { position: absolute; left: 50%; top: -10px; margin-left: -12px; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--ink); z-index: 2; }
.burst { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 300; background: linear-gradient(135deg, #ffcf5c, #ff5a1f); color: #fff; font: 800 calc(var(--font-size) + 11px) var(--num);
  padding: 16px 26px; border-radius: 18px; box-shadow: 0 16px 40px rgba(255,90,31,.4); animation: pop 1.6s ease-out forwards; pointer-events: none; white-space: nowrap; }
@keyframes pop { 0% { transform: translate(-50%, -30%) scale(.6); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(1); opacity: 0; } }

/* ================= 菇寮云股东 ================= */
.invhero { border-radius: 18px; padding: 18px; color: #fff; background: radial-gradient(130% 150% at 0% 0%, #b88350 0%, #7a4e1d 50%, #3f250b 100%); position: relative; overflow: hidden; }
.invhero::after { content: "🍄"; position: absolute; right: -6px; top: -4px; font-size: calc(var(--font-size) + 75px); opacity: .18; transform: rotate(12deg); }
.invhero h2 { margin: 4px 0 0; font: 800 calc(var(--font-size) + 9px) var(--num); }
.invgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.invgrid div { background: rgba(255,255,255,.12); border-radius: 12px; padding: 9px 10px; }
.invgrid b { display: block; font: 800 calc(var(--font-size) + 1px) var(--num); }
.invgrid span { font-size: calc(var(--font-size) - 4px); opacity: .85; }
.invbar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.2); overflow: hidden; margin-top: 6px; }
.invbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd24a, #ffb000); border-radius: 5px; }
.paym { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.paym button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.paym button b { font-size: calc(var(--font-size) - 1.5px); }
.paym button span { font-size: calc(var(--font-size) - 4px); color: var(--ink-2); font-family: var(--num); }
.paym button.on { border-color: var(--tangerine); background: var(--tangerine-soft); }

/* ================= 3D 图标 / 真照片 ================= */
.i3d { display: inline-block; vertical-align: middle; object-fit: contain; flex: none; }
.sc i .i3d { width: 32px; height: 32px; }
.walletstrip .ico { background: none; }
.sect-h h2 .i3d { margin-right: 2px; }
.empty .i3d { margin-bottom: 4px; }
.slide.photo { background-size: cover; background-position: center; }
.slide.photo::before { content: ""; position: absolute; inset: 0; }
.s1.photo::before { background: linear-gradient(90deg, rgba(232,64,28,.94) 0%, rgba(255,110,50,.78) 55%, rgba(255,138,61,.15) 100%); }
.s2.photo::before { background: linear-gradient(90deg, rgba(10,107,55,.95) 0%, rgba(19,160,78,.78) 55%, rgba(25,179,90,.12) 100%); }
.s3.photo::before { background: linear-gradient(90deg, rgba(15,92,110,.94) 0%, rgba(27,154,168,.72) 55%, rgba(27,154,168,.1) 100%); }
.slide .b3d { position: absolute; right: 14px; bottom: 16px; width: 64px; height: 64px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); z-index: 1; }
.slide .clock { position: relative; z-index: 1; }
.authhead.photo { background-size: cover; background-position: center; }
.authhead.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(10,107,55,.92), rgba(25,179,90,.72)); }
.authhead.photo > * { position: relative; }
.authhead.photo .lang-chip { position: absolute; }
.catcell .art { overflow: hidden; }
.gtile .i3d { margin-bottom: 4px; }
.gamerow { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }

/* ================= 送货时段 ================= */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.schip { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; text-align: left; font-size: calc(var(--font-size) - 1.5px); }
.schip.on { border-color: var(--leaf-2); background: var(--leaf-soft); color: var(--leaf); }
.schip:disabled { opacity: .45; cursor: not-allowed; }

/* ================= 实名认证 ================= */
.kyc { border: 1.5px solid #ffd9c6; }
.kslots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kslot { aspect-ratio: 1.58; border: 2px dashed #cdd8cf; border-radius: 12px; background: #fbfcfa; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  position: relative; overflow: hidden; cursor: pointer; font-size: calc(var(--font-size) - 2px); color: var(--ink-2); max-width: 100%; }
.kslot img:not(.i3d) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kslot.done { border-style: solid; border-color: var(--leaf-2); }
.kslot.done b { position: relative; z-index: 1; background: rgba(0,0,0,.55); color: #fff; padding: 2px 8px; border-radius: 6px; margin-top: auto; margin-bottom: 8px; }

/* ================= 怎么赚（图画步骤） ================= */
.howflow { display: flex; flex-direction: column; gap: 4px; position: relative; }
.hstep { display: flex; align-items: center; gap: 14px; position: relative; padding: 6px 0; }
.hstep + .hstep::before { content: ""; position: absolute; left: 33px; top: -14px; height: 20px; border-left: 2px dashed #ffc2a3; }
.hico { width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(145deg, #fff4ec, #ffe2d1); display: grid; place-items: center; position: relative; flex: none; }
.hico em { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--tangerine); color: #fff; font: 800 calc(var(--font-size) - 3px)/24px var(--num); text-align: center; font-style: normal; border: 2px solid #fff; }
.htxt b { display: block; font-size: var(--font-size); }
.htxt span { font-size: calc(var(--font-size) - 2.5px); color: var(--ink-2); }
.lvl { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: center; background: var(--ground); border-radius: 14px; padding: 12px 6px; }
.lvl .node { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: calc(var(--font-size) - 3.5px); }
.lvl .node.dim { opacity: .4; filter: grayscale(1); }
.lvl .edge { position: relative; display: grid; place-items: center; }
.lvl .edge i { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed currentColor; opacity: .5; }
.lvl .edge span { position: relative; z-index: 1; background: var(--ground); font: 800 calc(var(--font-size) - 2px) var(--num); padding: 0 3px; }
.lvl .edge.ok { color: var(--leaf-2); }
.lvl .edge.no { color: var(--berry); }

/* ================= e2u: two-row home header (shop · language · cart / full-width search) ================= */
.hero-head .shopbtn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; padding: 4px 0; }
.hero-head .shopbtn .wordmark { font-size: calc(var(--font-size) + 5px); overflow: hidden; text-overflow: ellipsis; }
.hero-head .shopbtn svg { width: 18px; height: 18px; flex: none; }
.hero-head .searchpill.wide { display: flex; width: 100%; height: 42px; margin-top: 10px; position: relative; z-index: 1; }

.hero-head { padding-bottom: 66px; }   /* e2u: one-row header (about a quarter shorter) */
.hero-head .searchpill { overflow: hidden; height: 34px; }
.hero-head .topline .lang-chip { height: 34px; display: inline-flex; align-items: center; }   /* search · language · cart: one height */
.hero-head .topline .iconbtn { width: 34px; height: 34px; }
.hero-head .searchpill .shint { animation: mk-hint .32s ease-out; }
@keyframes mk-hint { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* e2u: quick-button icons hop one after another (a wave) — only one moves at a time */
.sc i img, .sc i .i3d { animation: mk-hop 5s ease-in-out infinite; animation-delay: var(--hop, 0s); }
@keyframes mk-hop { 0%, 10%, 100% { transform: none; } 4.4% { transform: translateY(-5px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .sc i img, .sc i .i3d, .hero-head .searchpill .shint { animation: none; } }
/* e2u: home categories — one line, swiped left / right */
.cats-row { display: flex; overflow-x: auto; gap: 0; padding: 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats-row::-webkit-scrollbar { display: none; }
.cats-row .catcell { flex: 0 0 76px; padding: 0 3px; }
/* e2u: category rail with the category's photo */
.catside button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 8px; }
.catside .art { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; flex: none; aspect-ratio: auto; }
.catside .art img { width: 100%; height: 100%; object-fit: cover; }
.catside .art .noimg { width: 30px; height: 30px; }
/* e2u: Recommended below a page; product description in the sheet */
.discover-h { margin: 24px 12px 16px; }   /* e2u: more room around the Recommended title, every page */
.recsec { margin-top: 14px; }
/* e2u: deal / usual card — + / − qty + on the photo, name always 2 lines' height, so every card lines up */
.dealart { position: relative; }
.dealart > button { display: block; }   /* inline, its height followed the picture inside: photo vs default picture cards came out 5px apart */
.artctl { position: absolute; right: 4px; bottom: 4px; }
.dealart:has(.artctl) .art .corner { bottom: 44px; }   /* e2u: above the cart / Sold out button on the photo (cards that still have it there) */
.dealprice { display: flex; align-items: center; justify-content: space-between; gap: 6px; }   /* e2u: deals — price + unit, the cart button on its right */
.dealprice .p { margin-top: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plus { position: relative; }
.plus .qdot { position: absolute; top: -7px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; border: 1.5px solid #fff; background: var(--berry); color: #fff; font: 800 calc(var(--font-size) - 5px)/15px var(--num); font-style: normal; text-align: center; }   /* e2u: deals card — how many are in the cart */
.dealnm { margin: 6px 0 2px; font-size: calc(var(--font-size) + 2px); line-height: 1.3; font-weight: 700; }   /* e2u: the product name = the card's title (base + 2); no fixed 2-line height → no gap under one line */
.dealcard > .was { display: block; }
.dealcard > .p { margin-top: 0; white-space: nowrap; }
.savetag { height: 18px; line-height: 18px; margin-top: 5px; border-radius: 9px; background: var(--tangerine-soft); color: var(--tangerine); font-size: calc(var(--font-size) - 4.5px); font-weight: 800; text-align: center; white-space: nowrap; overflow: hidden; }
.pcard .nm.short { min-height: 0; }   /* e2u: product card with a description (2 lines at most) */
.pcard .pdesc { display: -webkit-box; font-size: calc(var(--font-size) - 3px); line-height: 16px; color: var(--ink-3); text-align: left; }   /* -webkit-box: .pcard .tap would turn off the 2-line limit */
.ctlrow { display: inline-flex; align-items: center; gap: 6px; }   /* e2u: cart − qty + then the red trash */
.trashbtn { border: 0; background: none; color: var(--berry); padding: 5px; display: inline-flex; align-items: center; }
.trashbtn svg { width: 20px; height: 20px; }
.page .recsec { margin-left: -12px; margin-right: -12px; }
.proddesc { margin: 0 0 4px; font-size: calc(var(--font-size) - 1.5px); }
.proddesc p { margin: 2px 0 0; color: var(--ink-2); line-height: 1.45; white-space: pre-line; }

/* e2u: delivery slots one per row, full width (a shop can have any number of slots) */
.slots { grid-template-columns: 1fr; }

/* e2u: full-page loader while a signed-in page loads the account (views/shop.php → removed by main.js) */
.bootload { position: fixed; inset: 0; z-index: 100; background: var(--ground); display: grid; place-items: center; }
.bootload .spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--leaf-soft); border-top-color: var(--leaf); animation: bootspin .8s linear infinite; }
@keyframes bootspin { to { transform: rotate(360deg); } }

/* e2u: POS stock ≤ 0 — listed but can't be added */
.soldout { display: inline-block; font-size: calc(var(--font-size) - 3px); font-weight: 800; color: var(--ink-3); background: var(--ground); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* e2u: the shop hides prices from guests (Shop settings) — a "Log in to see prices" link instead, no "/kg" or "was". */
.lockprice { font-size: calc(var(--font-size) - 3px); font-weight: 700; color: var(--leaf); text-decoration: none; white-space: nowrap; }
.prices-hidden .per, .prices-hidden .was { display: none; }

/* e2u: AI shopping helper (#ai) */
.aientry { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font: 900 calc(var(--font-size) - 2px)/1 var(--num); color: #fff;
  background: linear-gradient(135deg, var(--leaf-2), var(--leaf)); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.aihead h1 { display: flex; align-items: center; gap: 8px; }
.ailogo { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 900 calc(var(--font-size) - 3px)/1 var(--num); color: #fff; background: linear-gradient(135deg, var(--leaf-2), var(--leaf)); }
.aichat { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 150px; }
.aimsg { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.aimsg.me { align-items: flex-end; }
.aib { max-width: 92%; background: var(--card); color: var(--ink); border-radius: 14px; padding: 10px 12px; line-height: 1.5; word-break: break-word; }
.aimsg.me .aib { max-width: 80%; background: var(--leaf-soft); }
.aib.wide { align-self: stretch; max-width: 100%; }   /* product cards inside: 2 full columns */
.aidiv { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: calc(var(--font-size) - 3px); margin: 6px 0; }   /* a new topic started here */
.aidiv::before, .aidiv::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.aiold { text-align: center; color: var(--ink-3); font-size: calc(var(--font-size) - 3px); padding: 4px 0; }   /* older messages load when scrolling up */
.aicards { margin-top: 8px; }
.aib.aifail { color: var(--berry); background: var(--berry-soft); }
.ainote { margin-top: 8px; font-size: calc(var(--font-size) - 4px); color: var(--ink-3); }
.aiacts { display: flex; gap: 6px; margin-top: 6px; }
.aiacts button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; min-width: 38px; height: 34px; display: grid; place-items: center; padding: 0; }
.aiacts button.on { background: var(--leaf-soft); border-color: var(--leaf); }
.aiacts button { transition: transform .12s ease; }
.aiacts button:active { transform: scale(.9); }
.aiacts button.pop img { animation: ai-pop .5s cubic-bezier(.3, 1.6, .5, 1); }   /* 👍 👎 chosen / copied: a quick bounce with a little tilt */
@keyframes ai-pop { 0% { transform: scale(1); } 35% { transform: scale(1.4) rotate(-12deg); } 65% { transform: scale(.92) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .aiacts button.pop img { animation: none; } .aiacts button:active { transform: none; } }
.aitopics { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.aichip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 9px 12px; text-align: left; font-weight: 600; }
.aichip.more { color: var(--ink-3); font-weight: 400; }
.aithink { min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.ailine { display: block; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--leaf-2), var(--tangerine), var(--leaf-2)); background-size: 200% 100%; animation: ai-line 1.4s linear infinite; }
@keyframes ai-line { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ailine { animation: none; } }
.aibar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: var(--shell-w); margin: 0 auto; background: var(--ground); padding: 6px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.aipills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.aipills .chip { flex: none; }
.aiinput { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 4px 4px 4px 14px; box-shadow: 0 4px 14px rgba(22,32,26,.08); }
.aiinput input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--font-size); color: var(--ink); height: 38px; }
.aisend { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--leaf); color: #fff; display: grid; place-items: center; }
.aistop { width: 12px; height: 12px; border-radius: 3px; background: #fff; }
.aimenu { display: flex; flex-direction: column; }
.aimenu button { border: 0; background: none; text-align: left; padding: 14px 4px; font-size: var(--font-size); color: var(--ink); border-bottom: 1px solid var(--line); }
.aimenu button.red { color: var(--berry); border-bottom: 0; }
.aistyles { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.aistyle { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px solid transparent; background: var(--ground); border-radius: 14px; padding: 14px; text-align: left; color: var(--ink); }
.aistyle span { display: flex; flex-direction: column; gap: 2px; }
.aistyle small { color: var(--ink-3); }
.aistyle i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-3); }
.aistyle.on { border-color: var(--leaf); }
.aistyle.on i { border-color: var(--leaf); background: var(--leaf); box-shadow: inset 0 0 0 4px #fff; }

/* e2u: category page — search on top, left rail of categories (+ Deals), sort row, banner with 3 random product photos, product rows */
.cathead { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; background: var(--card); }
.cathead .searchpill { flex: 1; min-width: 0; background: var(--ground); color: var(--ink-3); }
.cathead .searchpill input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--font-size); color: var(--ink); }
.cathead .iconbtn { color: var(--ink); }
body.noscroll { overflow: hidden; }
.catsort { display: flex; align-items: center; gap: 14px; padding: 10px 0 8px; }
.catsort b { flex: 1; font-size: calc(var(--font-size) - 1px); }
.catsort button { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: calc(var(--font-size) - 2px); }
.catsort button.on { color: var(--leaf); font-weight: 800; }
.catside button.deal { color: var(--tangerine); }
.catside button.deal.on { color: var(--leaf); }
.catside button.deal .art { background: var(--tangerine-soft); color: var(--tangerine); font-size: calc(var(--font-size) + 6px); font-weight: 900; }
.catbanner { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 10px 12px 14px; margin-bottom: 4px; background: var(--leaf-soft); }
.catbanner .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.catbanner small { font-size: calc(var(--font-size) - 3px); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--leaf-2); }
.catbanner b { font-size: calc(var(--font-size) + 4px); font-weight: 900; font-style: italic; color: var(--leaf); line-height: 1.2; overflow-wrap: anywhere; }
.catbanner .pics { display: flex; flex: none; }
.catbanner .pics img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: #fff; object-fit: cover; }
.catbanner .pics img + img { margin-left: -14px; }
.prow { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prow > .tap { flex: none; width: 96px; border: 0; background: none; padding: 0; }
.prow > .tap .art { border-radius: 10px; }
.prow .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prow .nm { border: 0; background: none; padding: 0; text-align: left; font-size: calc(var(--font-size) + 2px); font-weight: 700; line-height: 1.3; color: var(--ink); }
.prow .nm small { display: block; font-weight: 400; color: var(--ink-3); font-size: calc(var(--font-size) - 3.5px); }
.prow .pdesc { border: 0; background: none; padding: 0; text-align: left; font-size: calc(var(--font-size) - 3px); color: var(--ink-3); }
.prow .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.aifab { position: fixed; z-index: 9; right: max(14px, calc((100vw - var(--shell-w)) / 2 + 14px)); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font: 900 calc(var(--font-size) + 2px)/1 var(--num); color: #fff;
  background: linear-gradient(135deg, var(--leaf-2), var(--leaf)); box-shadow: 0 8px 20px rgba(22,32,26,.22); }

/* e2u: guests on home — floating log-in bar over the bottom bar (moves up when the cart bar shows too) */
.loginbar {
  position: fixed; left: 0; right: 0; z-index: 25; max-width: calc(var(--shell-w) - 24px); width: calc(100% - 24px); margin: 0 auto;
  bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom, 0px));
  background: rgba(22,32,26,.82); color: #fff; border-radius: 14px; padding: 8px 8px 8px 12px;
  display: flex; align-items: center; gap: 10px; font-size: calc(var(--font-size) - 1px); font-weight: 700; text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.loginbar.up { bottom: calc(var(--nav-h) + 72px + env(safe-area-inset-bottom, 0px)); }
.loginbar .btn { flex: none; }

/* e2u: voice search — mic in the search box, hold-to-talk sheet */
.vsmic { flex: none; border: 0; background: none; padding: 0 2px; color: var(--ink-3); display: grid; place-items: center; }
.vs { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 8px; text-align: center; user-select: none; -webkit-user-select: none; }
.vs-t { font-size: calc(var(--font-size) + 3px); }
.vs-s { min-height: 20px; color: var(--ink-2); font-size: calc(var(--font-size) - 1px); padding: 0 12px; }
.vs-wave { display: none; align-items: center; justify-content: center; gap: 6px; height: 64px; margin-top: 8px; }
.vs-wave i { width: 8px; height: 14px; border-radius: 4px; background: var(--leaf-2); animation: vs-wave 0.9s ease-in-out infinite; }
.vs-wave i:nth-child(3n) { animation-delay: .15s; } .vs-wave i:nth-child(3n+1) { animation-delay: .3s; } .vs-wave i:nth-child(4n) { animation-delay: .45s; }
@keyframes vs-wave { 50% { height: 40px; } }
.vs-btn { margin: 18px 0 6px; width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--leaf-2); background: var(--leaf-soft); color: var(--leaf-2); display: grid; place-items: center; touch-action: none; }
.vs.listen .vs-wave, .vs.recog .vs-wave, .vs.cancel .vs-wave { display: flex; }
.vs.listen .vs-btn { background: var(--leaf-2); color: #fff; transform: scale(1.06); }
.vs.recog .vs-wave i { animation-duration: .5s; }
.vs.cancel .vs-t { color: var(--berry); } .vs.cancel .vs-wave i { background: var(--berry); } .vs.cancel .vs-btn { border-color: var(--berry); background: var(--berry-soft); color: var(--berry); }
@media (prefers-reduced-motion: reduce) { .vs-wave i { animation: none; } }

/* e2u: My addresses (js/pages/address.js) */
.ab-item { cursor: pointer; }
.ab-item.on { border: 1.5px solid var(--leaf-2); }
.ab-def { border-color: var(--leaf-soft); background: var(--leaf-soft); color: var(--leaf); font-weight: 800; padding: 2px 8px; font-size: calc(var(--font-size) - 3px); }
.ab-lab { padding: 2px 8px; font-size: calc(var(--font-size) - 3px); }
.ab-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer; }
.ab-row .go { font-size: calc(var(--font-size) + 5px); color: var(--ink-3); }
.ab-pin { padding: 0; overflow: hidden; }
.ab-note { display: flex; gap: 8px; align-items: flex-start; border-radius: 0; }   /* the theme's .notice colours */
.ab-mini { position: relative; height: 170px; }
.ab-mini iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.ab-mini button { position: absolute; inset: 0; background: transparent; border: 0; cursor: pointer; }
.ab-chip.on { border-color: var(--leaf-2); color: var(--leaf); background: var(--leaf-soft); font-weight: 700; }
.ab-f { margin-top: 12px; }

/* e2u: cart — "Add RM x to get free delivery" (the shop's delivery fee rows) */
.feenext { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--leaf-3); padding: 10px 14px; margin-top: -4px; margin-bottom: -2px; font-size: var(--font-size); font-weight: 600; }
.feenext > svg { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--leaf-2); color: #fff; }
.feebar { height: 6px; border-radius: 3px; background: var(--leaf-soft); margin-top: 8px; overflow: hidden; }
.feebar i { display: block; height: 100%; border-radius: 3px; background: var(--leaf-2); }

/* e2u: checkout — Payment details total row + "Saved RM x" under the pay bar total */
.sum.paytotal { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; color: var(--ink); }
.paybar .t .saved { display: block; font-size: calc(var(--font-size) - 3px); color: var(--ink-2); }
#paysec { display: flex; flex-direction: column; gap: 12px; }   /* the payment method + payment details cards, spaced like the rest of .page */

/* e2u (owner 2026-11-23): phone width only — every script fits. Myanmar letters stack marks above and below, so fixed line
   heights and fixed-height chips / buttons clipped them. Here text keeps its natural line height and anything holding words
   grows with it (min-height instead of height). Desktop (≥ 900px) keeps the layout as it was. */
@media (max-width: 899px) {
  html[lang="myan"] body { line-height: 1.75; }
  .searchpill { height: auto; min-height: 40px; }
  .hero-head .searchpill { height: auto; min-height: 34px; }
  .hero-head .searchpill.wide { height: auto; min-height: 42px; }
  .lang-chip { height: auto; min-height: 28px; }
  .hero-head .topline .lang-chip { height: auto; min-height: 34px; }
  .btn { height: auto; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
  .btn.sm { height: auto; min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
  .paybar .btn { height: auto; min-height: 46px; }
  .earnhero .acts .btn { height: auto; min-height: 40px; }
  .cartfloat .btn { height: auto; min-height: 38px; }
  .seg button { height: auto; min-height: 38px; padding-top: 4px; padding-bottom: 4px; }
  .savetag { height: auto; min-height: 18px; line-height: 1.4; padding: 1px 8px; }
  .dealcard .bar { height: auto; min-height: 14px; }
  .dealcard .bar span { line-height: 1.4; }
  .pcard .pdesc { line-height: 1.35; }
  /* Myanmar only: the parts that set their own tight line height (1–1.3 suits Latin / Chinese, cuts Myanmar marks) */
  html[lang="myan"] :is(.sc, .catcell, .catside button, .slide h3, .slide p, .slide .cta, .sect-h h2, .walletstrip.guest b,
    .pcard .nm, .pcard .pdesc, .prow .nm, .lrow .info .nm, .line .info b, .dealnm, .proddesc p, .pbadge, .prank span, .savetag, .notice, .btn) { line-height: 1.6; }
  /* banner text: smaller for the longer languages (Myanmar, Malay, Indonesian), English a bit more room above and below */
  html:is([lang="myan"], [lang="ms"], [lang="indo"]) .slide:not(.ad) h3 { font-size: calc(var(--font-size) + 1px); }
  html:is([lang="myan"], [lang="ms"], [lang="indo"]) .slide:not(.ad) p { font-size: calc(var(--font-size) - 4px); }
  html:is([lang="myan"], [lang="ms"], [lang="indo"]) .slide:not(.ad) .cta { font-size: calc(var(--font-size) - 4px); padding: 4px 10px; }
  html:is([lang="myan"], [lang="ms"], [lang="indo"]) .slide:not(.ad) { gap: 4px; padding-top: 10px; padding-bottom: 22px; }
  html[lang="myan"] .slide:not(.ad) :is(h3, p, .cta) { line-height: 1.45; }   /* Myanmar marks still fit, but the banner text stays compact */
  html[lang="en"] .slide:not(.ad) { padding-top: 24px; padding-bottom: 34px; }
  /* Myanmar writes long runs with no spaces, so a word can be wider than its box (the game tiles' "coin ဖြင့် ဟင်းသီးဟင်းရွက်လဲရန်")
     — let it wrap inside the box instead of running past its edge */
  .gtile { min-width: 0; }
  html[lang="myan"] :is(.gtile b, .gtile span, .sc, .catcell, .slide h3, .slide p, .sect-h h2, .pcard .nm, .prow .nm,
    .lrow .info .nm, .dealnm, .notice, .walletstrip.guest b) { overflow-wrap: anywhere; }
  html[lang="myan"] :is(.gtile b, .gtile span) { line-height: 1.6; }
}
