/* Customer storefront — yellow/black mobile-first design system. */
:root {
  --brand: #ffd02f;
  --brand-soft: #fff4b8;
  --ink: #1c1c1e;
  --bg: #f6f7f9;
  --card: #fff;
  --line: #e8e9ed;
  --muted: #6b6f7e;
  --route: #0fbcb0;
  --warning: #f2994a;
  --ok: #16865e;
  --danger: #d64545;
  --card-radius: 16px;
  --button-radius: 10px;
  --bar-h: 64px;
  --shadow: 0 10px 30px rgba(28, 28, 30, .07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--card); color: var(--ink); cursor: pointer; }
button:active { transform: translateY(1px); }
button[disabled] { opacity: .46; cursor: not-allowed; transform: none; }

.announcement { padding: 9px 16px; background: var(--ink); color: #fff; font-size: 13px; text-align: center; white-space: pre-wrap; }
.app-bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); border-bottom: 1px solid rgba(28,28,30,.08); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.app-bar-inner { display: flex; align-items: center; gap: 8px; width: min(100%,1280px); height: 100%; margin: auto; padding: 0 12px; }
.brand-button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 4px; border: 0; background: transparent; font-size: 17px; font-weight: 850; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; border-radius: 11px; background: var(--brand); color: var(--ink); font-size: 19px; font-weight: 950; transform: rotate(-4deg); }
.icon-btn { min-width: 44px; padding: 6px 8px; border: 0; background: transparent; }
.back-button { font-size: 30px; line-height: 1; }
.account-button { margin-left: auto; font-weight: 700; }
.desktop-nav { display: none; }

main { width: min(100%,1280px); margin: 0 auto; padding: 12px 12px calc(var(--bar-h) + 28px + env(safe-area-inset-bottom)); }
.view { display: none; }
.view.active { display: block; }
.narrow-view, .checkout-view { max-width: 820px; margin: 0 auto; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h2 { margin: 4px 0 12px; font-size: 22px; line-height: 1.25; }
h3 { margin: 22px 0 10px; font-size: 16px; }
.eyebrow, .hero-kicker, .profile-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.page-heading { margin: 8px 2px 18px; }
.page-heading h2 { margin-top: 3px; font-size: 26px; }

.hero-banner { position: relative; display: grid; min-height: 230px; margin-bottom: 18px; padding: 30px 24px; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg,#fff4a8 0%,var(--brand) 58%,#ffc528 100%); box-shadow: 0 16px 35px rgba(211,165,0,.18); }
.hero-banner h1 { max-width: 11em; margin: 8px 0; font-size: clamp(28px,9vw,43px); line-height: 1.1; letter-spacing: -.04em; }
.hero-banner p { max-width: 22em; margin: 0 0 19px; color: #4d451f; }
.hero-action { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 750; }
.hero-art { position: absolute; right: -25px; bottom: -40px; width: 165px; height: 165px; border: 30px solid rgba(255,255,255,.42); border-radius: 50%; color: rgba(28,28,30,.36); }
.hero-art span { position: absolute; font-size: 24px; }.hero-art span:nth-child(1){left:-34px;top:35px}.hero-art span:nth-child(2){left:37px;top:30px;font-size:58px}.hero-art span:nth-child(3){right:12px;bottom:8px}

.catalog-section { margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--card); }
.hot-section { padding: 0; border: 0; background: transparent; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 3px 0 0; }
.section-note { color: var(--muted); font-size: 12px; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; margin-top: 14px; }
.search-box { display: flex; align-items: center; gap: 8px; min-height: 46px; margin: 0; padding: 0 13px; border: 1px solid var(--line); border-radius: 9999px; background: var(--bg); color: var(--muted); }
.search-box input { min-width: 0; margin: 0; padding: 10px 0; border: 0; background: transparent; outline: none; }
.compact-button { padding-inline: 12px; white-space: nowrap; }
.category-chips { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 12px 0 0; }
.category-chips button { min-height: 58px; padding: 9px 12px; border-radius: 12px; white-space: normal; }
.route-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.route-filter button { min-height: 40px; padding: 7px 14px; border-radius: 9999px; white-space: normal; }
.category-chips button.active { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 700; }
.route-filter button.active { border-color: var(--route); background: #e8fbf9; color: #087f77; font-weight: 750; }

.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.category-product-section { grid-column: 1 / -1; }
.category-product-section > .product-grid { margin-top: 12px; }
.shop-card { min-height: 150px; text-decoration: none; color: inherit; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--card); box-shadow: 0 4px 18px rgba(28,28,30,.04); cursor: pointer; }
.product-cover { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #eff0f3; }
.product-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-card:hover .product-cover img { transform: scale(1.025); }
.product-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #9a9daa; font-size: 13px; }
.sold-out-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(28,28,30,.48); color: #fff; font-size: 17px; font-weight: 850; letter-spacing: .13em; }
.product-card .body { min-width: 0; padding: 11px; }
.product-card .name { min-height: 2.9em; overflow: hidden; font-weight: 720; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .price { margin-top: 7px; font-size: 18px; font-weight: 900; }
.product-tags { display: flex; min-height: 23px; gap: 5px; overflow: hidden; }
.product-tags .tag { margin-left: 0; white-space: nowrap; }
.sale-start { margin-top: 4px; color: var(--warning); font-size: 12px; }
.product-card-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; }
.product-card-cta b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--brand); color: var(--ink); font-size: 19px; }
.sold-out-products { grid-column: 1/-1; opacity: .8; }.sold-out-products summary { padding: 12px 0; cursor: pointer; }

.card, .checkout-card, .account-card { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--card); }
.notice { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #ffe38a; border-radius: 12px; background: #fff8d7; color: #5c4b0d; font-size: 13px; white-space: pre-wrap; }
.empty { display: grid; gap: 12px; justify-items: center; padding: 52px 16px; color: var(--muted); text-align: center; }
.empty-icon { font-size: 32px; }.empty strong { color: var(--ink); font-size: 17px; }
.hint, .muted { color: var(--muted); }.hint { margin: 4px 0 10px; font-size: 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.row span:first-child { color: var(--muted); }
.tag { display: inline-block; padding: 2px 7px; border-radius: 9999px; font-size: 11px; vertical-align: middle; }
.tag.on { background: #e6f7ef; color: var(--ok); }.tag.off { background: #eff0f2; color: var(--muted); }.tag.warn { background: #fff0df; color: #ad5c12; }

.product-view { max-width: 960px; margin: auto; }
.product-detail-layout { display: grid; gap: 18px; }
.product-main-image { overflow: hidden; border-radius: 18px; background: #eef0f3; aspect-ratio: 1/1; }
.product-main-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-gallery { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.gallery-image { min-width: 0; min-height: 0; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #eef0f3; aspect-ratio: 1/1; }
.gallery-image.active { border-color: var(--ink); }.gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-gallery-placeholder { display: grid; place-items: center; aspect-ratio: 1/1; border-radius: 18px; background: #eef0f3; color: var(--muted); }
.product-info-card h2 { margin-top: 0; font-size: 25px; }
.product-price { margin: 8px 0 12px; font-size: 27px; font-weight: 900; }
.product-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0; }
.product-fact { padding: 10px; border-radius: 10px; background: var(--bg); }.product-fact small { display: block; color: var(--muted); }.product-fact strong { display: block; margin-top: 2px; }
.product-spec-selector { display: grid; gap: 8px; padding: 0; border: 0; }
.spec-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.spec-row.selectable { cursor: pointer; }.spec-row.selected { border-color: var(--ink); background: #fff9da; box-shadow: inset 0 0 0 1px var(--ink); }.spec-row .info { min-width: 0; flex: 1; }.spec-row .name { font-weight: 750; }
.quantity-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.qty { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.qty button { min-width: 42px; min-height: 40px; padding: 5px; border: 0; border-radius: 0; background: var(--bg); }.qty input { width: 46px; min-height: 40px; margin: 0; padding: 6px 0; border: 0; border-radius: 0; text-align: center; }
.product-sticky-action { position: sticky; bottom: calc(var(--bar-h) + 8px); z-index: 16; display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 8px; margin-top: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.product-action-cart { position: relative; min-width: 48px; padding-inline: 10px; }.product-sticky-action button { font-weight: 750; }.buy-now { border-color: var(--ink); background: var(--ink); color: #fff; }

.shipping-progress-card { display: flex; gap: 12px; margin-bottom: 14px; padding: 14px; border-radius: 14px; background: #eafaf8; color: #126e68; }.shipping-progress-card p { margin: 2px 0 0; font-size: 12px; }.progress-icon { display: grid; width: 30px; height: 30px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--route); color: #fff; font-weight: 900; }
.cart-line { display: grid; grid-template-columns: auto 66px minmax(0,1fr); gap: 10px; align-items: center; }.cart-line-cover { width: 66px; aspect-ratio: 1/1; overflow: hidden; border-radius: 11px; background: var(--bg); }.cart-line-cover img { width: 100%; height: 100%; object-fit: cover; }.cart-line-info { min-width: 0; }.cart-line-title { overflow-wrap: anywhere; }.cart-line-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }.cart-line-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }.cart-line-price { font-size: 17px; font-weight: 850; }
.cart-checkout-bar, .checkout-submit-bar { position: sticky; bottom: calc(var(--bar-h) + 7px); z-index: 18; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); backdrop-filter: blur(12px); }.cart-total { min-width: 0; text-align: right; }.cart-total span, .checkout-submit-bar span { display: block; color: var(--muted); font-size: 11px; }.cart-total strong, .checkout-submit-bar strong { overflow-wrap: anywhere; font-size: 16px; }

.checkout-card { padding: 18px; box-shadow: 0 4px 16px rgba(28,28,30,.035); }.card-title { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }.card-title strong { display: block; font-size: 17px; }.card-title small { display: block; color: var(--muted); }.card-icon { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--brand-soft); font-weight: 850; }.form-grid { display: grid; gap: 0; }.realname-card { border-color: #ffc978; background: #fffaf2; }.summary { margin: 0; padding: 0; }.summary .total { margin-top: 7px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 800; }.terms { max-height: 180px; margin: 12px 0 0; padding: 10px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); font: 12px/1.6 inherit; white-space: pre-wrap; }.checkout-submit-bar { grid-template-columns: 1fr auto; }.checkout-submit-bar strong { font-size: 19px; }

.auth-layout { display: grid; gap: 12px; max-width: 920px; margin: auto; }.auth-intro { padding: 28px; border-radius: 20px; background: linear-gradient(135deg,var(--brand),#fff1a5); }.auth-intro h2 { margin: 7px 0; font-size: 30px; }.auth-intro p { margin: 0; }.profile-hero { display: flex; align-items: center; gap: 15px; min-height: 170px; margin-bottom: 14px; padding: 24px; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg,var(--brand),#fff0a1); }.profile-hero h2 { margin: 4px 0; font-size: 27px; }.profile-hero p { margin: 0; color: #594e20; }.avatar { display: grid; width: 66px; height: 66px; place-items: center; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.7); border-radius: 50%; background: var(--ink); color: #fff; font-size: 21px; font-weight: 800; }.shortcut-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }.shortcut-grid button { padding: 10px 3px; background: var(--bg); font-size: 12px; }.shortcut-grid button::before { content: '○'; display: block; margin-bottom: 5px; font-size: 22px; }.text-button { min-height: 36px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); }.menu-list { padding: 0; overflow: hidden; }.menu-list a { display: flex; justify-content: space-between; padding: 15px 17px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }.menu-list a:last-child { border-bottom: 0; }.account-details summary { min-height: 44px; padding: 5px 0; font-weight: 750; cursor: pointer; }.details-body { padding-top: 10px; }.logout-actions { display: flex; gap: 8px; }.logout-actions button { flex: 1; }

label { display: block; margin-bottom: 13px; color: var(--muted); font-size: 13px; }.visually-titled { margin: 0; font-size: 0; }.visually-titled textarea { font-size: 15px; }.checkbox, .radio { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }.radio { margin: 8px 0; }.register-history { margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }.register-history legend { padding: 0 5px; color: var(--ink); font-weight: 700; }
input, textarea, select { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); }.checkbox input, .radio input, input[type="checkbox"], input[type="radio"] { width: auto; margin: 0; accent-color: var(--ink); }.cart-line > input { width: 20px; height: 20px; }input:focus, textarea:focus, select:focus { outline: 2px solid rgba(255,208,47,.5); border-color: #d4a900; }textarea { resize: vertical; }
.primary { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 750; }.ghost { background: transparent; }.block { display: block; width: 100%; margin-top: 10px; }.button-link { display: block; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--button-radius); color: var(--ink); text-align: center; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 20px); z-index: 50; max-width: min(80%,420px); padding: 10px 16px; transform: translateX(-50%); border-radius: 9999px; background: rgba(28,28,30,.94); color: #fff; font-size: 13px; text-align: center; }
.tab-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: flex; height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding: 3px 4px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }.tab-bar button { position: relative; display: grid; flex: 1; min-width: 0; min-height: 54px; place-content: center; gap: 1px; padding: 2px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }.tab-bar button.active { color: var(--ink); font-weight: 800; }.tab-bar button.active::after { content: ''; position: absolute; right: 30%; bottom: 1px; left: 30%; height: 3px; border-radius: 3px; background: var(--brand); }.tab-icon { font-size: 20px; line-height: 1.1; }.badge { position: absolute; top: 4px; left: 55%; min-width: 17px; padding: 0 5px; border-radius: 9999px; background: var(--danger); color: #fff; font-size: 10px; line-height: 17px; }

@media (min-width:720px) {
  main { padding: 20px 22px 100px; }
  .hero-banner { min-height: 280px; padding: 42px; }.hero-art { right: 40px; bottom: -20px; width: 230px; height: 230px; }
  .catalog-section { padding: 22px; }.hot-section { padding: 0; }.category-chips { grid-template-columns: repeat(4,minmax(0,1fr)); }.product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .product-detail-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }.product-sticky-action { grid-column: 1/-1; bottom: 84px; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.auth-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }.auth-intro { grid-column: 1/-1; }
  .tab-bar { right: 50%; bottom: 16px; left: auto; width: min(480px,calc(100% - 32px)); height: 64px; padding: 4px; transform: translateX(50%); border: 1px solid var(--line); border-radius: 9999px; box-shadow: var(--shadow); }
  .toast { bottom: 96px; }
}
@media (min-width:1024px) {
  .app-bar-inner { padding: 0 24px; }.desktop-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }.desktop-nav button { min-height: 40px; border: 0; background: transparent; }.desktop-nav button.active { background: var(--brand); font-weight: 800; }.account-button { display: none; }
  main { padding: 26px 24px 44px; }.tab-bar { display: none; }.toast { bottom: 28px; }.product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }.hero-banner { min-height: 310px; }.product-sticky-action, .cart-checkout-bar, .checkout-submit-bar { bottom: 18px; }
  .auth-layout { grid-template-columns: .85fr 1fr 1fr; align-items: start; }.auth-intro { grid-column: auto; min-height: 100%; }
}
@media (max-width:420px) {
  .section-note { display: none; }.hero-banner { padding: 25px 20px; }.catalog-section { padding: 14px; }.hot-section { padding: 0; }.product-grid { gap: 9px; }.product-card .body { padding: 9px; }.cart-line { grid-template-columns: auto 54px minmax(0,1fr); }.cart-line-cover { width: 54px; }.cart-line-actions { align-items: end; }.cart-checkout-bar { grid-template-columns: auto 1fr; }.cart-checkout-bar .primary { grid-column: 1/-1; width: 100%; }.cart-select-all { margin: 0; }.product-sticky-action { grid-template-columns: auto 1fr; }.product-sticky-action .buy-now { grid-column: 1/-1; }.shortcut-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.fee-link { display:inline-flex; width:auto; margin-top:6px; padding:0; border:0; background:transparent; color:var(--brand-dark); font:inherit; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.sheet-overlay { position:fixed; inset:0; z-index:80; display:grid; place-items:end center; padding:20px; background:rgba(20,20,22,.42); }
.sheet-overlay[hidden] { display:none; }
.fee-sheet { width:min(520px,100%); max-height:min(70vh,620px); overflow:auto; padding:20px; border-radius:20px 20px 12px 12px; background:#fff; box-shadow:var(--shadow); }
.fee-list { display:grid; gap:0; margin-top:12px; border-top:1px solid var(--line); }
.fee-row { display:grid; grid-template-columns:76px 1fr; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); }
.fee-row strong { color:var(--ink); }.fee-row span { color:var(--muted); }
.menu-list>button { display:flex; width:100%; justify-content:space-between; padding:15px 17px; border:0; border-bottom:1px solid var(--line); border-radius:0; background:#fff; color:var(--ink); text-align:left; }
.menu-list>button:last-child { border-bottom:0; }
#address-book-list .badge { position:static; margin-left:auto; background:var(--brand); color:var(--ink); }
