:root {
    --ink: #172033;
    --muted: #64748b;
    --line: #e2e8f0;
    --paper: #ffffff;
    --soft: #f4f7fb;
    --accent: #2563eb;
    --accent-dark: #0f172a;
    --radius: 9px;
    --content: 1240px;
    --shadow: 0 16px 44px rgba(15, 23, 42, .09);
    --store-primary: #17345c;
    --store-accent: #d49a52;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif; line-height: 1.6; }
body.theme-modern { --accent: #405a52; --accent-dark: #263d36; --soft: #f1f5f3; }
body.theme-warm { --accent: #bd6e43; --accent-dark: #76442c; --soft: #fff7ef; }
body.theme-minimal { --accent: #333; --accent-dark: #111; --soft: #f6f6f6; }
body.theme-default { --accent: var(--store-accent); --accent-dark: var(--store-primary); --soft: color-mix(in srgb, var(--store-primary) 5%, #fff); }
body.theme-lifestyle { --accent: #bf6f4a; --accent-dark: #603c32; --soft: #fff7f1; --radius: 18px; }
body.theme-technology { --accent: #22d3ee; --accent-dark: #071827; --soft: #ecfeff; --radius: 6px; }
body.theme-outdoors { --accent: #73945c; --accent-dark: #294434; --soft: #f2f7ed; --radius: 12px; }
body.theme-flagship { --accent: #c69745; --accent-dark: #101d35; --soft: #f8f4e9; --radius: 3px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.announcement { min-height: 34px; display: grid; place-items: center; padding: 5px 20px; color: #fff; background: var(--accent-dark); font-size: 12px; letter-spacing: .08em; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(var(--content), calc(100% - 40px)); min-height: 76px; margin: auto; display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr); align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; letter-spacing: .08em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--accent-dark); border-radius: 50%; font-family: Georgia, serif; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 30px; font-size: 14px; }
.main-nav a { position: relative; padding: 27px 0 23px; color: #4a4541; }
.main-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 19px; height: 1px; background: var(--accent); transition: .2s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { left: 0; right: 0; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.classic-search-trigger, .classic-account-link { display: inline-flex; align-items: center; color: var(--ink); background: transparent; }
.classic-search-trigger { width: min(275px, 24vw); height: 44px; justify-content: space-between; padding: 0 15px 0 19px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.classic-search-trigger span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.classic-search-trigger svg, .classic-account-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
.classic-account-link { min-height: 42px; gap: 7px; padding: 0 4px; font-size: 13px; white-space: nowrap; }
.currency-switcher select { height: 36px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); padding: 0 28px 0 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.icon-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; border-radius: 50%; }
.icon-button:hover { background: var(--soft); }
.storefront-back { position: fixed; top: 44px; left: 8px; z-index: 40; border: 1px solid var(--line); background: #fff; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; color: #fff; background: #c7473c; border: 2px solid #fff; border-radius: 20px; font-size: 12px; }
.mobile-menu-button { display: none; }
.mobile-menu-button span { width: 19px; height: 1.5px; background: currentColor; margin: 2px 0; }
.search-panel { width: min(760px, calc(100% - 40px)); margin: 0 auto 18px; }
.search-panel label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.search-panel div { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); }
.search-panel input { min-width: 0; padding: 13px 16px; border: 0; outline: 0; }
.search-panel button { padding: 0 24px; border: 0; color: #fff; background: var(--accent-dark); cursor: pointer; }

.hero { position: relative; min-height: 535px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(100deg, #b79270 0%, #cfb59d 46%, #eee4d8 100%); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--hero-image); background-size: cover; background-position: center; }
.hero:not(.has-image)::after { content: ""; position: absolute; z-index: -1; right: 9%; bottom: -80px; width: 410px; height: 510px; background: radial-gradient(circle at 45% 32%, rgba(255,255,255,.92) 0 5%, transparent 6%), linear-gradient(145deg, rgba(255,255,255,.55), rgba(104,73,52,.15)); border-radius: 48% 52% 42% 58%; transform: rotate(-9deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,21,17,.54), rgba(28,21,17,.18) 56%, transparent); }
.hero-content { width: min(var(--content), calc(100% - 40px)); margin: auto; color: #fff; }
.hero-content > * { max-width: 570px; }
.eyebrow { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.eyebrow.dark { color: var(--accent); }
.hero h1 { margin: 0 0 15px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(42px, 5vw, 67px); font-weight: 500; line-height: 1.12; letter-spacing: .02em; }
.hero p { margin: 0 0 28px; font-size: 17px; letter-spacing: .04em; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; letter-spacing: .08em; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-light { color: var(--ink); background: #fff; }
.button-dark { color: #fff; background: var(--accent-dark); }
.button-outline { width: 100%; color: var(--accent-dark); border-color: #d8cec5; background: transparent; }
.button-outline:hover { color: #fff; border-color: var(--accent-dark); background: var(--accent-dark); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.benefit-strip { width: min(var(--content), calc(100% - 40px)); margin: -38px auto 0; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--shadow); }
.benefit-strip > div { min-height: 106px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; border-right: 1px solid var(--line); }
.benefit-strip > div:last-child { border-right: 0; }
.benefit-strip > div > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--accent); border: 1px solid #d9cec4; border-radius: 50%; font-size: 18px; }
.benefit-strip p { display: flex; flex-direction: column; margin: 0; }
.benefit-strip strong { font-size: 14px; }
.benefit-strip small { color: var(--muted); font-size: 12px; }

.product-section { width: min(var(--content), calc(100% - 40px)); margin: 105px auto 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-heading h2, .about-section h2 { margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(30px, 3.5vw, 44px); font-weight: 500; }
.section-heading > a { color: var(--accent-dark); border-bottom: 1px solid currentColor; font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { min-width: 0; background: #fff; }
.product-image { position: relative; aspect-ratio: 1 / 1.05; display: grid; place-items: center; overflow: hidden; background: var(--soft); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(101,75,60,.35); background: radial-gradient(circle at 50% 40%, #fff, #eee8e1); font-family: Georgia, serif; font-size: 74px; }
.image-placeholder.large { min-height: 560px; }
.sale-badge { position: absolute; top: 12px; right: 12px; padding: 4px 9px; color: #fff; background: #c94e43; font-size: 12px; }
.product-card-body { padding: 17px 2px 0; }
.product-category { display: inline-block; margin-bottom: 4px; color: var(--accent); font-size: 12px; letter-spacing: .08em; }
.product-card h3 { min-height: 48px; margin: 0 0 8px; font-size: 15px; font-weight: 500; line-height: 1.55; }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.product-price strong { font-size: 15px; }
.product-price del { color: #aaa29b; font-size: 12px; }
.empty-state { min-height: 330px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 50px; background: var(--soft); text-align: center; }
.empty-state > span { color: var(--accent); font-size: 42px; }
.empty-state h3, .empty-state p { margin: 0; }
.empty-state p { margin-bottom: 15px; color: var(--muted); }
.about-section { max-width: 820px; margin: 0 auto 120px; padding: 0 30px; text-align: center; }
.about-section p { margin: 22px 0 0; color: var(--muted); white-space: pre-line; }

.breadcrumb { width: min(var(--content), calc(100% - 40px)); margin: 30px auto; display: flex; gap: 9px; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.product-detail { width: min(var(--content), calc(100% - 40px)); margin: 0 auto 80px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 70px; }
.product-detail > *, .gallery, .product-summary { min-width: 0; max-width: 100%; box-sizing: border-box; }
.gallery-main { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: var(--soft); }
.gallery-main > img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { min-width: 0; aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid transparent; background: var(--soft); cursor: pointer; }
.gallery-thumbs button.is-active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-summary { padding: 25px 0; }
.product-summary h1 { margin: 5px 0 8px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1.22; }
.brand-line { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.detail-price strong { font-size: 25px; font-weight: 600; }
.detail-price del { color: #a19993; }
.stock-line { width: max-content; margin-bottom: 23px; padding: 4px 10px; font-size: 12px; }
.stock-line.in-stock { color: #267449; background: #edf8f1; }
.stock-line.out-stock { color: #a13e37; background: #fff0ef; }
.sku-options { padding: 0; margin: 0 0 24px; border: 0; }
.sku-options legend { margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.sku-options label { display: inline-block; margin: 0 7px 8px 0; }
.sku-options input { position: absolute; opacity: 0; pointer-events: none; }
.sku-options span { display: inline-block; padding: 8px 15px; border: 1px solid var(--line); cursor: pointer; }
.sku-options input:checked + span { color: var(--accent-dark); border-color: var(--accent-dark); background: var(--soft); }
.purchase-row { display: grid; grid-template-columns: 115px 1fr; gap: 12px; }
.quantity-control { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--line); }
.quantity-control span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.quantity-control input { width: 100%; height: 100%; padding: 0 10px; border: 0; outline: 0; text-align: center; }
.assurance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.assurance-grid div { min-height: 86px; padding: 14px; background: var(--soft); }
.assurance-grid strong, .assurance-grid span { display: block; }
.assurance-grid strong { margin-bottom: 4px; font-size: 12px; }
.assurance-grid span { color: var(--muted); font-size: 12px; }
.description-section { width: min(var(--content), calc(100% - 40px)); margin: 0 auto 110px; border-top: 1px solid var(--line); }
.description-tabs { display: flex; justify-content: center; gap: 38px; border-bottom: 1px solid var(--line); }
.description-tabs button { position: relative; padding: 21px 0 17px; color: var(--muted); border: 0; background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.description-tabs button:hover { color: var(--ink); }
.description-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.description-tabs button.is-active { color: var(--ink); }
.description-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent-dark); }
.description-panel { max-width: 850px; min-height: 200px; margin: 38px auto 0; color: #514b46; }
.description-panel[hidden] { display: none; }
.description-copy { line-height: 1.9; white-space: pre-line; }
.specification-list { margin: 0; border-top: 1px solid var(--line); }
.specification-list > div { display: grid; grid-template-columns: 180px 1fr; min-height: 52px; border-bottom: 1px solid var(--line); }
.specification-list dt, .specification-list dd { margin: 0; padding: 15px 18px; }
.specification-list dt { color: var(--muted); background: var(--soft); font-size: 12px; }
.specification-list dd { color: var(--ink); font-size: 13px; }
.detail-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail-info-grid article { padding: 22px; background: var(--soft); }
.detail-info-grid strong { color: var(--ink); font-size: 14px; }
.detail-info-grid p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.product-faq-list { border-top: 1px solid var(--line); }
.product-faq-list details { border-bottom: 1px solid var(--line); }
.product-faq-list summary { padding: 17px 5px; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.product-faq-list p { margin: 0; padding: 0 5px 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }

.site-footer { color: #dcd7d2; background: #191a1c; }
.footer-grid { width: min(var(--content), calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr; gap: 48px; padding: 68px 0 55px; }
.footer-grid section { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-grid h2 { margin: 0 0 9px; color: #fff; font-size: 13px; letter-spacing: .08em; }
.footer-grid p, .footer-grid a, .footer-grid span { margin: 0; color: #a8a39f; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { margin-bottom: 9px; color: #fff; font-family: Georgia, serif; font-size: 25px; }
.footer-bottom { padding: 17px 20px; color: #777471; border-top: 1px solid #2c2c2e; font-size: 12px; text-align: center; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 30px; padding: 11px 18px; color: #fff; background: rgba(25,26,28,.92); border-radius: 3px; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.content-page, .narrow-page { width: min(var(--content), calc(100% - 40px)); min-height: 58vh; margin: 65px auto 110px; }
.narrow-page { max-width: 520px; }
.page-heading { margin-bottom: 38px; }
.page-heading h1, .account-card h1, .policy-page h1 { margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(34px, 4vw, 50px); font-weight: 500; }
.page-heading p, .account-card > p { color: var(--muted); }
.member-heading { display: flex; align-items: end; justify-content: space-between; }
.account-card { padding: 45px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.store-form { display: grid; gap: 18px; margin-top: 28px; }
.store-form label { display: grid; gap: 7px; font-size: 13px; }
.store-form input, .panel textarea { width: 100%; padding: 12px 13px; color: var(--ink); border: 1px solid #dcd6cf; background: #fff; outline: 0; }
.store-form input:focus, .panel textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(152,117,93,.1); }
.full-button { width: 100%; }
.form-error { margin: 0; color: #a13e37; font-size: 13px; }
.form-success { margin: 0; padding: 12px 14px; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; font-size: 13px; line-height: 1.6; }
.coupon-field { display: grid; gap: 8px; margin-bottom: 18px; font-size: 13px; }
.coupon-field > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.coupon-field input { min-width: 0; padding: 12px 13px; border: 1px solid #d8e0ea; border-radius: 8px; outline: 0; }
.coupon-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.account-switch { margin-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }
.account-switch a, .text-button { color: var(--accent-dark); text-decoration: underline; }
.danger-link { color: #b42318; border: 0; background: transparent; cursor: pointer; }
.text-button { padding: 8px 0; border: 0; background: transparent; cursor: pointer; }
.cart-layout, .checkout-layout, .order-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 38px; align-items: start; }
.line-list { display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 105px 1fr auto; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); }
.line-image { width: 105px; aspect-ratio: 1; background: var(--soft); }
.line-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h2 { margin: 0 0 5px; font-size: 15px; }
.cart-line p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.line-actions { display: grid; grid-template-columns: 70px auto; gap: 7px; }
.line-actions input { width: 70px; padding: 7px; border: 1px solid var(--line); }
.line-actions button { padding: 5px; color: var(--muted); border: 0; background: transparent; cursor: pointer; font-size: 12px; }
.summary-card, .panel { padding: 27px; border: 1px solid var(--line); background: #fff; }
.summary-card { position: sticky; top: 105px; }
.summary-card h2, .panel h2 { margin: 0 0 18px; font-size: 17px; }
.summary-card p { color: var(--muted); font-size: 13px; }
.checkout-layout > div, .order-detail-layout > div { display: grid; gap: 22px; }
.address-list { display: grid; gap: 10px; margin-bottom: 18px; }
.address-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); cursor: pointer; }
.address-card.is-selected { border-color: var(--accent-dark); background: var(--soft); }
.address-card span, .address-card small { display: block; }
.address-card small { margin-top: 4px; color: var(--muted); }
details summary { margin: 12px 0; color: var(--accent-dark); cursor: pointer; }
.compact-form { margin-top: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-row { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; font-size: 13px; }
.price-row.total { margin: 12px 0; padding: 16px 0; border-top: 1px solid var(--line); font-size: 17px; }
.payment-note { padding: 13px; color: #745e3c !important; background: #fff8e8; }
.checkout-step__title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.checkout-step__title > span, .checkout-step__number { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; color: #fff; background: var(--accent-dark); border-radius: 50%; font-size: 13px; font-weight: 800; }
.checkout-step__title h2 { margin: 1px 0 4px; }
.checkout-step__title p, .checkout-optional-summary small { margin: 0; color: var(--muted); font-size: 12px; }
.checkout-optional-summary { display: flex; align-items: center; gap: 13px; margin: 0; list-style: none; }
.checkout-optional-summary::-webkit-details-marker { display: none; }
.checkout-optional-summary > span:last-child { display: grid; gap: 3px; }
.checkout-optional-summary strong { color: var(--ink); font-size: 17px; }
.checkout-optional-body { padding-top: 22px; }
.checkout-pay-panel { scroll-margin-top: 110px; }
.checkout-method { margin-top: 14px; padding: 18px; border: 1px solid var(--line); }
.checkout-method.is-recommended { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.checkout-method__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.checkout-method__head > div { display: grid; gap: 4px; }
.checkout-method__head small, .checkout-manual-payment > summary small { color: var(--muted); font-size: 12px; }
.checkout-method__head > span { padding: 4px 9px; color: #166534; background: #dcfce7; border-radius: 999px; font-size: 11px; font-weight: 800; }
.checkout-manual-payment > summary { display: grid; gap: 4px; margin: 0; }
.checkout-manual-payment[open] > summary { margin-bottom: 17px; }
.paypal-button-slot { max-width: 100%; min-height: 44px; overflow: hidden; }
.paypal-button-slot + .paypal-button-slot { margin-top: 8px; }
.checkout-main-error { margin-top: 14px; }
.checkout-summary-items { display: grid; gap: 10px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.checkout-summary-items > div { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
.checkout-summary-items span { min-width: 0; overflow-wrap: anywhere; }
.checkout-summary-items strong { flex: 0 0 auto; color: var(--ink); }
.checkout-trust-note { padding: 13px; color: #166534 !important; background: #f0fdf4; }
.checkout-payment-link { text-align: center; }
.order-list { display: grid; gap: 13px; }
.order-card { display: flex; justify-content: space-between; gap: 20px; padding: 22px 25px; border: 1px solid var(--line); transition: .2s; }
.order-card > * { min-width: 0; }
.order-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.order-card.is-unread { border-left: 4px solid var(--accent); background: var(--soft); }
.order-card small, .order-card p { margin: 0; color: var(--muted); font-size: 12px; }
.order-card h2 { margin: 4px 0; font-size: 16px; overflow-wrap: anywhere; }
.order-card-right { display: flex; flex-direction: column; align-items: end; justify-content: space-between; }
.status-badge { padding: 4px 9px; color: var(--accent-dark); background: var(--soft); font-size: 12px; }
.order-status { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.order-status div { padding: 14px; background: var(--soft); }
.order-status small, .order-status strong { display: block; }
.order-items { display: grid; }
.order-items > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.shipping-detail p { display: grid; grid-template-columns: 110px 1fr; gap: 15px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.shipping-detail strong { font-size: 13px; }
.shipping-detail span { color: var(--muted); overflow-wrap: anywhere; }
.bank-instructions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 15px; background: var(--soft); }
.bank-instructions div { min-width: 0; }
.bank-instructions small, .bank-instructions strong { display: block; }
.bank-instructions small { color: var(--muted); }
.bank-instructions strong { overflow-wrap: anywhere; }
.bank-instructions p { grid-column: 1 / -1; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); white-space: pre-line; }
.order-timeline { margin: 0; padding: 0; list-style: none; }
.order-timeline li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; min-height: 56px; }
.order-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 13px; bottom: -5px; width: 1px; background: var(--line); }
.order-timeline li > span { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 6px; background: var(--accent); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--accent); }
.order-timeline strong, .order-timeline small { display: block; }
.order-timeline small { margin-top: 2px; color: var(--muted); }
.policy-page { max-width: 880px; }
.policy-content { margin-top: 35px; color: #514b46; line-height: 2; white-space: pre-line; }
.guest-checkout { margin-top: 25px; text-align: right; }
.guest-checkout p { color: var(--muted); font-size: 12px; }
.checkout-form { display: grid; gap: 18px; max-width: 760px; padding: 28px; border: 1px solid var(--line); background: #fff; }
.checkout-form label { display: grid; gap: 8px; font-size: 13px; }
.checkout-form input, .checkout-form select, .checkout-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #dcd6cf; background: #fff; font: inherit; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; color: #fff; border: 0; background: var(--ink); cursor: pointer; }
.notice-box { display: flex; justify-content: space-between; gap: 20px; padding: 14px; color: #745e3c; background: #fff8e8; }
.support-thread { display: grid; gap: 14px; max-width: 850px; margin-bottom: 28px; }
.support-message { max-width: 78%; padding: 16px 19px; border: 1px solid var(--line); background: #fff; }
.support-message.is-member { justify-self: end; background: var(--soft); }
.support-message small { color: var(--muted); }
.support-message p { margin: 8px 0 0; line-height: 1.75; white-space: pre-line; }
.footer-support { padding: 12px 20px; color: #a8a39f; text-align: center; }
.footer-support a { color: #a8a39f; font-size: 12px; }
.faq-page { max-width: 1080px; }
.faq-intro { max-width: 720px; color: var(--muted); line-height: 1.8; white-space: pre-line; }
.faq-search { display: grid; gap: 8px; max-width: 620px; margin: 30px 0 40px; color: var(--muted); font-size: 12px; }
.faq-search input { width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: #fff; font: inherit; }
.faq-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; align-items: start; }
.faq-group h2 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 18px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 17px 32px 17px 0; cursor: pointer; list-style: none; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 15px; right: 4px; content: '+'; color: var(--muted); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: -3px 0 18px; color: var(--muted); line-height: 1.8; }
.faq-empty { margin-top: 35px; text-align: center; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: 50px 1fr auto; gap: 8px; min-height: 66px; }
    .mobile-menu-button { display: grid; }
    .brand { justify-self: center; }
    .brand strong { font-size: 14px; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 12px 20px 20px; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.is-open { display: grid; }
    .main-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
    .main-nav a::after { display: none; }
    .header-actions .icon-button:first-child { display: none; }
    .classic-search-trigger { width: 42px; height: 42px; justify-content: center; padding: 0; border: 0; }
    .classic-search-trigger span, .classic-account-link span, .currency-switcher { display: none; }
    .classic-account-link { width: 42px; justify-content: center; padding: 0; }
    .hero { min-height: 500px; }
    .benefit-strip { grid-template-columns: repeat(2, 1fr); }
    .benefit-strip > div:nth-child(2) { border-right: 0; }
    .benefit-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail { grid-template-columns: 100%; gap: 25px; }
    .gallery { width: 100%; max-width: 720px; margin: auto; }
    .product-summary { padding-top: 0; }
    .cart-layout, .checkout-layout, .order-detail-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
}

@media (max-width: 600px) {
    .announcement { font-size: 12px; }
    .header-inner { width: calc(100% - 20px); }
    .brand img, .brand-mark { width: 32px; height: 32px; }
    .header-actions { gap: 0; }
    .icon-button { width: 38px; height: 38px; }
    .header-actions .icon-button:nth-child(2) { display: none; }
    .classic-account-link { display: none; }
    .hero { min-height: 455px; align-items: end; padding-bottom: 52px; background-position: 65% center; }
    .hero-overlay { background: linear-gradient(0deg, rgba(24,18,14,.78), rgba(24,18,14,.1) 85%); }
    .hero-content { width: calc(100% - 34px); }
    .hero-content > * { max-width: 410px; }
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 14px; }
    .benefit-strip { width: calc(100% - 24px); margin-top: -25px; }
    .benefit-strip > div { min-height: 84px; justify-content: flex-start; padding: 12px; }
    .benefit-strip > div > span { width: 30px; height: 30px; flex: 0 0 30px; font-size: 14px; }
    .benefit-strip small { display: none; }
    .product-section { width: calc(100% - 28px); margin: 72px auto 80px; }
    .section-heading { margin-bottom: 22px; }
    .product-grid { gap: 20px 12px; }
    .product-card-body { padding-top: 11px; }
    .product-card h3 { min-height: 43px; margin-bottom: 4px; font-size: 13px; }
    .product-price { display: block; margin-bottom: 10px; }
    .product-price del { margin-left: 5px; }
    .button-outline { min-height: 38px; padding: 8px; font-size: 12px; }
    .breadcrumb { width: calc(100% - 28px); margin: 18px auto; }
    .product-detail { width: 100%; display: block; margin-bottom: 50px; }
    .product-detail .gallery { margin-bottom: 25px; }
    .gallery-thumbs { padding: 0 14px; }
    .product-summary { padding: 0 18px; }
    .product-summary h1 { font-size: 32px; }
    .purchase-row { grid-template-columns: 90px 1fr; }
    .assurance-grid { grid-template-columns: 1fr; }
    .assurance-grid div { min-height: auto; }
    .description-section { width: calc(100% - 36px); margin-bottom: 80px; }
    .description-tabs { justify-content: flex-start; gap: 25px; overflow-x: auto; white-space: nowrap; }
    .description-panel { min-height: 160px; margin-top: 25px; }
    .specification-list > div { grid-template-columns: 110px 1fr; }
    .specification-list dt, .specification-list dd { padding: 13px 11px; }
    .detail-info-grid { grid-template-columns: 1fr; gap: 10px; }
    .footer-grid { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 30px; padding: 45px 0; }
    .content-page, .narrow-page { width: calc(100% - 28px); margin: 38px auto 75px; }
    .account-card { padding: 28px 20px; }
    .cart-line { grid-template-columns: 78px 1fr; gap: 12px; padding: 12px; }
    .line-image { width: 78px; }
    .line-actions { grid-column: 1 / -1; grid-template-columns: 70px auto auto; }
    .form-grid { grid-template-columns: 1fr; }
    .summary-card, .panel { padding: 20px; }
    .order-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 17px; }
    .order-card-right { max-width: 96px; align-items: end; text-align: right; }
    .order-card-right .text-button, .order-card-right a { line-height: 1.5; white-space: nowrap; }
    .bank-instructions { grid-template-columns: 1fr; }
    .bank-instructions p { grid-column: auto; }
    .faq-groups { grid-template-columns: 1fr; gap: 28px; }
}

/* Default theme storefront — coordinated with merchant decoration */
.theme-default { background: #fff; }
.theme-default .announcement { background: var(--store-primary); }
.theme-default .site-header { background: rgba(255,255,255,.92); box-shadow: 0 10px 35px rgba(19,39,68,.04); }
.theme-default .brand-mark { background: linear-gradient(145deg, var(--store-accent), var(--store-primary)); }
.theme-default .main-nav a::after { background: var(--store-accent); }

.theme-default .hero { min-height: 650px; padding: 62px 0 84px; background: linear-gradient(120deg, color-mix(in srgb, var(--store-primary) 92%, #111) 0%, var(--store-primary) 54%, color-mix(in srgb, var(--store-primary) 45%, #dce8f4) 100%); }
.theme-default .hero::before { opacity: 0; }
.theme-default .hero-overlay { background: radial-gradient(circle at 75% 18%, rgba(255,255,255,.14), transparent 34%), linear-gradient(120deg, rgba(7,15,28,.12), transparent 70%); }
.hero-shell { width: min(var(--content), calc(100% - 48px)); margin: auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr); gap: clamp(45px, 7vw, 100px); align-items: center; }
.theme-default .hero-content { width: auto; margin: 0; color: #fff; }
.theme-default .hero-content > * { max-width: 610px; }
.theme-default .hero-content .eyebrow { color: color-mix(in srgb, var(--store-accent) 74%, #fff); }
.theme-default .hero h1 { font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(48px, 5vw, 72px); font-weight: 500; letter-spacing: -.035em; }
.theme-default .hero p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.hero-text-link { padding: 8px 0; color: rgba(255,255,255,.82); border-bottom: 1px solid rgba(255,255,255,.35); font-size: 13px; transition: .2s; }
.hero-text-link:hover { color: #fff; border-color: #fff; }
.hero-art { position: relative; min-height: 480px; padding: 0 34px 34px 0; }
.hero-art::before { content: ""; position: absolute; inset: -24px 0 56px 58px; border: 1px solid rgba(255,255,255,.24); border-radius: 220px 220px 16px 16px; }
.hero-art img, .hero-art-placeholder { position: relative; width: 100%; height: 480px; object-fit: cover; border-radius: 220px 220px 12px 12px; box-shadow: 0 35px 70px rgba(4,12,26,.28); }
.hero-art-placeholder { display: grid; place-items: center; color: rgba(255,255,255,.38); background: linear-gradient(145deg, color-mix(in srgb, var(--store-accent) 72%, #fff), color-mix(in srgb, var(--store-primary) 84%, #000)); font-family: Georgia, serif; font-size: 170px; }
.hero-art-note { position: absolute; right: 0; bottom: 0; padding: 13px 18px; color: var(--store-primary); background: #fff; box-shadow: 0 15px 30px rgba(4,12,26,.18); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.hero-centered .hero-shell { grid-template-columns: 1fr; text-align: center; }
.hero-centered.has-image::before { opacity: 1; }
.hero-centered .hero-overlay { background: linear-gradient(rgba(7,15,28,.58), rgba(7,15,28,.66)); }
.hero-centered .hero-content { justify-self: center; }
.hero-centered .hero-content > * { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }

.theme-default .benefit-strip { margin-top: -48px; border: 0; border-radius: 16px; box-shadow: 0 24px 65px rgba(20,42,73,.13); }
.theme-default .benefit-strip > div { min-height: 112px; }
.theme-default .benefit-strip > div > span { color: var(--store-primary); border: 0; background: color-mix(in srgb, var(--store-accent) 16%, #fff); }
.theme-default .product-section { margin-top: 112px; }
.section-heading p { max-width: 590px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.theme-default .section-heading h2, .theme-default .about-section h2 { color: var(--store-primary); font-family: Georgia, "Noto Serif TC", serif; font-weight: 500; }
.theme-default .product-card { border: 0; border-radius: 16px; box-shadow: 0 12px 40px rgba(20,42,73,.08); }
.theme-default .product-card:hover { box-shadow: 0 24px 55px rgba(20,42,73,.16); }
.theme-default .product-image { aspect-ratio: 1 / 1.08; }
.product-view { position: absolute; left: 18px; right: 18px; bottom: 16px; padding: 10px; color: #fff; background: rgba(14,30,53,.82); border-radius: 8px; opacity: 0; transform: translateY(8px); text-align: center; font-size: 12px; transition: .25s; backdrop-filter: blur(8px); }
.product-card:hover .product-view { opacity: 1; transform: translateY(0); }
.theme-default .button-dark { background: var(--store-primary); }
.theme-default .button-outline { color: var(--store-primary); border-color: color-mix(in srgb, var(--store-primary) 20%, #fff); }
.theme-default .button-outline:hover { color: #fff; border-color: var(--store-primary); background: var(--store-primary); }

.theme-default .about-section { width: min(var(--content), calc(100% - 48px)); max-width: none; display: grid; grid-template-columns: minmax(330px, .86fr) minmax(0, 1.14fr); gap: clamp(45px, 8vw, 110px); align-items: center; margin: 30px auto 130px; padding: 0; text-align: left; }
.about-visual { position: relative; min-height: 465px; display: grid; place-items: center; overflow: hidden; color: color-mix(in srgb, var(--store-primary) 28%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--store-accent) 16%, #fff), color-mix(in srgb, var(--store-primary) 12%, #fff)); border-radius: 12px 160px 12px 12px; font-family: Georgia, serif; font-size: 150px; }
.about-visual::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.7); border-radius: 7px 140px 7px 7px; pointer-events: none; }
.about-visual img { width: 100%; height: 465px; object-fit: cover; }
.about-visual small { position: absolute; left: 34px; bottom: 27px; color: var(--store-primary); font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.about-copy p { margin: 22px 0; color: var(--muted); line-height: 2; white-space: pre-line; }
.about-copy > a { color: var(--store-primary); border-bottom: 1px solid color-mix(in srgb, var(--store-primary) 35%, transparent); font-size: 13px; font-weight: 700; }
.contact-section { width: min(var(--content), calc(100% - 48px)); min-height: 260px; margin: 0 auto 120px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 55px clamp(34px, 6vw, 80px); color: #fff; background: linear-gradient(120deg, var(--store-primary), color-mix(in srgb, var(--store-primary) 72%, #7185a0)); border-radius: 18px; box-shadow: 0 28px 70px rgba(20,42,73,.18); }
.contact-section h2 { max-width: 720px; margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(30px, 4vw, 47px); font-weight: 500; line-height: 1.25; }
.contact-section p { max-width: 650px; margin: 14px 0 0; color: rgba(255,255,255,.72); }
.contact-section .button { flex: 0 0 auto; }
.theme-default .site-footer { background: color-mix(in srgb, var(--store-primary) 78%, #050b13); }

@media (max-width: 980px) {
    .hero-shell { grid-template-columns: 1fr 360px; gap: 35px; }
    .hero-art, .hero-art img, .hero-art-placeholder { min-height: 400px; height: 400px; }
    .theme-default .about-section { grid-template-columns: 1fr 1fr; gap: 45px; }
}

@media (max-width: 720px) {
    .theme-default .hero { min-height: auto; padding: 70px 0 78px; }
    .hero-shell { width: calc(100% - 34px); grid-template-columns: 1fr; }
    .hero-art { order: -1; min-height: 310px; height: 310px; padding: 0 20px 20px 35px; }
    .hero-art img, .hero-art-placeholder { min-height: 290px; height: 290px; border-radius: 150px 150px 10px 10px; }
    .hero-art-placeholder { font-size: 105px; }
    .theme-default .hero h1 { font-size: 39px; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
    .theme-default .about-section { width: calc(100% - 30px); grid-template-columns: 1fr; gap: 30px; margin-bottom: 80px; }
    .about-visual, .about-visual img { min-height: 340px; height: 340px; }
    .contact-section { width: calc(100% - 30px); align-items: flex-start; flex-direction: column; margin-bottom: 80px; padding: 38px 27px; }
    .product-view { display: none; }
}

/* Enterprise retail refinement */
.announcement { min-height: 32px; background: var(--accent-dark); font-weight: 650; letter-spacing: .06em; }
.site-header { box-shadow: 0 1px 0 rgba(15,23,42,.02); }
.header-inner { min-height: 78px; }
.brand { font-weight: 760; letter-spacing: .03em; }
.brand-mark { background: linear-gradient(145deg, var(--accent), var(--accent-dark)); border-radius: 10px; font-family: inherit; font-weight: 850; box-shadow: 0 6px 16px rgba(15,23,42,.15); }
.main-nav { color: #475569; font-size: 13px; font-weight: 600; }
.main-nav a { padding: 28px 0 24px; }
.main-nav a::after { height: 2px; background: var(--accent); }
.icon-button { color: #334155; }
.search-panel div { overflow: hidden; border-color: var(--line); border-radius: 9px; box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.hero { min-height: 560px; background: linear-gradient(110deg, #20314e 0%, #5f7ba7 48%, #dce6f4 100%); }
.hero-overlay { background: linear-gradient(90deg, rgba(8,15,28,.7), rgba(15,23,42,.26) 60%, rgba(15,23,42,.06)); }
.hero-content .eyebrow { color: #bfdbfe; font-weight: 800; }
.hero h1 { max-width: 660px; font-family: Inter, "Noto Serif TC", serif; font-weight: 750; letter-spacing: -.025em; }
.hero p { max-width: 560px; color: #e2e8f0; }
.button { border-radius: var(--radius); font-weight: 700; letter-spacing: .03em; }
.button-light { color: var(--accent-dark); box-shadow: 0 9px 28px rgba(15,23,42,.15); }
.button-dark { background: linear-gradient(135deg, var(--accent), #1d4ed8); }
.button-outline { border-color: #cbd5e1; }
.benefit-strip { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.benefit-strip > div > span { color: var(--accent); border-color: #bfdbfe; background: #eff6ff; }
.product-section { margin-top: 100px; }
.section-heading h2, .about-section h2 { color: var(--accent-dark); font-family: Inter, "Noto Serif TC", serif; font-weight: 750; letter-spacing: -.02em; }
.eyebrow.dark { color: var(--accent); font-weight: 800; }
.product-grid { gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(15,23,42,.045); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.product-card:hover { border-color: #bfdbfe; box-shadow: 0 18px 42px rgba(37,99,235,.1); transform: translateY(-4px); }
.product-image { aspect-ratio: 1 / 1; }
.product-card-body { padding: 17px 17px 18px; }
.product-category { color: var(--accent); font-weight: 700; }
.product-card h3 { color: #26354b; font-weight: 650; }
.product-price strong { color: var(--accent-dark); font-size: 16px; }
.sale-badge { top: 12px; right: 12px; border-radius: 999px; background: #dc2626; font-weight: 750; }
.image-placeholder { color: #93a5bf; background: radial-gradient(circle at 50% 40%, #fff, #e9eff7); }
.empty-state { border: 1px dashed #cbd5e1; border-radius: 12px; }
.account-card, .summary-card, .panel, .cart-line, .order-card { border-color: var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(15,23,42,.045); }
.account-card { background: #fff; }
.store-form input, .panel textarea, .line-actions input { border-color: #d8e0ea; border-radius: 8px; }
.store-form input:focus, .panel textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.address-card { border-color: var(--line); border-radius: 9px; }
.address-card.is-selected { border-color: var(--accent); background: #eff6ff; }
.summary-card { border-top: 3px solid var(--accent); }
.payment-note { color: #854d0e !important; background: #fffbeb; border-radius: 8px; }
.order-card:hover { border-color: #bfdbfe; box-shadow: 0 14px 34px rgba(37,99,235,.08); }
.status-badge, .stock-line { border-radius: 999px; font-weight: 700; }
.order-status div, .assurance-grid div, .bank-instructions { border-radius: 9px; }
.site-footer { background: #0b1220; }
.footer-bottom { border-color: #1e293b; }

@media (max-width: 600px) {
    .hero { min-height: 480px; }
    .benefit-strip { border-radius: 10px; }
    .product-card-body { padding: 12px; }
    .product-card { border-radius: 9px; }
    .account-card, .summary-card, .panel, .cart-line, .order-card { border-radius: 10px; }
}

/* Rich home content */
.category-section { width: min(var(--content),calc(100% - 48px)); margin: 115px auto 125px; }
.category-heading .section-index { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.category-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.category-card { min-width: 0; }
.category-image { position: relative; aspect-ratio: 1.22/1; display: grid; place-items: center; overflow: hidden; color: color-mix(in srgb,var(--store-primary) 32%,transparent); background: linear-gradient(145deg,color-mix(in srgb,var(--store-accent) 13%,#fff),color-mix(in srgb,var(--store-primary) 9%,#fff)); border-radius: 14px; font-family: Georgia,serif; font-size: 70px; }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-card:hover img { transform: scale(1.045); }
.category-image b { position: absolute; top: 13px; left: 14px; color: var(--store-primary); font: 800 9px/1 Inter,sans-serif; letter-spacing: .12em; }
.category-card > div:last-child { position: relative; display: grid; gap: 2px; padding: 14px 34px 0 2px; }
.category-card strong { color: var(--store-primary); font-size: 14px; }
.category-card small { color: var(--muted); font-size: 12px; }
.category-card > div:last-child > span { position: absolute; top: 18px; right: 3px; color: var(--store-accent); }
.collection-section { width: min(var(--content),calc(100% - 48px)); min-height: 520px; margin: 0 auto 125px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; color: #fff; background: var(--store-primary); border-radius: 18px; box-shadow: 0 30px 75px rgba(20,42,73,.18); }
.collection-image { min-height: 520px; background: linear-gradient(145deg,color-mix(in srgb,var(--store-accent) 72%,#fff),var(--store-primary)); background-image: var(--collection-image),linear-gradient(145deg,color-mix(in srgb,var(--store-accent) 72%,#fff),var(--store-primary)); background-size: cover; background-position: center; }
.collection-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(45px,7vw,90px); }
.collection-copy .eyebrow { color: color-mix(in srgb,var(--store-accent) 72%,#fff); }
.collection-copy h2 { margin: 0; font-family: Georgia,"Noto Serif TC",serif; font-size: clamp(36px,4.5vw,58px); font-weight: 500; line-height: 1.18; }
.collection-copy p { margin: 20px 0 30px; color: rgba(255,255,255,.7); line-height: 1.9; }
.hot-products-section, .new-products-section, .sale-products-section { margin-top: 0; }
.sale-products-section { padding: 65px 34px; background: color-mix(in srgb,var(--store-accent) 8%,#fff); border-radius: 18px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2,1fr); } .collection-section { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .category-section { width: calc(100% - 28px); margin: 75px auto 85px; } .category-grid { gap: 22px 12px; } .category-image { border-radius: 9px; font-size: 46px; } .collection-section { width: calc(100% - 28px); min-height: auto; grid-template-columns: 1fr; margin-bottom: 80px; border-radius: 12px; } .collection-image { min-height: 300px; } .collection-copy { padding: 38px 26px 44px; } .sale-products-section { width: calc(100% - 20px); padding: 48px 10px; } }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 2px; }
.product-tags span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); background: var(--soft); font-size: 12px; font-weight: 700; line-height: 1.2; }
.detail-tags { margin: 10px 0 2px; }
/* Customer service and policy center */
.service-page { width: min(var(--content), calc(100% - 48px)); margin: 46px auto 110px; }
.service-hero { position: relative; min-height: 250px; display: flex; align-items: center; gap: 34px; overflow: hidden; padding: 48px 58px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, var(--soft) 0%, var(--paper) 72%); box-shadow: 0 24px 65px rgba(15, 23, 42, .07); }
.service-hero::after { position: absolute; right: -70px; bottom: -115px; width: 290px; height: 290px; border: 56px solid color-mix(in srgb, var(--store-accent) 12%, transparent); border-radius: 50%; content: ""; }
.service-hero-index { position: relative; z-index: 1; flex: 0 0 auto; color: color-mix(in srgb, var(--store-accent) 72%, var(--store-primary)); font: 300 clamp(58px, 7vw, 92px)/1 Georgia, serif; letter-spacing: -.06em; }
.service-hero > div:last-child { position: relative; z-index: 1; max-width: 720px; }
.service-hero h1 { margin: 8px 0 12px; color: var(--store-primary); font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(38px, 4.6vw, 62px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
.service-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.service-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
.service-sidebar { position: sticky; top: 110px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 14px 38px rgba(15, 23, 42, .06); }
.service-sidebar-title { display: grid; gap: 3px; padding: 24px 22px 18px; border-bottom: 1px solid var(--line); }
.service-sidebar-title span, .service-contact-card > span, .service-section-heading > span, .service-help-row > div > span { color: var(--store-accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.service-sidebar-title strong { color: var(--store-primary); font-size: 18px; }
.service-sidebar nav { display: grid; padding: 8px; }
.service-sidebar nav a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 10px; color: var(--muted); text-decoration: none; transition: .2s ease; }
.service-sidebar nav a:hover { color: var(--store-primary); background: var(--soft); transform: translateX(2px); }
.service-sidebar nav a.is-active { color: #fff; background: var(--store-primary); box-shadow: 0 9px 22px color-mix(in srgb, var(--store-primary) 22%, transparent); }
.service-sidebar nav small { opacity: .55; font-size: 12px; letter-spacing: .08em; }
.service-contact-card { display: grid; gap: 7px; margin: 8px; padding: 20px; color: #fff; background: linear-gradient(145deg, var(--store-primary), var(--accent-dark)); border-radius: 12px; }
.service-contact-card > span { color: color-mix(in srgb, var(--store-accent) 82%, #fff); }
.service-contact-card strong { font-size: 18px; }
.service-contact-card p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 12px; line-height: 1.7; }
.service-contact-card a { width: max-content; margin-top: 5px; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .6); color: #fff; font-size: 12px; text-decoration: none; }
.service-main { min-width: 0; display: grid; gap: 22px; }
.service-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-points > div { position: relative; min-height: 165px; overflow: hidden; padding: 25px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 11px 28px rgba(15, 23, 42, .045); }
.service-points > div::after { position: absolute; right: -12px; bottom: -30px; color: color-mix(in srgb, var(--store-primary) 5%, transparent); content: attr(data-step); font: 700 90px/1 Inter, sans-serif; }
.service-points span { display: block; margin-bottom: 16px; color: var(--store-accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.service-points strong { display: block; color: var(--store-primary); font-size: 16px; }
.service-points p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.service-content-card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 18px 45px rgba(15, 23, 42, .055); }
.service-section-heading { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.service-section-heading h2 { margin: 6px 0 0; color: var(--store-primary); font-family: Georgia, "Noto Serif TC", serif; font-size: 28px; font-weight: 500; }
.service-section-heading p { margin: 10px 0 0; color: var(--muted); line-height: 1.75; white-space: pre-line; }
.service-content-card .policy-content { margin: 0; color: var(--ink); font-size: 14px; line-height: 2.15; white-space: pre-line; }
.service-help-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.service-help-row strong { display: block; margin-top: 5px; color: var(--store-primary); font-size: 20px; }
.service-help-row p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.service-help-row > div:last-child { display: flex; gap: 10px; flex: 0 0 auto; }
.service-help-row .button { min-height: 43px; }
.faq-content-card .faq-search { max-width: none; margin: 0 0 38px; }
.faq-content-card .faq-search input { min-height: 52px; border-radius: 10px; background: var(--soft); }
.faq-content-card .faq-groups { gap: 26px 38px; }
.faq-content-card .faq-group { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.faq-content-card .faq-group h2 { color: var(--store-primary); border-color: var(--store-accent); }
@media (max-width: 900px) {
    .service-page { width: min(100% - 32px, var(--content)); }
    .service-layout { grid-template-columns: 1fr; }
    .service-sidebar { position: static; }
    .service-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .service-sidebar nav a { min-width: 0; }
    .service-contact-card { display: none; }
    .service-points { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .service-page { width: calc(100% - 24px); margin: 20px auto 70px; }
    .service-hero { min-height: auto; gap: 15px; padding: 30px 22px; border-radius: 16px; }
    .service-hero-index { font-size: 46px; }
    .service-hero h1 { font-size: 34px; }
    .service-hero p { font-size: 13px; }
    .service-layout { margin-top: 16px; gap: 16px; }
    .service-sidebar-title { padding: 18px; }
    .service-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-sidebar nav a { min-height: 42px; padding: 0 10px; font-size: 12px; }
    .service-content-card { padding: 24px 18px; border-radius: 14px; }
    .service-help-row { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
    .service-help-row > div:last-child { width: 100%; }
    .service-help-row .button { flex: 1; padding-inline: 10px; }
    .faq-content-card .faq-groups { grid-template-columns: 1fr; }
    .faq-content-card .faq-group { padding: 17px; }
}
/* Premium product detail */
.product-detail { align-items: start; gap: clamp(38px, 5vw, 76px); }
.gallery { position: sticky; top: 105px; }
.gallery-main { position: relative; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, var(--soft), #fff); box-shadow: 0 24px 65px rgba(15, 23, 42, .08); }
.gallery-main > img { transition: transform .5s ease; }
.gallery-main:hover > img { transform: scale(1.025); }
.gallery-label { position: absolute; z-index: 1; top: 18px; left: 18px; padding: 7px 10px; color: var(--store-primary); background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .65); border-radius: 999px; backdrop-filter: blur(8px); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.gallery-thumbs { margin-top: 13px; }
.gallery-thumbs button { overflow: hidden; border-radius: 10px; background: var(--soft); }
.product-summary { padding: clamp(26px, 3vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 22px 65px rgba(15, 23, 42, .075); }
.product-kicker { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.product-kicker span { color: var(--store-accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.product-kicker small { overflow: hidden; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.product-summary h1 { color: var(--store-primary); font-size: clamp(34px, 3.2vw, 49px); letter-spacing: -.035em; }
.detail-price { margin-top: 23px; padding: 20px 0 10px; border-top: 1px solid var(--line); }
.detail-price strong { color: var(--store-primary); font-size: clamp(27px, 2.4vw, 36px); }
.product-summary-note { margin: 0 0 17px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.stock-line { width: max-content; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.stock-line.in-stock { color: #18794e; background: #e9f8f0; }
.stock-line.out-stock { color: #b42318; background: #fff0ee; }
.sku-options { margin-top: 23px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.sku-options legend { padding: 0 8px; color: var(--store-primary); font-size: 12px; font-weight: 800; }
.sku-options label span { border-radius: 9px; }
.purchase-row { margin-top: 24px; }
.quantity-control { overflow: hidden; border-radius: 10px; }
.purchase-row .button { min-height: 54px; border-radius: 10px; box-shadow: 0 12px 28px color-mix(in srgb, var(--store-primary) 20%, transparent); }
.purchase-service-line { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.assurance-grid { margin-top: 24px; }
.assurance-grid div { min-height: 96px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.assurance-grid strong { color: var(--store-primary); }
.description-section { padding-top: 70px; border-top: 0; }
.description-heading { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.description-heading > span { color: var(--store-accent); font-size: 12px; font-weight: 800; letter-spacing: .19em; }
.description-heading h2 { margin: 9px 0 8px; color: var(--store-primary); font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(30px, 3.5vw, 44px); font-weight: 500; letter-spacing: -.025em; }
.description-heading p { margin: 0; color: var(--muted); }
.description-tabs { position: sticky; z-index: 4; top: 72px; padding: 0 20px; border: 1px solid var(--line); border-radius: 13px 13px 0 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); }
.description-panel { min-height: 260px; padding: clamp(30px, 5vw, 65px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; background: var(--paper); box-shadow: 0 20px 55px rgba(15, 23, 42, .055); }
.rich-product-content { max-width: 920px; margin: 0 auto; color: var(--ink); font-size: 15px; line-height: 1.9; white-space: normal; }
.rich-product-content > :first-child { margin-top: 0; }
.rich-product-content > :last-child { margin-bottom: 0; }
.rich-product-content h2 { margin: 48px 0 16px; color: var(--store-primary); font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(27px, 3vw, 38px); font-weight: 500; line-height: 1.25; }
.rich-product-content h3 { margin: 34px 0 12px; color: var(--store-primary); font-size: 21px; }
.rich-product-content p { margin: 0 0 20px; }
.rich-product-content ul, .rich-product-content ol { padding-left: 24px; }
.rich-product-content li { margin: 7px 0; }
.rich-product-content blockquote { margin: 28px 0; padding: 18px 24px; color: var(--muted); border-left: 3px solid var(--store-accent); background: var(--soft); }
.rich-product-content figure { margin: 36px 0; }
.rich-product-content img { width: auto; max-width: 100%; height: auto; display: block; margin: 28px auto; border-radius: 14px; box-shadow: 0 18px 48px rgba(15, 23, 42, .1); }
.rich-product-content figcaption { margin-top: -18px; color: var(--muted); font-size: 12px; text-align: center; }
.rich-product-content a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rich-product-content table { width: 100%; margin: 28px 0; border-collapse: collapse; }
.rich-product-content th, .rich-product-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.rich-product-content th { color: var(--store-primary); background: var(--soft); }
@media (max-width: 900px) {
    .gallery { position: static; }
    .product-summary { padding: 28px; }
    .description-tabs { top: 0; }
}
@media (max-width: 600px) {
    .gallery-main { border-radius: 0; border-inline: 0; }
    .product-summary { width: auto; max-width: none; margin: 0 12px; padding: 24px 18px; border-radius: 15px; }
    .product-kicker > * { min-width: 0; }
    .purchase-row, .assurance-grid, .purchase-service-line { min-width: 0; }
    .purchase-service-line { display: grid; grid-template-columns: 1fr 1fr; }
    .description-section { padding-top: 35px; }
    .description-heading { padding: 0 14px; margin-bottom: 25px; }
    .description-tabs { width: 100%; padding: 0 12px; border-radius: 10px 10px 0 0; }
    .description-panel { padding: 28px 18px; }
    .rich-product-content { font-size: 14px; }
    .rich-product-content h2 { margin-top: 36px; }
    .rich-product-content img { margin: 22px auto; border-radius: 9px; }
}
.gallery-main.is-empty { aspect-ratio: 4 / 3; min-height: 420px; background: radial-gradient(circle at 72% 22%, color-mix(in srgb, var(--store-accent) 15%, transparent), transparent 30%), linear-gradient(145deg, var(--soft), color-mix(in srgb, var(--store-primary) 5%, #fff)); }
.product-empty-image { display: grid; place-items: center; text-align: center; }
.product-empty-image span { width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 22px; color: var(--store-primary); border: 1px solid color-mix(in srgb, var(--store-primary) 14%, transparent); border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 18px 45px rgba(15,23,42,.07); font: 400 58px/1 Georgia, serif; }
.product-empty-image strong { color: var(--store-primary); font-size: 15px; }
.product-empty-image small { margin-top: 5px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
@media (max-width: 600px) { .gallery-main.is-empty { aspect-ratio: auto; min-height: 330px; } .product-empty-image span { width: 88px; height: 88px; font-size: 46px; } }
/* Refined editorial product content */
.description-section { width: min(1120px, calc(100% - 40px)); padding-top: 58px; }
.description-tabs { position: relative; top: auto; width: max-content; max-width: 100%; margin: 0 auto; padding: 0 8px; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; backdrop-filter: none; }
.description-tabs button { min-width: 96px; padding: 16px 15px 14px; }
.description-tabs button.is-active::after { height: 2px; background: var(--store-primary); }
.description-panel { min-height: 0; padding: 54px 0 15px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rich-product-content { max-width: 900px; color: var(--ink); font-size: 15px; line-height: 1.95; }
.rich-product-content h2 { margin: 0 0 24px; color: var(--ink); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.25; }
.rich-product-content h3 { color: var(--ink); }
.rich-product-content p { max-width: 820px; margin: 0 auto 24px; }
.rich-product-content figure { width: 100%; margin: 34px auto; }
.rich-product-content figure + p { margin-top: 28px; }
.rich-product-content img { width: 100%; max-width: 900px; height: auto; margin: 30px auto; border-radius: 12px; object-fit: contain; background: var(--soft); box-shadow: 0 18px 48px rgba(15, 23, 42, .11); }
.rich-product-content figure img { margin: 0 auto; }
.rich-product-content figcaption:empty { display: none; }
.rich-product-content blockquote, .rich-product-content ul, .rich-product-content ol, .rich-product-content table { max-width: 820px; margin-right: auto; margin-left: auto; }
@media (max-width: 600px) {
    .description-section { width: calc(100% - 28px); padding-top: 38px; }
    .description-tabs { width: 100%; justify-content: flex-start; }
    .description-tabs button { min-width: 88px; padding-inline: 10px; }
    .description-panel { padding: 34px 0 5px; }
    .rich-product-content h2 { margin-bottom: 18px; font-size: 28px; }
    .rich-product-content figure { margin: 24px auto; }
    .rich-product-content img { margin: 22px auto; border-radius: 8px; }
}
/* Keep product tabs and content panel aligned */
.description-tabs { width: 100%; max-width: none; margin: 0; padding: 0 20px; overflow: visible; border: 1px solid var(--line); border-radius: 13px 13px 0 0; background: var(--paper); }
.description-tabs button { flex: 0 1 150px; min-width: 96px; }
.description-panel { width: 100%; max-width: none; min-height: 0; margin: 0; padding: clamp(34px, 5vw, 62px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; background: var(--paper); box-shadow: 0 20px 55px rgba(15, 23, 42, .055); }
@media (max-width: 600px) {
    .description-tabs { padding: 0 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
    .description-tabs::-webkit-scrollbar { display: none; }
    .description-tabs button { flex: 0 0 88px; min-width: 88px; }
    .description-panel { padding: 30px 18px; }
}
.custom-carousel { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; }
.custom-carousel img { width:min(680px,90%); max-height:520px; object-fit:cover; border-radius:16px; scroll-snap-align:start; }
.custom-section-小 { max-width:760px; margin-inline:auto; }
.custom-section-大 { max-width:none; }

.custom-carousel-shell { position:relative; }
.custom-carousel { display:flex; gap:0; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.custom-carousel::-webkit-scrollbar { display:none; }
.custom-carousel figure { min-width:100%; margin:0; scroll-snap-align:start; }
.custom-carousel img { display:block; width:100%; max-height:520px; object-fit:cover; border-radius:16px; }
.custom-carousel-arrow { position:absolute; z-index:2; top:50%; width:42px; height:42px; border:1px solid rgba(255,255,255,.7); border-radius:50%; color:#fff; background:rgba(15,23,42,.58); font-size:28px; transform:translateY(-50%); cursor:pointer; }
.custom-carousel-arrow.is-prev { left:12px; }
.custom-carousel-arrow.is-next { right:12px; }
.custom-carousel-dots { display:flex; justify-content:center; gap:7px; margin-top:12px; }
.custom-carousel-dots button { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:#cbd0d8; cursor:pointer; }
.custom-carousel-dots button[aria-current=true] { width:24px; border-radius:5px; background:var(--store-primary); }
@media(max-width:600px){.custom-carousel-arrow{width:36px;height:36px}.custom-carousel img{max-height:360px;border-radius:10px}}

/* Business template variants reuse the stable SSR contract while changing composition tokens. */
.theme-lifestyle { --paper:#fffaf4; --surface:#f7efe4; }
.theme-lifestyle .hero { width:min(1440px,calc(100% - 36px)); margin:22px auto; overflow:hidden; border-radius:28px; }
.theme-lifestyle .product-card,.theme-lifestyle .category-card { border-radius:22px; }
