/* Per-theme typography and character (2026-10-31). Source Han Sans HK at a different weight per theme.
   Card grid, card size, 6-per-row layout and stock badges stay as defined in storefront-visual.css. */
html body[data-visual-storefront="true"]{--shs:'POSDeck Source Han Sans',system-ui,-apple-system,"PingFang HK","Noto Sans HK","Microsoft JhengHei",sans-serif;font-family:var(--shs)}
html body[data-visual-storefront="true"] :is(h1,h2,h3,h4,p,a,span,small,strong,button,input,select,textarea,label,li,td,th){font-family:inherit}

/* ---------- Clean (形象款): quiet stationery shop, Regular + Medium, wide tracking ---------- */
html body[data-visual-storefront="true"][data-theme="clean"]{--shop-bg:#f0f2ec;--shop-ink:#2c302b;--visual-surface:#f0f2ec;--visual-line:#d3d8cc;--visual-muted:#62665e;--hero-modern-weight:500;color:var(--shop-ink);letter-spacing:.02em;line-height:1.8}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-header{background:var(--shop-bg)}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-brand{font-weight:500;letter-spacing:.18em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-header nav a{font-size:14px;letter-spacing:.14em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-hero h1{font-weight:500;letter-spacing:.12em;line-height:1.55}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-hero p{letter-spacing:.08em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-button{background:var(--shop-primary)!important;color:#fff!important;border:1px solid var(--shop-primary);border-radius:0;letter-spacing:.2em;font-weight:500;padding:10px 26px}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-button:hover{filter:brightness(.9)}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-section-title{align-items:center;gap:20px}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-section-title h2{display:flex;align-items:center;gap:20px;flex:1;font-size:18px;font-weight:500;letter-spacing:.32em;margin:0}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-section-title h2::after{content:"";flex:1;height:1px;background:var(--visual-line)}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-section-title a{font-size:13px;letter-spacing:.14em;color:var(--visual-muted)}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-product-grid h3{font-weight:400;letter-spacing:.06em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-product-grid .shop-card-price{font-weight:500;letter-spacing:.06em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-product-grid img{background:#e4e9de;border-radius:0}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-category-gallery{gap:0 32px}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-category-gallery>a{background:transparent;border:0;border-bottom:1px solid var(--visual-line);border-radius:0;padding:14px 0}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-category-gallery>a img{border-radius:50%}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-category-copy{letter-spacing:.16em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-about{background:#e4e9de}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-about h2{font-weight:500;letter-spacing:.24em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-eyebrow{letter-spacing:.3em}
html body[data-visual-storefront="true"][data-theme="clean"] :is(.shop-category-page h1,.product_name){font-weight:500;letter-spacing:.1em}
html body[data-visual-storefront="true"][data-theme="clean"] .shop-footer{background:#e4e9de;letter-spacing:.06em}

/* ---------- Boutique (精品款): editorial perfume house, ExtraLight display + Cormorant numerals ---------- */
html body[data-visual-storefront="true"][data-theme="boutique"]{--shop-bg:#f6eced;--shop-ink:#3b2a2d;--visual-surface:#f6eced;--visual-line:#e5cfd2;--visual-muted:#735f63;--display:HeroElegant,var(--shs);--hero-modern-weight:200;color:var(--shop-ink);letter-spacing:.03em}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-header{border-bottom-color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-brand{font-family:var(--display);font-weight:400;letter-spacing:.08em}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-header nav a{font-size:14px;letter-spacing:.2em}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-hero h1{font-weight:200;letter-spacing:.04em;line-height:1.4;max-width:20ch}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-hero p{letter-spacing:.12em}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-button{background:var(--shop-primary)!important;color:#fff!important;border:0;border-radius:0;font-size:13px;letter-spacing:.28em;padding:12px 30px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-section-title{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;margin-bottom:28px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-section-title h2{font-size:30px;font-weight:200;letter-spacing:.3em;margin:0}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-section-title a{font-size:12px;letter-spacing:.24em;color:var(--visual-muted);border-bottom:1px solid currentColor;padding-bottom:2px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-product-grid h3{font-weight:400;letter-spacing:.06em}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-product-grid .shop-card-price{font-family:var(--display);font-weight:600;letter-spacing:.06em}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-product-grid img{background:#eddcde;border-radius:0}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-category-gallery>a{flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:10px;background:transparent;border:1px solid var(--visual-line);border-radius:0;padding:20px 12px}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-category-gallery>a img{width:72px;height:72px;border-radius:50%}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-category-copy{text-align:center;letter-spacing:.24em;font-weight:400}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-about{background:transparent;border-top:1px solid var(--visual-line);border-bottom:1px solid var(--visual-line)}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-about h2{font-size:30px;font-weight:200;letter-spacing:.3em}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-eyebrow{letter-spacing:.32em}
html body[data-visual-storefront="true"][data-theme="boutique"] :is(.shop-category-page h1,.product_name){font-weight:200;letter-spacing:.14em}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-footer{background:var(--shop-ink);color:#efe3db;border-top:0;letter-spacing:.06em}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-footer :is(a,strong,h2,p){color:#efe3db}

/* ---------- Compact (多貨款): practical store signage, Regular + Heavy, tight tracking ---------- */
html body[data-visual-storefront="true"][data-theme="compact"]{--shop-bg:#fff;--shop-ink:#161616;--visual-line:#dedede;--visual-muted:#555;--marker:#ffd23f;--hero-modern-weight:900;color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-header{border-bottom:3px solid var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-brand{font-weight:900;letter-spacing:-.01em}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-header nav a{font-size:15px;font-weight:900}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-hero h1{font-weight:900;letter-spacing:-.01em;line-height:1.25}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-button{background:var(--shop-primary)!important;color:#fff!important;border-radius:3px;font-weight:900;padding:10px 22px;box-shadow:4px 4px 0 var(--marker)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-section-title{align-items:flex-end;border-bottom:2px solid var(--shop-ink);padding-bottom:8px;margin-bottom:18px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-section-title h2{font-size:24px;font-weight:900;letter-spacing:0;margin:0;background:linear-gradient(transparent 58%,var(--marker) 58%);padding:0 4px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-section-title a{font-weight:900;font-size:14px;color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid h3{font-weight:400}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid .shop-card-price{font-weight:900;color:#c4122f}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-product-grid img{border-radius:4px;background:#f2f2f0}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-category-gallery>a{background:#fff;border:2px solid var(--shop-ink);border-radius:4px;padding:10px 14px;min-height:60px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-category-gallery>a:hover{background:var(--marker)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-category-gallery>a img{border-radius:3px}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-category-copy{font-weight:900}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-about{background:#f4f4f1}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-about h2{font-weight:900}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-eyebrow{font-weight:900;color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="compact"] :is(.shop-category-page h1,.product_name){font-weight:900}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-footer{border-top:6px solid var(--marker)}
html body[data-visual-storefront="true"][data-theme="compact"] .shop-footer strong{font-weight:900}
html body[data-visual-storefront="true"][data-theme="boutique"] .shop-product-grid .shop-card-price{font-variant-numeric:lining-nums;font-size:15px!important}
html body[data-visual-storefront="true"][data-theme] .page_product_detail :is(.description_wrapper,.gallery_wrapper){background:transparent}
html body[data-visual-storefront="true"][data-theme="clean"] .page_product_detail .description_wrapper .product_name{font-weight:500;letter-spacing:.1em}
html body[data-visual-storefront="true"][data-theme="boutique"] .page_product_detail .description_wrapper .product_name{font-weight:200;letter-spacing:.12em;font-size:30px}
html body[data-visual-storefront="true"][data-theme="compact"] .page_product_detail .description_wrapper .product_name{font-weight:900}
html body[data-visual-storefront="true"][data-theme="clean"] .page_product_detail .fm-current-price :is(strong,b,span,.price){color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="compact"] .page_product_detail .fm-current-price :is(strong,b,span,.price){color:#c4122f;font-weight:900}
html body[data-visual-storefront="true"][data-theme="clean"] :is(.btn_add_to_cart,.btn_checkout){background:var(--shop-primary)!important;border-radius:0;letter-spacing:.16em}
html body[data-visual-storefront="true"][data-theme="boutique"] :is(.btn_add_to_cart,.btn_checkout){background:var(--shop-primary)!important;border-radius:0;letter-spacing:.24em}
html body[data-visual-storefront="true"][data-theme="compact"] :is(.btn_add_to_cart,.btn_checkout){background:var(--shop-primary)!important;border-radius:3px;font-weight:900;box-shadow:4px 4px 0 var(--marker)}
html body[data-visual-storefront="true"][data-theme="boutique"] .page_product_detail .fm-current-price :is(strong,b,span,.price){color:var(--shop-ink);font-weight:400}
html body[data-visual-storefront="true"][data-theme] .shop-about .shop-eyebrow{display:none}
html body[data-visual-storefront="true"][data-theme] .shop-hero h1{text-wrap:balance}

/* ---------- 首頁推廣橫額 (all themes, 2026-11-06): 1-2 beside the main picture, 1 wide under 店主精選 ---------- */
html body[data-visual-storefront="true"] .shop-hero-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;margin-bottom:48px}
html body[data-visual-storefront="true"] .shop-hero-row>.shop-hero{margin:0;height:100%}
html body[data-visual-storefront="true"] .shop-promo-side{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:16px}
html body[data-visual-storefront="true"] .shop-promo-side--one{grid-template-rows:minmax(0,1fr)}
html body[data-visual-storefront="true"] .shop-promo{position:relative;isolation:isolate;display:flex;align-items:center;overflow:hidden;min-height:180px;background:var(--shop-accent);color:var(--shop-ink,#222);text-decoration:none;border-radius:var(--promo-radius,6px)}
html body[data-visual-storefront="true"] .shop-promo img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:right center}
html body[data-visual-storefront="true"] .shop-promo:not(.shop-promo--text)::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--promo-veil,rgba(255,255,255,.88)),rgba(255,255,255,.55) 38%,transparent 62%)}
html body[data-visual-storefront="true"] .shop-promo-copy{display:flex;flex-direction:column;gap:6px;max-width:58%;padding:20px 24px}
html body[data-visual-storefront="true"] .shop-promo--text .shop-promo-copy{max-width:100%}
html body[data-visual-storefront="true"] .shop-promo-copy strong{font-size:22px;line-height:1.25;font-weight:700;text-wrap:balance}
html body[data-visual-storefront="true"] .shop-promo-copy>span{font-size:14px;line-height:1.5}
html body[data-visual-storefront="true"] .shop-promo-copy small{margin-top:4px;font-size:14px;font-weight:700;color:var(--shop-primary)}
html body[data-visual-storefront="true"] .shop-promo:focus-visible{outline:3px solid var(--shop-primary);outline-offset:3px}
html body[data-visual-storefront="true"] .shop-home>.shop-promo-wide{min-height:220px;margin:0 0 48px}
html body[data-visual-storefront="true"] .shop-promo-wide .shop-promo-copy{max-width:46%;padding:28px 40px}
html body[data-visual-storefront="true"] .shop-promo-wide .shop-promo-copy strong{font-size:28px}
@media(hover:hover) and (pointer:fine){html body[data-visual-storefront="true"] .shop-promo img{transition:transform .3s cubic-bezier(.23,1,.32,1)}html body[data-visual-storefront="true"] .shop-promo:hover img{transform:scale(1.03)}}
@media(prefers-reduced-motion:reduce){html body[data-visual-storefront="true"] .shop-promo img{transition:none}html body[data-visual-storefront="true"] .shop-promo:hover img{transform:none}}
@media(max-width:900px){html body[data-visual-storefront="true"] .shop-hero-row{grid-template-columns:1fr;gap:12px;margin-bottom:32px}html body[data-visual-storefront="true"] .shop-promo-side{grid-template-rows:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}html body[data-visual-storefront="true"] .shop-promo-side--one{grid-template-columns:1fr}}
@media(max-width:600px){
html body[data-visual-storefront="true"] .shop-promo{flex-direction:column;align-items:stretch;min-height:0}
html body[data-visual-storefront="true"] .shop-promo img{position:static;z-index:auto;height:auto;aspect-ratio:3/2}
html body[data-visual-storefront="true"] .shop-promo-wide img{aspect-ratio:16/7}
html body[data-visual-storefront="true"] .shop-promo:not(.shop-promo--text)::after{content:none}
html body[data-visual-storefront="true"] :is(.shop-promo-copy,.shop-promo-wide .shop-promo-copy){max-width:100%;padding:12px 14px 14px;gap:4px}
html body[data-visual-storefront="true"] .shop-promo-copy strong{font-size:16px}
html body[data-visual-storefront="true"] .shop-promo-wide .shop-promo-copy strong{font-size:19px}
html body[data-visual-storefront="true"] .shop-promo-copy>span{font-size:13px}
html body[data-visual-storefront="true"] .shop-home>.shop-promo-wide{margin-bottom:32px}
html body[data-visual-storefront="true"] .shop-promo-side .shop-promo-copy>span{display:none}
}

/* ---------- Pet (寵物用品款): bright, friendly, rounded, many banners; Black + Regular ---------- */
html body[data-visual-storefront="true"][data-theme="pet"]{--shop-bg:#fff;--shop-ink:#1c2541;--visual-surface:#fff;--visual-line:#e3e6ee;--visual-muted:#4f5872;--hero-modern-weight:900;--promo-radius:18px;--promo-veil:rgba(255,255,255,.9);color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-header{border-bottom:1px solid var(--visual-line)}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-brand{font-weight:900;letter-spacing:0}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-header nav a{font-size:15px;font-weight:900}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-hero{border-radius:18px}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-hero--photograph:after{background:linear-gradient(90deg,rgba(255,255,255,.9),rgba(255,255,255,.55) 36%,transparent 62%)}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-hero h1{font-weight:900;letter-spacing:0;line-height:1.2}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-button{background:var(--shop-primary)!important;color:#fff!important;border:0;border-radius:999px;font-weight:900;padding:12px 26px}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-button:hover{filter:brightness(.92)}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-button:active{transform:scale(.97)}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-section-title{align-items:flex-end;margin-bottom:18px}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-section-title h2{font-size:26px;font-weight:900;letter-spacing:0;margin:0}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-section-title a{font-weight:900;font-size:14px;color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-product-grid h3{font-weight:400}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-product-grid .shop-card-price{font-weight:900;color:var(--shop-ink)}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-product-grid img{border-radius:12px;background:#f2f3f6}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-category-gallery>a{border-radius:18px;overflow:hidden;background:#f2f3f6}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-category-copy{font-weight:900}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-about{background:#fff4ec;border-radius:18px;overflow:hidden}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-about h2{font-weight:900}
html body[data-visual-storefront="true"][data-theme="pet"] :is(.shop-category-page h1,.product_name){font-weight:900}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-footer strong{font-weight:900}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-promo-copy strong{font-weight:900}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-promo[data-promo="1"]{background:#dcecfb}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-promo[data-promo="2"]{background:#dcf2e6}
html body[data-visual-storefront="true"][data-theme="pet"] .shop-promo[data-promo="3"]{background:#ffe7d8}
html body[data-visual-storefront="true"][data-theme="pet"] .page_product_detail .description_wrapper .product_name{font-weight:900}
html body[data-visual-storefront="true"][data-theme="pet"] .page_product_detail .fm-current-price :is(strong,b,span,.price){color:var(--shop-ink);font-weight:900}
html body[data-visual-storefront="true"][data-theme="pet"] :is(.btn_add_to_cart,.btn_checkout){background:var(--shop-primary)!important;border-radius:999px;font-weight:900}
@media(max-width:600px){html body[data-visual-storefront="true"][data-theme="pet"] .shop-hero{border-radius:14px}html body[data-visual-storefront="true"][data-theme="pet"] .shop-section-title h2{font-size:22px}}
