/* 寶寶雞牛羊 — 設計系統
   手機優先 (mobile first)。斷點：480 / 640 / 768 / 960 / 1200 / 1440 */
:root {
  --ink: #1d1a18; --paper: #f6f4f0; --card: #fff; --soft: #efebe4; --line: #e2dcd3;
  --text: #25211e; --muted: #6c645c; --accent: #8e1b2b; --accent-d: #6e1421; --accent-soft: #f6e9ea;
  --brass: #a07f48; --ok: #2b6a49; --ok-soft: #e4f0e9; --warn-soft: #f7efd9;
  --r: 6px; --gut: 16px; --tab-h: 56px;
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
body.no-tabbar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; }
.policy-body { white-space: pre-wrap; line-height: 1.9; font-size: 14.5px; }
h1 { font: 700 clamp(22px, 2.4vw + 14px, 32px)/1.3 var(--serif); letter-spacing: .02em; }
h2 { font: 700 clamp(18px, 1vw + 14px, 22px)/1.3 var(--serif); letter-spacing: .02em; }
h3 { font-size: 16px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .right { text-align: right; }
.hide { display: none !important; }
[hidden] { display: none !important; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 8px; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.25em; }
.ic.lg { width: 28px; height: 28px; } .ic.xl { width: 44px; height: 44px; stroke-width: 1.4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 公告列與頁首 */
.announce { background: var(--ink); color: #d8d0c5; font-size: 12.5px; text-align: center; padding: 7px var(--gut); letter-spacing: .04em; }
.announce b { color: #e3c58d; font-weight: 600; }
.announce .sep { margin: 0 10px; opacity: .45; } .announce .wel { display: none; }
header.site { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hdr { display: flex; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { font: 800 21px/1.1 var(--serif); color: var(--accent); letter-spacing: .06em; }
.logo small { display: block; font: 500 10.5px/1.4 var(--sans); color: var(--muted); letter-spacing: .2em; margin-top: 3px; }
.search { flex: 1 1 100%; order: 3; display: flex; }
.search input { border-radius: var(--r) 0 0 var(--r); border-right: 0; }
.search .btn { border-radius: 0 var(--r) var(--r) 0; padding: 0 18px; }
input[type=search] { -webkit-appearance: none; appearance: none; }
.hdr-cart { margin-left: auto; position: relative; padding: 8px; color: var(--text); }
.hdr-cart .ic { width: 24px; height: 24px; }
.hdr-cart .badge { position: absolute; top: 0; right: -2px; }
.hdr-links { display: none; margin-left: auto; align-items: center; gap: 22px; font-size: 15px; }
.hdr-links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.hdr-links a:hover { border-color: var(--accent); }
.hdr-links form { margin: 0; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.badge { background: var(--accent); color: #fff; border-radius: 999px; font: 700 11px/1 var(--sans); min-width: 18px; height: 18px;
  padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }
.catnav { display: none; border-top: 1px solid var(--line); background: var(--card); }
.catnav .wrap { display: flex; gap: 28px; font-size: 14.5px; }
.catnav a { padding: 10px 0; border-bottom: 2px solid transparent; color: var(--text); }
.catnav a:hover, .catnav a.on { border-color: var(--accent); color: var(--accent); }

/* 表單與按鈕：觸控目標至少 44px；輸入框 16px 避免 iOS 自動放大 */
input, select, textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cfc8be; border-radius: var(--r);
  background: #fff; color: var(--text); width: 100%; min-height: 46px; }
input::placeholder, textarea::placeholder { color: #9b928a; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
label.field { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
label.field > input, label.field > select, label.field > textarea { margin-top: 6px; font-weight: 400; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid var(--accent);
  border-radius: var(--r); background: var(--accent); color: #fff; font: 600 15.5px/1 var(--sans); letter-spacing: .06em; cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s, transform .12s cubic-bezier(.4,0,.2,1), box-shadow .15s; }
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); }
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; } .btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.ghost { background: transparent; color: var(--accent); } .btn.ghost:hover { background: var(--accent-soft); }
.btn.dark { background: var(--ink); border-color: var(--ink); } .btn.dark:hover { background: #000; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; } .btn.light:hover { background: var(--soft); }
.btn.gray { background: var(--soft); color: var(--text); border-color: var(--soft); } .btn.gray:hover { background: #e6e0d6; }
.btn.link { background: none; border: 0; color: var(--accent); min-height: 0; padding: 0; font-weight: 600; letter-spacing: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
main.wrap { padding-top: 18px; padding-bottom: 28px; min-height: 60vh; }

/* ---- 全站頁面載入：頂部進度條 + 內容淡入進場 ---- */
#page-load-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--brass, var(--accent))); opacity: 0; box-shadow: 0 0 10px rgba(138,28,43,.55); }
#page-load-bar.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* 只動 opacity，不能用 transform：transform（就算是 translateY(0)）會讓這層變成
     position:fixed 子層級的新定位基準，害後台拖曳排序的浮動卡片、底部操作列整個跑位。 */
  @keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
  main.wrap, .adm-main { animation: pageFadeIn .32s ease-out both; }
}
.flash { background: var(--warn-soft); border-left: 3px solid var(--brass); padding: 10px 14px; margin: 0 0 12px; font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.card > h3:first-child, .card > h2:first-child { margin-bottom: 12px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; gap: 12px; }
.sec-title h2 { margin: 0; padding-left: 12px; border-left: 3px solid var(--accent); }
.sec-title a { color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* 首頁 */
.hero { background: var(--ink); color: #eee7dc; margin: -18px calc(var(--gut) * -1) 0; padding: 32px var(--gut) 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero > * { min-width: 0; }
.hero h2 { color: #fff; margin: 0 0 12px; font-size: clamp(26px, 4vw + 10px, 44px); }
.hero p { margin: 0 0 22px; color: #cfc6b9; max-width: 34em; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn.ghost { color: #fff; border-color: #6d655d; } .hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.hero .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hero .shots div { aspect-ratio: 3 / 4; background: #2c2825 center / cover; border-radius: var(--r); }
.hero .shots div:nth-child(2) { margin-top: 14px; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 calc(var(--gut) * -1); border-left: 0; border-right: 0; }
.service { background: var(--card); padding: 14px var(--gut); display: flex; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.4; }
.service .ic { color: var(--accent); width: 26px; height: 26px; }
.service b { display: block; font-size: 14.5px; }
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 38%; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0; padding: 2px 0 8px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { scroll-snap-align: start; display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.cat img, .cat .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,14,.82), rgba(20,16,14,0) 62%); }
.cat span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; font: 700 17px/1.2 var(--serif); letter-spacing: .08em; }
.cat span small { display: block; font: 400 12px var(--sans); letter-spacing: .04em; opacity: .8; margin-top: 2px; }
.offers { display: grid; gap: 10px; }
.offer { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r); padding: 16px; }
.offer .no { font: 700 12px var(--sans); letter-spacing: .18em; color: var(--brass); }
.offer h3 { margin: 4px 0 6px; font: 700 17px var(--serif); }
.offer p { margin: 0; font-size: 14px; color: var(--muted); }
.coupon-chip { display: inline-block; border: 1px dashed var(--accent); color: var(--accent); padding: 1px 9px; border-radius: 3px; font: 700 13.5px var(--sans); letter-spacing: .08em; cursor: pointer; background: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }

/* 商品卡 */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .15s, box-shadow .15s; }
.pcard .ph { aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard .nm { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.pc-spec { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -2px; }
.price { color: var(--accent); font-weight: 700; font-size: 18px; letter-spacing: .01em; } .price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.pcard.soldout .ph { opacity: .5; } .pcard.soldout .price { color: var(--muted); }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 8px; border: 1px solid #d9cfc0; color: #6b5636; border-radius: 3px; margin: 0 4px 2px 0; background: #fbf8f2; }
.tag.gold { background: var(--warn-soft); border-color: #e3cf9c; color: #7a5a14; } .tag.green { background: var(--ok-soft); border-color: #b5d6c3; color: var(--ok); }
.ribbon { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11.5px; letter-spacing: .06em; padding: 2px 9px; border-radius: 3px; z-index: 1; }
.ribbon.gray { background: #5f5850; }
.noimg { display: grid; place-items: center; background: var(--soft); color: #a79d90; font: 600 11px var(--sans); letter-spacing: .2em; width: 100%; height: 100%; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0; padding: 2px 0 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .pcard { flex: 0 0 156px; scroll-snap-align: start; }

/* 商品頁 */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; } .crumbs a:hover { color: var(--accent); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); background: var(--soft); scrollbar-width: none; border: 1px solid var(--line); }
.gallery::-webkit-scrollbar { display: none; }
.gallery { align-items: center; }
.gallery img { flex: 0 0 100%; width: 100%; height: auto; max-height: min(78vh, 680px); scroll-snap-align: center; object-fit: contain; background: var(--soft); }
.gallery .noimg { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #cfc6b9; transition: width .2s; } .dots i.on { background: var(--accent); width: 18px; border-radius: 3px; }
.thumbs { display: none; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; background: var(--soft); cursor: pointer; opacity: .7; min-height: 0; }
.thumbs button.on, .thumbs button:hover { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vlist { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.vopt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; min-height: 48px; }
.vopt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.vopt.out { opacity: .5; cursor: not-allowed; } .vopt .vn { flex: 1; font-size: 15px; line-height: 1.4; } .vopt .vp { font-weight: 700; color: var(--accent); white-space: nowrap; }
.vopt .vs { font-size: 12px; color: var(--muted); }
.rf-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rf-row:last-of-type { border-bottom: 0; }
.rf-meta { font-size: 12.5px; color: var(--muted); }
.rf-qty { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; color: var(--muted); }
.rf-qty input { width: 56px; padding: 6px 8px; text-align: center; }
.specs { display: grid; grid-template-columns: 5.5em 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs dt, .specs dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; } .specs dt { color: var(--muted); } .specs dd { white-space: pre-line; padding-left: 8px; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: #fff; padding: 12px 14px; font-size: 14px; margin: 16px 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #cfc8be; border-radius: var(--r); background: #fff; overflow: hidden; }
.stepper button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--accent); display: grid; place-items: center; padding: 0; }
.stepper button:disabled { color: #bbb; cursor: not-allowed; }
.stepper input { width: 46px; text-align: center; border: 0; padding: 0; min-height: 44px; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; box-shadow: 0 -6px 18px rgba(30,20,10,.08); }
.buybar .sum { flex: none; line-height: 1.25; } .buybar .btn { flex: 1; }
details.fold { border-top: 1px solid var(--line); padding: 4px 0; } details.fold:last-of-type { border-bottom: 1px solid var(--line); }
details.fold summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "+"; font-size: 20px; color: var(--muted); font-weight: 300; } details.fold[open] summary::after { content: "\2212"; }
details.fold ul { margin: 0 0 10px; padding-left: 20px; font-size: 14px; color: var(--muted); } details.fold li { margin-bottom: 4px; }

/* 購物車 / 結帳 */
.progress { background: var(--soft); border-radius: 999px; height: 6px; overflow: hidden; margin: 10px 0 6px; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s; }
.progress.done > i { background: var(--ok); }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; } .line:last-child { border-bottom: 0; padding-bottom: 0; }
.line img, .line .noimg { width: 76px; height: 76px; object-fit: cover; border-radius: var(--r); background: var(--soft); }
.line .nm { font-size: 15px; line-height: 1.45; } .line .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.sumtable { width: 100%; border-collapse: collapse; } .sumtable td { padding: 6px 0; vertical-align: top; } .sumtable td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.sumtable .off td { color: var(--ok); } .sumtable .grand td { font-size: 20px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); }
.sumtable .grand td:last-child { color: var(--accent); }
.addon { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.addon:last-child { border-bottom: 0; } .addon img, .addon .noimg { width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; }
.addon .was { text-decoration: line-through; color: var(--muted); font-size: 12px; margin-left: 4px; } .addon.locked { opacity: .55; }

/* 達成免運時的彩帶特效 */
.confetti-box { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; top: -10px; width: 9px; height: 14px; opacity: .95; animation: confettiFall ease-in forwards; }
@keyframes confettiFall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(100vh) rotate(540deg); opacity: 0; } }

/* 購物車／結帳：按下前往結帳跳出的「加一樣就免運」提示 */
.shipgate-head { text-align: center; padding: 2px 0 14px; }
.shipgate-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--soft); color: var(--accent); margin-bottom: 8px; animation: shipgatePulse 1.8s ease-in-out infinite; }
.shipgate-ic .ic { width: 26px; height: 26px; }
.shipgate-head h3 { margin: 0 0 4px; font-size: 18px; }
.shipgate-head #shipgate-msg { margin: 0 0 10px; }
.shipgate-list { max-height: 46vh; overflow-y: auto; }
.shipgate-item { transition: opacity .3s, transform .3s; }
.shipgate-item.added { opacity: .5; }
.shipgate-item.added .shipgate-addbtn { background: var(--ok); border-color: var(--ok); color: #fff; }
.shipgate-list.locked .shipgate-item:not(.added) { opacity: .4; pointer-events: none; }
.shipgate-addbtn { transition: transform .12s ease, background .15s ease; }
.shipgate-addbtn:active { transform: scale(.92); }
.shipgate-actions { margin-top: 14px; text-align: center; }
.shipgate-actions .btn { width: 100%; }
@keyframes shipgatePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(142, 27, 43, .25); } 50% { box-shadow: 0 0 0 8px rgba(142, 27, 43, 0); } }
.stickycta { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 35; background: #fff;
  border-top: 1px solid var(--line); padding: 10px var(--gut); display: flex; gap: 14px; align-items: center; box-shadow: 0 -6px 18px rgba(30,20,10,.08); }
.stickycta .btn { flex: 1; }
.steps { display: flex; margin: 8px 0 20px; counter-reset: s; }
.step { flex: 1; text-align: center; font-size: 12.5px; position: relative; color: var(--muted); }
.step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.step:first-child::before { display: none; } .step.done::before, .step.now::before { background: var(--ok); }
.step i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin: 0 auto 6px; font: 600 12px var(--sans); font-style: normal; }
.step .ic { width: 14px; height: 14px; stroke-width: 3; }
.step.done { color: var(--text); } .step.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.now i { border-color: var(--accent); color: var(--accent); }
.paybox { background: var(--soft); border-radius: var(--r); padding: 12px 14px; font-size: 15px; } .paybox b { font-size: 17px; letter-spacing: .06em; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid; margin-bottom: 14px; }
.alert.ok { background: var(--ok-soft); border-color: #b5d6c3; } .alert.ok .ic { color: var(--ok); }
.alert .ic { width: 22px; height: 22px; margin-top: 2px; }

/* 底部分頁列 / 抽屜 / 頁尾 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); gap: 3px; position: relative; letter-spacing: .04em; }
.tabbar .ic { width: 22px; height: 22px; } .tabbar a.on { color: var(--accent); font-weight: 600; }
.tabbar a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--accent); }
.tabbar .badge { position: absolute; top: 5px; left: calc(50% + 7px); }
body.no-tabbar .tabbar { display: none; }
.sheet-bg { position: fixed; inset: 0; background: rgba(20,16,14,.45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-radius: 14px 14px 0 0; padding: 20px var(--gut) calc(18px + env(safe-area-inset-bottom));
  transform: translateY(105%); visibility: hidden; transition: transform .25s, visibility .25s; max-width: 560px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(0,0,0,.22); }
.sheet-open .sheet { transform: none; visibility: visible; } .sheet-open .sheet-bg { opacity: 1; pointer-events: auto; }
.toast-ok { display: flex; gap: 8px; align-items: center; font: 700 17px var(--serif); margin-bottom: 10px; } .toast-ok .ic { color: var(--ok); }
footer.site { background: var(--ink); color: #b9b0a4; padding: 30px 0 24px; font-size: 13.5px; margin-top: 24px; }
footer.site .cols { display: grid; gap: 20px; } footer.site h4 { color: #fff; margin: 0 0 8px; font: 700 16px var(--serif); letter-spacing: .08em; }
footer.site a { color: #d8d0c5; text-decoration: underline; text-underline-offset: 3px; } footer.site p { margin: 0 0 6px; }

/* 後台 */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; align-items: center; scrollbar-width: none; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 14px; }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; min-width: 620px; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--soft); font-size: 12px; color: var(--muted); white-space: nowrap; letter-spacing: .06em; } .tbl tr:last-child td { border-bottom: 0; }
.tbl input { min-height: 36px; padding: 4px 8px; font-size: 14px; width: 92px; }
.st { padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; background: #eee; white-space: nowrap; letter-spacing: .04em; }
.st.pending { background: var(--warn-soft); color: #7a5a14; } .st.paid { background: #e3ebf7; color: #234c91; } .st.shipped { background: #e6e3f6; color: #3b3290; }
.st.done { background: var(--ok-soft); color: var(--ok); } .st.cancelled { background: #eee; color: #888; }
.st.returned { background: #fbe4e1; color: #a23f2e; } .st.picked_up { background: var(--ok-soft); color: var(--ok); }
.inline { display: inline; margin: 0; }
.cartgrid { display: block; } .pdp { display: block; }

/* 480+ 大手機 */
@media (min-width: 480px) {
  .hscroll .pcard { flex-basis: 176px; } .cats { grid-auto-columns: 30%; }
  .offers { grid-template-columns: repeat(3, 1fr); }
}
/* 640+ 小平板 */
@media (min-width: 640px) {
  :root { --gut: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .services { grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); } .service { padding: 16px; }
  .cats { grid-auto-columns: 22%; } footer.site .cols { grid-template-columns: 1.4fr 1fr; }
  .announce .wel { display: inline; }
}
/* 768+ 平板：換成桌面導覽，隱藏底部分頁列 */
@media (min-width: 768px) {
  body, body.no-tabbar { padding-bottom: 0; }
  .tabbar { display: none; } .hdr-cart { display: none; } .hdr-links { display: flex; }
  .search { flex: 0 1 380px; order: 0; margin-left: 28px; } .catnav { display: block; }
  .hero { margin: 0; border-radius: var(--r); padding: 44px 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; margin-top: 4px; }
  .hero .shots div:nth-child(2) { margin-top: 28px; }
  .hscroll { margin: 0; padding: 2px 0 8px; } .hscroll .pcard { flex-basis: 200px; }
  .cats { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .buybar { position: static; box-shadow: none; border: 0; padding: 16px 0 0; background: none; }
  .gallery img, .gallery .noimg { cursor: zoom-in; } .thumbs { display: flex; } .dots { display: none; }
  .stickycta { position: static; box-shadow: none; border: 0; padding: 14px 0 0; background: none; }
  .sheet { bottom: 24px; border-radius: var(--r); right: 24px; left: auto; width: 420px; margin: 0; }
  .pcard:hover { border-color: #bfb4a4; box-shadow: 0 6px 20px rgba(40,25,10,.1); }
  .flash { border-radius: 0 var(--r) var(--r) 0; }
}
/* 960+ 小筆電：雙欄版型 */
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; } .pdp .gal { position: sticky; top: 130px; }
  .cartgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; } .cartgrid .side { position: sticky; top: 130px; }
  .cats { grid-template-columns: repeat(7, 1fr); } .hscroll .pcard { flex-basis: 220px; }
  .vlist { max-height: 300px; }
}
/* 1200+ 桌機 */
@media (min-width: 1200px) {
  :root { --gut: 32px; } .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero { padding: 56px 56px; } .hscroll .pcard { flex-basis: 232px; }
}
/* 1440+ 大螢幕：維持版心寬度，放大留白 */
@media (min-width: 1440px) { .wrap { max-width: 1320px; } }
/* 矮螢幕（手機橫放）：縮小固定列 */
@media (max-height: 480px) and (orientation: landscape) { .announce { display: none; } header.site { position: static; } .sheet { max-height: 92vh; overflow-y: auto; } }
/* 無障礙與列印 */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .announce, header.site, .tabbar, footer.site, .stickycta, .buybar, .sheet, .sheet-bg, .btn { display: none !important; } body { background: #fff; padding: 0; } .card { border-color: #ccc; } }

/* 後台可設定的標誌與橫幅輪播 */
.logo-img { height: 34px; width: auto; max-width: min(200px, 48vw); object-fit: contain; display: block; }
@media (min-width: 640px) { .logo-img { height: 44px; max-width: 240px; } }
@media (min-width: 960px) { .logo-img { height: 50px; max-width: 280px; } }
.logo .logo-img + small { margin-top: 4px; }
.banners { position: relative; margin: -18px calc(var(--gut) * -1) 0; }
.bn-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bn-track::-webkit-scrollbar { display: none; }
.bn { flex: 0 0 100%; position: relative; scroll-snap-align: start; display: block; aspect-ratio: 4 / 3; background: var(--ink); overflow: hidden; }
.bn picture { display: block; width: 100%; height: 100%; } .bn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,14,.72), rgba(20,16,14,0) 60%); }
.bn-txt { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: 22px; color: #fff; }
.bn-txt h2 { color: #fff; margin: 0 0 4px; font-size: clamp(20px, 4vw + 8px, 38px); } .bn-txt p { margin: 0 0 12px; color: #e6ded3; max-width: 36em; }
.bn-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.bn-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); } .bn-dots i.on { background: #fff; width: 18px; border-radius: 3px; }
@media (max-width: 767px) { .banners.m-sq .bn { aspect-ratio: 1 / 1; } }
.banners { position: relative; } .bn-arr { display: none; }
@media (min-width: 768px) { .banners { margin: 4px 0 0; border-radius: var(--r); overflow: hidden; } .bn { aspect-ratio: 1600 / 680; }
  .bn-arr { display: grid; place-items: center; position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #1d1a18; font-size: 26px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
  .banners:hover .bn-arr, .bn-arr:focus-visible { opacity: 1; } .bn-arr.prev { left: 14px; } .bn-arr.next { right: 14px; } .bn-txt { left: 48px; bottom: 44px; } }

/* 商品介紹（內文：文字 / 小標 / 圖片含圖說 / 可展開的商品資訊） */
.pdesc { max-width: 820px; margin: 36px 0 8px; text-align: left; }
.pdesc * { text-align: left; }
.pd-fig figcaption { text-align: left; }
.pd-title { font-size: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); margin: 0 0 16px; }
.pd-intro, .pd-p { white-space: pre-line; line-height: 1.85; margin: 0 0 14px; overflow-wrap: anywhere; }
.pd-h { font-size: 17px; margin: 24px 0 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.pd-fig { margin: 16px 0; } .pd-fig img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--soft); }
.pd-fig figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; white-space: pre-line; }
.pdesc details.fold { margin-top: 0; }

.pd-p b { font-weight: 700; } .pd-p u { text-underline-offset: 2px; }

/* ============ 柔化版型（圓角加大、留白加寬、字級與邊框變輕）============ */
:root { --r: 8px; --r-lg: 10px; --line: #ece6dd; --sh: 0 1px 2px rgba(60,40,20,.05); }
body { font-size: 15px; line-height: 1.65; }
h1 { font-weight: 650; } h3 { font-size: 15.5px; }
.muted { color: #7a7168; }
/* 頁首 */
.announce { font-size: 12px; padding: 6px var(--gut); letter-spacing: .03em; }
header.site { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(60,40,20,.04); }
.hdr { padding-top: 10px; padding-bottom: 12px; gap: 10px 14px; }
.search { background: #fff; border: 1px solid #d9d1c6; border-radius: 999px; overflow: hidden; align-items: stretch; }
.search input { border: 0; border-radius: 0; min-height: 42px; padding-left: 18px; background: transparent; outline-offset: -2px; }
.search .btn { border-radius: 0; min-height: 42px; padding: 0 16px; }
.catnav a { padding: 12px 0; }
/* 按鈕與表單 */
input, select, textarea { border-color: #d9d1c6; border-radius: var(--r); min-height: 44px; padding: 9px 14px; }
.btn { border-radius: var(--r); min-height: 44px; padding: 0 20px; font-size: 15px; letter-spacing: .04em; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn.sm { min-height: 34px; border-radius: 12px; padding: 0 14px; }
.btn.gray { border-color: transparent; }
.chip { border-radius: 999px; min-height: 38px; padding: 0 16px; font-size: 14px; border-color: var(--line); }
.stepper { border-radius: 999px; border-color: #d9d1c6; } .stepper button { width: 42px; } .stepper input { width: 40px; }
.tag { border-radius: 999px; padding: 1px 10px; font-size: 11.5px; }
.ribbon { border-radius: 999px; padding: 2px 10px; top: 10px; left: 10px; }
.badge { border-radius: 999px; }
/* 區塊 */
main.wrap { padding-top: 20px; padding-bottom: 36px; }
.card { border-radius: var(--r-lg); border-color: var(--line); padding: 18px; margin-bottom: 16px; box-shadow: var(--sh); }
.flash { border-radius: var(--r); border-left-width: 1px; border: 1px solid #ecdcb8; padding: 11px 16px; }
.alert { border-radius: var(--r); }
.notice { border-radius: var(--r); border: 1px solid var(--line); background: #fffdf9; padding: 13px 16px; margin: 18px 0; }
.sec-title { margin: 40px 0 16px; }
.sec-title h2 { border-left: 0; padding-left: 0; display: flex; align-items: center; gap: 10px; font-size: 19px; }
.sec-title h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--accent); flex: none; }
.sec-title a { font-size: 13.5px; }
/* 首頁 */
.hero { margin: 0; border-radius: 10px; padding: 30px 22px 24px; gap: 26px; }
.hero h2 { font-size: clamp(25px, 4vw + 10px, 44px); margin-bottom: 14px; }
.hero p { font-size: 15px; margin-bottom: 24px; color: #d6cdc0; }
.hero .shots { gap: 10px; } .hero .shots div { border-radius: 8px; } .hero .shots div:nth-child(2) { margin-top: 16px; }
.hero .btn { border-radius: 999px; }
.banners { margin: 0; border-radius: 10px; overflow: hidden; }
.services { background: transparent; border: 0; gap: 10px; margin: 16px 0 0; }
.service { border: 1px solid var(--line); border-radius: 8px; padding: 14px 14px; gap: 10px; box-shadow: var(--sh); }
.service .ic { width: 24px; height: 24px; } .service b { font-size: 14px; }
.cats { gap: 12px; padding-top: 4px; padding-bottom: 12px; } .cat { border-radius: 8px; }
.cat span { left: 14px; bottom: 12px; font-size: 16px; }
.offers { gap: 12px; }
.offer { border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: var(--sh); }
.offer h3 { margin: 6px 0 8px; font-size: 17px; } .offer p { line-height: 1.7; }
.coupon-chip { border-radius: 999px; padding: 2px 12px; }
/* 商品卡 */
.grid { gap: 14px; }
.pcard { border-radius: 8px; border-color: var(--line); box-shadow: var(--sh); }
.pcard .body { padding: 12px 14px 14px; gap: 6px; }
.pcard .nm { font-size: 13.5px; min-height: 38px; }
.price { font-weight: 650; font-size: 17px; } .pcard .price { font-size: 16px; }
.hscroll { gap: 14px; padding-bottom: 14px; } .hscroll .pcard { flex-basis: 160px; }
/* 商品頁 */
.gallery { border-radius: 8px; border-color: transparent; background: #fff; box-shadow: var(--sh); }
.gallery img { background: #fff; }
.dots { margin: 12px 0; } .thumbs button { border-radius: 14px; }
.vlist { gap: 10px; }
.vopt { border-radius: var(--r); padding: 12px 16px; border-color: var(--line); }
.vopt:has(input:checked) { box-shadow: none; border-color: var(--accent); }
details.fold { border-top-color: var(--line); } details.fold:last-of-type { border-bottom-color: var(--line); }
.specs { border-top-color: var(--line); } .specs dt, .specs dd { border-bottom-color: var(--line); padding: 11px 0; }
.pdesc { margin-top: 44px; }
.pd-title { border-bottom: 1px solid var(--line); position: relative; font-size: 19px; }
.pd-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; border-radius: 3px; background: var(--accent); }
.pd-h { border-left: 0; padding-left: 0; font-size: 16.5px; } .pd-fig img { border-radius: 8px; }
.pd-intro, .pd-p { line-height: 1.9; }
/* 購物車 / 結帳 */
.line { gap: 14px; padding: 16px 0; } .line img, .line .noimg { border-radius: 8px; }
.addon img, .addon .noimg { border-radius: 14px; }
.addon { padding: 14px 0; }
.sumtable td { padding: 7px 0; }
.paybox { border-radius: var(--r); }
.step i { border-width: 1.5px; }
/* 固定列：圓角與柔和陰影 */
.tabbar { border-top: 0; border-radius: 8px 8px 0 0; box-shadow: 0 -1px 0 var(--line); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tabbar a.on::before { top: 4px; left: 36%; right: 36%; height: 3px; border-radius: 3px; }
.buybar, .stickycta { border-top: 0; border-radius: 8px 8px 0 0; box-shadow: 0 -1px 0 var(--line); padding-top: 12px; }
.stickycta { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) - 8px); padding-bottom: 20px; z-index: 40; }
.sheet { border-radius: 10px 26px 0 0; padding-top: 24px; }
footer.site { border-radius: 10px 28px 0 0; margin-top: 36px; padding-top: 34px; }
.tbl-wrap { border-radius: var(--r); }
@media (min-width: 768px) {
  .hero { border-radius: 10px; padding: 48px 44px; } .banners { border-radius: 10px; }
  .services { margin-top: 18px; } .search { max-width: 380px; }
  .sheet { border-radius: 8px; } .buybar, .stickycta { border-radius: 0; box-shadow: none; }
  footer.site { border-radius: 0; }
  .pcard:hover { border-color: #d9cfc0; box-shadow: 0 0 0 1px #d9cfc0; transform: translateY(-2px); }
}
@media (min-width: 768px) { .pcard { transition: border-color .15s, box-shadow .15s, transform .15s; } }
.center > .ic, .center > div > .ic, .center .muted > .ic { margin-left: auto; margin-right: auto; margin-bottom: 10px; }
.service { font-size: 12.5px; } .service b { font-size: 13.5px; }
.search input { text-overflow: ellipsis; }

/* 頁尾自訂連結列 */
footer.site .footlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
footer.site .footlinks a { text-decoration: underline; text-underline-offset: 3px; }
footer.site .footlinks span { margin-left: auto; opacity: .7; }

/* ---- 手機 App 安裝引導與通知卡片 ---- */
.pwa-bar { position: fixed; left: 10px; right: 10px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 1px 2px rgba(40,25,10,.12); max-width: 520px; margin: 0 auto; }
.pwa-bar[hidden], .pwa-help[hidden] { display: none; }
.pwa-ic { border-radius: 10px; flex: none; }
.pwa-tx { flex: 1; min-width: 0; line-height: 1.4; }
.pwa-tx b { display: block; font-size: 14px; }
.pwa-tx span { display: block; font-size: 12.5px; color: var(--muted); }
.pwa-x { flex: none; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.pwa-x .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pwa-help { position: fixed; inset: 0; z-index: 90; background: rgba(20,12,6,.5); display: flex; align-items: flex-end; justify-content: center; }
.pwa-help-box { position: relative; background: #fff; width: 100%; max-width: 520px; border-radius: 8px 8px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.pwa-help-box h3 { margin: 0 0 8px; font-size: 17px; }
.pwa-help-box .pwa-x { position: absolute; right: 10px; top: 10px; }
.pwa-help-box ol { padding-left: 20px; margin: 8px 0 12px; line-height: 1.9; }
.pwa-share { width: 20px; height: 20px; vertical-align: -5px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.push-card[hidden] { display: none; }
@media (min-width: 821px) { .pwa-bar { display: none !important; } }

/* ---- 安全區域：加到主畫面（App 模式）時，內容不能被狀態列 / 瀏海 / 動態島蓋住 ---- */
body { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--ink); z-index: 100; pointer-events: none; }
header.site { top: env(safe-area-inset-top); }
@media (min-width: 960px) { .pdp .gal, .cartgrid .side { top: calc(130px + env(safe-area-inset-top)); } }
.pwa-help { padding-top: env(safe-area-inset-top); }

/* ---- 手機版頁首：Logo 放大、搜尋框收合成圖示 ---- */
.hdr-search { margin-left: auto; width: 42px; height: 42px; border: 0; background: transparent; color: var(--text); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.hdr-search .ic { width: 24px; height: 24px; }
.hdr-search + .hdr-cart { margin-left: 0; }
@media (max-width: 767px) {
  .hdr { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; gap: 4px; }
  .logo { flex: 1 1 auto; min-width: 0; font-size: 26px; }
  .logo-img { height: 64px; max-width: 58vw; }
  .logo small { font-size: 10px; }
  .search { display: none; }
  body.search-open .hdr { flex-wrap: wrap; }
  body.search-open .search { display: flex; flex: 1 1 100%; order: 5; }
  .search input { min-height: 40px; }
}
@media (min-width: 768px) { .hdr-search { display: none; } }

/* ---- 右側懸浮球：一顆主按鈕，按下展開其他功能 ---- */
.floats { position: fixed; right: calc(14px + env(safe-area-inset-right)); bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 84px); z-index: 45;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transform: scale(.7); animation: flWrapIn .35s .1s cubic-bezier(.2,1.2,.4,1) forwards; }
body.no-tabbar .floats { bottom: calc(env(safe-area-inset-bottom) + 96px); }
@keyframes flWrapIn { to { opacity: 1; transform: scale(1); } }
.fl-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fl { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: #fff; border: 1.5px solid var(--line); color: var(--text); box-shadow: 0 1px 2px rgba(30,20,10,.12);
  transition: transform .18s ease, box-shadow .18s ease, opacity .16s ease; }
.fl:active { transform: scale(.88); }
.fl-group .fl { opacity: 0; transform: translateY(10px) scale(.4); pointer-events: none;
  transition: transform .22s cubic-bezier(.34,1.3,.4,1), opacity .16s ease; }
.floats.open .fl-group .fl { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fl-group .fl:nth-child(1) { transition-delay: .12s; } .fl-group .fl:nth-child(2) { transition-delay: .08s; }
.fl-group .fl:nth-child(3) { transition-delay: .04s; } .fl-group .fl:nth-child(4) { transition-delay: 0s; }
.fl-line { color: #06c755; } .fl-line svg { width: 19px; height: 19px; fill: currentColor; }
.fl-tel { color: #1d1a18; } .fl-tel svg { width: 19px; height: 19px; }
.fl-cart { color: var(--accent); }
.fl-cart .ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fl-cart .badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 3px; font-size: 10px;
  background: var(--accent); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.fl-share { color: var(--brass); } .fl-share .ic { width: 18px; height: 18px; stroke: currentColor; }
/* 主按鈕：客服圖示 展開／✕ 收合，大小與其他球球一致 */
.fl-main { background: var(--accent); border: 2px solid #fff; color: #fff; box-shadow: 0 1px 2px rgba(30,20,10,.18); }
.fl-main-ic, .fl-main-x { position: absolute; width: 18px; height: 18px; transition: opacity .18s ease, transform .22s cubic-bezier(.4,0,.2,1); }
.fl-main-x { opacity: 0; transform: rotate(-45deg) scale(.5); }
.floats.open .fl-main-ic { opacity: 0; transform: rotate(45deg) scale(.5); }
.floats.open .fl-main-x { opacity: 1; transform: rotate(0) scale(1); }
@media (min-width: 768px) {
  .floats { bottom: 24px; } body.no-tabbar .floats { bottom: 24px; } .fl { width: 44px; height: 44px; }
  .fl:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(30,20,10,.16); }
  .floats.open .fl-group .fl:hover { transform: translateY(-2px) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .floats { opacity: 1; transform: none; animation: none; } .fl-group .fl { transition-delay: 0s !important; } }
@media print { .floats { display: none !important; } }

/* ---- 商品卡片：加入購物車 ---- */
.pcard .pc-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.pcard .pc-add { margin: 0 12px 12px; min-height: 40px; border: 1px solid var(--accent); background: #fff; color: var(--accent); border-radius: 999px; font: 600 13.5px/1 var(--sans);
  display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.pcard .pc-add .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pcard .pc-add:hover, .pcard .pc-add:active { background: var(--accent); color: #fff; }
.pcard .pc-add:disabled { opacity: .5; }
.pcard .pc-add.off { border-color: var(--line); color: var(--muted); cursor: default; background: var(--soft); }

/* ---- 規格選擇器（商品頁 / 加入購物車抽屜）---- */
.pk-body .pk-price { font-size: 28px; margin: 10px 0 2px; color: var(--accent); }
.pk-stock { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.pk-stock.low { color: var(--accent); font-weight: 600; }
.pk-group { padding: 14px 0 6px; border-top: 1px solid var(--line); margin-top: 10px; }
.pk-lab { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid transparent; background: var(--soft); color: var(--text);
  border-radius: 10px; font: 500 14.5px/1.35 var(--sans); cursor: pointer; text-align: left; max-width: 100%; }
.pk-chip img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; flex: none; }
.pk-chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.pk-chip.dis { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.pk-hint { color: var(--accent); margin: 8px 0 0; min-height: 1.2em; }
.pk-sheet { position: relative; }
.pk-sheet .pk-x { position: absolute; right: -4px; top: -10px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pk-sheet .pk-x .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pk-top { display: flex; gap: 14px; align-items: flex-end; padding-right: 30px; }
.pk-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--soft); flex: none; }
.pk-info { min-width: 0; }
.pk-name { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-info .pk-price { font-size: 24px; margin: 4px 0 2px; color: var(--accent); }
.pk-root { max-height: 42vh; overflow-y: auto; margin-top: 4px; }
.pk-qtyrow { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 8px; font-weight: 600; }
.pk-sheet .btn.block:disabled { background: #e6e1da; color: #9a9188; }

/* 購物車：宅配 / 超取 兩條免運進度 */
.fscard .fs-row { padding: 6px 0 10px; } .fscard .fs-row + .fs-row { border-top: 1px dashed var(--line); padding-top: 10px; }
.fs-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.fs-m { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; } .fs-m .ic { width: 18px; height: 18px; }
.fs-s { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; } .fs-s .ic { width: 16px; height: 16px; }
.fscard .progress { margin: 0; }

/* 商品名稱字級 / 粗細（後台「網站設定」可調） */
.pcard .nm { font-size: var(--card-title-size, 16px); font-weight: var(--card-title-weight, 700); line-height: 1.4; min-height: calc(2.8em); }
h1.pdp-title { font-size: var(--pdp-title-size, 26px); font-weight: var(--pdp-title-weight, 700); line-height: 1.3; }

.fl-share.sent .ic { stroke: var(--ok); animation: sentPop .4s ease; }
@keyframes sentPop { 0% { transform: scale(.4) rotate(-10deg); } 55% { transform: scale(1.3) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }

/* 手機版：右上角選單按鈕與分類抽屜（電腦版用上方固定的分類列） */
.hdr-menu { width: 42px; height: 42px; border: 0; background: transparent; color: var(--text); border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.hdr-menu .ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-bg { position: fixed; inset: 0; background: rgba(20,16,14,.5); z-index: 90; opacity: 0; transition: opacity .2s; }
.drawer-bg.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); background: #fff; z-index: 100; transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.15); visibility: hidden; padding-top: env(safe-area-inset-top); }
.drawer.open { transform: none; visibility: visible; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 17px; }
.dr-x { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.dr-x .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dr-nav { overflow-y: auto; padding: 6px 0 24px; }
.dr-nav a { display: block; padding: 15px 22px; font-size: 16px; color: var(--text); border-bottom: 1px solid #f0ebe3; }
.dr-nav a.strong { font-weight: 700; } .dr-nav a.on { color: var(--accent); font-weight: 700; }
.dr-nav hr { border: 0; border-top: 8px solid var(--soft, #f4f0ea); margin: 6px 0; }
body.menu-open { overflow: hidden; }
@media (min-width: 768px) { .hdr-menu, .drawer, .drawer-bg { display: none !important; } }
@media (min-width: 960px) { .logo-img { height: 72px; max-width: 380px; } }
.coupon-chip { user-select: all; transition: background .12s; } .coupon-chip:hover { background: var(--accent-soft, #f7e9ec); }
.copy-toast { position: fixed; left: 50%; bottom: calc(var(--tab-h, 64px) + env(safe-area-inset-bottom) + 24px); transform: translate(-50%, 12px); background: #1d1a18; color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 15px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: 90vw; }
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 站內付款頁 */
.paygrid { align-items: start; }
.payform h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; } .payform h3 .ic { width: 22px; height: 22px; }
.paywhy { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.paywhy li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 12px; background: var(--soft); border-radius: 10px; font-size: 14.5px; }
.paywhy li span { color: var(--muted); font-size: 13px; }
.paytest { background: #fff7e0; border: 1px solid #ecd48a; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.7; margin-bottom: 12px; }
.paytest b { display: block; }
.ecpay-box { min-height: 120px; margin-bottom: 14px; }
.payloading { color: var(--muted); padding: 24px 0; text-align: center; }
.payerr { background: #fbe9e9; border: 1px solid #e3b4b4; color: #8a1c1c; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 14.5px; }
.paybtn { min-height: 52px; font-size: 17px; } .paybtn .ic { width: 20px; height: 20px; }
.paynote { margin: 12px 0 0; line-height: 1.7; } .paynote .ic { width: 16px; height: 16px; vertical-align: -3px; }
.paybox-err .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sumrow { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14.5px; } .sumrow.total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; }
a.service { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; } a.service:hover { border-color: var(--accent); }

/* 商品橫向列：電腦版箭頭與細捲軸 */
.hs-wrap { position: relative; }
.hs-arr { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hscroll { scrollbar-width: thin; scrollbar-color: #c9bfb2 transparent; cursor: grab; }
  .hscroll::-webkit-scrollbar { display: block; height: 8px; } .hscroll::-webkit-scrollbar-thumb { background: #c9bfb2; border-radius: 4px; }
  .hscroll.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; } .hscroll.dragging a { pointer-events: none; }
  .hs-arr { display: grid; place-items: center; position: absolute; top: 38%; z-index: 4; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(40,25,10,.1); padding: 0 0 4px; }
  .hs-arr:hover { background: var(--accent); color: #fff; border-color: var(--accent); } .hs-arr[hidden] { display: none; }
  .hs-arr.prev { left: -14px; } .hs-arr.next { right: -14px; }
}
/* 商品頁主圖統一 1:1，電腦與手機一致 */
.gallery img { aspect-ratio: 1 / 1; height: auto; max-height: none; object-fit: cover; }

/* 首頁商品列：副標題與格狀排列 */
.sec-sub { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 400; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.pgrid .pcard { flex: none; }
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---- 結帳流程：步驟條與引導式結帳 ---- */
.stepbar { list-style: none; display: flex; align-items: center; gap: 0; margin: 4px 0 18px; padding: 0; }
.stepbar li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 13px; color: var(--muted); }
.stepbar li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.stepbar li:first-child::before { display: none; }
.stepbar li.done::before, .stepbar li.on::before { background: var(--accent); }
.stepbar i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 14px; background: #fff; border: 2px solid var(--line); color: var(--muted); position: relative; z-index: 1; }
.stepbar li.on i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft, #f7e9ec); }
.stepbar li.done i { background: var(--accent); border-color: var(--accent); color: #fff; } .stepbar i .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.stepbar li.on, .stepbar li.done { color: var(--text); font-weight: 600; }
.memberbar { display: flex; gap: 10px; align-items: center; background: var(--ok-soft, #e6f2ea); color: var(--ok, #2b6a4a); padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; font-size: 14.5px; } .memberbar .ic { width: 22px; height: 22px; }
.cosections { display: grid; gap: 14px; }
.stepcard { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: var(--sh); }
.stepcard > header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.stepcard h3 { margin: 0; font-size: 18px; } .stepcard header p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.sn { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 15px; }
.sn .ic { width: 17px; height: 17px; stroke-width: 2.8; }
.stepcard.done .sn { background: var(--ok, #2b6a4a); }
.field .opt { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 4px; }
.ferr { display: block; min-height: 0; color: #b42318; font-size: 13.5px; margin-top: 4px; } .ferr:empty { display: none; }
.field.bad input, .field.bad select { border-color: #b42318; background: #fff6f5; }
.field.good input, .field.good select { border-color: #2b6a4a; }
.errsum { background: #fff1ef; border: 1px solid #f1b5ad; color: #8a1c10; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.8; }

/* 會員「我的資料」：分組卡片 + 兩欄表單 */
.acc-toggle summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; }
.acc-toggle summary::-webkit-details-marker { display: none; }
.acc-toggle summary b { font-size: 16.5px; }
.acc-toggle summary .small { display: block; margin-top: 4px; font-weight: 400; }
.acc-toggle summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--muted); font-weight: 300; flex: none; }
.acc-toggle[open] summary::after { content: "\2212"; }
.acc-profile { padding-top: 18px; }
.acc-sec { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 2px; margin: 20px 0; }
.acc-sec h4 { margin: 0 0 14px; font: 700 14.5px/1.3 var(--sans); color: var(--text); }
.acc-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .acc-grid.two { grid-template-columns: 1fr 1fr; } .acc-grid .full { grid-column: 1 / -1; } }
.acc-pw { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.acc-pw h4 { margin: 0 0 14px; font-size: 16px; }
.errsum a { color: #b42318; font-weight: 700; text-decoration: underline; }
.shipopt { align-items: flex-start; } .shiphint { display: block; margin-top: 4px; font-size: 13px; color: var(--accent); font-weight: 600; } .shiphint:empty { display: none; }
.ptsbox { background: var(--soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.paypreview { display: grid; gap: 8px; margin-bottom: 14px; }
.pp-row { display: flex; gap: 10px; align-items: center; font-size: 14.5px; } .pp-n { width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; cursor: pointer; padding: 12px; background: var(--soft); border-radius: 12px; line-height: 1.6; } .agree input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.agree.bad { background: #fff6f5; outline: 1px solid #b42318; }
.sumcard h3 { display: flex; justify-content: space-between; align-items: baseline; } .editlink { font-size: 14px; color: var(--accent); font-weight: 600; }
.sumline { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; } .sumline .nm { flex: 1; min-width: 0; } .sumline b { white-space: nowrap; }
.sumline .th { position: relative; flex: none; } .sumline .th img, .sumline .th .noimg { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block; background: var(--soft); }
.sumline .th em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; font-style: normal; display: grid; place-items: center; }
.trust { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; } .trust li { display: flex; gap: 8px; align-items: center; } .trust .ic { width: 18px; height: 18px; color: var(--accent); }
.ctahint { margin: 8px 0 0; font-size: 13.5px; color: #b45309; text-align: center; font-weight: 600; }

/* ============ 統一的控制項規格（輸入框 / 下拉 / 按鈕）============
   高度：一般 46px、小 38px；圓角統一；字級 16px（手機不會自動放大）；焦點、停用、錯誤狀態一致。 */
:root { --ctl-h: 46px; --ctl-h-sm: 38px; --ctl-r: 8px; --ctl-line: #d9d1c6; --ring: 0 0 0 3px rgba(138, 28, 43, .16); }
input, select, textarea { min-height: var(--ctl-h); padding: 0 14px; border: 1px solid var(--ctl-line); border-radius: var(--ctl-r); background-color: #fff; color: var(--text); font-size: 16px; line-height: 1.4; transition: border-color .15s, box-shadow .15s, background-color .15s; }
textarea { padding: 12px 14px; min-height: 96px; line-height: 1.6; resize: vertical; }
select { -webkit-appearance: none; appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f655b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer; text-overflow: ellipsis; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input:disabled, select:disabled, textarea:disabled { background-color: #f3efe9; color: var(--muted); cursor: not-allowed; }
input[type=checkbox], input[type=radio] { min-height: 0; width: 20px; height: 20px; padding: 0; box-shadow: none; accent-color: var(--accent); }
input[type=file] { padding: 9px 12px; height: auto; font-size: 14.5px; }
input[type=color] { padding: 3px; min-width: 48px; }
input[type=range] { min-height: 0; padding: 0; border: 0; box-shadow: none; }
input[type=date], input[type=time], input[type=datetime-local] { min-width: 0; }
.field.bad input, .field.bad select, .field.bad textarea, input:user-invalid, select:user-invalid { border-color: #b42318; }
label.field { font-size: 14.5px; margin-bottom: 16px; } label.field > input, label.field > select, label.field > textarea { margin-top: 7px; width: 100%; }
.btn { min-height: var(--ctl-h); padding: 0 22px; border-radius: var(--ctl-r); font-size: 15.5px; font-weight: 600; letter-spacing: .04em; line-height: 1.2; gap: 8px; user-select: none; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .08s; }
.btn.sm { min-height: var(--ctl-h-sm); padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(138, 28, 43, .35); outline-offset: 2px; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: #fff; color: var(--accent); border-color: var(--accent); } .btn.ghost:hover { background: var(--accent-soft, #f7e9ec); }
.btn.gray { background: #f1ede6; color: var(--text); border-color: #f1ede6; } .btn.gray:hover { background: #e7e1d7; border-color: #e7e1d7; }
.btn.block { width: 100%; }
.actions .btn, .cta .btn { white-space: nowrap; }
.pcard .pc-add { min-height: 42px; border-radius: 12px; font-size: 14.5px; }
.search { border-radius: var(--ctl-r); overflow: hidden; } .search input { border: 0; border-radius: 0; box-shadow: none; min-height: 44px; } .search .btn { border-radius: 0; min-height: 44px; }
.search:focus-within { box-shadow: var(--ring); }
.stepper input { min-height: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.stepper { border-radius: var(--ctl-r); }

/* 首頁自訂區塊（後台「首頁編輯」新增的單張圖片、文字區塊） */
.hb { margin: 28px 0; }
.hb-image a, .hb-image img { display: block; width: 100%; }
.hb-image img { height: auto; border-radius: var(--r, 12px); }
.hb-text { text-align: center; padding: 34px 22px; background: var(--soft, #f1ece4); border-radius: var(--r, 12px); }
.hb-text h2 { margin: 0 0 10px; }
.hb-body { margin: 0 auto 16px; max-width: 720px; color: var(--text, #2b2520); line-height: 1.75; text-align: center; }
.hb-body p { margin: 0 0 .6em; } .hb-body ul, .hb-body ol { text-align: left; display: inline-block; margin: 0 0 .6em; padding-left: 1.4em; }
.hb-body a { color: var(--accent, #8a1c2b); text-decoration: underline; }
.hb-text .btn { margin-top: 4px; }
