/* 前台共用樣式（商品卡、網格、麵包屑、分頁、商品頁、購物車、內容頁） */
.page-title { font-size: 1.5rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 1.4rem 0 .8rem; padding-left: .6rem; border-left: 5px solid var(--xb-red); }
.muted { color: var(--xb-muted); font-size: .85rem; }

/* 商品網格與卡片 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--xb-ink); transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.product-card__img { position: relative; aspect-ratio: 1; background: #f6f6f6; overflow: hidden; }
.product-card__img > img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__sticker { position: absolute; right: 6px; top: 6px; width: 64px; }
.product-card__digital { position: absolute; left: 6px; bottom: 6px; background: #6a3fb5; color: #fff; font-size: .7rem; padding: .15rem .5rem; border-radius: 999px; }
.product-card__soldout { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.6); color: #666; font-weight: 700; }
.product-card__body { padding: .6rem .8rem .8rem; display: flex; flex-direction: column; gap: .2rem; }
.product-card__hall { font-size: .72rem; color: var(--xb-muted); }
.product-card__name { font-size: .95rem; min-height: 2.6rem; line-height: 1.3; }
.product-card__price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.price { color: var(--xb-red); font-weight: 700; font-size: 1.05rem; }
.list-price { color: #999; font-size: .85rem; }

/* 麵包屑、chips、排序、分頁 */
.breadcrumb-nav { font-size: .85rem; color: var(--xb-muted); margin-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumb-nav a { color: var(--xb-muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--xb-red); }
.breadcrumb-nav__current { color: var(--xb-ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 1rem; }
.chip { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--xb-line); background: #fff; color: var(--xb-ink); text-decoration: none; font-size: .88rem; }
.chip small { color: var(--xb-muted); margin-left: .2rem; }
.chip:hover { border-color: var(--xb-red); color: var(--xb-red); }
.chip--sub { font-size: .8rem; background: #fafafa; }
.sortbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .4rem 0 .8rem; font-size: .9rem; }
.sortbar__form label { display: flex; align-items: center; gap: .4rem; color: var(--xb-muted); }
.sortbar__form select { padding: .3rem .5rem; border: 1px solid var(--xb-line); border-radius: 6px; }
.pager { display: flex; justify-content: center; align-items: center; gap: .3rem; margin: 1.5rem 0; flex-wrap: wrap; }
.pager__num, .pager__btn { padding: .35rem .7rem; border: 1px solid var(--xb-line); border-radius: 8px; background: #fff; color: var(--xb-ink); text-decoration: none; font-size: .9rem; }
.pager__num.is-current { background: var(--xb-red); border-color: var(--xb-red); color: #fff; }
.pager__btn.is-disabled { color: #bbb; pointer-events: none; }
.pager__gap { padding: 0 .3rem; color: #999; }

/* 館頁 */
.hall-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, var(--hall-color) 0%, color-mix(in srgb, var(--hall-color) 55%, #fff) 100%); color: #fff; border-radius: 16px; padding: 1.4rem 2rem; margin-bottom: 1.2rem; min-height: 160px; }
.hall-hero__kind { font-size: .8rem; opacity: .9; }
.hall-hero h1 { margin: .1rem 0 .3rem; font-size: 1.8rem; }
.hall-hero p { margin: 0; opacity: .95; }
.hall-hero__mascot { height: 130px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.hall-intro { background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.cat-head h1 { font-size: 1.5rem; margin: .2rem 0 .4rem; }

/* 首頁 */
.home-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, var(--xb-red) 0%, #ff6b6b 100%); color: #fff; border-radius: 16px; padding: 1.6rem 2rem; margin-bottom: 1.6rem; }
.home-hero h1 { margin: 0 0 .4rem; font-size: 1.9rem; }
.home-hero p { margin: 0 0 .8rem; opacity: .95; }
.home-hero__cta { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-hero { background: #fff; color: var(--xb-red); padding: .45rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.btn-hero--pink { color: var(--xb-pink); }
.home-hero__mascots { display: flex; gap: .5rem; }
.home-hero__mascots img { height: 120px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.hall-card { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--xb-line); border-top: 5px solid var(--hall-color); text-decoration: none; color: var(--xb-ink); transition: transform .15s, box-shadow .15s; overflow: hidden; min-height: 110px; }
.hall-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.hall-card strong { font-size: 1.1rem; color: var(--hall-color); }
.hall-card__kind { font-size: .72rem; color: #888; }
.hall-card__tagline { font-size: .85rem; color: #555; padding-right: 60px; }
.hall-card__mascot { position: absolute; right: -6px; bottom: -8px; height: 70px; opacity: .9; }

/* 商品頁 */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; background: #fff; border: 1px solid var(--xb-line); border-radius: 16px; padding: 1.2rem; }
.pd__main { position: relative; aspect-ratio: 1; background: #f6f6f6; border-radius: 12px; overflow: hidden; }
.pd__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd__sticker { position: absolute !important; right: 10px; top: 10px; width: 96px !important; height: auto !important; }
.pd__thumbs { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }
.pd__thumb { width: 64px; height: 64px; border: 2px solid var(--xb-line); border-radius: 8px; background: #fff; padding: 0; overflow: hidden; cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--xb-muted); }
.pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumb.is-active { border-color: var(--xb-red); }
.pd__thumb--360, .pd__thumb--video { display: grid; place-items: center; }
.pd__spin { position: relative; aspect-ratio: 1; background: #f6f6f6; border-radius: 12px; overflow: hidden; cursor: grab; user-select: none; margin-top: .6rem; }
.pd__spin img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pd__spin-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; }
.pd__video { aspect-ratio: 16/9; margin-top: .6rem; }
.pd__video iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.pd__hall { font-size: .8rem; color: var(--hall-color); text-decoration: none; font-weight: 700; }
.pd__name { font-size: 1.5rem; margin: .2rem 0 .3rem; }
.pd__brand { font-size: .85rem; color: var(--xb-muted); }
.pd__summary { color: #444; margin: .5rem 0; }
.pd__price { display: flex; align-items: baseline; gap: .6rem; margin: .6rem 0; flex-wrap: wrap; }
.pd__price .price { font-size: 1.8rem; }
.badge-sale { background: var(--xb-red); color: #fff; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; }
.pd__until { font-size: .8rem; color: var(--xb-pink); }
.pd__digital { background: #f3eefc; border: 1px solid #d9c9f4; color: #4a2a8a; border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; margin: .5rem 0; }
.pd__buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; margin: .8rem 0; }
.pd__field { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--xb-muted); }
.pd__field select, .pd__field input { padding: .5rem .6rem; border: 1px solid var(--xb-line); border-radius: 8px; min-width: 110px; font-size: 1rem; }
.btn-buy { background: var(--xb-red); color: #fff; border: 0; border-radius: 999px; padding: .65rem 1.5rem; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-buy:hover { background: var(--xb-red-dark); color: #fff; }
.btn-buy.is-disabled { background: #bbb; cursor: not-allowed; pointer-events: none; }
.btn-buy--block { display: block; text-align: center; margin: .8rem 0 .4rem; }
.pd__stock { width: 100%; display: flex; gap: 1rem; font-size: .8rem; color: var(--xb-muted); }
.pd__addons h3 { font-size: 1rem; display: flex; align-items: center; gap: .4rem; }
.pd__addons h3 img { height: 32px; }
.addon-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.addon { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--xb-line); border-radius: 10px; padding: .4rem .6rem; text-decoration: none; color: var(--xb-ink); font-size: .85rem; }
.addon img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.addon strong { color: var(--xb-pink); }
.pd__tabs { background: #fff; border: 1px solid var(--xb-line); border-radius: 16px; padding: 1rem 1.2rem; margin-top: 1.2rem; }
.tabstrip { display: flex; gap: .2rem; border-bottom: 2px solid var(--xb-line); margin-bottom: .8rem; }
.tabbtn { border: 0; background: transparent; padding: .4rem .8rem; cursor: pointer; font-size: .92rem; color: #4a5568; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabbtn.on { color: var(--xb-red); border-bottom-color: var(--xb-red); font-weight: 600; }
.tabpane img { max-width: 100%; }

/* 提示 */
.alert--mascot { display: flex; align-items: center; gap: .8rem; }
.alert--mascot img { height: 48px; }
.empty-state { text-align: center; padding: 2rem 1rem; }
.empty-state img { height: 120px; }
.empty-state h3 { margin: .6rem 0 .3rem; }
.empty-state p { color: var(--xb-muted); }

/* 購物車 */
.cart { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.2rem; align-items: start; }
.cart-table { width: 100%; background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.cart-table th, .cart-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--xb-line); vertical-align: middle; }
.cart-table th { background: #fafafa; font-size: .85rem; text-align: left; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table__product { display: flex; gap: .7rem; align-items: center; }
.cart-table__product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f6f6f6; }
.cart-table__product a { color: var(--xb-ink); text-decoration: none; font-weight: 600; }
.cart-qty { display: flex; gap: .3rem; }
.cart-qty input { width: 64px; padding: .3rem; border: 1px solid var(--xb-line); border-radius: 6px; }
.btn-sm { border: 1px solid var(--xb-line); background: #fff; border-radius: 6px; padding: .3rem .6rem; cursor: pointer; font-size: .85rem; }
.btn-link { border: 0; background: transparent; color: var(--xb-muted); cursor: pointer; text-decoration: underline; }
.tag-digital { font-size: .72rem; color: #6a3fb5; }
.cart-summary { background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; padding: 1rem; position: sticky; top: 120px; }
.cart-summary__row { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; }

/* 內容頁 */
.cms-page { background: #fff; border: 1px solid var(--xb-line); border-radius: 16px; padding: 1.4rem 1.6rem; max-width: 900px; }
.cms-page h1 { font-size: 1.5rem; }
.cms-body { line-height: 1.8; }
.cms-body img, .cms-cover { max-width: 100%; border-radius: 10px; }
.news-list { display: flex; flex-direction: column; gap: .6rem; }
.news-item { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; padding: .9rem 1rem; text-decoration: none; color: var(--xb-ink); }
.news-item img { width: 140px; height: 90px; object-fit: cover; border-radius: 8px; }
.news-item__meta { font-size: .8rem; color: var(--xb-muted); }
.news-item p { margin: .2rem 0 0; color: #555; font-size: .9rem; }

/* 聯絡我們 */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 1.2rem; }
.contact-form { background: #fff; border: 1px solid var(--xb-line); border-radius: 16px; padding: 1.2rem; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem .9rem; margin-bottom: 1rem; }
.fgrid .f { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: #4a5568; }
.fgrid .f.full { grid-column: 1 / -1; }
.fgrid .f input, .fgrid .f select, .fgrid .f textarea { padding: .45rem .6rem; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 1rem; }
.contact-side { text-align: center; color: var(--xb-muted); font-size: .9rem; }
.contact-side img { height: 140px; }

@media (max-width: 860px) {
    .pd, .cart, .contact-wrap { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .home-hero, .hall-hero { flex-direction: column; text-align: center; }
    .home-hero__mascots img, .hall-hero__mascot { height: 90px; }
}

/* 結帳（WASM） */
.checkout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 1.2rem; align-items: start; }
.checkout-loading { text-align: center; padding: 3rem; color: var(--xb-muted); }
.spinner { width: 36px; height: 36px; border: 4px solid var(--xb-line); border-top-color: var(--xb-red); border-radius: 50%; margin: 0 auto .6rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.co-section { background: #fff; border: 1px solid var(--xb-line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .9rem; }
.co-section h2 { margin: 0 0 .7rem; font-size: 1.05rem; }
.co-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.co-option { display: flex; gap: .5rem; align-items: flex-start; border: 2px solid var(--xb-line); border-radius: 10px; padding: .6rem .7rem; cursor: pointer; }
.co-option.is-selected { border-color: var(--xb-red); background: var(--xb-red-soft); }
.co-option.is-disabled { opacity: .5; cursor: not-allowed; }
.co-option span { display: flex; flex-direction: column; font-size: .9rem; }
.co-option small { color: var(--xb-muted); }
.co-coupon { display: flex; gap: .4rem; }
.co-coupon input { flex: 1; }
.co-agree { display: flex; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.co-item { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; font-size: .9rem; }
.co-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: #f6f6f6; }
.co-item div { flex: 1; }
.text-success { color: #1e8f3a; }
.text-danger { color: #c0392b; }

/* 訂單明細、會員中心 */
.od { background: #fff; border: 1px solid var(--xb-line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .9rem; }
.od__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.od__no { font-size: 1.2rem; }
.od__status { display: flex; gap: .4rem; }
.badge-status { padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; background: #eee; color: #444; }
.status-0 { background: #fff3cd; color: #7a5a00; } .status-1 { background: #cfe2ff; color: #084298; } .status-2 { background: #d1e7dd; color: #0f5132; } .status-3 { background: #d1e7dd; color: #0f5132; } .status-9 { background: #f8d7da; color: #842029; }
.pay-0, .pay-1, .pay-2 { background: #fff3cd; color: #7a5a00; } .pay-3 { background: #d1e7dd; color: #0f5132; } .pay-4 { background: #f8d7da; color: #842029; } .pay-5 { background: #e2e3e5; color: #41464b; }
.od__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.od__box { background: #fafafa; border-radius: 10px; padding: .8rem 1rem; margin-top: .6rem; }
.od__box h3 { font-size: .95rem; margin: 0 0 .4rem; }
.od__pay { border: 2px solid var(--xb-red); background: #fff; }
.od__instructions { background: #fff8e1; border-radius: 8px; padding: .6rem .8rem; margin: .5rem 0; }
.od__cancel { display: flex; gap: .4rem; align-items: center; margin-top: .6rem; }
.od__cancel input { padding: .3rem .5rem; border: 1px solid var(--xb-line); border-radius: 6px; }
.od__history { margin-top: .8rem; font-size: .88rem; }
.od__history ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.account { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.account__nav { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; overflow: hidden; }
.account__nav a { padding: .7rem 1rem; color: var(--xb-ink); text-decoration: none; border-bottom: 1px solid var(--xb-line); }
.account__nav a.is-active { background: var(--xb-red-soft); color: var(--xb-red-dark); font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.stat { background: #fff; border: 1px solid var(--xb-line); border-radius: 10px; padding: .8rem 1rem; display: flex; flex-direction: column; }
.stat__label { font-size: .78rem; color: var(--xb-muted); }
.stat strong { font-size: 1.4rem; color: var(--xb-red); }
.stat strong.small { font-size: .95rem; color: var(--xb-ink); }
.order-list { display: flex; flex-direction: column; gap: .6rem; }
.order-row { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; padding: .7rem 1rem; text-decoration: none; color: var(--xb-ink); }
.order-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #f6f6f6; }
.order-row__main { flex: 1; }
.order-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.addr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.addr-card { background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; }
.addr-card.is-default { border-color: var(--xb-red); }
.addr-card__label { font-weight: 700; margin-bottom: .3rem; }
.addr-card__actions { display: flex; gap: .4rem; margin-top: .5rem; }
@media (max-width: 860px) { .checkout, .account, .od__grid { grid-template-columns: 1fr; } }

/* Banner 輪播（首頁） */
.hero-carousel { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 1rem; background: #f3f3f3; aspect-ratio: 16 / 5; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; display: block; }
.hero-slide.is-on { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: .6rem; display: flex; justify-content: center; gap: .4rem; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hero-dots button.is-on { background: #fff; transform: scale(1.2); }
@media (max-width: 640px) { .hero-carousel { aspect-ratio: 4 / 3; } }

/* 限時特價 */
.home-specials-cta a { display: flex; align-items: center; gap: .6rem; background: linear-gradient(90deg, var(--xb-pink) 0%, #ff9bb8 100%); color: #fff; text-decoration: none; border-radius: 12px; padding: .5rem 1rem; font-weight: 700; margin-bottom: 1.4rem; }
.home-specials-cta img { height: 44px; }
.specials-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.specials-hero img { height: 90px; }

/* 贈品標籤、維修單 */
.tag-gift { display: inline-block; font-size: .75rem; background: #fff0f3; color: var(--xb-pink); border: 1px solid #ffc2d1; border-radius: 999px; padding: .05rem .5rem; margin-top: .2rem; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: .3rem .8rem; margin: .6rem 0 0; }
.dl dt { color: #777; } .dl dd { margin: 0; }

/* 頁尾電子報 */
.store-footer__newsletter { margin: .8rem 0; }
.store-footer__newsletter label { display: block; font-size: .85rem; margin-bottom: .3rem; }
.store-footer__newsletter div { display: flex; gap: .4rem; max-width: 420px; }
.store-footer__newsletter input { flex: 1; padding: .4rem .6rem; border: 1px solid var(--xb-line); border-radius: 8px; }

/* v2：評價、星等、願望清單 */
.stars { display: inline-flex; align-items: center; gap: .05rem; color: #ddd; font-size: 1rem; line-height: 1; }
.star { position: relative; }
.star::before { content: '★'; position: absolute; left: 0; top: 0; width: calc(var(--fill, 0) * 100%); overflow: hidden; color: #f6ad55; white-space: nowrap; }
.stars__count { color: var(--xb-muted); margin-left: .35rem; font-size: .8rem; }
.pd__rating { display: flex; align-items: center; gap: .8rem; margin: .2rem 0 .6rem; flex-wrap: wrap; }
.pd__rating a { text-decoration: none; }
.wish-form { display: inline; }
.wish-btn { border: 1px solid var(--xb-pink); background: #fff; color: var(--xb-pink); border-radius: 999px; padding: .2rem .7rem; cursor: pointer; font-size: .85rem; }
.wish-btn.is-on { background: var(--xb-pink); color: #fff; }
.reviews { background: #fff; border: 1px solid var(--xb-line); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.reviews h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; }
.reviews__dist { max-width: 360px; margin: .4rem 0 .8rem; }
.reviews__bar { display: flex; align-items: center; gap: .5rem; font-size: .8rem; margin: .15rem 0; }
.reviews__bar span:first-child { width: 36px; } .reviews__bar span:last-child { width: 24px; text-align: right; }
.review-form { background: #fff8f8; border-radius: 10px; padding: .8rem 1rem; margin: .6rem 0 1rem; display: grid; gap: .5rem; max-width: 640px; }
.review-form h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin: 0; } .review-form h3 img { height: 40px; }
.review-form .f { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.review-form input, .review-form select, .review-form textarea { padding: .4rem .6rem; border: 1px solid var(--xb-line); border-radius: 8px; }
.review-list { list-style: none; margin: 0; padding: 0; }
.review { border-top: 1px solid var(--xb-line); padding: .7rem 0; }
.review__head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.review p { margin: .3rem 0 0; white-space: pre-wrap; }
.review__reply { display: flex; gap: .6rem; background: #f7fafc; border-radius: 8px; padding: .5rem .7rem; margin-top: .5rem; font-size: .88rem; }
.review__reply img { height: 36px; }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.wish-item form { text-align: center; margin-top: .3rem; }

/* v2：社群登入、手機驗證 */
.social-login { margin-top: 1rem; }
.social-login__buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-social { border: 1px solid var(--xb-line); background: #fff; border-radius: 8px; padding: .45rem .9rem; cursor: pointer; font-weight: 600; }
.btn-social--google { border-color: #4285f4; color: #4285f4; }
.btn-social--line { border-color: #06c755; color: #06c755; }
.otp-form { display: grid; gap: .6rem; max-width: 420px; }
.otp-form input { padding: .45rem .6rem; border: 1px solid var(--xb-line); border-radius: 8px; font-size: 1rem; }

/* v2：AI 客服小幫手（桃子） */
#xb-assistant { position: fixed; right: 16px; bottom: 16px; z-index: 950; font-size: .92rem; }
.xba-fab { display: flex; align-items: center; gap: .3rem; border: 0; background: var(--xb-red); color: #fff; border-radius: 999px; padding: .35rem .9rem .35rem .4rem; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); font-weight: 700; }
.xba-fab img { height: 36px; }
.xba-panel { width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 12px 36px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.xba-head { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; background: var(--xb-red); color: #fff; }
.xba-head img { height: 36px; } .xba-head small { display: block; opacity: .85; font-size: .72rem; } .xba-head div { flex: 1; }
.xba-close { border: 0; background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.xba-log { flex: 1; overflow: auto; padding: .7rem; display: flex; flex-direction: column; gap: .5rem; background: #faf7f7; }
.xba-msg { display: flex; } .xba-msg--user { justify-content: flex-end; }
.xba-bubble { max-width: 85%; padding: .5rem .7rem; border-radius: 12px; background: #fff; border: 1px solid var(--xb-line); line-height: 1.5; }
.xba-msg--user .xba-bubble { background: var(--xb-red); color: #fff; border-color: var(--xb-red); }
.xba-typing { color: var(--xb-muted); font-style: italic; }
.xba-products { display: flex; flex-direction: column; gap: .3rem; margin: .3rem 0 0 .2rem; width: 85%; }
.xba-products a { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--xb-line); border-radius: 8px; padding: .3rem .5rem; text-decoration: none; color: var(--xb-ink); font-size: .85rem; }
.xba-products img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; } .xba-products span { flex: 1; } .xba-products strong { color: var(--xb-red); }
.xba-form { display: flex; gap: .4rem; padding: .5rem; border-top: 1px solid var(--xb-line); }
.xba-form input { flex: 1; padding: .45rem .6rem; border: 1px solid var(--xb-line); border-radius: 8px; }
.xba-form button { border: 0; background: var(--xb-red); color: #fff; border-radius: 8px; padding: 0 .9rem; cursor: pointer; }
@media print { #xb-assistant { display: none; } }

/* ───────── v3 M1 商家店面 ───────── */
.product-card__merchant { display: block; font-size: .72rem; color: var(--xb-muted); margin-top: .1rem; }
.pd__merchant { display: inline-block; font-size: .82rem; color: var(--store-color, #555); text-decoration: none; margin-left: .6rem; }
.pd__merchant:hover { text-decoration: underline; }
.pd__merchant--own { color: var(--xb-muted); }
.store-hero { position: relative; border-radius: 16px; padding: 1.4rem 2rem; margin-bottom: 1rem; color: #fff; background: linear-gradient(135deg, var(--store-color) 0%, color-mix(in srgb, var(--store-color) 55%, #fff) 100%); background-size: cover; background-position: center; min-height: 160px; overflow: hidden; }
.store-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.15)); }
.store-hero__inner { position: relative; display: flex; gap: 1.2rem; align-items: center; }
.store-hero__logo { width: 96px; height: 96px; border-radius: 16px; background: #fff; object-fit: contain; padding: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.2); flex: none; }
.store-hero__logo--text { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: var(--store-color); }
.store-hero__kind { font-size: .8rem; opacity: .9; }
.store-hero h1 { margin: .1rem 0 .3rem; font-size: 1.8rem; }
.store-hero p { margin: 0; opacity: .95; }
.store-hero__meta { display: flex; gap: 1rem; margin-top: .4rem; font-size: .9rem; align-items: center; }
.chip--on { background: var(--xb-red); border-color: var(--xb-red); color: #fff; }
.chip--on small { color: #fff; }
.store-policies { margin: 1.5rem 0; display: grid; gap: .6rem; }
.store-policies details { background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; padding: .6rem 1rem; }
.store-policies summary { cursor: pointer; font-weight: 700; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.store-card { display: flex; gap: .8rem; align-items: center; padding: 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--xb-line); border-left: 5px solid var(--store-color); text-decoration: none; color: var(--xb-ink); transition: transform .15s, box-shadow .15s; }
.store-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.store-card__logo { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; background: #fafafa; flex: none; }
.store-card__logo--text { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--store-color); background: color-mix(in srgb, var(--store-color) 12%, #fff); }
.store-card__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.store-card__body strong { font-size: 1.05rem; }
.store-card__tagline { font-size: .85rem; color: #555; }
.store-card__meta { font-size: .78rem; color: var(--xb-muted); }
@media (max-width: 640px) { .store-hero { padding: 1rem 1.2rem; } .store-hero__inner { flex-direction: column; align-items: flex-start; } }

/* ───────── 店長短評（§13.3 A）───────── */
.mascot-note { display: block; font-size: .78rem; line-height: 1.35; margin: .15rem 0; padding: .25rem .5rem; border-radius: 8px; background: var(--xb-taozi-soft, #eaf2fb); color: #2a4a73; }
.mascot-note b { font-weight: 700; margin-right: .2rem; }
.mascot-note--kume { background: var(--xb-kume-soft, #fdeaf1); color: #8a2d55; }
.mascot-note--lg { display: flex; align-items: center; gap: .6rem; font-size: .95rem; padding: .6rem .9rem; border-radius: 12px; margin: .4rem 0 .8rem; }
.mascot-note--lg img { height: 44px; flex: none; }
.mascot-note--lg b { display: block; font-size: .78rem; opacity: .8; margin: 0; }

/* ───────── 評價附圖與最新好評（§13.3 D）───────── */
.review-form__reward { margin: 0; font-size: .85rem; color: var(--xb-red-dark, #a8181d); background: #fff; border: 1px dashed var(--xb-red); border-radius: 8px; padding: .35rem .6rem; }
.review__photos { display: flex; gap: .4rem; flex-wrap: wrap; margin: .3rem 0; }
.review__photos img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1px solid var(--xb-line); }
.home-reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.home-review { display: flex; gap: .7rem; background: #fff; border: 1px solid var(--xb-line); border-radius: 12px; padding: .7rem; text-decoration: none; color: var(--xb-ink); transition: transform .15s, box-shadow .15s; }
.home-review:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.home-review img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; background: #fafafa; }
.home-review__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; font-size: .85rem; }
.home-review__body p { margin: 0; line-height: 1.4; }

/* ───────── 活動頁倒數（§13.3 E）───────── */
.campaign { display: flex; align-items: center; gap: 1rem; border-radius: 14px; padding: .9rem 1.2rem; margin: .6rem 0 1.2rem; background: linear-gradient(135deg, #fff0f1, #fff); border: 1px solid #f5c2c7; }
.campaign img { height: 72px; flex: none; }
.campaign__text { display: flex; flex-direction: column; gap: .15rem; }
.campaign__text strong { font-size: 1.1rem; color: var(--xb-red-dark, #a8181d); }
.campaign--soon { background: linear-gradient(135deg, #eaf2fb, #fff); border-color: #b7cfea; } .campaign--soon strong { color: #2a4a73; }
.campaign--ended { background: #f6f6f6; border-color: #ddd; } .campaign--ended strong { color: #666; }
.countdown { font-size: 1.1rem; margin-top: .2rem; letter-spacing: .02em; }
.countdown b { display: inline-block; min-width: 2ch; padding: .1rem .35rem; margin-right: .1rem; background: var(--xb-red); color: #fff; border-radius: 6px; font-variant-numeric: tabular-nums; }
.campaign--soon .countdown b { background: #2a4a73; }

/* ───────── 桃子本週嚴選（§13.3 B）───────── */
.home-pick__wrap { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.home-pick__article { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--xb-line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--xb-ink); border-top: 5px solid var(--xb-taozi, #1e5aa8); transition: transform .15s, box-shadow .15s; }
.home-pick__article:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.home-pick__article img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.home-pick__text { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.home-pick__text strong { font-size: 1.1rem; }
.home-pick__text p { margin: 0; color: #555; font-size: .9rem; }
.home-pick__text span { color: var(--xb-red); font-size: .85rem; }
.home-pick__products .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.news-related { margin: 1.5rem 0 .5rem; }
@media (max-width: 800px) { .home-pick__wrap { grid-template-columns: 1fr; } }

/* ───────── 滿額任選其一贈品（結帳側欄）───────── */
.co-gift-options { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin: -.2rem 0 .5rem 1.4rem; font-size: .85rem; }
.co-gift-option { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.co-gift-option.is-out { color: var(--xb-muted); cursor: not-allowed; }

/* §14 C2 商品頁證照與許可 */
.pd__certs { list-style: none; margin: .4rem 0 .2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .8rem; font-size: .85rem; color: #2f6b3a; }
.pd__certs li { display: inline-flex; align-items: center; gap: .3rem; background: #eef8ef; border: 1px solid #cfe7d3; border-radius: 999px; padding: .15rem .6rem; }
.pd__cert-no { font-family: ui-monospace, Consolas, monospace; color: #1f4d28; }
.pd__certs a { color: #2f6b3a; text-decoration: underline; margin-left: .2rem; }

/* §14 C3 店長嚴選徽章與入選理由 */
.product-card__curated { position: absolute; left: 0; top: .6rem; background: #3b7dd8; color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .55rem .2rem .5rem; border-radius: 0 999px 999px 0; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pd__curated { display: inline-flex; align-items: center; gap: .3rem; background: #3b7dd8; color: #fff; font-weight: 700; font-size: .85rem; padding: .2rem .7rem; border-radius: 999px; margin: .3rem 0; }
.pd__reasons { border: 1px solid #cfe0f7; background: #f3f8ff; border-radius: 12px; padding: .8rem 1rem; margin: .8rem 0; }
.pd__reasons h3 { margin: 0 0 .4rem; font-size: 1rem; color: #1f4f9a; display: flex; align-items: center; gap: .4rem; }
.pd__reasons h3 img { width: 28px; height: 28px; }
.pd__reasons ul { margin: 0; padding-left: 1.2rem; font-size: .9rem; color: #333; }
.pd__reasons li { margin: .15rem 0; }
.pd__reasons .score { font-weight: 700; color: #1f4f9a; }
.store-hero__excellent { display: inline-flex; align-items: center; gap: .25rem; background: #3b7dd8; color: #fff; font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; }

/* §14 C4 可靠度：保固／效期、檢驗報告、檢舉、回訪評價 */
.pd__assure { font-size: .9rem; color: #333; background: #fafafa; border: 1px solid #eee; border-radius: 10px; padding: .5rem .8rem; margin: .5rem 0; display: grid; gap: .25rem; }
.pd__assure a { color: var(--xb-red); text-decoration: underline; margin-left: .3rem; }
.pd__reports { font-size: .9rem; border: 1px solid #e3eaf5; border-radius: 10px; padding: .4rem .8rem; margin: .5rem 0; background: #f7faff; }
.pd__reports summary { cursor: pointer; font-weight: 700; color: #1f4f9a; }
.pd__reports ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.pd__report-link { margin-top: 1.2rem; font-size: .82rem; color: #777; }
.pd__report-link a { color: #777; text-decoration: underline; }
.review__followup { display: inline-block; margin-left: .4rem; background: #eef4ff; color: #1f4f9a; border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; font-weight: 700; }

/* v3 M4 商家店面主機：標頭品牌換店家、回總站連結、非本店商品提示 */
.store-logo--merchant { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: 1.15rem; color: var(--store-color, #d7262d); text-decoration: none; }
.store-logo--merchant img { max-height: 44px; }
.store-logo__main { font-size: .8rem; color: #666; text-decoration: none; margin-left: .6rem; white-space: nowrap; }
.store-logo__main:hover { text-decoration: underline; }
.pd__foreign { font-size: .85rem; margin: .2rem 0 .4rem; }

/* v3 M5 商家 onboarding 步驟 */
.onboarding { padding-left: 1.2rem; }
.onboarding li { margin: .35rem 0; }
.onboarding li a { color: inherit; text-decoration: none; }
.onboarding li.is-done strong { color: #2f6b3a; }
.onboarding li:not(.is-done) strong { color: var(--xb-red); }
.review__featured { display: inline-block; margin-left: .4rem; background: #fff3cd; color: #7a5a00; border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; font-weight: 700; }

/* ───────── §15 客服中心小視窗（沿用 .xba-*，chat.js） ───────── */
#xb-chat { position: fixed; right: 16px; bottom: 16px; z-index: 950; font-size: .92rem; }
#xb-chat .xba-fab { position: relative; }
.xba-badge { position: absolute; top: -6px; right: -4px; background: #f59e0b; color: #fff; font-style: normal; font-size: .7rem; border-radius: 999px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px; }
.xba-bar { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; padding: .4rem .6rem; border-bottom: 1px solid var(--xb-line); background: #fff; font-size: .78rem; }
.xba-bar button, .xba-linkbtn { border: 1px solid var(--xb-red); background: #fff; color: var(--xb-red); border-radius: 999px; padding: .15rem .6rem; cursor: pointer; font-size: .76rem; text-decoration: none; }
.xba-bar button.xba-quiet, .xba-leave .xba-quiet, .xba-rate .xba-quiet { border-color: var(--xb-line); color: var(--xb-muted); }
.xba-pill { background: #f1f5f9; color: #334155; border-radius: 999px; padding: .15rem .55rem; }
.xba-pill--on { background: #d1e7dd; color: #0f5132; } .xba-pill--wait { background: #fff3cd; color: #7a5a00; }
.xba-who { display: block; font-size: .7rem; color: var(--xb-muted); margin: 0 0 .1rem .2rem; }
.xba-msg { flex-direction: column; align-items: flex-start; } .xba-msg--customer { align-items: flex-end; }
.xba-msg--customer .xba-bubble { background: var(--xb-red); color: #fff; border-color: var(--xb-red); }
.xba-msg--agent .xba-bubble { background: #e8f1fb; border-color: #c7dcf3; }
.xba-msg--system .xba-bubble { background: transparent; border: 0; color: var(--xb-muted); font-size: .78rem; text-align: center; max-width: 100%; align-self: center; }
.xba-msg--system { align-items: center; }
.xba-extra { border-top: 1px solid var(--xb-line); padding: .5rem .6rem; background: #fffdf5; font-size: .82rem; }
.xba-leave { display: grid; gap: .35rem; } .xba-leave input, .xba-leave textarea { padding: .35rem .5rem; border: 1px solid var(--xb-line); border-radius: 8px; font: inherit; }
.xba-leave button, .xba-rate button { border: 1px solid var(--xb-red); background: var(--xb-red); color: #fff; border-radius: 8px; padding: .25rem .7rem; cursor: pointer; }
.xba-rate { display: grid; gap: .3rem; text-align: center; } .xba-stars button { background: #fff; color: #f59e0b; border: 0; font-size: 1.5rem; padding: 0 .15rem; }
.xba-mic { border: 1px solid var(--xb-line); background: #fff; border-radius: 8px; padding: 0 .5rem; cursor: pointer; } .xba-mic--on { background: #fde2e2; border-color: var(--xb-red); }
@media print { #xb-chat { display: none; } }
.xba-line { display: flex; gap: .7rem; align-items: center; } .xba-line img { border: 1px solid var(--xb-line); border-radius: 8px; background: #fff; }
.xba-line div { display: grid; gap: .3rem; } .xba-line small { color: var(--xb-muted); } .xba-line .xba-quiet { border: 1px solid var(--xb-line); background: #fff; color: var(--xb-muted); border-radius: 999px; padding: .15rem .6rem; cursor: pointer; }
/* §15.12 店家櫃台：商品頁／店面「到櫃台問」 */
.pd__ask { display: inline-block; margin-left: .5rem; border: 1px solid var(--xb-red); background: #fff; color: var(--xb-red); border-radius: 999px; padding: .15rem .7rem; font-size: .8rem; cursor: pointer; }
.pd__ask:hover { background: var(--xb-red); color: #fff; }
.store-hero__meta .pd__ask { border-color: #fff; color: #fff; background: rgba(255,255,255,.15); }
.xba-target { display: flex; align-items: center; gap: .3rem; padding: .35rem .6rem; background: #fff7f7; border-bottom: 1px solid var(--xb-line); font-size: .78rem; flex-wrap: wrap; }
.xba-target button { border: 1px solid var(--xb-line); background: #fff; border-radius: 999px; padding: .12rem .55rem; cursor: pointer; font-size: .76rem; }
.xba-target button.on { background: var(--xb-red); color: #fff; border-color: var(--xb-red); }
.xba-target small { color: var(--xb-muted); margin-left: auto; }

/* §16 福委會特別館 */
.badge-welfare { background: #0f766e; color: #fff; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; white-space: nowrap; }
.welfare-tag { font-size: .75rem; color: #0f766e; }
.welfare-tag s { color: #94a3b8; }
.welfare-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; margin: 1rem 0; }
.welfare-strip__card { background: #fff; border: 1px solid var(--xb-line); border-radius: 14px; padding: 1rem 1.2rem; }
.welfare-strip__card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.welfare-strip__card p { margin: 0 0 .7rem; color: #4a5568; font-size: .92rem; }
.welfare-strip__me { grid-column: 1 / -1; background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 14px; padding: .7rem 1rem; }
.welfare-strip__me a { margin-left: .6rem; }

.welfare-strip__camp { display: inline-block; margin-left: .6rem; background: #0f766e; color: #fff; border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; text-decoration: none; }
.welfare-camp { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .5rem 0; border-top: 1px solid var(--xb-line); }
.welfare-camp:first-of-type { border-top: 0; }
.welfare-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; margin: .8rem 0 1.2rem; }
.welfare-pick { position: relative; display: flex; flex-direction: column; gap: .3rem; background: #fff; border: 2px solid var(--xb-line); border-radius: 14px; padding: .8rem; cursor: pointer; }
.welfare-pick:has(input:checked) { border-color: #0f766e; box-shadow: 0 0 0 3px #99f6e4; }
.welfare-pick.is-disabled { opacity: .55; cursor: not-allowed; }
.welfare-pick input[type=radio] { position: absolute; top: .7rem; left: .7rem; width: 1.2rem; height: 1.2rem; }
.welfare-pick img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #f8fafc; }
.welfare-pick small { color: #4a5568; }
.welfare-pick a { font-size: .85rem; }

/* §16.8 估價單 */
.cart-quote { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--xb-line); display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }
.cart-quote details summary { cursor: pointer; color: #4a5568; }
.cart-quote textarea { width: 100%; margin: .4rem 0; }
.quote-sheet { background: #fff; padding: 1.2rem; border: 1px solid var(--xb-line); border-radius: 10px; }
.quote-total th { text-align: right; padding-right: 1rem; }
@media print { .quote-sheet { border: 0; padding: 0; } .no-print { display: none !important; } }

/* ── 前台說明視窗（StoreHelpDialog：原生 dialog，store.js 開關；表頭／內文／頁尾沿用 admin.css 的 .help-modal__*） ── */
.hall-hero h1 { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .7rem; }
.hall-help { display: inline-flex; align-items: center; gap: .35rem; border: 1.5px solid rgba(255,255,255,.85); background: rgba(255,255,255,.16); color: #fff; border-radius: 999px; padding: .18rem .8rem .18rem .22rem; font-size: .9rem; font-weight: 600; line-height: 1; cursor: pointer; }
.hall-help:hover, .hall-help:focus-visible { background: #fff; color: var(--hall-color); outline: 0; }
.hall-help__ico { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #fff; color: var(--hall-color); font-weight: 800; font-size: .95rem; }
.hall-help:hover .hall-help__ico, .hall-help:focus-visible .hall-help__ico { background: var(--hall-color); color: #fff; }
.help-dialog { border: 0; padding: 0; width: 66vw; max-width: 1000px; max-height: 88vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3); color: #1e293b; background: #fff; overflow: hidden; }
.help-dialog[open] { display: flex; flex-direction: column; }
.help-dialog::backdrop { background: rgba(15,23,42,.5); }
.help-dialog .help-modal__body { flex: 1; min-height: 0; padding-top: 0; scroll-behavior: smooth; }
.help-dialog__foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.help-dialog__foot .btn-buy { padding: .45rem 1.2rem; font-size: .95rem; }
.help-dialog__foot .btn-sm { text-decoration: none; color: inherit; padding: .4rem .8rem; }
html:has(dialog.help-dialog[open]) { overflow: hidden; }
/* 福委會特別館使用說明的內文版面（HelpTopics「welfare.hall」） */
.wg-lead { margin: 1rem 0 .6rem !important; padding: .8rem 1rem; background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 12px; font-size: 1rem; }
.wg-nav { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 0; margin-bottom: .2rem; background: #fff; border-bottom: 1px solid #e2e8f0; }
.wg-nav button { border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 999px; padding: .2rem .75rem; font-size: .85rem; cursor: pointer; }
.wg-nav button:hover { background: #0f766e; border-color: #0f766e; color: #fff; }
.help-dialog h3 { margin: 1.3rem 0 .5rem; font-size: 1.08rem; color: #0f766e; scroll-margin-top: 3.4rem; }
.wg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; margin: 0 0 .8rem; }
.wg-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: .7rem .9rem; background: #f8fafc; }
.wg-card b { display: block; margin-bottom: .2rem; color: #0f766e; }
.wg-card span { font-size: .9rem; color: #475569; }
.wg-flow { list-style: none; counter-reset: wg; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; padding: 0 !important; margin: 0 0 .6rem !important; }
.wg-flow li { counter-increment: wg; position: relative; margin: 0 !important; padding: 2.1rem .6rem .6rem; border-radius: 12px; background: #f0fdfa; border: 1px solid #99f6e4; text-align: center; }
.wg-flow li::before { content: counter(wg); position: absolute; top: .5rem; left: 50%; transform: translateX(-50%); width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #0f766e; color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.4rem; }
.wg-flow b { display: block; font-size: .92rem; }
.wg-flow span { font-size: .8rem; color: #475569; }
.wg-steps { list-style: none; counter-reset: wgs; padding: 0 !important; }
.wg-steps li { counter-increment: wgs; position: relative; padding-left: 2.2rem; margin-bottom: .55rem !important; }
.wg-steps li::before { content: counter(wgs); position: absolute; left: 0; top: .1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #0f766e; color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.5rem; text-align: center; }
.wg-faq { border: 1px solid #e2e8f0; border-radius: 10px; padding: .5rem .9rem; margin-bottom: .4rem; }
.wg-faq summary { cursor: pointer; font-weight: 600; }
.wg-faq[open] summary { margin-bottom: .3rem; color: #0f766e; }
.wg-faq p { margin: 0 !important; color: #334155; }
@media (max-width: 800px) {
    .hall-hero h1 { justify-content: center; }
    .help-dialog { width: 96vw; max-height: 92vh; }
    .help-dialog__foot { justify-content: center; }
    .wg-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .wg-nav button { flex: 0 0 auto; }
}
