@charset "UTF-8";
/* Native mobile storefront. Payment and account behavior live in the existing modules. */
:root {
  --brand: #1260de;
  --brand-dark: #0a4fbd;
  --brand-soft: #eaf2ff;
  --price: #c94214;
  --ink: #202331;
  --muted: #667085;
  --page: #f5f6fa;
  --paper: #fff;
  --line: #e7eaf0;
  --peach: #fff0e8;
  --mint: #e6f7f0;
  --pink: #fff0f5;
  --radius: 18px;
  --shadow: 0 6px 22px #263b6410;
  --press: 110ms;
  --settle: 220ms;
  --ease: cubic-bezier(.2,.8,.2,1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Legacy token aliases keep existing templates and inline styles compatible. */
  --green: var(--brand);
  --green-dark: var(--brand-dark);
  --green-light: var(--brand-soft);
  --cream: var(--page);
  --orange: var(--price);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  color: var(--ink);
  background: var(--page);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 140px; scroll-padding-bottom: 110px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
input, textarea, select { max-width: 100%; min-width: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a, button { transition: background-color var(--press), color var(--press), opacity var(--press); }
a:active, button:not(:disabled):active { opacity: .72; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px;
}
[hidden] { display: none !important; }
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1120px; margin: auto; padding-inline: 24px; }
.boot { min-height: 70dvh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.brand-mark { display: inline-grid; place-items: center; background: var(--brand); color: #fff; width: 40px; height: 40px; border-radius: 12px; font-size: 24px; flex-shrink: 0; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 750; min-width: 0; }
.brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; letter-spacing: 0; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); padding-top: var(--safe-top); border-bottom: 1px solid var(--line); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.desktop-nav { display: flex; gap: 28px; align-items: center; height: 100%; }
.desktop-nav a { height: 100%; display: flex; align-items: center; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; }
.desktop-nav .active { color: var(--brand); border-color: var(--brand); font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 14px; position: relative; flex-shrink: 0; }
.badge { position: absolute; top: 1px; right: 1px; display: inline-block; min-width: 18px; padding: 0 4px; border-radius: 12px; color: #fff; background: var(--price); font-size: 12px; line-height: 18px; border: 2px solid #fff; }
.main { min-height: 65dvh; padding-top: 24px; padding-bottom: 40px; }
.page-enter { animation: page-enter 180ms var(--ease); }
@keyframes page-enter { from { opacity: .45; } to { opacity: 1; } }
.site-footer { color: var(--muted); padding: 24px 0 32px; font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.bottom-nav { display: none; }

/* Search, colorful categories and direct access to merchandise. */
.home-search { display: flex; gap: 16px; margin-bottom: 16px; }
.search-form { display: flex; flex: 1; align-items: center; min-width: 0; gap: 10px; background: #fff; border: 1.5px solid var(--brand); border-radius: 28px; padding: 3px 4px 3px 16px; }
.search-form > .icon { color: var(--muted); width: 20px; }
.search-form input { flex: 1; width: 100%; border: 0; background: transparent; outline-offset: 0; padding: 8px 0; font-size: 16px; }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form .btn { border-radius: 24px; min-height: 44px; padding: 8px 20px; font-size: 14px; }
.search-suggestions { display: flex; gap: 12px; align-items: center; overflow-x: auto; scrollbar-width: none; margin: -6px 2px 12px; font-size: 12px; white-space: nowrap; }
.search-suggestions > span { color: var(--muted); }
.search-suggestions a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; color: var(--ink); }
.home-categories { background: #fff; border-radius: var(--radius); padding: 20px 16px; margin-bottom: 16px; }
.category-strip { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 16px 8px; }
.category-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; min-width: 0; text-align: center; }
.category-tile .category-icon { display: grid; place-items: center; width: 50px; height: 50px; background: var(--brand-soft); color: #2261bd; border-radius: 16px; }
.category-tile:nth-child(5n+2) .category-icon { background: var(--pink); color: #bd3d74; }
.category-tile:nth-child(5n+3) .category-icon { background: var(--mint); color: #24805a; }
.category-tile:nth-child(5n+4) .category-icon { background: var(--peach); color: #c25b27; }
.category-tile:nth-child(5n) .category-icon { background: #f1edff; color: #7950be; }
.category-tile .category-icon { transition: background-color var(--press), opacity var(--press); }
.category-tile:active .category-icon { opacity: .65; }
.category-glyph { width: 30px; height: 30px; }
.category-icon img { width: 36px; height: 36px; object-fit: contain; }
.category-tile > span:last-child { max-width: 100%; overflow-wrap: anywhere; }
.category-tile.all-categories .category-icon { background: var(--brand); color: #fff; }
.edit-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 20px; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 24px; border-radius: 16px; background: var(--peach); color: #78380f; overflow: hidden; }
.pick:nth-child(2) { background: var(--mint); color: #236142; }
.pick h2 { font-size: 20px; font-weight: 750; }
.pick p { font-size: 13px; margin-top: 8px; }
.pick p .icon { width: 14px; height: 14px; }
.pick-art { flex-shrink: 0; width: 64px; height: 64px; display: grid; place-items: center; background: #ffffffb3; border-radius: 20px; transform: rotate(-8deg); }
.pick-art .category-glyph { width: 38px; height: 38px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 14px; }
.section-heading h2 { font-size: 22px; font-weight: 750; letter-spacing: 0; }
.eyebrow { font-size: 12px; color: var(--muted); }
.section-heading .eyebrow, .auth-panel > .eyebrow { display: none; }
.text-link { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; min-height: 44px; flex-shrink: 0; }
.text-link .icon { width: 16px; height: 16px; }
.filter-tabs { display: flex; gap: 10px; align-items: center; overflow: auto; scrollbar-width: none; margin: 14px 0 18px; padding: 2px 0; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs a, .filter-tabs button { border: 0; border-radius: 24px; background: #fff; padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; font-size: 14px; color: var(--muted); }
.filter-tabs .active { background: var(--brand); color: #fff; font-weight: 650; }
.feed-tabs { margin-top: 0; }
.feed-total { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* Real merchandise, readable titles and price-first scanning. */
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.product-card { display: block; min-width: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 0; }
.product-image { position: relative; aspect-ratio: 1; background: #eef0f5; overflow: hidden; }
.product-image > img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 12px; }
.product-category { font-size: 12px; color: var(--muted); display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-bottom: 5px; }
.product-info h3 { font-size: 14px; font-weight: 550; line-height: 1.5; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.price { font-weight: 750; font-size: 22px; color: var(--price); letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.price small { font-size: 13px; padding-right: 2px; }
.product-meta > span:last-child { font-size: 12px; color: var(--muted); }
.product-meta > span:last-child .icon { display: none; }
.tag { position: absolute; top: 8px; left: 8px; color: var(--brand-dark); background: #fffffff2; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.quick-view { display: none; }
.image-placeholder { width: 100%; height: 100%; min-height: 44px; display: grid; place-items: center; background: var(--brand-soft); color: #7795be; }
.image-placeholder .icon { width: 30px; height: 30px; }
.page-count { display: inline-block; font-size: 12px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.configured-banner { display: block; margin: 16px 0; border-radius: 16px; overflow: hidden; }
.configured-banner img { width: 100%; height: auto; max-height: 260px; object-fit: contain; }
.configured-images { display: flex; gap: 12px; overflow: auto; scroll-snap-type: x mandatory; margin-bottom: 18px; }
.configured-images > a { display: block; min-width: 100%; scroll-snap-align: start; border-radius: 16px; overflow: hidden; }
.configured-images img { width: 100%; max-height: 420px; object-fit: contain; }
.component-space { height: 20px; }

/* Shared controls and secondary pages. */
.btn { border: 1px solid var(--brand); border-radius: 12px; min-height: 44px; background: var(--brand); color: #fff; padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.btn .icon { width: 18px; height: 18px; }
.btn.secondary { background: var(--brand-soft); color: var(--brand-dark); border-color: transparent; }
.btn.small { min-height: 44px; padding: 8px 12px; font-size: 13px; }
.btn.danger { background: #c03532; border-color: #c03532; }
.btn.full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.muted { color: var(--muted); font-size: 13px; }
.page-top { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.page-top h1 { font-size: 24px; font-weight: 750; letter-spacing: 0; }
.page-top p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.page-top > .icon-button { background: #fff; }
.card { background: #fff; border: 0; border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.card h3 { font-size: 16px; margin-bottom: 16px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.card-row:last-child { border-bottom: 0; }
.card-row .icon { color: var(--brand); margin-right: 10px; }
.card-row > span { display: flex; align-items: center; min-width: 0; }
.card-row > span > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 10px; }
.summary-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; color: var(--muted); font-size: 13px; }
.summary-line select { padding: 10px 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; }
.category-layout { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 20px; }
.category-sidebar { position: sticky; top: calc(96px + var(--safe-top)); height: fit-content; max-height: calc(100dvh - 120px - var(--safe-top)); overflow: auto; background: #fff; border-radius: 16px; padding: 8px; }
.category-sidebar a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 8px; font-size: 13px; border-radius: 10px; position: relative; }
.category-sidebar .active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 750; }
.category-sidebar .active::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--brand); }
.category-sidebar img { width: 28px; height: 28px; object-fit: contain; }
.category-layout .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.empty { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center; min-height: 280px; padding: 40px 20px; }
.empty > .icon { width: 54px; height: 54px; color: var(--brand); background: var(--brand-soft); border-radius: 18px; padding: 12px; }
.empty h3 { font-size: 18px; font-weight: 650; }
.empty p { font-size: 14px; max-width: 420px; color: var(--muted); }
.skeleton { height: 280px; border-radius: 18px; background: linear-gradient(110deg,#e9ecf2 10%,#f8f9fc 40%,#e9ecf2 60%); background-size: 200% 100%; animation: skeleton 1.6s infinite; margin: 12px 0; }
@keyframes skeleton { to { background-position: -200% 0; } }
#toast { position: fixed; bottom: calc(96px + var(--safe-bottom)); left: 50%; transform: translate(-50%,8px); background: #202331ed; color: #fff; border-radius: 12px; padding: 12px 20px; text-align: center; font-size: 14px; z-index: 150; opacity: 0; transition: opacity 150ms, transform 150ms var(--ease); pointer-events: none; max-width: 90vw; min-width: 180px; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; background: #15213d66; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: shade-enter 140ms; }
@keyframes shade-enter { from { background: #15213d00; } }
.modal { width: 100%; max-width: 520px; max-height: 90dvh; overflow-y: auto; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 16px 64px #12233a33; animation: sheet-enter 240ms var(--ease); }
@keyframes sheet-enter { from { opacity: .5; transform: translateY(24px); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h2 { font-size: 20px; }
.field { display: block; margin: 18px 0; font-size: 14px; color: var(--ink); }
.field > span { display: block; margin-bottom: 8px; }
.field input, .field select, .field textarea { display: block; width: 100%; padding: 12px; font-size: 16px; min-height: 48px; color: var(--ink); border: 1px solid #d5dbe6; border-radius: 12px; background: #f9fafe; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 110px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.check-label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.8; color: var(--muted); margin: 16px 0; min-height: 44px; }
.check-label input { accent-color: var(--brand); width: 24px; height: 24px; flex-shrink: 0; margin: 0; }
.check-label a { color: var(--brand-dark); }
.auth-panel { max-width: 440px; margin: 24px auto 48px; padding: 32px; background: #fff; border-radius: 24px; }
.auth-brand-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 16px; }
.auth-panel h1 { font-size: 30px; font-weight: 750; line-height: 1.4; margin: 20px 0 8px; }
.auth-panel .btn { margin-top: 8px; }
.auth-links { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--brand-dark); margin-top: 18px; }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-switch { display: flex; gap: 24px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.auth-switch a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.auth-switch .active { color: var(--brand); font-weight: 700; border-color: var(--brand); }
.form-error { color: #b82e2e; font-size: 13px; margin-top: 12px; }

/* Product and purchasing presentation. Existing IDs and events are preserved. */
.product-detail > * { min-width: 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.gallery-main { aspect-ratio: 1; background: #fff; border-radius: 18px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow: auto; padding: 3px; }
.gallery-thumbs button { width: 60px; height: 60px; flex-shrink: 0; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #fff; overflow: hidden; }
.gallery-thumbs .active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 20px; background: #fff; border-radius: 18px; min-width: 0; }
.detail-info h1 { font-size: 22px; line-height: 1.5; font-weight: 650; margin: 10px 0; }
.detail-price { font-size: 34px; margin-bottom: 8px; }
.detail-price small { font-size: 18px; }
.detail-brand { font-size: 13px; color: var(--brand-dark); }
.detail-description { color: var(--muted); font-size: 13px; }
.detail-specs { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.sku-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; max-height: 230px; overflow: auto; padding: 2px; }
.sku-list button { border: 1px solid var(--line); border-radius: 10px; background: #f6f7fa; min-height: 44px; padding: 10px 12px; max-width: 100%; text-align: left; font-size: 13px; }
.sku-list .active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f5f6fa; }
.quantity button { width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.quantity input { width: 36px; text-align: center; font-size: 16px; background: #fff; border: 0; min-height: 44px; appearance: textfield; }
.quantity input::-webkit-inner-spin-button { appearance: none; }
.quantity .icon { width: 16px; height: 16px; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; }
.detail-actions > .btn { flex: 1; min-width: 0; padding-inline: 8px; }
.detail-actions #buy-now { background: var(--price); border-color: var(--price); }
.detail-actions #add-cart { background: var(--peach); color: #a63c12; border-color: transparent; }
.detail-cart-link { display: none; }
.detail-content { background: #fff; border-radius: 18px; padding: 24px; margin-top: 18px; }
.detail-content h2 { font-size: 19px; margin-bottom: 16px; }
.rich-content { line-height: 1.9; overflow-wrap: anywhere; max-width: 100%; overflow: hidden; }
.rich-content img, .rich-content video { max-width: 100%; height: auto; margin-inline: auto; }
.rich-content p { margin: 12px 0; }
.rich-content table { max-width: 100%; overflow: auto; }
.comment { border-top: 1px solid var(--line); padding: 16px 0; }
.comment p { font-size: 14px; margin-top: 10px; }
.comment-author { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.comment-author img { width: 32px; height: 32px; border-radius: 50%; }
.shop-card { display: flex; align-items: center; gap: 12px; }
.shop-card img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.shop-card > div { min-width: 0; }
.shop-card b { font-size: 15px; display: block; }
.shop-card p { font-size: 12px; color: var(--muted); }
.shop-card .btn { margin-left: auto; white-space: nowrap; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; }
.cart-summary { position: sticky; top: 100px; height: fit-content; }
.cart-item { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 18px 0; }
.cart-item:last-child { border: 0; }
.cart-item > input { accent-color: var(--brand); width: 24px; height: 24px; margin: 0; flex-shrink: 0; }
.cart-item img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 14px; line-height: 1.5; font-weight: 550; margin: 0 0 5px; }
.cart-item-info p { color: var(--muted); font-size: 12px; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cart-item-controls .price { margin-right: auto; }
.cart-item .icon-button { width: 44px; height: 44px; color: var(--muted); }
.totals > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14px; }
.totals > .total { border-top: 1px solid var(--line); margin-top: 8px; }
.totals .price { font-size: 26px; }
.summary-hint { font-size: 12px; line-height: 1.8; text-align: center; color: var(--muted); margin-top: 12px; }
.address-summary { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 3px solid #b5d1ff; border-radius: 18px; padding: 20px; margin-bottom: 16px; font-size: 14px; }
.address-summary > .icon:first-child { width: 28px; height: 28px; color: var(--brand); }
.address-summary > div { flex: 1; min-width: 0; }
.address-summary b { font-weight: 650; margin-right: 10px; }
.address-summary p { color: var(--muted); font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.address-card h3 { margin-bottom: 8px; }
.address-tag { background: var(--brand-soft); color: var(--brand-dark); border-radius: 5px; padding: 3px 7px; margin-left: 6px; font-size: 12px; }
.payment-choice { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; cursor: pointer; font-size: 14px; }
.payment-choice:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.payment-choice input { accent-color: var(--brand); width: 20px; height: 20px; }
.payment-choice small { display: block; color: var(--muted); font-size: 12px; }
.payment-mark { width: 34px; height: 34px; background: #1689df; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.payment-choice.balance .payment-mark { background: var(--brand); }
.payment-panel { max-width: 510px; margin: 20px auto; }
.payment-total { padding: 18px; text-align: center; }
.payment-total .price { font-size: 40px; display: block; }
.payment-panel .muted { line-height: 2; }

/* Personal center, orders, wallet and community. */
.account-banner { background: var(--brand-soft); color: var(--ink); padding: 28px; border-radius: 22px; display: flex; align-items: center; gap: 20px; }
.account-avatar { display: grid; place-items: center; width: 68px; height: 68px; border: 3px solid #fff; border-radius: 50%; background: #cfe0ff; color: var(--brand); font-size: 28px; overflow: hidden; flex-shrink: 0; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-banner h1 { font-size: 23px; font-weight: 750; }
.account-banner p { font-size: 13px; color: #4a6386; margin-top: 6px; }
.account-banner a:last-child { margin-left: auto; color: var(--brand-dark); min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.account-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); text-align: center; padding: 20px 0; }
.account-stats a { min-height: 56px; }
.account-stats b { font-size: 24px; font-weight: 700; display: block; }
.account-stats span { font-size: 13px; color: var(--muted); }
.account-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 4px; }
.account-tools h2 { font-size: 16px; margin-bottom: 16px; }
.account-tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 4px; }
.account-tool-grid .card-row { display: flex; flex-direction: column; justify-content: flex-start; text-align: center; border: 0; padding: 8px 4px; gap: 0; min-height: 78px; font-size: 12px; }
.account-tool-grid .card-row > span { display: flex; flex-direction: column; gap: 8px; }
.account-tool-grid .card-row > .icon { display: none; }
.account-tool-grid .card-row .icon { width: 26px; height: 26px; margin: 0; color: var(--brand); }
.account-tool-grid .card-row:nth-child(4n+2) .icon { color: #bc502c; }
.account-tool-grid .card-row:nth-child(4n+3) .icon { color: #976428; }
.account-tool-grid .card-row:nth-child(4n) .icon { color: #9859b9; }
.order-shortcuts { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; text-align: center; }
.order-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; font-size: 12px; min-height: 64px; }
.order-shortcuts .icon { width: 28px; height: 28px; color: var(--price); }
.order-card-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.order-state { color: var(--price); }
.order-card .cart-item { padding-block: 14px; }
.order-card .cart-item img { width: 72px; height: 72px; }
.order-card .button-row { margin-top: 10px; }
.order-total { text-align: right; font-size: 13px; margin-top: 12px; }
.order-status-banner { background: var(--brand); color: #fff; padding: 28px; border-radius: 18px; margin-bottom: 18px; }
.order-status-banner h2 { font-size: 23px; font-weight: 650; }
.order-status-banner p { color: #fff; font-size: 13px; margin-top: 8px; }
.info-pair { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; padding: 9px 0; font-size: 13px; overflow-wrap: anywhere; }
.info-pair > span:first-child { color: var(--muted); }
.coupon { display: flex; align-items: center; border-radius: 16px; background: #fff; margin-bottom: 14px; overflow: hidden; }
.coupon-amount { width: 120px; flex-shrink: 0; padding: 26px 16px; background: var(--peach); text-align: center; border-right: 1px dashed #e9baa3; }
.coupon-amount b { font-size: 28px; color: var(--price); }
.coupon-amount small { display: block; color: #88401f; font-size: 12px; }
.coupon-info { flex: 1; min-width: 0; padding: 14px; }
.coupon-info h3 { font-size: 14px; }
.coupon-info p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.coupon > .btn { margin: 12px; }
.story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.story-card { background: #fff; border-radius: 14px; overflow: hidden; }
.story-card > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.story-card > div { padding: 14px; }
.story-card h3 { font-size: 15px; }
.story-card p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.timeline { border-left: 2px solid #d5e3fb; margin: 20px 0 0 10px; }
.timeline > div { position: relative; padding: 0 0 24px 20px; font-size: 14px; }
.timeline > div::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.chat-list { display: flex; flex-direction: column; gap: 16px; max-height: 60dvh; overflow: auto; padding: 18px 0; }
.chat-bubble { align-self: flex-start; max-width: 80%; padding: 14px 18px; border-radius: 14px 14px 14px 4px; background: #fff; overflow-wrap: anywhere; font-size: 14px; }
.chat-bubble.me { align-self: flex-end; background: var(--brand-soft); border-radius: 14px 14px 4px 14px; }
.chat-bubble small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.chat-form { display: flex; gap: 10px; margin-top: 18px; }
.chat-form input { flex: 1; min-width: 0; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.article-title { font-size: 26px; margin-bottom: 18px; overflow-wrap: anywhere; }
.article-page { max-width: 820px; margin-inline: auto; }
.article-page .rich-content { margin-top: 22px; }
.page-notice { background: var(--brand-soft); color: #315b98; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 13px; line-height: 1.7; }
.notice-row { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); }
.notice-row h3 { font-size: 15px; margin-bottom: 6px; }
.notice-row p { color: var(--muted); font-size: 13px; }
.notice-row small { color: var(--muted); font-size: 12px; }
.mobile-only { display: none; }

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover { background: var(--brand-soft); }
  .btn:not(:disabled):hover { background: var(--brand-dark); }
  .btn.secondary:hover { background: #dae8ff; }
  .product-card { transition: box-shadow var(--settle); }
  .product-card:hover { box-shadow: 0 6px 20px #263b641f; }
  .category-tile:hover .category-icon { background: #dce9ff; }
  .detail-actions #buy-now:hover { background: #ae350d; }
  .detail-actions #add-cart:hover { background: #ffe2d1; }
}
@media (max-width: 1000px) and (min-width: 768px) {
  .header-inner { gap: 12px; }
  .desktop-nav { gap: 18px; }
  .category-strip { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-layout .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0,1fr) 285px; gap: 16px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-tool-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .container { padding-inline: 14px; }
  .header-inner { height: 64px; gap: 8px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-logo, .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand small { font-size: 12px; }
  .desktop-nav { display: none; }
  .header-tools { gap: 4px; }
  .header-tools > a[href^="#/cart"], .header-tools > a[href^="#/account"] { display: none; }
  .header-tools .icon { width: 22px; height: 22px; }
  .main { padding-top: 16px; padding-bottom: 24px; }
  body[data-page="home"] .main { padding-top: 4px; }
  body[data-page="home"] .home-search { position: sticky; top: calc(64px + var(--safe-top)); z-index: 22; background: var(--page); padding: 8px 0; margin: 0; }
  .search-form { gap: 8px; padding-left: 12px; }
  .search-form .btn { padding-inline: 18px; }
  .search-suggestions { display: none; }
  .home-categories { padding: 12px 8px; margin-bottom: 12px; }
  .category-strip { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px 4px; }
  .category-tile { font-size: 12px; gap: 6px; }
  .category-tile .category-icon { width: 44px; height: 44px; border-radius: 14px; }
  .category-glyph { width: 27px; height: 27px; }
  .edit-picks { gap: 10px; margin: 12px 0 16px; }
  .pick { gap: 4px; padding: 14px 12px; border-radius: 14px; }
  .pick h2 { font-size: 15px; }
  .pick p { font-size: 12px; margin-top: 6px; }
  .pick-art { width: 42px; height: 48px; border-radius: 14px; }
  .pick-art .category-glyph { width: 28px; height: 28px; }
  .section-heading { margin: 18px 0 10px; }
  .section-heading h2 { font-size: 20px; }
  .text-link { font-size: 12px; }
  .filter-tabs { gap: 8px; margin: 12px 0 14px; }
  .filter-tabs a, .filter-tabs button { font-size: 13px; padding: 10px 14px; }
  .feed-tabs { position: sticky; top: calc(126px + var(--safe-top)); z-index: 18; padding: 8px 0; margin: -4px 0 8px; background: var(--page); }
  .feed-total { display: none; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-info { padding: 10px; }
  .product-grid > .product-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-grid > .product-card:last-child:nth-child(odd) .product-info { display: flex; flex-direction: column; justify-content: center; }
  .product-category { font-size: 12px; margin-bottom: 4px; }
  .product-meta { gap: 2px 8px; margin-top: 8px; }
  .product-meta > span:last-child { font-size: 12px; }
  .site-footer { padding: 16px 0 calc(88px + var(--safe-bottom)); }
  .footer-inner { flex-direction: column; gap: 0; }
  .footer-links { gap: 20px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; box-shadow: 0 -2px 16px #24396408; border-top: 1px solid #e8edf5; padding: 6px 6px calc(6px + var(--safe-bottom)); }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0; min-height: 52px; color: var(--muted); font-size: 12px; }
  .nav-icon { position: relative; display: grid; place-items: center; width: 42px; height: 28px; border-radius: 10px; transition: background-color 180ms var(--ease); }
  .bottom-nav .icon { width: 23px; height: 23px; }
  .bottom-nav a.active { color: var(--brand); font-weight: 700; }
  .bottom-nav a.active .nav-icon { background: var(--brand-soft); }
  .bottom-nav .badge { top: 1px; right: calc(50% - 28px); }
  .nav-icon .badge { top: -4px; right: -4px; }
  .page-top { margin-bottom: 16px; gap: 8px; }
  .page-top h1 { font-size: 22px; }
  .page-top p { font-size: 13px; }
  .card { padding: 16px; border-radius: 16px; margin-bottom: 12px; }
  .category-layout { grid-template-columns: 78px minmax(0,1fr); gap: 10px; }
  .category-sidebar { padding: 4px; top: calc(80px + var(--safe-top)); max-height: calc(100dvh - 160px - var(--safe-top) - var(--safe-bottom)); border-radius: 12px; scrollbar-width: none; }
  .category-sidebar a { display: block; font-size: 12px; text-align: center; padding: 12px 4px; overflow-wrap: anywhere; }
  .category-sidebar img { width: 28px; height: 28px; margin: 0 auto 6px; }
  .category-layout .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .category-layout .product-info { padding: 8px; }
  .category-layout .product-info h3 { font-size: 13px; min-height: 39px; }
  .category-layout .product-category { font-size: 12px; }
  .category-layout .price { font-size: 19px; }
  .category-layout .product-meta > span:last-child { display: none; }
  .summary-line { gap: 8px; font-size: 12px; }
  .summary-line select { max-width: 120px; font-size: 12px; }
  .product-detail { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .gallery-main { border-radius: 16px; }
  .detail-info { padding: 16px; }
  .detail-info h1 { font-size: 20px; }
  .detail-price { font-size: 32px; }
  .detail-content { padding: 18px; margin-top: 12px; border-radius: 16px; }
  body[data-page="product"] .bottom-nav { display: none; }
  body[data-page="product"] .detail-actions { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; margin: 0; padding: 10px 14px calc(10px + var(--safe-bottom)); gap: 8px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px #20305008; }
  .detail-actions > .btn { font-size: 14px; border-radius: 24px; min-height: 48px; gap: 4px; }
  .detail-actions .detail-cart-link { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; font-size: 12px; gap: 2px; color: var(--muted); }
  .detail-actions .btn > .icon { display: none; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 8px; }
  .cart-summary { position: static; }
  .cart-item { gap: 8px; padding-block: 16px; }
  .cart-item img { width: 68px; height: 68px; }
  .cart-item-info h3 { font-size: 14px; }
  .cart-item-controls { gap: 6px; }
  .cart-item-controls .price { flex-basis: 100%; }
  .account-banner { padding: 22px 18px; gap: 12px; border-radius: 20px; }
  .account-avatar { width: 56px; height: 56px; }
  .account-banner h1 { font-size: 21px; }
  body[data-page="account"] .account-banner { display: grid; grid-template-columns: 56px minmax(0,1fr); }
  body[data-page="account"] .account-banner > a:last-child { grid-column: 2; margin-left: 0; }
  .account-layout { grid-template-columns: 1fr; gap: 0; }
  .account-stats { padding-block: 18px; }
  .account-stats b { font-size: 23px; }
  .account-stats span { font-size: 12px; }
  .account-tool-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px 4px; }
  .order-shortcuts { gap: 4px; }
  .order-shortcuts a { font-size: 12px; }
  .order-card .cart-item img { width: 64px; height: 64px; }
  .info-pair { grid-template-columns: 90px minmax(0,1fr); font-size: 13px; }
  .auth-panel { margin: 8px auto 28px; padding: 28px 22px; }
  .auth-panel h1 { font-size: 28px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; border-radius: 24px 24px 0 0; max-height: 90dvh; padding: 22px 20px calc(24px + var(--safe-bottom)); }
  .modal::before { content: ""; display: block; width: 36px; height: 4px; background: #d4dae4; border-radius: 6px; margin: -10px auto 14px; }
  .shop-card { gap: 10px; flex-wrap: wrap; }
  .shop-card .btn { margin-left: auto; }
  .coupon-amount { width: 90px; padding: 24px 10px; }
  .coupon-info { padding: 12px; }
  .coupon > .btn { padding: 8px 10px; margin: 8px; font-size: 12px; }
  .story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .story-card > div { padding: 12px; }
  .story-card h3 { font-size: 14px; }
  .article-title { font-size: 23px; }
  .mobile-only { display: block; }
}
@media (max-width: 359px) {
  .container { padding-inline: 12px; }
  .category-layout { grid-template-columns: 66px minmax(0,1fr); gap: 8px; }
  .pick { padding: 14px 10px; }
  .pick-art { width: 32px; }
  .pick h2 { font-size: 14px; }
  .category-layout .product-grid { grid-template-columns: 1fr; }
  .category-layout .product-grid > .product-card:last-child:nth-child(odd) { grid-column: auto; display: block; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .cart-item > a > img { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
