:root {
  --brand: #2454d7;
  --brand-dark: #173bb2;
  --ink: #191919;
  --muted: #77736f;
  --line: #ece9e6;
  --surface: #f7f6f4;
  --warm: #eef5ff;
  --green: #12a99d;
  --shadow: 0 10px 30px rgba(74, 43, 24, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
dialog { display: none; }
dialog[open] { display: block; }
dialog.dialog-polyfill-open { display: block; position: fixed; z-index: 100; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); }
dialog.dialog-polyfill-open::before { content: ''; position: fixed; z-index: -1; top: 50%; left: 50%; width: 100vw; height: 100vh; transform: translate(-50%, -50%); background: rgba(19, 26, 47, .48); }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.page-shell { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.legacy-browser .page-shell { width: 96%; max-width: 1480px; }

.sale-strip { background: linear-gradient(105deg, #2348c9 0%, #2454d7 58%, #18aeb4 100%); color: #fff; }
.sale-inner { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 36px; position: relative; }
.sale-title { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.sale-title strong { font-size: 22px; }
.sale-badge { display: grid; place-items: center; width: 50px; height: 38px; transform: rotate(-6deg); border: 2px solid #ffe45c; border-radius: 10px; color: #ffed70; font-size: 20px; font-weight: 900; }
.sale-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; background: #fff; border-radius: 6px; color: var(--brand); font-weight: 700; }
.sale-cta svg { width: 16px; }
.countdown { position: absolute; right: 0; display: flex; align-items: center; gap: 5px; font-size: 12px; }
.countdown > span { margin-right: 4px; font-size: 14px; font-weight: 700; }
.countdown b { min-width: 30px; padding: 6px 4px; border-radius: 7px; background: #fff; color: var(--brand); text-align: center; font-size: 16px; }
.countdown em { font-style: normal; }

.brand-row { position: relative; display: grid; grid-template-columns: 260px minmax(320px, 1fr) auto; align-items: center; gap: 18px; padding-block: 28px 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--brand); }
.brand-logo { display: block; width: 70px; height: 70px; flex: 0 0 auto; object-fit: contain; object-position: center; }
.brand-wordmark { display: block; white-space: nowrap; }
.brand-wordmark strong { display: block; color: #193a9f; font-family: STKaiti, KaiTi, serif; font-size: 24px; line-height: 1; }
.brand-wordmark small { display: block; margin-top: 7px; color: #15a9b2; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.search-form { height: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 2px solid var(--brand); border-radius: 16px; overflow: hidden; }
.search-form input { width: 100%; height: 28px; padding: 0 14px; border: 0; outline: 0; font-size: 15px; }
.search-submit { height: calc(100% - 6px); margin-right: 3px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.search-submit:hover { background: var(--brand-dark); }
.search-submit svg { width: 18px; }
.brand-actions { display: flex; align-items: center; gap: 10px; }
.header-account-button, .merchant-entry-button { height: 46px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid #dce6ff; border-radius: 14px; background: #fff; color: var(--brand); font-weight: 700; cursor: pointer; white-space: nowrap; }
.header-account-button:hover { background: var(--warm); }
.header-account-button svg { width: 19px; }
.merchant-entry-button { border-color: var(--brand); background: var(--brand); color: #fff; }
.merchant-entry-button:hover { background: var(--brand-dark); }
.merchant-entry-button svg { width: 18px; }
.channel-nav { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 54px); padding-bottom: 18px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.channel-nav::-webkit-scrollbar { display: none; }
.channel-nav a, .channel-nav button { display: inline-flex; align-items: center; gap: 6px; }
.channel-nav button { padding: 0; border: 0; background: transparent; font-weight: inherit; cursor: pointer; }
.channel-nav svg { width: 18px; color: #ef1748; }
.channel-nav a:nth-child(4) svg, .channel-nav a:nth-child(6) svg { color: var(--green); }
.channel-nav a:hover, .channel-nav a.active { color: var(--brand); }

main { padding-bottom: 60px; }
.commerce-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 230px; gap: 12px; min-height: 362px; }
.category-panel, .account-panel, .hero, .mini-feature { border-radius: 8px; overflow: hidden; }
.category-panel { position: relative; z-index: 12; overflow: visible; background: #f9fbff; padding: 10px 10px 9px; border: 1px solid #e2e9f9; }
.category-heading { height: 39px; display: flex; align-items: center; gap: 10px; padding: 0 9px 2px; }
.category-heading > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: var(--brand); color: #fff; }
.category-heading svg { width: 16px; }
.category-heading strong { font-size: 15px; }
.category-heading small { margin-left: auto; color: #aaa19b; font-size: 11px; }
.category-list { display: grid; }
.category-row { width: 100%; height: 43px; display: grid; grid-template-columns: 31px minmax(0, 1fr) 15px; align-items: center; gap: 10px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: #292623; text-align: left; cursor: pointer; }
.category-row:hover, .category-row.active, .category-row:focus-visible { color: var(--brand); background: #edf3ff; outline: 0; }
.category-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; background: #fff; color: #625d59; box-shadow: inset 0 0 0 1px #eee7e2; transition: color .16s, background .16s; }
.category-row:hover .category-icon, .category-row.active .category-icon, .category-row:focus-visible .category-icon { color: #fff; background: var(--brand); box-shadow: none; }
.category-row > svg { color: #bdb5af; }
.category-row:hover > svg, .category-row.active > svg { color: var(--brand); transform: translateX(2px); }
.category-copy { min-width: 0; display: block; line-height: 1.2; }
.category-copy b { display: block; font-size: 14px; white-space: nowrap; }
.category-flyout { position: absolute; top: -1px; left: calc(100% + 9px); width: 520px; min-height: 362px; padding: 20px 22px 16px; border: 1px solid #f0e3db; border-radius: 8px; background: rgba(255,255,255,.98); box-shadow: 12px 16px 36px rgba(75, 42, 23, .14); opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.category-flyout.show { opacity: 1; visibility: visible; transform: translateX(0); }
.flyout-header { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.flyout-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--warm); color: var(--brand); }
.flyout-header strong, .flyout-header small { display: block; }
.flyout-header strong { font-size: 18px; }
.flyout-header small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.flyout-header > button { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 0; border-radius: 6px; background: var(--warm); color: var(--brand); font-size: 11px; font-weight: 700; cursor: pointer; }
.flyout-groups { padding-top: 14px; display: grid; gap: 12px; }
.flyout-groups section { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 10px; }
.flyout-groups h3 { margin: 8px 0 0; font-size: 13px; }
.flyout-groups section > div { display: flex; flex-wrap: wrap; gap: 4px; }
.flyout-groups button { padding: 7px 8px; border: 0; border-radius: 5px; background: transparent; color: #68625e; font-size: 12px; cursor: pointer; }
.flyout-groups button:hover { background: var(--warm); color: var(--brand); }
.flyout-promo { position: absolute; right: 20px; bottom: 18px; left: 20px; height: 68px; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 3px 13px; padding: 0 18px; border-radius: 7px; background: linear-gradient(100deg, #eef5ff, #f3fffd); overflow: hidden; }
.flyout-promo::after { content: "玖"; position: absolute; right: 16px; color: rgba(255,75,24,.09); font-family: STKaiti, KaiTi, serif; font-size: 72px; font-weight: 900; line-height: 1; }
.flyout-promo span { grid-row: span 2; align-self: center; padding: 6px 8px; border-radius: 5px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; }
.flyout-promo strong { font-size: 14px; }
.flyout-promo small { color: var(--muted); font-size: 10px; }

.feature-area { display: grid; grid-template-rows: 232px 118px; gap: 12px; min-width: 0; }
.hero { position: relative; background: #d4f4f2; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(209, 246, 242, 0.98) 0%, rgba(209, 246, 242, 0.9) 39%, rgba(209, 246, 242, 0.05) 70%); }
.hero-copy { position: relative; z-index: 2; max-width: 55%; padding: 26px 0 0 28px; }
.hero-kicker { display: inline-flex; padding: 5px 10px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.hero h1 { margin: 12px 0 7px; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; font-family: STKaiti, KaiTi, serif; }
.hero p { margin: 0 0 16px; color: #4e6e69; font-size: 14px; }
.hero-copy a { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 6px; background: #1f302e; color: #fff; font-size: 13px; font-weight: 700; }
.hero-copy a svg { width: 15px; }
.hero > img { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; object-position: center; z-index: -2; transition: opacity 0.25s ease; }
.hero-dots { position: absolute; left: 28px; bottom: 16px; display: flex; gap: 7px; z-index: 3; }
.hero-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(25,25,25,.22); cursor: pointer; transition: width .2s; }
.hero-dots button.active { width: 22px; background: var(--brand); }
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-feature { position: relative; display: flex; align-items: center; justify-content: space-between; padding-left: 18px; }
.mini-feature.peach { background: #fff1ea; }
.mini-feature.mint { background: #eef8e9; }
.mini-feature div { position: relative; z-index: 2; min-width: 130px; }
.mini-feature span { color: var(--brand); font-size: 12px; font-weight: 700; }
.mini-feature strong { display: block; margin-top: 6px; font-size: 18px; }
.mini-feature p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.mini-feature img { width: 45%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

.account-panel { background: var(--surface); padding: 16px 14px; }
.profile { display: flex; align-items: center; gap: 11px; }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #ffe0b9; color: var(--brand); }
.avatar svg { width: 25px; }
.profile strong { font-size: 18px; }
.profile p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.login-button { width: 100%; height: 42px; margin: 14px 0 10px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; }
.login-button.logged-in { border: 1px solid #cbd9ff; background: #fff; color: var(--brand); }
.login-button.logged-in:hover { background: var(--warm); }
.account-note { display: flex; align-items: flex-start; gap: 8px; min-height: 48px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e8e4e0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.account-note-icon { display: grid; flex: 0 0 auto; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #eef5ff; color: var(--brand); }
.account-note-icon svg { width: 17px; }
.account-note-copy { min-width: 0; padding-top: 1px; }
.account-note-copy strong, .account-note-copy small { display: block; }
.account-note-copy strong { color: #4a4642; font-size: 11px; }
.account-note-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.account-note.is-synced .account-note-icon { background: #e8f8f2; color: #0d9278; }
.account-note.is-synced .account-note-copy strong { color: #157963; }

.auth-dialog { width: min(430px, calc(100% - 32px)); margin: auto; padding: 0; border: 0; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 70px rgba(21, 28, 54, .24); }
.auth-dialog::backdrop { background: rgba(19, 26, 47, .45); backdrop-filter: blur(3px); }
.auth-shell { padding: 26px 28px 24px; }
.auth-header { display: flex; align-items: start; justify-content: space-between; }
.auth-brand { display: inline-block; color: var(--brand); font-family: STKaiti, KaiTi, serif; font-size: 16px; font-weight: 900; }
.auth-header h2 { margin: 4px 0 0; font-size: 24px; }
.auth-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.auth-close:hover { background: var(--surface); color: var(--ink); }
.auth-close svg { width: 19px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 24px 0 20px; padding: 4px; border-radius: 8px; background: var(--surface); }
.auth-tabs button { height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(46, 39, 35, .08); }
.auth-form { display: grid; gap: 7px; }
.auth-tabs[hidden], .auth-form[hidden], .auth-session[hidden] { display: none; }
.auth-form label { margin-top: 6px; color: #4a4541; font-size: 12px; font-weight: 700; }
.auth-input { display: flex; align-items: center; height: 44px; padding: 0 11px; border: 1px solid #e4dfdb; border-radius: 7px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.auth-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 75, 24, .1); }
.auth-input > svg { flex: 0 0 auto; width: 17px; color: #a39b95; }
.auth-input input { min-width: 0; flex: 1; height: 100%; padding: 0 9px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.auth-input input::placeholder { color: #b6afa9; }
.auth-input > button { display: grid; place-items: center; width: 26px; height: 30px; padding: 0; border: 0; background: transparent; color: #a39b95; cursor: pointer; }
.auth-input > button:hover { color: var(--brand); }
.auth-input > button svg { width: 17px; }
.auth-error { min-height: 18px; margin: 3px 0 0; color: #d9363e; font-size: 12px; }
.auth-submit { height: 44px; margin-top: 4px; border: 0; border-radius: 7px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
.auth-submit:hover { background: var(--brand-dark); }
.auth-switch-line { margin: 12px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch-line button { padding: 0; border: 0; background: transparent; color: var(--brand); font-weight: 700; cursor: pointer; }
.auth-session { display: grid; justify-items: center; gap: 8px; padding: 18px 0 8px; }
.session-avatar { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #ffe0b9; color: var(--brand); font-family: STKaiti, KaiTi, serif; font-size: 32px; font-weight: 900; }
.auth-session strong { font-size: 18px; }
.auth-session > span { color: var(--muted); font-size: 12px; }
.auth-logout { width: 100%; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; border: 1px solid #ffd5c5; border-radius: 7px; background: #fff; color: var(--brand); font-weight: 700; cursor: pointer; }
.auth-logout:hover { background: var(--warm); }
.auth-logout svg { width: 16px; }

.merchant-dialog { width: min(650px, calc(100% - 32px)); max-height: calc(100dvh - 36px); margin: auto; padding: 0; overflow-y: auto; border: 0; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(21, 28, 54, .24); }
.merchant-dialog::backdrop { background: rgba(19, 26, 47, .48); backdrop-filter: blur(3px); }
.merchant-shell { padding: 25px 28px 27px; }
.merchant-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.merchant-header h2 { margin: 5px 0 7px; font-size: 24px; }
.merchant-header p { margin: 0; color: var(--muted); font-size: 12px; }
.merchant-eyebrow { color: var(--brand); font-size: 12px; font-weight: 800; }
.merchant-close { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.merchant-close:hover { color: var(--ink); background: var(--surface); }
.merchant-form { display: grid; gap: 13px; padding-top: 5px; }
.merchant-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.merchant-form label:not(.merchant-agreement) { display: grid; gap: 7px; margin-top: 10px; color: #4a4541; font-size: 12px; font-weight: 700; }
.merchant-form label span em { color: #dc3346; font-style: normal; }
.merchant-form label span small { color: #9b9691; font-weight: 400; }
.merchant-form input:not([type="checkbox"]), .merchant-form select, .merchant-form textarea { width: 100%; border: 1px solid #e1ddd9; border-radius: 7px; outline: 0; color: var(--ink); background: #fff; font: inherit; }
.merchant-form input:not([type="checkbox"]), .merchant-form select { height: 43px; padding: 0 11px; }
.merchant-form textarea { min-height: 78px; padding: 10px 11px; resize: vertical; line-height: 1.55; }
.merchant-form input:focus, .merchant-form select:focus, .merchant-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 84, 215, .1); }
.merchant-agreement { display: flex; align-items: flex-start; gap: 8px; color: #68645f; font-size: 12px; line-height: 1.55; }
.merchant-agreement input { width: 15px; height: 15px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--brand); }
.merchant-error { min-height: 18px; margin: -3px 0 0; color: #d9363e; font-size: 12px; }
.merchant-submit { height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 7px; color: #fff; background: var(--brand); font-weight: 800; cursor: pointer; }
.merchant-submit:hover { background: var(--brand-dark); }
.merchant-submit svg { width: 18px; }
.merchant-result { padding: 34px 0 4px; text-align: center; }
.merchant-result[hidden] { display: none; }
.merchant-result-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; color: #0d9278; background: #e8f8f2; }
.merchant-result-icon svg { width: 34px; height: 34px; }
.merchant-result h3 { margin: 18px 0 8px; font-size: 21px; }
.merchant-result > p { margin: 0; color: var(--muted); font-size: 13px; }
.merchant-result dl { margin: 24px auto 20px; padding: 4px 16px; border-radius: 7px; background: var(--surface); text-align: left; }
.merchant-result dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.merchant-result dl div:last-child { border-bottom: 0; }
.merchant-result dt { color: var(--muted); }
.merchant-result dd { margin: 0; font-weight: 700; }
.merchant-result dl div:last-child dd { color: #be7900; }
.merchant-result > button { width: 100%; height: 44px; border: 0; border-radius: 7px; color: #fff; background: var(--brand); font-weight: 700; cursor: pointer; }

.product-detail-page[hidden] { display: none; }
body.product-detail-active { background: #f5f6f8; }
body.product-detail-active > header, body.product-detail-active > main, body.product-detail-active > .floating-tools { display: none; }
.product-detail-page { min-height: 100vh; padding: 18px 0 44px; color: var(--ink); background: #f5f6f8; }
.product-detail-shell { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 0 24px 30px; background: #fff; }
.product-detail-page-bar { height: 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.product-detail-page-bar button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 0; border-radius: 5px; color: var(--brand); background: var(--warm); font-size: 12px; font-weight: 800; cursor: pointer; }
.product-detail-page-bar button:hover { background: #e2ebff; }
.product-detail-page-bar button svg { width: 17px; }
.product-detail-page-bar > span { display: inline-flex; align-items: center; gap: 5px; color: #68706c; font-size: 11px; }
.product-detail-page-bar > span svg { width: 16px; color: #0d9278; }
.product-detail-top { display: grid; grid-template-columns: minmax(390px, .95fr) minmax(440px, 1.05fr); gap: 36px; margin-top: 22px; }
.product-detail-gallery { min-width: 0; }
.product-detail-media { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: 8px; background: var(--surface); aspect-ratio: 1 / .9; }
.product-detail-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-detail-media figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 9px; border-radius: 4px; color: #fff; background: rgba(25,25,25,.76); font-size: 11px; font-weight: 700; }
.product-detail-summary { min-width: 0; padding: 4px 4px 0 0; }
.product-detail-badges { display: flex; gap: 7px; }
.product-detail-badges span { padding: 4px 7px; border-radius: 4px; color: var(--brand); background: var(--warm); font-size: 10px; font-weight: 800; }
.product-detail-brand { margin: 15px 0 5px; color: var(--brand); font-size: 12px; font-weight: 800; }
.product-detail-summary h2 { margin: 0; padding-right: 38px; font-size: 24px; line-height: 1.42; }
.product-detail-sales { display: flex; gap: 22px; margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.product-detail-sales b { color: #55504c; }
.product-detail-price { display: flex; align-items: baseline; gap: 5px; margin-top: 15px; padding: 14px 16px; color: var(--brand); background: #f2f6ff; font-size: 12px; font-weight: 800; }
.product-detail-price > em { font-style: normal; font-size: 17px; }
.product-detail-price strong { font-size: 34px; line-height: 1; }
.product-detail-price > div { display: inline-flex; align-items: baseline; gap: 7px; margin-left: 7px; color: var(--muted); font-size: 10px; font-weight: 500; }
.product-detail-price del { color: #9b9b9b; }
.product-detail-price small { padding: 3px 6px; border-radius: 3px; color: #fff; background: var(--brand); font-size: 10px; }
.product-detail-promotion { min-height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 14px; color: #6d6661; background: #fff7f3; font-size: 11px; }
.product-detail-promotion > span { color: var(--brand); font-weight: 800; }
.product-detail-promotion strong { color: #bd5a2b; font-size: 11px; }
.product-detail-options { display: grid; gap: 6px; margin-top: 13px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.product-detail-option-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 30px; font-size: 11px; }
.product-detail-option-row > span { color: #8d8985; }
.product-detail-option-row strong { justify-self: start; padding: 6px 10px; border: 1px solid var(--brand); border-radius: 5px; color: var(--brand); background: #fff; font-size: 11px; font-weight: 700; }
.product-detail-info { display: grid; gap: 0; margin: 10px 0 0; }
.product-detail-info div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; padding: 7px 0; font-size: 12px; }
.product-detail-info dt { color: #8d8985; }
.product-detail-info dd { margin: 0; color: #3e3b38; font-weight: 600; }
.product-detail-info dd small { margin-left: 8px; color: #0d9278; font-size: 10px; font-weight: 700; }
.product-detail-services { display: flex; flex-wrap: wrap; gap: 11px 18px; padding: 10px 0 2px; border-top: 1px solid var(--line); color: #66615d; font-size: 11px; }
.product-detail-services span { display: inline-flex; align-items: center; gap: 4px; }
.product-detail-services svg { width: 15px; color: var(--brand); }
.product-detail-purchase { display: grid; grid-template-columns: auto 110px minmax(150px, 1.15fr) minmax(120px, .85fr); align-items: end; gap: 9px; margin-top: 17px; }
.product-detail-quantity-label { align-self: center; color: #8d8985; font-size: 11px; }
.product-quantity { height: 44px; display: grid; grid-template-columns: 34px 42px 34px; border: 1px solid #dfe3ed; border-radius: 6px; overflow: hidden; }
.product-quantity button { display: grid; place-items: center; padding: 0; border: 0; background: #f7f8fb; cursor: pointer; }
.product-quantity button:disabled { color: #bbb; cursor: not-allowed; }
.product-quantity svg { width: 15px; }
.product-quantity input { min-width: 0; width: 100%; padding: 0; border: 0; border-inline: 1px solid #e5e8ef; outline: 0; text-align: center; font-size: 12px; appearance: textfield; }
.product-quantity input::-webkit-outer-spin-button, .product-quantity input::-webkit-inner-spin-button { margin: 0; appearance: none; }
.product-detail-add, .product-detail-buy { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 6px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.product-detail-add { border: 1px solid var(--brand); color: var(--brand); background: var(--warm); }
.product-detail-buy { border: 0; color: #fff; background: var(--brand); }
.product-detail-add:hover { background: #e2ebff; }
.product-detail-buy:hover { background: var(--brand-dark); }
.product-shop-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px; border: 1px solid #e1e7f5; border-radius: 8px; background: #fbfcff; }
.product-shop-logo { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--brand); font-family: STKaiti, KaiTi, serif; font-size: 25px; font-weight: 900; }
.product-shop-copy { min-width: 0; }
.product-shop-copy > div { display: flex; align-items: center; gap: 9px; }
.product-shop-copy h3 { min-width: 0; margin: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.product-shop-copy > div span { display: inline-flex; align-items: center; gap: 3px; color: #0d9278; font-size: 10px; white-space: nowrap; }
.product-shop-copy > div svg { width: 13px; }
.product-shop-copy p { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.product-shop-copy p b { color: var(--brand); }
.product-detail-content { margin-top: 20px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.product-detail-tabs { height: 47px; display: flex; border-bottom: 1px solid var(--line); background: #fafafa; }
.product-detail-tabs button { position: relative; min-width: 112px; padding: 0 18px; border: 0; color: #66615d; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.product-detail-tabs button.active { color: var(--brand); background: #fff; }
.product-detail-tabs button.active::after { position: absolute; right: 24px; bottom: -1px; left: 24px; height: 3px; content: ""; background: var(--brand); }
.product-detail-panel { min-height: 145px; padding: 20px; }
.product-intro-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-intro-panel > div, .product-service-panel > div { display: flex; align-items: flex-start; gap: 11px; }
.product-intro-panel > div > span { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: var(--brand); background: var(--warm); }
.product-intro-panel h3, .product-service-panel h3 { margin: 0 0 6px; font-size: 13px; }
.product-intro-panel p, .product-service-panel p { margin: 0; color: #6f6a66; font-size: 11px; line-height: 1.75; }
.product-spec-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.product-spec-panel div { display: grid; grid-template-columns: 90px 1fr; padding: 10px 12px; border-bottom: 1px solid #f0efed; font-size: 11px; }
.product-spec-panel dt { color: #8a8581; }
.product-spec-panel dd { margin: 0; font-weight: 600; }
.product-service-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-service-panel > div > svg { flex: 0 0 auto; color: var(--brand); }

.benefit-strip { margin: 16px 0 30px; padding: 15px 28px; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit-strip > div { display: flex; align-items: center; justify-content: center; gap: 12px; border-right: 1px solid var(--line); }
.benefit-strip > div:last-child { border-right: 0; }
.benefit-strip svg { width: 29px; color: var(--brand); }
.benefit-strip span, .benefit-strip strong, .benefit-strip small { display: block; }
.benefit-strip strong { font-size: 14px; }
.benefit-strip small { margin-top: 3px; color: var(--muted); font-size: 11px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 4px 0 0; font-size: 27px; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 700; }
.filter-tabs { display: flex; gap: 8px; overflow-x: auto; }
.filter-tabs button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.filter-tabs button.active { border-color: var(--brand); background: var(--warm); color: var(--brand); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid #f0eeec; border-radius: 8px; background: #fff; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1 / .88; overflow: hidden; background: var(--surface); }
.product-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.favorite-button { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.favorite-button svg { width: 18px; }
.favorite-button.active { color: #f01446; }
.favorite-button.active svg { fill: currentColor; }
.product-tag { position: absolute; left: 10px; bottom: 10px; padding: 5px 7px; border-radius: 4px; background: rgba(25,25,25,.8); color: #fff; font-size: 10px; font-weight: 700; }
.product-body { padding: 13px; }
.product-brand { margin: 0 0 5px; color: var(--brand); font-size: 11px; font-weight: 800; }
.product-title-button { width: 100%; display: block; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.product-title-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.product-title { height: 42px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.5; }
.product-meta { margin: 8px 0; color: var(--muted); font-size: 11px; }
.product-footer { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.price { color: var(--brand); font-size: 13px; font-weight: 800; }
.price b { font-size: 22px; }
.cart-button { width: 38px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: var(--brand); color: #fff; cursor: pointer; }
.cart-button:hover { background: var(--brand-dark); }
.cart-button svg { width: 17px; }
.empty-state { min-height: 260px; place-items: center; align-content: center; gap: 8px; color: var(--muted); }
.empty-state:not([hidden]) { display: grid; }
.empty-state svg { width: 34px; }
.product-load-more { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.product-load-more[hidden] { display: none; }
.product-load-more svg { width: 16px; }
.product-load-more.loading svg { animation: product-loading 1s linear infinite; color: var(--brand); }
@keyframes product-loading { to { transform: rotate(360deg); } }

.floating-tools { position: fixed; right: 18px; bottom: 52px; z-index: 20; display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.floating-tools button { position: relative; width: 54px; height: 55px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: #fff; font-size: 10px; cursor: pointer; }
.floating-tools button:last-child { border-bottom: 0; }
.floating-tools button:hover { color: var(--brand); background: var(--warm); }
.floating-tools svg { width: 19px; }
.floating-tools button:first-child span { position: absolute; top: 6px; right: 7px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 9px; line-height: 15px; }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 100; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 6px; background: rgba(25,25,25,.92); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .commerce-grid { grid-template-columns: 245px minmax(0, 1fr); }
  .account-panel { display: none; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-row { grid-template-columns: 230px 1fr auto; }
  .brand-wordmark strong { font-size: 21px; }
  .brand-wordmark small { letter-spacing: .8px; }
}

@media (max-width: 820px) {
  .page-shell { width: min(100% - 28px, 720px); }
  .sale-inner { justify-content: space-between; min-height: 52px; gap: 12px; }
  .sale-title span:last-child, .countdown { display: none; }
  .sale-title strong { font-size: 17px; }
  .sale-badge { width: 42px; height: 32px; font-size: 17px; }
  .sale-cta { padding: 7px 10px; font-size: 12px; }
  .brand-row { grid-template-columns: auto 1fr; padding-block: 18px 14px; }
  .brand-actions { position: absolute; top: 18px; right: 0; }
  .header-account-button, .merchant-entry-button { width: 38px; justify-content: center; padding: 0; }
  .header-account-button span, .merchant-entry-button span { display: none; }
  .search-form { margin-right: 94px; }
  .brand-logo { width: 60px; height: 60px; }
  .brand-wordmark { display: none; }
  .brand small, .search-submit span { display: none; }
  .search-form { height: 42px; grid-template-columns: 1fr auto; border-radius: 13px; }
  .search-form input { border-left: 0; padding-left: 13px; }
  .search-submit { width: 38px; padding: 0; justify-content: center; }
  .channel-nav { justify-content: flex-start; padding-bottom: 14px; gap: 26px; }
  .commerce-grid { grid-template-columns: 1fr; min-height: 0; }
  .category-panel { padding: 10px; overflow: hidden; }
  .category-heading { display: none; }
  .category-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .category-row { width: auto; min-width: max-content; grid-template-columns: 25px auto; gap: 6px; padding: 0 10px 0 6px; background: #fff; }
  .category-row > svg { display: none; }
  .category-icon { width: 25px; height: 25px; border: 0; box-shadow: none; }
  .category-copy { display: block; }
  .category-copy b { font-size: 12px; }
  .category-copy small { display: none; }
  .category-flyout { display: none; }
  .feature-area { grid-template-rows: 235px 116px; }
  .hero-copy { max-width: 67%; padding: 25px 0 0 24px; }
  .hero h1 { font-size: 32px; }
  .hero > img { width: 67%; }
  .hero-dots { left: 24px; bottom: 14px; }
  .mini-feature { padding-left: 15px; }
  .mini-feature div { min-width: 118px; }
  .mini-feature strong { font-size: 15px; }
  .mini-feature p { display: none; }
  .benefit-strip { grid-template-columns: repeat(2, 1fr); gap: 16px 0; padding: 15px 10px; }
  .benefit-strip > div:nth-child(2) { border-right: 0; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail-top { grid-template-columns: 1fr; gap: 22px; }
  .product-detail-media { max-height: 420px; aspect-ratio: 16 / 10; }
  .product-detail-purchase { grid-template-columns: auto 110px 1fr 1fr; }
  .product-shop-panel { grid-template-columns: auto 1fr; }
  .floating-tools { right: 10px; bottom: 18px; }
}

@media (max-width: 560px) {
  .page-shell { width: calc(100% - 20px); }
  .sale-title { gap: 8px; }
  .sale-title strong { font-size: 15px; }
  .brand-row { gap: 12px; }
  .brand { gap: 7px; }
  .brand-logo { width: 52px; height: 52px; }
  .channel-nav { font-size: 13px; }
  .feature-area { grid-template-rows: 220px 100px; }
  .hero h1 { font-size: 27px; }
  .hero p { max-width: 165px; font-size: 12px; }
  .hero > img { width: 72%; object-position: 58% center; }
  .hero::after { background: linear-gradient(90deg, rgba(209, 246, 242, 1) 0%, rgba(209, 246, 242, .96) 43%, rgba(209, 246, 242, .08) 78%); }
  .hero-copy { max-width: 80%; padding-left: 18px; }
  .hero-dots { left: 18px; }
  .mini-feature { padding-left: 11px; }
  .mini-feature div { min-width: 100px; }
  .mini-feature span { font-size: 10px; }
  .mini-feature strong { font-size: 13px; }
  .benefit-strip { margin-bottom: 24px; }
  .benefit-strip svg { width: 24px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 24px; }
  .filter-tabs { margin-top: 13px; }
  .filter-tabs button { padding: 7px 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-body { padding: 10px; }
  .product-title { height: 40px; font-size: 13px; }
  .price b { font-size: 19px; }
  .cart-button { width: 34px; height: 32px; }
  .floating-tools button:not(:first-child) { display: none; }
  .floating-tools { border-radius: 50%; overflow: visible; }
  .floating-tools button:first-child { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; }
  .merchant-shell { padding: 22px 18px 23px; }
  .merchant-form-grid { grid-template-columns: 1fr; gap: 3px; }
  .product-detail-page { padding: 0 0 24px; }
  .product-detail-shell { width: 100%; padding: 0 14px 24px; }
  .product-detail-page-bar { height: 50px; }
  .product-detail-page-bar > span { display: none; }
  .product-detail-top { grid-template-columns: 1fr; gap: 18px; }
  .product-detail-media { aspect-ratio: 4 / 3; }
  .product-detail-summary h2 { font-size: 20px; }
  .product-detail-purchase { grid-template-columns: 72px 1fr; }
  .product-detail-quantity-label { grid-column: 1; }
  .product-quantity { grid-column: 2; }
  .product-detail-add { grid-column: 1 / -1; }
  .product-detail-buy { grid-column: 1 / -1; }
  .product-shop-panel { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .product-shop-copy > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .product-detail-tabs { overflow-x: auto; }
  .product-detail-tabs button { flex: 1 0 98px; min-width: 98px; padding: 0 10px; }
  .product-intro-panel, .product-spec-panel, .product-service-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
