/* Shared approved public-site layout, without demo banners or order interception. */
/* 商品圖顯示框比例（Kelly 2026-11-13）：整個網站一個設定，橫式 5:4／方形 1:1／直式 4:5。
   ⚠️ 橫式是「沒有設定」的樣子，要跟加這個功能之前一模一樣（現有商家不受影響）：手機 5:4、桌機 3:2、
      <body> 上沒有任何 photo-* class。方形／直式由 renderer 掛 `photo-square`／`photo-portrait`，手機桌機同一個比例。
   首頁商品卡、/p 商品卡、商品頁主圖（buy.css 的 --shot-ratio）都讀這一個變數。
   ⚠️ 不要在別處再寫死一個比例：漏改的症狀是「列表是直的、點進去是方的」。 */
:root{--ps-photo-ratio:5/4}
@media(min-width:768px){:root{--ps-photo-ratio:3/2}}
.photo-square{--ps-photo-ratio:1/1}
.photo-portrait{--ps-photo-ratio:4/5}
/* 商品照怎麼放進框（Kelly 2026-11-16）：店家的照片整張看得到、補白；範例站在 web/src/assets/example-images.css 改成 cover。
   商品照規則一律讀這個變數，不各自寫死 object-fit。⚠️ 極簡型 .tpl-minimal .product-photo 仍寫死 cover，待 Kelly 決定。 */
:root{--ps-photo-fit:contain}
html:has(body.tpl-a2),html:has(body.tpl-b2),html:has(body.ps-buy){background:#f4f1ea}
body.tpl-a2,body.tpl-b2,body.ps-buy{width:100%;max-width:780px;margin-inline:auto;min-height:100dvh}
/* ═══ 選單（漢堡＋抽屜）：首頁、/p、商品頁、購物車、會員專區共用（Kelly 2026-12-01） ═══
   原本寫在各版型 CSS（.tpl-x），2026-12-01 搬來這裡改成 :is(.tpl-x,.brand-x)：買頁不載版型 CSS、只掛 brand-x
   （Kelly 2026-09-01 買頁不分版型），選單要長得跟首頁一樣，就只能住在每一頁都載的 site.css。
   ⚠️ 只寫這一份：版型 CSS 不要再寫 .menu 開頭的規則，寫了買頁看不到，首頁跟其他頁的選單會長得不一樣。
   ⚠️ 選單用到的版型 token（--ss-*、--k-*）在買頁由下面「選單 token（買頁）」補上。 */
/* ── 選單 token（買頁）──
   買頁不載版型 CSS，上面搬來的選單規則讀的 --ss-*／--k-* 在那裡沒有定義；只在選單這一塊（.menu、.menu-open）補上，
   不掛在 body——那會讓買頁其他元素也吃到首頁的版型 token（Kelly 2026-09-01 買頁不分版型）。
   ⚠️ 值抄自 kawaii.css／minimal.css 的 .tpl-x 那一組；改那邊要同批改這裡（menu-tokens.test.mjs 會比對兩邊）。 */
.brand-kawaii :is(.menu,.menu-open){--ss-gutter:20px;--ss-radius-pill:999px;--ss-scrim:rgba(74,53,48,.4);--ss-sheet-bg:#ffffff;--ss-ink:#4a3530;--ss-font-body:"Noto Sans TC","PingFang TC",-apple-system,sans-serif;--k-pink:#ffd3db;--k-pink-soft:#ffe9ee;--k-flower:#ef8fa3;--k-bloom:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='12' cy='6' r='4.6'/%3E%3Ccircle cx='17.7' cy='10.2' r='4.6'/%3E%3Ccircle cx='15.5' cy='17' r='4.6'/%3E%3Ccircle cx='8.5' cy='17' r='4.6'/%3E%3Ccircle cx='6.3' cy='10.2' r='4.6'/%3E%3C/g%3E%3C/svg%3E")}
.brand-kawaii.brand-macaron :is(.menu,.menu-open){--ss-scrim:var(--m-scrim);--ss-ink:var(--m-ink);--k-pink:var(--m-primary);--k-pink-soft:var(--m-soft);--k-flower:var(--m-decor);--k-bloom:var(--m-icon);--k-strong:var(--m-strong)}
.brand-minimal :is(.menu,.menu-open){--ss-gutter:24px;--ss-radius-pill:0;--ss-scrim:rgba(20,20,20,.45);--ss-sheet-bg:#ffffff;--ss-line:#e6e6e3;--ss-ink:#141414;--ss-accent:#b0502c;--ss-font-body:"Noto Sans TC","PingFang TC",-apple-system,sans-serif}
/* 購物車頁（cart.css）與會員專區沒有首頁那一套按鈕／連結重置：給零權重的底，版型規則照樣蓋得過。 */
:where(.menu) a{color:inherit;text-decoration:none}
:where(.menu-open,.menu-close){padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
/* ── A2 卡片式（原 a2.css） ── */
:is(.tpl-a2,.brand-a2) .menu-open {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;              /* 跟其他頁的購物車同一格（44，Kelly 2026-11-18 對位） */
  height: 44px;
}
:is(.tpl-a2,.brand-a2) .menu { position: fixed; inset: 0; z-index: 50; }
:is(.tpl-a2,.brand-a2) .menu[hidden] { display: none; }
:is(.tpl-a2,.brand-a2) .menu-scrim { position: absolute; inset: 0; background: rgba(26, 28, 26, 0.5); }
:is(.tpl-a2,.brand-a2) .menu-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #faf9f6;
  border-radius: 26px;
  margin: 6px 10px;
  max-height: calc(100dvh - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 28px;
  box-shadow: 0 12px 28px rgba(26, 28, 26, 0.2);
}
:is(.tpl-a2,.brand-a2) .menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
}
:is(.tpl-a2,.brand-a2) .menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}
:is(.tpl-a2,.brand-a2) .menu-item {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
:is(.tpl-a2,.brand-a2) .menu-sheet { background: #fff; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
:is(.tpl-a2,.brand-a2) .menu-links { flex-shrink: 0; }
:is(.tpl-a2,.brand-a2) .menu-links .menu-item { min-height: 54px; border-bottom: 1px solid #e3dfd4; }
:is(.tpl-a2,.brand-a2) .menu-links .menu-item:last-child { border-bottom: 0; }
:is(.tpl-a2,.brand-a2) .menu-footer { margin-top: 20px; flex-shrink: 0; }
:is(.tpl-a2,.brand-a2) .menu-footer .member-entry { justify-content: center; min-height: 50px; padding: 12px 20px; border-radius: 999px; background: #1a1c1a; color: #fff; font: 500 15px/1.5 "Noto Sans TC", sans-serif; letter-spacing: .06em; }
:is(.tpl-a2,.brand-a2) .menu-links { --menu-line: #e3dfd4; }
:is(.tpl-a2,.brand-a2) .menu-sub:last-child { border-bottom: 0; }
/* ── B2 雜誌式（原 b2.css） ── */
:is(.tpl-b2,.brand-b2) .menu-open{margin-left:auto}
:is(.tpl-b2,.brand-b2) .menu-open,:is(.tpl-b2,.brand-b2) .menu-close{display:grid;place-items:center}
:is(.tpl-b2,.brand-b2) .menu-open{width:44px;height:44px}
:is(.tpl-b2,.brand-b2) .menu-close{min-width:48px;min-height:48px}
:is(.tpl-b2,.brand-b2) .menu{position:fixed;inset:0;z-index:50}
:is(.tpl-b2,.brand-b2) .menu-scrim{position:absolute;inset:0;background:#0006}
:is(.tpl-b2,.brand-b2) .menu-sheet{position:relative;background:#fbfaf7;padding:32px 24px;max-height:100dvh;overflow:auto}
:is(.tpl-b2,.brand-b2) .menu-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
:is(.tpl-b2,.brand-b2) .menu-item{display:flex;align-items:center;min-height:62px;border-top:1px solid #e3dfd4}
:is(.tpl-b2,.brand-b2) .menu-label{font:400 20px/1.5 "Noto Serif TC",serif;letter-spacing:.04em}
@media (hover:hover){
  :is(.tpl-b2,.brand-b2) .menu-item:hover{background:#efede6}}
:is(.tpl-b2,.brand-b2) .menu-sheet { display: flex; flex-direction: column; height: 100dvh; background: #fff; color: #1a1c1a; padding: 30px 24px calc(20px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
:is(.tpl-b2,.brand-b2) .menu-head { flex-shrink: 0; margin-bottom: 8px; }
:is(.tpl-b2,.brand-b2) .menu-links { flex-shrink: 0; padding-bottom: 28px; }
:is(.tpl-b2,.brand-b2) .menu-links::before { content: "MENU"; display: block; margin-bottom: 12px; font-size: 11px; letter-spacing: .18em; color: #6b6d68; }
:is(.tpl-b2,.brand-b2) .menu-links .menu-item { min-height: 64px; border-top: 0; border-bottom: 1px solid #e3dfd4; }
:is(.tpl-b2,.brand-b2) .menu-footer { flex-shrink: 0; margin-top: auto; padding-top: 20px; border-top: 1px solid #e3dfd4; }
:is(.tpl-b2,.brand-b2) .menu-footer .member-entry { justify-content: center; min-height: 50px; padding: 12px 20px; border: 0; border-radius: 999px; background: #1a1c1a; color: #fff; font: 500 15px/1.5 "Noto Sans TC", sans-serif; letter-spacing: .06em; }
@media (hover:hover){
  :is(.tpl-b2,.brand-b2) .menu-links .menu-item:hover { background: #f4f1ea; }}
:is(.tpl-b2,.brand-b2) .menu-links { --menu-line: #e3dfd4; --menu-sub-pb: 12px; }
:is(.tpl-b2,.brand-b2) .menu-sub-item { font: 400 16px/1.5 "Noto Serif TC", serif; letter-spacing: .04em; }
/* ── 極簡（原 minimal.css） ── */
:is(.tpl-minimal,.brand-minimal) .menu-open{flex:0 0 auto;margin-left:auto;display:grid;place-items:center;width:44px;height:44px;margin-right:calc(16px - var(--ss-gutter));border-radius:var(--ss-radius-pill);transition:transform .15s ease}
:is(.tpl-minimal,.brand-minimal) :is(.menu-open,.menu-close):active{transform:scale(.88)}
:is(.tpl-minimal,.brand-minimal) :is(.menu-open,.menu-close) .ln{transform-box:fill-box;transform-origin:center;transition:transform .3s cubic-bezier(.4,0,.2,1)}
:is(.tpl-minimal,.brand-minimal) .menu-open.on .ln1{transform:translateY(5px)}
:is(.tpl-minimal,.brand-minimal) .menu-open.on .ln3{transform:translateY(-5px)}
:is(.tpl-minimal,.brand-minimal) .menu{position:fixed;inset:0;z-index:50}
:is(.tpl-minimal,.brand-minimal) .menu-scrim{position:absolute;inset:0;background:var(--ss-scrim);animation:site-menu-fade .3s ease-out}
:is(.tpl-minimal,.brand-minimal) .menu-sheet{position:relative;display:flex;flex-direction:column;width:75%;max-width:360px;height:100dvh;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px calc(24px + env(safe-area-inset-bottom,0px));background:var(--ss-sheet-bg);animation:site-menu-enter .3s cubic-bezier(.4,0,.2,1)}
:is(.tpl-minimal,.brand-minimal) .menu.closing .menu-sheet{animation:site-menu-leave .24s cubic-bezier(.4,0,1,1) forwards}
:is(.tpl-minimal,.brand-minimal) .menu.closing .menu-scrim{animation:site-menu-fade .24s ease-in reverse forwards}
:is(.tpl-minimal,.brand-minimal) .menu-close .ln1{animation:site-menu-x1 .42s cubic-bezier(.4,0,.2,1) both}
:is(.tpl-minimal,.brand-minimal) .menu-close .ln3{animation:site-menu-x3 .42s cubic-bezier(.4,0,.2,1) both}
:is(.tpl-minimal,.brand-minimal) .menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
:is(.tpl-minimal,.brand-minimal) .menu-head .brand{min-width:0;overflow-wrap:anywhere}
:is(.tpl-minimal,.brand-minimal) .menu-close{flex-shrink:0;display:grid;place-items:center;width:48px;height:48px;margin-right:-12px}
:is(.tpl-minimal,.brand-minimal) .menu-links{flex-shrink:0;display:flex;flex-direction:column}
:is(.tpl-minimal,.brand-minimal) .menu-item{display:flex;align-items:center}
:is(.tpl-minimal,.brand-minimal) .menu-footer{margin-top:auto;padding-top:24px;flex-shrink:0}
:is(.tpl-minimal,.brand-minimal) .menu-footer .member-entry{justify-content:center;min-height:50px;padding:12px 20px}
@media (prefers-reduced-motion:reduce){
  :is(.tpl-minimal,.brand-minimal) :is(.menu-sheet,.menu-scrim,.menu-close .ln){animation:none!important}
  :is(.tpl-minimal,.brand-minimal) .menu-close .ln1{transform:rotate(45deg)}
  :is(.tpl-minimal,.brand-minimal) .menu-close .ln3{transform:rotate(-45deg)}}
:is(.tpl-minimal,.brand-minimal) .menu-links .menu-item{min-height:64px;border-bottom:1px solid var(--ss-line)}
:is(.tpl-minimal,.brand-minimal) .menu-links .menu-item:first-child{border-top:1px solid var(--ss-line)}
:is(.tpl-minimal,.brand-minimal) .menu-label{font-size:20px;font-weight:300;letter-spacing:.06em}
:is(.tpl-minimal,.brand-minimal) .menu-footer .member-entry{border:1px solid var(--ss-ink);font-size:14px;letter-spacing:.12em}
@media (hover:hover){
  :is(.tpl-minimal,.brand-minimal) .menu-links .menu-item:hover .menu-label{color:var(--ss-accent)}}
:is(.tpl-minimal,.brand-minimal) .menu-links{--menu-line:var(--ss-line);--menu-sub-pb:12px}
:is(.tpl-minimal,.brand-minimal) .menu-sub-item{font-size:15px;font-weight:300;letter-spacing:.06em}
/* ── 日系可愛＋馬卡龍（原 kawaii.css） ── */
:is(.tpl-kawaii,.brand-kawaii) .menu-open{flex:0 0 auto;margin-left:auto;display:grid;place-items:center;width:44px;height:44px;margin-right:calc(16px - var(--ss-gutter));border-radius:var(--ss-radius-pill);transition:transform .15s ease}
:is(.tpl-kawaii,.brand-kawaii) :is(.menu-open,.menu-close):active{transform:scale(.88)}
:is(.tpl-kawaii,.brand-kawaii) :is(.menu-open,.menu-close) .ln{transform-box:fill-box;transform-origin:center;transition:transform .3s cubic-bezier(.4,0,.2,1)}
:is(.tpl-kawaii,.brand-kawaii) .menu-open.on .ln1{transform:translateY(5px)}
:is(.tpl-kawaii,.brand-kawaii) .menu-open.on .ln3{transform:translateY(-5px)}
:is(.tpl-kawaii,.brand-kawaii) .menu{position:fixed;inset:0;z-index:50}
:is(.tpl-kawaii,.brand-kawaii) .menu-scrim{position:absolute;inset:0;background:var(--ss-scrim);animation:site-menu-fade .3s ease-out}
:is(.tpl-kawaii,.brand-kawaii) .menu-sheet{position:relative;display:flex;flex-direction:column;width:75%;max-width:360px;height:100dvh;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px calc(24px + env(safe-area-inset-bottom,0px));background:var(--ss-sheet-bg);animation:site-menu-enter .3s cubic-bezier(.4,0,.2,1)}
:is(.tpl-kawaii,.brand-kawaii) .menu.closing .menu-sheet{animation:site-menu-leave .24s cubic-bezier(.4,0,1,1) forwards}
:is(.tpl-kawaii,.brand-kawaii) .menu.closing .menu-scrim{animation:site-menu-fade .24s ease-in reverse forwards}
:is(.tpl-kawaii,.brand-kawaii) .menu-close .ln1{animation:site-menu-x1 .42s cubic-bezier(.4,0,.2,1) both}
:is(.tpl-kawaii,.brand-kawaii) .menu-close .ln3{animation:site-menu-x3 .42s cubic-bezier(.4,0,.2,1) both}
:is(.tpl-kawaii,.brand-kawaii) .menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
:is(.tpl-kawaii,.brand-kawaii) .menu-head .brand{min-width:0;overflow-wrap:anywhere}
:is(.tpl-kawaii,.brand-kawaii) .menu-close{flex-shrink:0;display:grid;place-items:center;width:48px;height:48px;margin-right:-12px}
:is(.tpl-kawaii,.brand-kawaii) .menu-links{flex-shrink:0;display:flex;flex-direction:column}
:is(.tpl-kawaii,.brand-kawaii) .menu-item{display:flex;align-items:center;gap:16px}
:is(.tpl-kawaii,.brand-kawaii) .menu-footer{margin-top:auto;padding-top:24px;flex-shrink:0}
:is(.tpl-kawaii,.brand-kawaii) .menu-footer .member-entry{justify-content:center;min-height:50px;padding:12px 20px}
@media (prefers-reduced-motion:reduce){
  :is(.tpl-kawaii,.brand-kawaii) :is(.menu-sheet,.menu-scrim,.menu-close .ln){animation:none!important}
  :is(.tpl-kawaii,.brand-kawaii) .menu-close .ln1{transform:rotate(45deg)}
  :is(.tpl-kawaii,.brand-kawaii) .menu-close .ln3{transform:rotate(-45deg)}}
:is(.tpl-kawaii,.brand-kawaii) .menu-sheet{border-radius:0 16px 16px 0}
:is(.tpl-kawaii,.brand-kawaii) .menu-links{gap:6px}
:is(.tpl-kawaii,.brand-kawaii) .menu-links .menu-item{min-height:54px;padding:0 16px;border-radius:10px;font:400 18px/1.4 "Huninn","Noto Sans TC",sans-serif}
:is(.tpl-kawaii,.brand-kawaii) .menu-footer .member-entry{border-radius:999px;background:var(--k-pink);color:var(--ss-ink);font-weight:700;letter-spacing:.06em}
@media (hover:hover){
  :is(.tpl-kawaii,.brand-kawaii) .menu-links .menu-item:hover{background:var(--k-pink-soft)}}
:is(.tpl-kawaii,.brand-kawaii) .menu-sub{margin:-2px 0 6px;padding:0 0 0 42px}
:is(.tpl-kawaii,.brand-kawaii) .menu-sub-item{gap:10px;font:400 16px/1.4 "Huninn","Noto Sans TC",sans-serif;opacity:.85}
:is(.tpl-kawaii,.brand-kawaii) .menu-sub-item::before{content:"";width:12px;height:12px;flex-shrink:0;background:var(--k-flower);-webkit-mask:var(--k-bloom) center/contain no-repeat;mask:var(--k-bloom) center/contain no-repeat}
/* 暫時拿掉分類前的小花（Kelly 2026-11-20「暫時把小 icon 都刪除」，標題那一半留在 kawaii.css） */
:is(.tpl-kawaii,.brand-kawaii) .menu-sub-item::before{content:none}
:is(.tpl-kawaii,.brand-kawaii):is(.tpl-macaron,.brand-macaron) .menu-footer .member-entry{background:var(--k-strong);color:var(--m-member-ink)}
:is(.tpl-kawaii,.brand-kawaii):is(.tpl-macaron,.brand-macaron) :is(.menu-links .menu-item,.menu-sub-item){font-family:var(--ss-font-body);font-weight:500}
/* Both templates open a white drawer from the viewport's left edge.（買頁的 brand-a2／brand-b2 同一組，Kelly 2026-12-01） */
/* 選單（z 50）住在 header 裡，被 header 這層的 z 封頂：要高過輪播鈕（2）跟購物車鈕（40），
   不然它們會疊到打開的選單上（Kelly 2026-10-07）。兩套皮共用這一條，a2／b2 不再各寫。 */
:is(.tpl-a2,.tpl-b2) .site-header{z-index:45}
/* 電腦版上限 360（Kelly 2026-10-07：75% 在寬螢幕太寬不好讀）；手機 75% 本來就小於它。 */
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-sheet{width:75%;max-width:360px;height:100dvh;max-height:100dvh;margin:0;border-radius:0;background:#fff;box-sizing:border-box;animation:site-menu-enter .3s cubic-bezier(.4,0,.2,1)}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-head .brand{min-width:0;overflow-wrap:anywhere}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-close{flex-shrink:0}
body:has(.menu:not([hidden])){overflow:hidden}
@keyframes site-menu-enter{from{transform:translateX(-100%)}to{transform:translateX(0)}}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-scrim{animation:site-menu-fade .3s ease-out}
/* 選單動態（Kelly 2026-10-20）：漢堡三條線收成一條；抽屜裡的 × 由兩條平行線轉進來；關閉時抽屜滑回、遮罩淡出，
   抽屜的 animationend 才 hidden（render.mjs closeMenu；400ms 保底）。
   ⚠️ 手機點擊的灰黑色塊是 WebKit 預設 tap highlight：全站連結與按鈕一起關掉，兩顆選單鈕另外用按下縮放當回饋。 */
:is(.tpl-a2,.tpl-b2) :is(a,button,summary,label){-webkit-tap-highlight-color:transparent}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) :is(.menu-open,.menu-close){transition:transform .15s ease}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) :is(.menu-open,.menu-close):active{transform:scale(.88)}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) :is(.menu-open,.menu-close) .ln{transform-box:fill-box;transform-origin:center;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s ease}
/* 漢堡不轉成 ×（抽屜裡已有一顆 ×，兩顆會像重複）：三條線收成一條，關閉時再展開回三條。 */
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-open.on .ln1{transform:translateY(5px)}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-open.on .ln3{transform:translateY(-5px)}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-close .ln1{animation:site-menu-x1 .42s cubic-bezier(.4,0,.2,1) both}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-close .ln3{animation:site-menu-x3 .42s cubic-bezier(.4,0,.2,1) both}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu.closing .menu-sheet{animation:site-menu-leave .24s cubic-bezier(.4,0,1,1) forwards}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu.closing .menu-scrim{animation:site-menu-fade .24s ease-in reverse forwards}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu.closing .menu-close .ln1{animation:site-menu-x1 .2s ease-in reverse forwards}
:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu.closing .menu-close .ln3{animation:site-menu-x3 .2s ease-in reverse forwards}
@keyframes site-menu-leave{from{transform:translateX(0)}to{transform:translateX(-100%)}}
@keyframes site-menu-fade{from{opacity:0}to{opacity:1}}
@keyframes site-menu-x1{0%,25%{transform:translateY(-5px) rotate(0)}100%{transform:translateY(0) rotate(45deg)}}
@keyframes site-menu-x3{0%,25%{transform:translateY(5px) rotate(0)}100%{transform:translateY(0) rotate(-45deg)}}
@media(prefers-reduced-motion:reduce){:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) :is(.menu-sheet,.menu-scrim,.menu-close .ln){animation:none!important}:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-close .ln1{transform:rotate(45deg)}:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) .menu-close .ln3{transform:rotate(-45deg)}:is(.tpl-a2,.tpl-b2,.brand-a2,.brand-b2) :is(.menu-open,.menu-close) .ln{transition:none}}
/* Keep the fixed cart inside the centered site, including on wide screens. */
:is(.tpl-a2,.tpl-b2,.ps-buy) .cart-fab{right:max(calc(20px + env(safe-area-inset-right,0px)),calc((100vw - 780px)/2 + 20px))}
:is(.tpl-a2,.tpl-b2) .cart-fab{bottom:calc(24px + env(safe-area-inset-bottom,0px))}
:is(.tpl-a2,.tpl-b2) .site-footer{padding:36px 24px 48px;display:flex;flex-direction:column;gap:16px;border-top:1px solid #e3dfd4;text-align:left}
/* ⚠️ 2026-10-07 起首頁頁尾改靠左、跟商品總覽同一組（見下方「買頁＋商品總覽＋首頁的頁尾」），
   這幾條的置中／宋體已被那組蓋掉，只剩上框線與店名下間距仍有作用。
   店家資訊四種頁面一律置中（Kelly 2026-09-24）。原本只有 A2 置中、B2 與客人端
   靠左——同一份頁尾在不同頁長得不一樣，而那是同一塊資料。 */
:is(.tpl-a2,.tpl-b2) .store-profile{text-align:center}
:is(.tpl-a2,.tpl-b2) .store-profile-name{margin:0}
:is(.tpl-a2,.tpl-b2) .store-profile p{margin:0;font:400 13px/1.6 "Noto Sans TC",sans-serif;letter-spacing:.02em;overflow-wrap:anywhere}
/* ⚠️ **聯絡資料各行之間不再另加 margin**（Kelly 2026-09-24，行距參考稿）：
   1.9 行高再疊 6px 段距，四行會散成四個獨立的東西；那是一組聯絡方式，要讀成一塊。
   店名與第一行之間才需要間隔——而且只在真的有聯絡資料時才長出來。 */
:is(.tpl-a2,.tpl-b2) .store-profile-name+p{margin-top:16px}
/* 店名點了回首頁（Kelly 2026-10-07）。外觀不變，命中區撐到 44 高但用負邊距抵掉，不改版面。 */
.site-footer .store-profile-name a{display:inline-flex;align-items:center;min-height:44px;margin:-10px 0;color:inherit;text-decoration:none}
.site-footer .store-profile-name a:hover{text-decoration:underline;text-underline-offset:4px}
/* footer 的會員專區入口（spec §2.8：選單列與 footer 兩邊都有，而且不給店家開關）。
   ⚠️ **不要做成 `.report-entry` 那個大列的樣子**：付款回報那一列是店家可以關的
   （`content.report.enabled`），而它 301 到的也是 `/me`——兩列長得一樣、都通到同一個
   地方、其中一列會消失，那是最難解釋的一種畫面。 */
/* ⚠️ **用 `line-height` 撐 44px 的命中區，不要用 `display:flex`。** flex 會吃掉
   `text-align`，而 footer 的對齊**兩個版型不一樣**（A2 置中、B2 靠左）——
   用 flex 的話這一列會在 A2 裡靠左，夾在置中的店名與置中的版權中間。 */
/* 版權列跟著店家資訊置中（Kelly 2026-09-24）。**A2 本來就是置中的**（`a2.css`），
   靠左的是 B2 與客人端——這裡是把落後的那幾邊對齊已核可的 A2，不是新設計。 */
:is(.tpl-a2,.tpl-b2) .copyright{margin:0;padding-top:16px;border-top:1px solid #e3dfd4;text-align:center;font:400 10.5px/1.8 "Noto Sans TC",sans-serif;letter-spacing:.14em;color:#93918b}
:is(.tpl-a2,.tpl-b2) .site-products-more,.site-return-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border:1px solid #d6d1c8;border-radius:12px;background:white;color:#252826;text-decoration:none;font:400 15px/1.5 "Noto Sans TC",sans-serif}
.tpl-b2 .site-products-more,.tpl-b2 .site-return-button{border-radius:4px}
.site-products-more svg,.site-return-button svg{width:18px;height:18px}.site-return-nav{padding:8px 24px 24px;display:flex;flex-direction:column;gap:8px}
.site-return-button:focus-visible,.site-products-more:focus-visible{outline:2px solid #6f6a60;outline-offset:3px}
/* 還沒有照片的圖位（2026-09-19 Kelly：「圖片都用漸層灰來代替，比較不會有突然出現
   別人圖片的感覺」）。**新店家的第一份站台一張照片都沒有**（fixture-blank），
   所以這一格是他看到的第一個畫面，不是邊角狀態。
   ⚠️ **漸層不是裝飾，是在說「這裡會放一張照片」**：純色一塊看起來像版面壞了或區塊空著，
   而斜向漸層讀起來像一張還沒載入的圖。
   ⚠️ 灰階取自這份稿子自己的暖色盤（#eeeae2 的上下階），不是 App 的冷灰 token
   ——客人端的頁底是 #f4f1ea，冷灰放上去會像從別套設計貼過來的。
   ⚠️ **文字留著**：它是給店家看的（「還缺一張照片」），而這一格在客人端根本不該出現
   ——沒有照片就過不了第一層門檻，發佈不出去。 */
:is(.tpl-a2,.tpl-b2) .hero-empty{width:100%;aspect-ratio:4/5;display:grid;place-items:center;color:#8c887f;
  background:linear-gradient(135deg,#efece5 0%,#ddd9d0 48%,#efece5 100%)}
/* hero 的左右換圖鈕（2026-09-13）。**只有 A2 畫得出來**：A2 的 .hero-media 是一個
   position:relative 的 4:5 方框，鈕疊在圖上就位；B2 的 .hero-media 是 display:contents，
   照片軌是雜誌式版面裡的一個 flex item，沒有可以錨的定位框——B2 的點點本來就在淺色
   資訊列裡（不是疊在照片上的小白點），可見度不靠這兩顆鈕。⚠️ 兩套皮的 DOM 一樣，
   差別只是 display:none（契約 §2.5 允許的那一種差異，跟 hero-caption 同一條）。 */
:is(.tpl-a2,.tpl-b2) .hero-nav{display:none}
/* 首頁輪播有桌面照片的那張包成 picture.hero-pic（卡 2026-12-01-4）：不產生盒子，
   裡面的 img.hero-img 照樣是 .hero-track 的排版子項，各版型的 hero-img 規則與輪播換頁都不用改。
   ⚠️ 註解裡不要寫成 HTML 屬性的樣子：App 預覽把 CSS 內嵌進頁面，測試用字串比對 HTML 會被註解騙到。 */
.hero-pic{display:contents}
/* 按住拖曳換圖時不要選到圖、也不要跳出瀏覽器自己的拖曳幽靈圖。 */
:is(.tpl-a2,.tpl-b2) .hero-img{user-select:none;-webkit-user-drag:none}
/* 有 hover 的細指標＝滑鼠（桌機）。觸控裝置不顯示，手機維持純滑動。 */
@media(hover:hover) and (pointer:fine){
  .tpl-a2 .hero-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:#1a1c1a57;cursor:pointer}
  .tpl-a2 .hero-nav:hover{background:#1a1c1a94}
  .tpl-a2 .hero-nav.prev{left:12px}
  .tpl-a2 .hero-nav.next{right:12px}
  /* 箭頭用共用的 CHEVRON（render.mjs），路徑在 24 格裡幾何置中（Kelly 2026-10-07：原本旋轉邊框＋負 margin 的箭頭偏離圓心）。 */
  .tpl-a2 .hero-nav{color:#faf9f6}
  .tpl-a2 .hero-nav.next svg{transform:scaleX(-1)}
  .tpl-a2 .hero-nav:focus-visible{outline:2px solid #faf9f6;outline-offset:2px}
}
/* 首頁商品「一個一排」（site.productLayout=list 或沒設）的大卡：手機一欄、桌機三欄（Kelly 2026-11-23：網頁版商品全部三個一排）。兩個一排（新站預設）見下面 .home-grid 那段（Kelly 2026-11-15）。 */
@media(min-width:768px){
  .tpl-a2 .hero-media,.tpl-b2 .hero-img,:is(.tpl-a2,.tpl-b2) .hero-empty{aspect-ratio:4/3}
  .tpl-b2 .hero-img{height:auto;object-fit:cover;object-position:center}
  :is(.tpl-a2,.tpl-b2) .sec-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
  :is(.tpl-a2,.tpl-b2) .sec-products>.sec-head,:is(.tpl-a2,.tpl-b2) .sec-products>.site-products-more{grid-column:1/-1}
  :is(.tpl-a2,.tpl-b2) .sec-products>.product-card{min-width:0;width:100%;margin-bottom:0}
  /* 「一個一排」的大卡在桌機也是三欄：字級跟兩個一排（.catalog-card）、馬卡龍同一級（Kelly 2026-11-30：名稱 16、時間 12、價格 14.5） */
  :is(.tpl-a2,.tpl-b2) .sec-products>.product-card:not(.catalog-card) .product-name{font-size:16px;line-height:1.45}
  :is(.tpl-a2,.tpl-b2) .sec-products>.product-card:not(.catalog-card) .product-duration{font-size:12px;gap:4px}
  :is(.tpl-a2,.tpl-b2) .sec-products>.product-card:not(.catalog-card) .product-duration svg{width:12px;height:12px;margin-top:3px}
  :is(.tpl-a2,.tpl-b2) .sec-products>.product-card:not(.catalog-card) .product-price{font-size:14.5px;font-weight:600}
  .tpl-b2.product-list .list-body>.site-return-button{margin-top:32px}
}


/* Merchant shopping information: footer links and shared reading dialog. */
.shopping-info-links{display:flex;justify-content:center;gap:12px 24px;flex-wrap:wrap}
.shopping-info-links button{font:13px/1.6 "PingFang TC",sans-serif;color:#6f6a60;background:none;border:0;padding:0;min-height:44px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.shopping-info-dialog{box-sizing:border-box;width:calc(100% - 32px);max-width:520px;max-height:80dvh;margin:auto;border:1px solid #e6e3dc;padding:0;border-radius:20px;background:#fff;color:#1a1c1a;text-align:left;overflow:auto;box-shadow:0 16px 60px #0002}
.shopping-info-dialog::backdrop{background:#1a1c1a70}
.shopping-info-head{position:sticky;top:0;display:flex;align-items:center;gap:16px;background:#fff;padding:16px 20px;border-bottom:1px solid #e6e3dc}
.shopping-info-head h2{flex:1;margin:0;font:500 21px/1.5 "Noto Serif TC","Songti TC",serif}
.shopping-info-head button{min-width:44px;min-height:44px;border:0;background:none;color:#1a1c1a;font:28px/1 sans-serif;cursor:pointer}
.shopping-info-text{padding:24px;font:14px/1.9 "Noto Sans TC","PingFang TC",sans-serif;overflow-wrap:anywhere}
.shopping-info-footer :focus-visible{outline:2px solid #2477e8;outline-offset:3px}

/* Peer footer links: member, shopping, returns, privacy and terms. */
.site-footer .shopping-info-links{display:flex;justify-content:center;align-items:center;gap:0 24px;flex-wrap:wrap;margin:0 auto}
.site-footer .shopping-info-links>a,.site-footer .shopping-info-links>button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0;border:0;background:none;color:#6f6a60;font:400 13px/1.6 "PingFang TC",sans-serif;letter-spacing:0;text-decoration:none;white-space:nowrap;cursor:pointer}
.site-footer .shopping-info-links>a:hover,.site-footer .shopping-info-links>button:hover{text-decoration:underline;text-underline-offset:4px;color:#1a1c1a}
@media(max-width:480px){.site-footer .shopping-info-links{max-width:260px}}

/* All customer pages share the same footer and link hierarchy. */
:is(.tpl-a2,.tpl-b2) .site-footer .shopping-info-links>a,:is(.tpl-a2,.tpl-b2) .site-footer .shopping-info-links>button{display:inline-flex;align-items:center;justify-content:center;margin:0;min-height:44px;font:400 13px/1.6 "PingFang TC",sans-serif;letter-spacing:0;color:#6f6a60;text-decoration:none}
:is(.tpl-a2,.tpl-b2,.ps-buy) .site-footer .shopping-info-links>a:hover,:is(.tpl-a2,.tpl-b2,.ps-buy) .site-footer .shopping-info-links>button:hover{color:#1a1c1a;text-decoration:underline;text-underline-offset:4px}

/* P2 overview: two columns at every width; status palette D from the design handoff. */
.product-list:is(.tpl-a2,.tpl-b2) .list-body{display:flex;flex-direction:column}
.product-list.tpl-a2{background:#faf9f6}
.product-list.tpl-a2 .list-body{gap:14px;padding:18px 16px 26px}
.product-list.tpl-b2{background:#fff}
.product-list.tpl-b2 .list-body{gap:0;padding:14px 20px 30px}
.product-list:is(.tpl-a2,.tpl-b2) .sec-head{margin:0}
.product-list.tpl-a2 .sec-title{font-size:26px;font-weight:400;line-height:1.35}
.product-list.tpl-b2 .sec-title{margin-top:10px;font-size:30px;font-weight:400;line-height:1.3}
.product-list:is(.tpl-a2,.tpl-b2) .list-nav{position:sticky;top:0;z-index:5;gap:8px;padding:0 16px 0 8px}
.product-list:is(.tpl-a2,.tpl-b2) .list-back{display:grid;place-items:center;min-width:44px;min-height:44px}
/* 卡片格線：/p 與首頁「兩個一排」共用同一組值（Kelly 2026-11-15）；/p 自己的只有外距。 */
:is(.product-list,.home-grid):is(.tpl-a2,.tpl-b2) .sec-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px 12px}
:is(.product-list,.home-grid).tpl-b2 .sec-products{gap:26px 16px}
.product-list:is(.tpl-a2,.tpl-b2) .list-body>.sec-products{padding:0;margin:0}
.product-list.tpl-b2 .list-body>.sec-products{margin-top:22px}
:is(.tpl-a2,.tpl-b2) .product-card.catalog-card{display:flex;flex-direction:column;min-width:0;gap:0;margin:0;padding:0;box-shadow:none}
:is(.tpl-a2,.tpl-b2) .product-card.catalog-card[hidden]{display:none}
.tpl-a2 .product-card.catalog-card{background:#fff;border:1px solid #e3dfd4;border-radius:14px;overflow:hidden}
.tpl-b2 .product-card.catalog-card{background:none;border:0;border-radius:0}
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-photo{position:relative;aspect-ratio:var(--ps-photo-ratio);flex-shrink:0;overflow:hidden;background:#efebe1}
.tpl-b2 .catalog-card .catalog-photo{border-radius:3px;background:#f1efea}
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-photo .product-photo{display:block;width:100%;height:auto;aspect-ratio:var(--ps-photo-ratio);background:#fff;border-radius:0;opacity:1}
/* 商品標籤：首頁、/p、商品單頁同一個樣子，壓在照片左上角（Kelly 2026-09-25）。
   宿主要 position:relative（.catalog-photo、首頁 .product-card、買頁 .product-gallery）。 */
.catalog-tag{position:absolute;left:8px;top:8px;z-index:1;display:inline-flex;align-items:center;box-sizing:border-box;max-width:calc(100% - 16px);height:25px;padding:0 10px;border-radius:6px;background:#fff;border:1px solid #d8dccb;color:#4f5a43;font:500 12px/1 "Noto Sans TC",sans-serif;letter-spacing:.02em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.catalog-tag.stock{border-color:#a9b393;color:#3f4a34}
.catalog-tag.soldout{border-color:#e1e2dc;color:#5f6259}
/* 首頁卡片：照片大，離邊 12；沒有照片時回到文字流（A2 放進照片那一格、B2 排在名稱前）。 */
:is(.tpl-a2,.tpl-b2) .sec-products>.product-card>.catalog-tag{left:12px;top:12px;max-width:calc(100% - 24px)}
.tpl-a2 .sec-products>.product-card:not(:has(.product-photo))>.catalog-tag{position:static;grid-area:photo;justify-self:start;margin:20px 0 0 20px}
.tpl-b2 .sec-products>.product-card:not(:has(.product-photo))>.catalog-tag{position:static;align-self:flex-start}
.catalog-card .catalog-veil{position:absolute;inset:0;background:rgba(250,249,246,.62)}
.tpl-b2 .catalog-card .catalog-veil{background:rgba(255,255,255,.6)}
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body{display:flex;flex:1;flex-direction:column;gap:5px;min-width:0;padding:11px 11px 13px}
.tpl-b2 .catalog-card .catalog-body{gap:9px;padding:9px 0 0}
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;margin:0;padding:0;font:500 14px/1.45 "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:-.01em}  /* 手機兩欄：14（原 15.5），名字長一點也放得進兩行（Kelly 2026-11-16） */
.tpl-b2 .catalog-card .catalog-body .product-name{font-size:15px;line-height:1.4}
/* 時間：時鐘圖示＋字，排在名稱與描述中間（Kelly 2026-10-11，同首頁卡片）。 */
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-duration{display:flex;align-items:flex-start;gap:4px;margin:0;padding:0;font:400 11.5px/1.5 "Noto Sans TC",sans-serif;color:#6f6a60;overflow-wrap:anywhere}
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-duration svg{flex:0 0 auto;width:12px;height:12px;margin-top:2.5px}
/* `/p` 卡片的剩餘數量（Kelly 2026-10-11）：價格底下一行，字級顏色跟卡片上的時間（.product-duration）同一組；
   字樣與單頁、購物車同一句「剩餘 N 件」。有規格時是全部規格加總（理由在 render.mjs `stockLeftOf`）。 */
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-stock{margin:0;padding:0;font:400 11.5px/1.5 "Noto Sans TC",sans-serif;color:#6f6a60}
/* 價格字重跟商品單頁 `.ps-buy .product-price` 同為 600（Kelly 2026-10-07）。 */
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-price{margin:0;padding:0;font:600 15px/1.2 "Noto Sans TC","PingFang TC",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-cta{display:flex;align-items:center;justify-content:center;align-self:stretch;gap:5px;margin:6px 0 0;padding:0 4px;min-height:34px;border:1px solid #1a1c1a;border-radius:10px;font:500 12.5px/1.4 "Noto Sans TC",sans-serif;letter-spacing:.02em;color:#1a1c1a;overflow-wrap:anywhere;text-align:center}
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-cta::after{content:none}
.tpl-b2 .catalog-card .catalog-body .product-cta{min-height:36px;border-radius:999px;margin-top:5px}

:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-cta.is-disabled{color:#8a857a;border-color:#e3dfd4;background:none}
:is(.tpl-a2,.tpl-b2) .catalog-card.is-soldout .product-name,:is(.tpl-a2,.tpl-b2) .catalog-card.is-soldout .product-price{color:#6f6a60}
.product-list:is(.tpl-a2,.tpl-b2) .product-filters{display:flex;gap:8px;overflow-x:auto;padding:0}
/* 出血要跟 .list-body 的 16 一樣：a2.css 的首頁版是 -20／20，這裡只蓋 padding 的話第一顆會被推出畫面 4px（Kelly 2026-09-25）。 */
.product-list.tpl-a2 .product-filters{margin:0 -16px;padding:2px 16px}
.product-list.tpl-a2 .product-filter{min-height:34px;padding:0 13px;border-radius:999px;font-size:13px}
.product-list.tpl-b2 .product-filters{gap:18px;margin-top:20px;padding-bottom:11px;border-bottom:1px solid #1a1c1a}
.product-list.tpl-b2 .product-filter{min-height:34px;padding:0;border:0;border-radius:0;background:none;color:#6f6a60;font-size:13px}
.product-list.tpl-b2 .product-filter.on{color:#1a1c1a;background:none;font-weight:500}
.product-list.tpl-b2 .list-body>.site-return-button{margin-top:30px}

/* 首頁商品兩個一排（`site.productLayout`＝grid，新站預設；沒設的舊站是一個一排，Kelly 2026-11-16）：卡片（.catalog-card）與格線都跟 /p 共用上面那幾條，這裡只補首頁自己的標題與「更多商品」。 */
.home-grid:is(.tpl-a2,.tpl-b2) .sec-products>:is(.sec-head,.site-products-more){grid-column:1/-1}
.home-grid.tpl-a2 .sec-products>.sec-head{margin-bottom:10px}
.home-grid.tpl-b2 .sec-products>.sec-head{margin-bottom:6px}
.home-grid:is(.tpl-a2,.tpl-b2) .sec-products>.site-products-more{margin-top:12px}

/* 小卡（兩欄以上）不出描述。 照片比例讀 --ps-photo-ratio（橫式＝手機 5:4／桌機 3:2，方形／直式兩邊同一個；Kelly 2026-11-13）。 */
:is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-desc{display:none}
@media(min-width:768px){
  :is(.product-list,.home-grid):is(.tpl-a2,.tpl-b2) .sec-products{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}  /* 桌機三欄（Kelly 2026-11-23） */
  .tpl-a2 .catalog-card .catalog-body{padding:20px;gap:12px}
  .tpl-b2 .catalog-card .catalog-body{padding:14px 0 0;gap:14px}
  /* 剩餘數量貼著價格：桌機欄距 12／14 會讓它像獨立一列，往上收 8 */
  :is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-stock{margin-top:-8px}
  /* 桌機三欄的字級跟馬卡龍同一級（Kelly 2026-11-30：雜誌式原 25／14／21、卡片式原 20／14／18 太大）：名稱 16、時間 12、價格 14.5 */
  :is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-name{font-size:16px;font-weight:400;line-height:1.45}
  /* 一排只有一個商品才出兩行描述，一排兩個以上（手機兩個一排、桌機三欄）不出（Kelly 2026-11-23）：桌機每一種排法都是三欄，所以描述全藏。 */
  :is(.tpl-a2,.tpl-b2) .sec-products .product-desc{display:none}
  :is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-duration{font-size:12px;gap:4px}
  :is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-duration svg{width:12px;height:12px;margin-top:3px}
  :is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-price{font-size:14.5px}
  :is(.tpl-a2,.tpl-b2) .catalog-card .catalog-body .product-cta{min-height:48px;font-size:14px}
}

/* Shared product navigation: cart remains available when empty. */
.list-nav .brand{flex:1;min-width:0}
.list-nav .header-cart{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;color:#262521;text-decoration:none}
.header-cart svg{width:25px;height:25px}
.header-member svg{width:23px;height:23px}
/* 首頁頂列：會員鈕在選單鈕左邊（Kelly 2026-11-09）。它負責把右邊這一組推到底，選單鈕緊貼在後面
   （各版型的 .menu-open{margin-left:auto} 在 a2／b2／minimal 各自用 .header-member + .menu-open 歸零）。 */
/* margin-right -10：頂列 gap 12 → 實際間距 2，跟其他頁 `.list-nav`（gap 8、-6）同一個點（Kelly 2026-11-18 對位）。 */
.site-header .header-member{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin-left:auto;margin-right:-10px;color:inherit;text-decoration:none}
/* 選單鈕（Kelly 2026-12-01）：/p、商品頁、購物車、會員專區右上，購物車右邊、貼齊右邊距 16——跟首頁的選單鈕同一個點。
   左邊 -6：頂列 gap 8 → 跟購物車實際間距 2（原本會員鈕跟購物車的間距，Kelly 2026-11-18 對位）。
   ⚠️ 排在搬來的各版型選單規則後面，壓過它們給首頁用的 margin-left:auto／margin-right。 */
.list-nav .menu-open{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0 0 0 -6px;padding:0;border:0;background:none;color:#262521;cursor:pointer}
.header-cart .cart-count{position:absolute;right:0;top:0;display:grid;place-items:center;box-sizing:border-box;min-width:18px;height:18px;padding:0 4px;border-radius:20px;background:#d83b3b;color:#fff;text-align:center;letter-spacing:0;font:600 11px/1 sans-serif}  /* 全版型統一紅圈白字（Kelly 2026-12-02） */
.header-cart .cart-count[hidden]{display:none}

/* Latest news: supplied design, shared by A2/B2; one 44px line below the header. */
/* 最新消息列在頁面最上面、頂列之上（Kelly 2026-11-13）：自己不吸頂，往下滑就捲走，留下吸頂的頂列。
   文字置中、沒有喇叭圖示；左內距多 26（＝右側箭頭 16＋gap 10），字才會在正中間。
   黑底白字（Kelly 2026-11-13，原本是淺色底 #f4f1ea＋下框線）。 */
:is(.tpl-a2,.tpl-b2,.ps-buy) .news-bar{box-sizing:border-box;width:100%;height:44px;padding:0 20px 0 46px;display:flex;align-items:center;gap:10px;cursor:pointer;border:0;border-radius:0;background:#1a1c1a;color:#fff;font-family:"Noto Sans TC",sans-serif}
:is(.tpl-a2,.tpl-b2) .news-bar>svg.news-arrow{width:16px;height:16px;flex-shrink:0;opacity:.7}
/* Static variant (site-closed notice on member/order pages): same look, no dialog. */
.news-bar.news-bar-static{margin:0;cursor:default;padding:0 20px;justify-content:center}
:is(.tpl-a2,.tpl-b2) .news-window{flex:1;min-width:0;height:44px;overflow:hidden}
:is(.tpl-a2,.tpl-b2) .news-track{display:block;transition:transform .5s cubic-bezier(.4,0,.2,1)}
:is(.tpl-a2,.tpl-b2,.ps-buy) .news-line{display:block;font-size:14px;line-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;letter-spacing:normal;text-align:center}
:is(.tpl-a2,.tpl-b2) .news-dialog{box-sizing:border-box;position:fixed;inset:0;z-index:100;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:104px 24px 24px;border:0;background:transparent;overflow-y:auto;color:#1a1c1a;font-family:"Noto Sans TC",sans-serif}
:is(.tpl-a2,.tpl-b2) .news-dialog[open]{display:flex;align-items:flex-start;justify-content:center}
:is(.tpl-a2,.tpl-b2) .news-dialog::backdrop{background:rgba(26,28,26,.42)}
:is(.tpl-a2,.tpl-b2) .news-card{box-sizing:border-box;position:relative;width:100%;max-width:382px;max-height:78vh;overflow-y:auto;overscroll-behavior:contain;background:#faf9f6;border-radius:16px;padding:28px 24px 24px;box-shadow:0 16px 48px rgba(26,28,26,.2)}
:is(.tpl-a2,.tpl-b2) .news-close{position:absolute;top:8px;right:8px;width:44px;height:44px;border:0;border-radius:0;background:transparent;color:inherit;font:400 18px/44px sans-serif;cursor:pointer;padding:0}
:is(.tpl-a2,.tpl-b2) .news-article{padding-right:32px;overflow-wrap:anywhere}
:is(.tpl-a2,.tpl-b2) .news-article[hidden]{display:none}
:is(.tpl-a2,.tpl-b2) .news-article time{display:block;font-size:12px;letter-spacing:.08em;color:#6b6d68;line-height:1.5}
:is(.tpl-a2,.tpl-b2) .news-article h2{margin:12px 0;font:700 19px/1.5 "Noto Sans TC",sans-serif;text-wrap:pretty;letter-spacing:normal}
:is(.tpl-a2,.tpl-b2) .news-body{font-size:15px;line-height:1.85;color:#3a3c39;text-wrap:pretty}
/* 最新消息、訂單留言裡的網址（Kelly 2026-11-18）：跟著字色（深底留言泡泡是白字）、加底線看得出能點；長網址要能斷行。
   ⚠️ 住 site.css：首頁、買頁、購物車都載它，三個版型共用這一條。 */
:is(.news-body,.msg-body) a{color:inherit;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
:is(.tpl-a2,.tpl-b2) .news-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e3dfd4;margin-top:24px;padding-top:16px}
:is(.tpl-a2,.tpl-b2) .news-nav button{min-height:44px;padding:0;border:0;background:transparent;color:inherit;font:400 14px/1.5 "Noto Sans TC",sans-serif;cursor:pointer}
:is(.tpl-a2,.tpl-b2) .news-nav span{font-size:13px;color:#6b6d68;white-space:nowrap}
:is(.tpl-a2,.tpl-b2) .news-bar:focus-visible,:is(.tpl-a2,.tpl-b2) .news-dialog button:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
@media(prefers-reduced-motion:reduce){:is(.tpl-a2,.tpl-b2) .news-track{transition:none}}

/* Initial dialog focus belongs to the reading container, not the close control. */
:is(.tpl-a2,.tpl-b2) .news-card:focus{outline:none}

/* 商品總覽 `/p` 全部黑體、字重整體降一階（標題／店名／價格 400、商品名 500；Kelly 2026-10-06「優雅一點」）：字型寫在上面各條 `.product-list` 規則，頁尾見下一段。 */
/* 買頁＋商品總覽＋首頁的頁尾：靠左、緊湊、黑體小字（Kelly 2026-10-06 給的參考圖；2026-10-07 首頁也改成跟商品總覽一樣）。商品單頁與購物車不輸出頁尾。
   店名 → 電話等 → 一列連結 → 版權，不畫分隔線。`.tpl-a2/.tpl-b2` 同時涵蓋首頁與商品總覽（`/p` 的 body 也帶版型 class），兩頁吃同一組規則。
   ⚠️ 連結視覺是小字，但每顆仍保留 44 高的點擊範圍（列高靠 min-height，不靠字級）。 */
:is(.ps-buy,.tpl-a2,.tpl-b2) .site-footer{display:flex;flex-direction:column;padding:28px 24px 32px;gap:0;text-align:left}
.ps-buy .site-footer{background:white}  /* 不畫上框線：底下就是 sticky 動作條的線，兩條疊在一起太多（Kelly 2026-10-07） */
:is(.ps-buy,.tpl-a2,.tpl-b2) .store-profile{text-align:left;display:flex;flex-direction:column;gap:2px}
:is(.ps-buy,.tpl-a2,.tpl-b2) .store-profile-name{margin:0 0 4px;color:#1a1c1a}
:is(.ps-buy,.tpl-a2,.tpl-b2) .store-profile p{margin:0;font:400 12px/1.6 "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:.02em;color:#6f6a60;overflow-wrap:anywhere}
:is(.ps-buy,.tpl-a2,.tpl-b2) .site-footer .shopping-info-links{justify-content:flex-start;gap:0 18px;max-width:none;margin:6px 0 0}
:is(.ps-buy,.tpl-a2,.tpl-b2) .site-footer :is(.shopping-info-links>a,.shopping-info-links>button){display:inline-flex;align-items:center;margin:0;min-height:44px;text-align:left;color:#4a463f;font:400 12px/1.6 "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:.02em;text-decoration:none}
/* 頁尾社群 icon 列（2026-10-20，取代原本一行一個的「IG」「FB」文字連結）：放在店家資訊最後、購物說明連結之前，
   跟聯絡資料同一塊（那是「怎麼找到這家店」）。視覺 20、命中區 44×44；左邊 -12px 讓圖形左緣對齊上面文字的左緣，
   不然 44 的透明熱區會讓整排看起來縮排。顏色用墨黑 #1a1c1a（Kelly 2026-10-20：社群鈕用黑色），滑過降透明度。
   ⚠️ 不畫圓框：會員專區那組是內容主角才畫框（buy.css `.member-social-icons`），頁尾是輔助資訊，框會比旁邊 12px 的字重。
   全部留空時 renderer 不輸出這個 div，不用 :empty 處理。 */
:is(.ps-buy,.tpl-a2,.tpl-b2) .store-social{display:flex;flex-wrap:wrap;gap:0 4px;margin:6px 0 -6px -12px}
:is(.ps-buy,.tpl-a2,.tpl-b2) .store-social a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;color:#1a1c1a;text-decoration:none}
:is(.ps-buy,.tpl-a2,.tpl-b2) .store-social a:hover{opacity:.7}
:is(.ps-buy,.tpl-a2,.tpl-b2) .store-social a:focus-visible{outline:2px solid #2477e8;outline-offset:-4px;border-radius:8px}
:is(.ps-buy,.tpl-a2,.tpl-b2) .store-social span{display:flex}
:is(.ps-buy,.tpl-a2,.tpl-b2) .copyright{margin:0;padding-top:4px;border-top:0;text-align:left;font:400 11px/1.7 "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:.02em;color:#93918b}
/* 署名裡的官網連結：跟署名同色同字級，不搶店家；上下 padding 撐出 44 高的命中區、負 margin 抵銷不撐開版面。 */
:is(.ps-buy,.tpl-a2,.tpl-b2) .copyright .byline-brand{display:inline-block;padding:12px 0;margin:-12px 0;color:inherit;text-decoration:underline;text-decoration-color:#d5d2ca;text-underline-offset:3px}
@media(hover:hover){:is(.ps-buy,.tpl-a2,.tpl-b2) .copyright .byline-brand:hover{color:#4a463f}}
:is(.ps-buy,.tpl-a2,.tpl-b2) .shopping-info-head h2{font-family:"Noto Sans TC","PingFang TC",sans-serif}
/* 首頁商品卡的品名與價格改黑體（Kelly 2026-10-06，跟商品總覽／商品頁一致）。區塊標題等其他首頁字仍跟版型走。 */
:is(.tpl-a2,.tpl-b2) .product-card :is(.product-name,.product-price){font-family:"Noto Sans TC","PingFang TC",sans-serif}
/* 買頁與購物車的頂列（`storeNav`）：返回 ＋ 店名 ＋ 會員 ＋ 購物車，跟 `/p` 同一條（Kelly 2026-09-25；購物車 10-08）。
   ⚠️ 住在 site.css 而不是 buy.css：購物車頁只載 cart.css＋site.css，三頁都載的是這一份。幾何照 a2.css 的 `.list-nav`；
   店名、底色、底線跟首頁同一組，由 body 的 `brand-x` 吃下方「店名與頂列」的 token（Kelly 2026-10-23）。
   ⚠️ 買頁其他部分仍不分版型——那個 class 只管頂列與頁尾店名。
   ⚠️ 視覺 22、命中區 44：把 44 寫成視覺會把整條列撐高。 */
.ps-buy .list-nav, .customer-cart .list-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--hdr-h);
  padding: 0 16px 0 8px;
}
.ps-buy .list-back, .customer-cart .list-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: #1a1c1a;
}
.ps-buy .list-nav .brand, .customer-cart .list-nav .brand {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══ 店名與頂列：全站跟首頁同一組（Kelly 2026-10-23）═══════════════════════════
   「header 一定都要跟首頁的一樣」、頁尾店名也是：首頁頁首、選單抽屜、/p、商品頁、購物車、
   結帳、訂單、會員專區的頂列與店名，以及每一頁的頁尾店名，**全部吃這裡同一組 token**。
   首頁與 /p 的 body 是 `tpl-x`，其他頁是 `brand-x`（render.mjs 的 `brandClass`），兩個都對到同一組。
   ⚠️ 各版型 CSS 不再自己寫店名字型、頂列底色與底線——寫了就是第二份，換頁會長得不一樣。
   ⚠️ 加版型＝這裡加一組（`minimal-template.test.mjs` 會檢查每個版型都有）。
   --hdr-h 是列高；首頁頁首的高度由各版型自己的 padding＋漢堡 44 撐出，數值要跟這格一致。
   ⚠️ 首頁右上兩顆圖示跟 `.list-nav` 對位（右邊距 16、44 格、實際間距 2；Kelly 2026-11-18），改任一邊要量兩邊。 */
:is(.tpl-a2,.brand-a2){
  --brand-font:500 17px/1.3 "Noto Sans TC","PingFang TC",sans-serif;--brand-track:.02em;
  --hdr-bg:rgba(250,249,246,.8);--hdr-blur:blur(24px);--hdr-line:0 solid transparent;--hdr-shadow:0 1px 8px rgba(0,0,0,.04);--hdr-h:54px;
  --footer-name-font:500 16px/1.5 "Noto Sans TC","PingFang TC",sans-serif;--footer-name-track:.02em;
}
:is(.tpl-b2,.brand-b2){
  --brand-font:400 18px/1.3 "Noto Serif TC",serif;--brand-track:.06em;
  --hdr-bg:#fbfaf7;--hdr-blur:none;--hdr-line:1px solid #e3dfd4;--hdr-shadow:none;--hdr-h:54px;
  --footer-name-font:500 16px/1.5 "Noto Sans TC","PingFang TC",sans-serif;--footer-name-track:.02em;
}
:is(.tpl-minimal,.brand-minimal){
  --brand-font:500 15px/1.4 "Noto Sans TC","PingFang TC",sans-serif;--brand-track:.18em;
  --hdr-bg:rgba(255,255,255,.92);--hdr-blur:blur(16px);--hdr-line:1px solid #e6e6e3;--hdr-shadow:none;--hdr-h:56px;
  --footer-name-font:500 14px/1.5 "Noto Sans TC","PingFang TC",sans-serif;--footer-name-track:.18em;
}
/* 日系可愛（Kelly 2026-11-19）：白底（11-20）、1px 實線（Kelly 2026-11-20，原 2px 虛線）、不模糊；店名粉圓體 Huninn。 */
:is(.tpl-kawaii,.brand-kawaii){
  --brand-font:400 19px/1.4 "Huninn","Noto Sans TC",sans-serif;--brand-track:.04em;
  --hdr-bg:rgba(255,255,255,.94);--hdr-blur:none;--hdr-line:1px solid #f2ddd5;--hdr-shadow:none;--hdr-h:58px;
  --footer-name-font:400 19px/1.4 "Huninn","Noto Sans TC",sans-serif;--footer-name-track:.04em;
}
/* 馬卡龍每一色的色票（body 也掛 tpl-kawaii／brand-kawaii，所以排在上面那組後面，頂列線色才蓋得過去）。
   ⚠️ 下面這段是產生的：改 macaron-colors.json 再跑 build-macaron.mjs。色票只給值；誰吃哪一格寫在 kawaii.css／buy.css 的 macaron 段。 */
/* @generated macaron:start */
/* 薄荷 */
:is(.tpl-mint,.brand-mint){
  --hdr-line:1px solid #dde9cc;
  --m-strong:#5ec46c;
  --m-cta-ink:#ffffff;
  --m-cta-weight:700;
  --m-member-ink:#ffffff;
  --m-chip-ink:#ffffff;
  --m-cta-line:#d3e2c0;
  --m-bg:#fffcf3;
  --m-primary:#cfe8b4;
  --m-soft:#f1f8e6;
  --m-link-2:#d4ece0;
  --m-link-3:#fbf1c0;
  --m-decor:#7fb357;
  --m-badge:#3f7a2c;
  --m-ink:#2f3b28;
  --m-text:#45513b;
  --m-muted:#5d6a50;
  --m-line:#dde9cc;
  --m-dot:#d3e6bf;
  --m-scrim:rgba(47,59,40,.4);
  --m-frame:rgba(127,179,87,.14);
  --m-shadow-soft:rgba(63,122,44,.1);
  --m-shadow-fab:rgba(63,122,44,.22);
  --m-disabled-bg:#eef0ea;
  --m-chip-disabled-bg:#f1f3ee;
  --m-chip-disabled-ink:#9aa38f;
  --m-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 3C11 3 5.5 8 5.5 15c0 1.4.3 2.6.8 3.5C14.8 18 21 12.6 21 3z'/%3E%3Cpath d='M3.5 20.5 12.5 11.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* 珊瑚 */
:is(.tpl-coral,.brand-coral){
  --hdr-line:1px solid #f6d3c4;
  --m-strong:#ff958c;
  --m-cta-ink:#ffffff;
  --m-cta-weight:700;
  --m-member-ink:#ffffff;
  --m-chip-ink:#ffffff;
  --m-cta-line:#f3cfc2;
  --m-bg:#fff7f0;
  --m-primary:#ffb3a7;
  --m-soft:#ffebe3;
  --m-link-2:#d3eedd;
  --m-link-3:#fff0b3;
  --m-decor:#ff8a80;
  --m-badge:#c9473b;
  --m-ink:#4a3530;
  --m-text:#5c4640;
  --m-muted:#83635b;
  --m-line:#f6dccf;
  --m-dot:#f9c9bf;
  --m-scrim:rgba(74,53,48,.4);
  --m-frame:rgba(255,138,128,.14);
  --m-shadow-soft:rgba(196,64,92,.1);
  --m-shadow-fab:rgba(196,64,92,.22);
  --m-disabled-bg:#f3ecea;
  --m-chip-disabled-bg:#f6f0ee;
  --m-chip-disabled-ink:#b59f99;
  --m-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='12' cy='6' r='4.6'/%3E%3Ccircle cx='17.7' cy='10.2' r='4.6'/%3E%3Ccircle cx='15.5' cy='17' r='4.6'/%3E%3Ccircle cx='8.5' cy='17' r='4.6'/%3E%3Ccircle cx='6.3' cy='10.2' r='4.6'/%3E%3C/g%3E%3C/svg%3E");
}
/* 檸檬 */
:is(.tpl-lemon,.brand-lemon){
  --hdr-line:1px solid #f3dc8f;
  --m-strong:#f6d743;
  --m-cta-ink:#4a3530;
  --m-cta-weight:500;
  --m-member-ink:#ffffff;
  --m-chip-ink:#242422;
  --m-cta-line:#f0dc9a;
  --m-bg:#fffcf0;
  --m-primary:#ffd23f;
  --m-soft:#fff4c7;
  --m-link-2:#d3eedd;
  --m-link-3:#ffe0b8;
  --m-decor:#ffad0a;
  --m-badge:#b45309;
  --m-ink:#4a3530;
  --m-text:#5c4640;
  --m-muted:#83635b;
  --m-line:#f3e3b0;
  --m-dot:#f6dc7f;
  --m-scrim:rgba(74,53,48,.4);
  --m-frame:rgba(255,173,10,.16);
  --m-shadow-soft:rgba(196,64,92,.1);
  --m-shadow-fab:rgba(196,64,92,.22);
  --m-disabled-bg:#f3ecea;
  --m-chip-disabled-bg:#f6f0ee;
  --m-chip-disabled-ink:#b59f99;
  --m-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Ccircle cx='12' cy='6' r='4.6'/%3E%3Ccircle cx='17.7' cy='10.2' r='4.6'/%3E%3Ccircle cx='15.5' cy='17' r='4.6'/%3E%3Ccircle cx='8.5' cy='17' r='4.6'/%3E%3Ccircle cx='6.3' cy='10.2' r='4.6'/%3E%3C/g%3E%3C/svg%3E");
}
/* @generated macaron:end */
:is(.site-header,.list-nav,.menu-head) .brand{font:var(--brand-font);letter-spacing:var(--brand-track)}
.list-nav{min-height:var(--hdr-h);background:var(--hdr-bg);-webkit-backdrop-filter:var(--hdr-blur);backdrop-filter:var(--hdr-blur);border-bottom:var(--hdr-line);box-shadow:var(--hdr-shadow)}
/* 店名是 h2：多掛一層 .store-profile，才蓋得過各版型的「標題一律某字型」（b2 `.tpl-b2 h2`、極簡 `.tpl-minimal :is(h1,h2,h3)`）。 */
.store-profile .store-profile-name{font:var(--footer-name-font);letter-spacing:var(--footer-name-track)}
/* 從綠界按上一頁回來、正要導回訂單頁的那一下：蓋住頁面、只留轉圈（`ECPAY_RETURN_GUARD`，Kelly 2026-10-09）。
   ⚠️ 中性墨黑，不放 PocketSite 品牌動畫：客人看的是店家的網站。 */
html.ps-leaving body{visibility:hidden}
html.ps-leaving::after{content:"";position:fixed;inset:0;margin:auto;width:28px;height:28px;border:2.5px solid #e3dfd4;border-top-color:#1a1c1a;border-radius:50%;animation:ps-leaving-spin .8s linear infinite}
@keyframes ps-leaving-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){html.ps-leaving::after{animation-duration:2.4s}}

/* 頂列店名是回首頁的連結（Kelly 2026-10-16）：長相不變，命中區上下各撐 11px、用負邊距抵掉，列高不動（§3 44×44）。 */
:is(.site-header,.list-nav) a.brand{color:inherit;text-decoration:none;padding-block:11px;margin-block:-11px}
/* logo 包一層回首頁的連結：flex 子項從 img 換成這層；方形 logo 只有 32 寬，左右各撐 6px、負邊距抵掉，命中區 44 而排版不動，a2／b2 對 .brand-logo 的「不讓步／只顯示 logo 才放寬」照舊作用在 img 上。
   logo 關掉時整層藏起來，不留一條看不見、按得到的空連結。 */
.site-header .brand-home{display:flex;align-items:center;flex:0 0 auto;min-width:0;min-height:44px;padding-inline:6px;margin-inline:-6px}
.site-header:has(.brand.off) .brand-home{flex:0 1 auto}
.site-header .brand-home:has(.brand-logo.off){display:none}
/* 透明底 logo 保持透明（Kelly 2026-11-04）：a2 給所有 img 墊了破圖佔位的斜紋底，透明 PNG 會透出灰底斜線。版型 CSS 會整檔替換，所以防線放這裡；(0,2,0) 壓過 .tpl-x img。 */
.site-header .brand-logo{background:none}

/* 沒放 Gallery 時 About 直接接商品（Kelly 2026-11-15 回報）：原本中間那塊 Gallery 色帶把兩段隔開，拿掉後兩段同底色、留白疊成 48＋48＝96 顯得斷掉，商品區上緣收成 16，合計 64。
   只修這一組：其他相鄰區塊（商品→常見問題等）的 96 是 Kelly 看過的節奏，要一起收要先問她。 */
:is(.tpl-a2,.tpl-b2) .sec-about+.sec-products{padding-top:16px}

/* 商品特價（Kelly 2026-11-16 選 A，稿 `web/src/sale-price/`；PRD `docs/promotions-prd.md` §11）：
   特價赭紅在前、原價灰色劃掉在後。只有 render.mjs 的 `saleHTML` 會輸出 `.sale-price`，沒特價的商品一條都不套。
   特價用 PocketSite logo 珊瑚紅 #fd3f32（App token coral；Kelly 2026-11-18 從赭紅 #b93e0c 改過來）。
   兩個價格各自 nowrap、之間可換行：窄卡放不下時原價整個掉到下一行，不會拆成 NT$／9,980（價格被截＝靜默出錯）。 */
.sale-price{display:inline-flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;row-gap:0}
.sale-now,.sale-was{white-space:nowrap}
.sale-now{color:#fd3f32}
/* 原價小一階（特價的 8 成）、不加粗：視線先落在要付的錢；四位數兩個價格在 360 寬的兩欄卡片放得進同一行。 */
.sale-was{color:#8a857b;font-weight:400;font-size:.8em;text-decoration-thickness:1px}
/* 卡片價格那一格原本是 nowrap＋省略號（單一價格夠用）；有特價時要讓原價能換行，不能被「…」吃掉。 */
.product-price:has(>.sale-price){white-space:normal;overflow:visible}
/* 商品頁：特價在上、原價在下固定兩行（旁邊有數量鈕，寬度不穩，一行兩行跳來跳去比較亂）。 */
.product-price-stack .sale-price,.ps-buy .product-meta>.product-price>.sale-price{flex-direction:column;align-items:flex-start;row-gap:2px}
/* 結帳小結：單價那一行原價跟單價同字級；應付金額下方「折扣 $」同特價色。 */
.brief-unit .sale-was{font-size:1em}
.sale-saved{margin:-6px 0 0;text-align:right;font-size:13px;font-weight:600;color:#fd3f32}

/* 選單「商品」底下展開的分類（Kelly 2026-11-20 提案）：只用縮排與小一級的字表示「屬於商品」。
   ⚠️ 不畫左側直線（Kelly 2026-11-20：太干擾）。
   各版型只調字與縮排；`.menu-sub-item` 刻意不叫 `.menu-item`，不吃各版型主項目的高度、底線與小圓點。
   商品那一列的分隔線移到分類清單下面（整組算同一格）：線色 `--menu-line`、下內距 `--menu-sub-pb` 由版型給，沒給＝沒有線。 */
.menu-links .menu-item:has(+ .menu-sub){border-bottom:0}
.menu-sub{display:flex;flex-direction:column;padding:0 0 var(--menu-sub-pb,8px) 16px;border-bottom:1px solid var(--menu-line,transparent)}
.menu-sub-item{display:flex;align-items:center;min-height:44px;font-size:15px;letter-spacing:.04em;color:inherit;opacity:.72;text-decoration:none}
@media(hover:hover){.menu-sub-item:hover{opacity:1}}
/* 首頁商品標題下的分類膠囊（render.mjs `homeFilters`，Kelly 2026-11-20）：每個版型都輸出，先全站藏；
   只有馬卡龍在 kawaii.css 打開。要給別的版型用，就在那份 CSS 打開，不要刪這條。 */
.home-filters{display:none}
/* 按下回饋（Kelly 2026-11-25：購物車、立即購買等按鈕按下要縮一下、放開彈回）。全站、全版型、首頁與買頁共用這一段。
   ⚠️ 用獨立的 `scale` 屬性不用 `transform`：有些鈕本來就靠 transform 定位（.related-nav 的 translateY、hero 換圖鈕），
      寫 transform 會把它們的位置蓋掉；`scale` 跟 transform 疊加。選單鈕（.menu-open／.menu-close）已有自己的 .88，不再疊。
   ⚠️ transition 用 :where() 零權重：各元件自己寫的 transition（背景色漸變等）照樣贏，最差只是縮放沒有動畫。
   停用（disabled／aria-disabled／售完）的鈕不縮——按了沒反應的東西不該假裝有反應。 */
:where(button,.act-primary,.act-ghost,.act-line,.act-bar>a,.site-return-button,.cart-fab,.header-cart,.header-member,.product-cta,.copy-button,.contact-card){transition:scale .12s ease}
:is(button,.act-primary,.act-ghost,.act-line,.act-bar>a,.site-return-button,.cart-fab,.header-cart,.header-member,.copy-button,.contact-card):not(.menu-open,.menu-close,:disabled,[aria-disabled="true"]):active{scale:.96}
.product-card:active .product-cta:not(.is-disabled){scale:.96}

/* `/p` 桌機分類列的「更多」（Kelly 2026-11-30 C 案；行為在 render.mjs `filterFoldScript`，稿 design/filter-more/build.mjs）。
   「更多」鈕掛 .product-filter，外觀直接吃各版型的膠囊／頁籤；這裡只放收合本身和下拉清單。
   清單裡的就是原本的膠囊搬進去，拿掉膠囊外觀改成 44 高的清單列。各版型只換 --fp-* 幾個值。
   ⚠️ `.is-fold` 是 JS 跑完才加：之前（沒 JS／還沒跑）篩選列照舊橫捲，不會一整排溢出畫面。 */
.filter-more,.filter-pop{display:none}
/* 「更多」掛 .product-filter，會吃到版型的膠囊 display（a2 的 (0,2,0) 沒有 [hidden]!important 保底，手機會多一顆空鈕；code review 2026-11-30）。 */
:is(.product-list,.home-filters) :is(.filter-more,.filter-pop)[hidden],.product-list .filter-more:not(.product-filters.is-fold>*),.filter-more.home-filter:not(.home-filters.is-fold>*){display:none}
@media(min-width:768px){
  :is(.product-list .product-filters,.home-filters).is-fold{position:relative;overflow:visible;flex-wrap:nowrap}
  :is(.product-list,.home-filters) .filter-more{display:flex;align-items:center;gap:4px;flex-shrink:0}
  :is(.product-list,.home-filters) .filter-more>span{max-width:8em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}  /* 選中長分類名時不把列撐出去；filterFoldScript 預留 160 */
  :is(.product-list,.home-filters) .filter-more svg{width:14px;height:14px;transition:transform .15s}
  :is(.product-list,.home-filters) .filter-more[aria-expanded="true"] svg{transform:rotate(180deg)}
  :is(.product-list,.home-filters) .filter-pop{position:absolute;top:calc(100% + 6px);right:0;z-index:30;display:flex;flex-direction:column;min-width:220px;max-width:320px;max-height:min(60vh,420px);overflow:auto;padding:6px;background:#fff;border:1px solid var(--fp-line);border-radius:var(--fp-radius);box-shadow:0 10px 30px #1a1c1a1f}
  :is(.product-list,.home-filters) .filter-pop>:is(.product-filter,.home-filter){display:flex;align-items:center;gap:10px;width:100%;min-height:44px;height:auto;margin:0;padding:0 12px;border:0;border-radius:calc(var(--fp-radius) - 2px);background:none;color:var(--fp-ink);font-weight:400;text-align:left;white-space:normal}
  .product-list .filter-pop>.product-filter .product-filter-count{margin-left:auto;opacity:.6}
  .product-list .filter-pop>.product-filter::after{content:"";width:16px;height:16px;flex-shrink:0}
  .product-list .filter-pop>.product-filter.on{background:var(--fp-soft);color:var(--fp-ink);font-weight:500}
  .product-list .filter-pop>.product-filter.on::after{background:currentColor;-webkit-mask:var(--fp-check) center/contain no-repeat;mask:var(--fp-check) center/contain no-repeat}
  @media(hover:hover){:is(.product-list,.home-filters) .filter-pop>:is(.product-filter,.home-filter):not(.on):hover{background:var(--fp-soft)}}
  .tpl-b2.product-list .filter-pop{top:calc(100% + 1px)}  /* 雜誌式是文字頁籤＋底線：清單貼在底線下 */
  .home-filters .filter-pop{left:0;right:auto}  /* 首頁那排「更多」在左半邊，清單往右長 */
  .home-filters .filter-pop>.home-filter{text-decoration:none}
}
body{--fp-line:#e3dfd4;--fp-radius:14px;--fp-ink:#1a1c1a;--fp-soft:#f4f1ea;--fp-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.tpl-b2{--fp-radius:4px}
:is(.tpl-minimal,.tpl-kawaii){--fp-line:var(--ss-line);--fp-ink:var(--ss-ink);--fp-soft:var(--ss-soft,#f4f4f2)}
.tpl-minimal{--fp-radius:var(--ss-radius-md,12px)}
.tpl-kawaii{--fp-radius:16px}
/* ═══ 商品總覽 /p 搜尋＋排序（Kelly 2026-12-01 D 案；稿 design/list-search，行為在 render.mjs LIST_SCRIPT） ═══
   分類膠囊下一列：左邊件數、右邊「放大鏡 ＋ 排序 ⌄」；點放大鏡這一列換成搜尋框＋取消（.is-searching），件數移到下一行（.list-found）。
   顏色與圓角吃上面「更多」清單那組 --fp-*，再加幾個 --lt-*；各版型只換值。商品少於 8 個整段不輸出。 */
.product-list{--lt-muted:#6f6a60;--lt-pill:999px;--lt-on-bg:#1a1c1a;--lt-on-ink:#fff;--lt-check:#1a1c1a}
.product-list.tpl-b2{--lt-pill:4px}
.product-list:is(.tpl-minimal,.tpl-kawaii){--lt-muted:var(--ss-muted);--lt-pill:var(--ss-radius-pill);--lt-on-bg:var(--ss-chip-on-bg);--lt-on-ink:var(--ss-chip-on-ink);--lt-check:var(--k-strong,var(--ss-ink))}
.list-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;color:var(--fp-ink)}
.list-count{font-size:13px;color:var(--lt-muted);font-variant-numeric:tabular-nums}
.list-tools-actions{display:flex;align-items:center;margin-right:-6px}
.list-tools :is(.list-search-open,.list-sort,.list-search-clear,.list-search-cancel){display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.list-tools .list-search-open{width:44px}
.list-tools .list-search-open svg{width:20px;height:20px}
.list-tools .list-sort{gap:2px;padding:0 6px 0 4px;font-size:14px}
.list-tools .list-sort svg{width:16px;height:16px}
.list-search{display:none;flex:1;align-items:center;gap:4px;min-width:0}
.list-tools.is-searching>:not(.list-search){display:none}
.list-tools.is-searching>.list-search{display:flex}
.list-search-field{position:relative;flex:1;display:flex;align-items:center;gap:8px;min-width:0;min-height:44px;padding:0 4px 0 14px;box-sizing:border-box;border:1px solid var(--fp-line);border-radius:var(--lt-pill);background:#fff;color:var(--lt-muted)}
.list-search-field:focus-within{border-color:var(--fp-ink)}
.list-search-field>svg{flex:0 0 auto;width:18px;height:18px}
/* 字級 16：iOS 小於 16 一點進去整頁會被放大 */
.list-search-field input{flex:1;min-width:0;height:42px;margin:0;padding:0;border:0;outline:0;background:none;font:inherit;font-size:16px;color:var(--fp-ink);-webkit-appearance:none;appearance:none}
.list-search-field input::placeholder{color:var(--lt-muted);opacity:.75}
.list-search-field input::-webkit-search-cancel-button{display:none}
.list-tools .list-search-clear{width:36px;min-height:36px;color:var(--lt-muted)}
.list-tools .list-search-clear[hidden]{display:none}
.list-tools .list-search-clear::before{content:"";position:absolute;top:0;bottom:0;right:0;width:44px}
.list-tools .list-search-clear svg{width:18px;height:18px}
.list-tools .list-search-cancel{padding:0 2px 0 8px;font-size:15px}
.list-found{margin:0;font-size:13px;color:var(--lt-muted)}
.list-found[hidden]{display:none}
/* 搜尋沒結果 */
.list-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 16px 24px;text-align:center;color:var(--lt-muted)}
.list-empty[hidden]{display:none}
.list-empty>svg{width:40px;height:40px;opacity:.6;margin-bottom:4px}
.list-empty b{font-size:16px;font-weight:500;color:var(--fp-ink)}
.list-empty :is(.list-empty-clear,.list-empty-all){margin:0;border:0;font:inherit;cursor:pointer}
.list-empty .list-empty-clear{min-height:44px;margin-top:8px;padding:0 24px;border-radius:var(--lt-pill);background:var(--lt-on-bg);color:var(--lt-on-ink);font-size:15px}
.list-empty .list-empty-all{min-height:44px;padding:0 8px;background:none;color:var(--fp-ink);font-size:14px;text-decoration:underline;text-underline-offset:3px}
.list-empty .list-empty-all[hidden]{display:none}
/* 排序選單：手機從底部滑出（跟「立即購買」的規格選單同一種），桌機置中 */
.list-sort-scrim{position:fixed;inset:0;z-index:50;background:#1f1d1a73;opacity:0;visibility:hidden;transition:opacity .22s,visibility .22s}
.list-sort-scrim.is-open{opacity:1;visibility:visible}
.list-sort-sheet{position:fixed;z-index:51;left:0;right:0;bottom:0;padding:4px 0 calc(16px + env(safe-area-inset-bottom,0px));background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -8px 32px #0002;color:var(--fp-ink);transform:translateY(105%);visibility:hidden;transition:transform .26s cubic-bezier(.2,.8,.2,1),visibility .26s}
.list-sort-sheet.is-open{transform:none;visibility:visible}
.list-sort-head{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 4px 20px}
.list-sort-head b{font-size:16px;font-weight:700}
.list-sort-sheet :is(.list-sort-close,.list-sort-opt){margin:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.list-sort-sheet .list-sort-close{display:grid;place-items:center;width:44px;height:44px;padding:0;color:var(--lt-muted)}
.list-sort-sheet .list-sort-opt{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;padding:0 20px;font-size:16px;text-align:left}
.list-sort-sheet .list-sort-opt+.list-sort-opt{border-top:1px solid var(--fp-line)}
.list-sort-sheet .list-sort-opt svg{width:20px;height:20px;color:var(--lt-check);visibility:hidden}
.list-sort-sheet .list-sort-opt[aria-checked="true"]{font-weight:700}
.list-sort-sheet .list-sort-opt[aria-checked="true"] svg{visibility:visible}
@media(min-width:768px){
  .list-sort-sheet{left:50%;right:auto;bottom:auto;top:50%;width:360px;padding-bottom:12px;border-radius:20px;opacity:0;transform:translate(-50%,-46%) scale(.98);transition:transform .2s,opacity .2s,visibility .2s}
  .list-sort-sheet.is-open{opacity:1;transform:translate(-50%,-50%)}
}
@media(prefers-reduced-motion:reduce){.list-sort-sheet,.list-sort-scrim{transition:none}}

/* ═══ 「✓ 已加入購物車」Toast：商品單頁（buy.css 載入後才載這份）與總覽卡快速購買共用（2026-12-01 從 buy.css 搬來；z-index 40→60 壓過快速購買選單）═══ */
.cart-added-toast{position:fixed;z-index:60;top:calc(env(safe-area-inset-top,0px) + 76px);left:50%;transform:translate(-50%,-12px);width:calc(100% - 32px);max-width:460px;box-sizing:border-box;background:#282622;color:#fff;border-radius:16px;padding:12px;display:flex;gap:10px;align-items:center;box-shadow:0 8px 28px #0003;opacity:0;visibility:hidden;transition:opacity .2s,transform .2s,visibility .2s}
.cart-added-toast.is-shown{opacity:1;visibility:visible;transform:translate(-50%,0)}
.cart-added-toast img{width:44px;height:44px;object-fit:cover;border-radius:8px}
.cart-added-toast>div{flex:1;min-width:0}
.cart-added-toast strong{font:500 14px/1.5 "Noto Sans TC",sans-serif}
.cart-added-toast strong span{color:#8ad1ac;margin-right:4px}
.cart-added-toast small{display:block;color:#ccc5ba;font-size:11px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cart-added-toast a{font:400 12px/1.4 "Noto Sans TC",sans-serif;white-space:nowrap;background:#ffffff20;color:#fff;text-decoration:none;border-radius:24px;padding:14px 10px;min-height:44px;box-sizing:border-box}
/* 存不進購物車（無痕、關掉網站資料）：同一個位置改說原因，不出勾、不出「前往購物車」 */
.cart-added-toast.is-error strong,.cart-added-toast.is-error a{display:none}
.cart-added-toast.is-error small{white-space:normal;color:#fff;font-size:13px;margin:0}
@media(prefers-reduced-motion:reduce){.cart-added-toast{transition:none}}

/* ═══ 總覽卡「立即購買」快速購買選單（Kelly 2026-12-01，看板卡 11-30-6）═══
   手機＝稿 B 精簡型（底部滑出、照片破格浮出上緣）；768 以上＝稿 D1 直式（置中、照片 4:3 滿版在上、規格一列一列）。
   稿：design/quick-buy/build.mjs。⚠️ 按鈕規則前面掛 .qb-sheet：b2.css 的 .tpl-b2 button 重置權重比單一 class 高。
   主色跟各版型商品單頁的「加入購物車」同色（buy.css .product-buy）。 */
:root{--qb-ink:#1a1c1a;--qb-on:#fff;--qb-line:#e6e3dc;--qb-muted:#6f6a60}
.tpl-kawaii{--qb-ink:var(--k-pink);--qb-on:var(--k-ink)}
.tpl-kawaii.tpl-macaron{--qb-ink:var(--k-strong);--qb-on:var(--m-cta-ink)}
html.qb-lock{overflow:hidden}
.qb-scrim[hidden],.qb-sheet[hidden]{display:none}
.qb-scrim{position:fixed;inset:0;z-index:55;background:#1f1d1a73;opacity:0;transition:opacity .22s}
.qb-scrim.is-open{opacity:1}
.qb-sheet{position:fixed;z-index:56;left:0;right:0;bottom:0;max-height:86vh;display:flex;flex-direction:column;box-sizing:border-box;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -8px 32px #0002;transform:translateY(105%);transition:transform .26s cubic-bezier(.2,.8,.2,1);font-family:"Noto Sans TC","PingFang TC",sans-serif;color:#1a1c1a;text-align:left}
.qb-sheet.is-open{transform:none}
.qb-sheet:focus{outline:none}  /* 打開時焦點放在整個選單（讀屏從標題念起），不在關閉鈕上畫框 */
.qb-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
.qb-sheet .qb-close{position:absolute;top:6px;right:6px;z-index:1;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:none;color:#4a463f;cursor:pointer}
.qb-sheet .qb-close svg{width:20px;height:20px}
.qb-head{display:flex;gap:14px;align-items:flex-start;padding:0 52px 14px 20px}
.qb-photo{flex:0 0 auto;width:112px;height:112px;margin-top:-40px;border-radius:14px;border:3px solid #fff;box-shadow:0 4px 16px #0002;object-fit:cover;background:#f1efea}
.qb-meta{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;padding-top:16px}
.qb-name{font:500 15px/1.4 "Noto Sans TC",sans-serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.qb-price{font:600 15px/1.4 "Noto Sans TC",sans-serif}
.qb-was{color:#9a958c;text-decoration:line-through;font-weight:400;font-size:.8em;margin-left:6px}
.qb-detail{position:relative;align-self:flex-start;display:inline-flex;align-items:center;gap:2px;min-height:32px;color:var(--qb-muted);font:400 13px/1.4 "Noto Sans TC",sans-serif;text-decoration:none}
.qb-detail::before{content:"";position:absolute;inset:-6px 0}
.qb-detail svg{width:14px;height:14px}
.qb-body{display:flex;flex-direction:column;gap:18px;padding:4px 20px 18px}
.qb-variants{display:flex;flex-direction:column;gap:16px}
.qb-axis{display:flex;flex-direction:column;gap:8px}
.qb-axis-head{display:flex;flex-direction:column;gap:2px}
.qb-label{font:500 13px/1.3 "Noto Sans TC",sans-serif;color:#6b675f;letter-spacing:.02em}
.qb-axis-val{display:none;font:400 13px/1.4 "Noto Sans TC",sans-serif;color:var(--qb-muted)}
.qb-chips{display:flex;flex-wrap:wrap;gap:8px}
.qb-sheet .qb-chip{position:relative;display:inline-flex;align-items:center;min-height:36px;margin:0;padding:0 14px;border:1px solid var(--qb-line);border-radius:999px;background:#fff;color:#1a1c1a;font:500 13px/1.3 "Noto Sans TC",sans-serif;letter-spacing:0;cursor:pointer}
.qb-sheet .qb-chip::before{content:"";position:absolute;inset:-4px}
.qb-sheet .qb-chip[aria-checked="true"]{background:var(--qb-ink);border-color:var(--qb-ink);color:var(--qb-on)}
.qb-sheet .qb-chip:disabled{background:#f1efea;border-color:#f1efea;color:#9a958c;cursor:default}
.qb-left{margin-top:-8px;font-size:12px;color:var(--qb-muted)}
.qb-foot{display:flex;align-items:center;gap:12px;padding:12px 20px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid #f0ede7;background:#fff}
.qb-stepper{display:flex;align-items:center;height:44px;border:1px solid var(--qb-line);border-radius:999px;overflow:hidden}
.qb-sheet .qb-stepper button{width:44px;height:44px;display:grid;place-items:center;margin:0;padding:0;border:0;background:none;font-size:18px;color:#4a463f;cursor:pointer}
.qb-sheet .qb-stepper button:disabled{color:#c9c4bb;cursor:default}
.qb-stepper output{min-width:28px;text-align:center;font:500 15px/1 "Noto Sans TC",sans-serif}
.qb-sheet .qb-buy{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;height:52px;margin:0;padding:0 16px;border:0;border-radius:999px;background:var(--qb-ink);color:var(--qb-on);font:500 15px/1 "Noto Sans TC",sans-serif;letter-spacing:.02em;cursor:pointer}
.qb-buy small{font:inherit;opacity:.8}
@media(min-width:768px){
  .qb-sheet{left:50%;right:auto;bottom:auto;top:50%;width:460px;max-height:calc(100vh - 64px);overflow:auto;overscroll-behavior:contain;border-radius:20px;opacity:0;transform:translate(-50%,-46%) scale(.98);transition:transform .2s,opacity .2s}
  .qb-sheet.is-open{opacity:1;transform:translate(-50%,-50%)}
  .qb-sheet .qb-close{top:14px;right:14px;background:#fff;border-radius:50%;box-shadow:0 2px 10px #0000001f}
  .qb-head{flex-direction:column;align-items:stretch;gap:0;padding:0}
  .qb-photo{width:100%;height:auto;aspect-ratio:4/3;margin:0;border:0;border-radius:20px 20px 0 0;box-shadow:none}
  .qb-meta{padding:22px 28px 4px}
  .qb-name{font-size:20px}
  .qb-price{font-size:18px;margin-top:4px}
  .qb-detail{min-height:36px}
  .qb-scroll{flex:none;overflow:visible}
  .qb-body{padding:14px 28px 24px}
  .qb-axis{display:grid;grid-template-columns:92px 1fr;gap:12px;align-items:start}
  .qb-axis-head{padding-top:9px}
  .qb-label{font-size:14px;color:#1a1c1a}
  .qb-axis-val{display:block}
  .qb-sheet .qb-chip{min-height:40px;padding:0 18px;font-size:14px}
  .qb-left{margin:-6px 0 0 104px}
  .qb-foot{position:sticky;bottom:0;padding:16px 28px 24px}
}
@media(prefers-reduced-motion:reduce){.qb-sheet,.qb-scrim{transition:none}}


/* ════════ 桌機版 ≥1024（Kelly 2026-12-01／12-02 定案，卡 2026-12-01-3）：頂列（四款）＋購物車／結帳
   從設計稿 design/site-styles/desktop/desktop-*-nav.css、desktop-cart.css 搬進來，1023 以下一個 byte 都不變。決定與作廢紀錄見該資料夾 README。 ════════ */
/* 桌機才有的頂列節點（中間選單、搜尋、首頁頂列購物車、其他頁的會員 icon）：手機與沒有桌機版的版型一律藏。
   ⚠️ 要留在最外層、不能包進 @media（page-menu.test 驗）。 */
.desk-nav,.header-search,.desk-cart,.list-nav .header-member{display:none}

/* ── desktop-nav.css ── */
/* ═══ 馬卡龍 · 桌機頂列＋桌機 token（設計稿 2026-12-01；合併時搬進 site.css「店名與頂列」那段後面）═══════════
   首頁 `.site-header` 與其他頁 `storeNav`（`.list-nav`）在 ≥1024 變成同一條：
     店名（左）｜橫排選單（中，項目＝抽屜那一份；「商品」停住往下展開分類）｜會員・搜尋・購物車（右）
   漢堡、返回鍵、首頁右下的購物車浮動鈕在桌機藏起來。頂列底色／底線／店名字型照舊吃「店名與頂列」的 --hdr-* token。
   · 掛 :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron)：首頁與 /p 是 tpl-、商品單頁是 brand-（買頁不載 kawaii.css，所以頂列與 token 住 site.css）。
   · 1023 以下一條都不生效：新節點（.desk-nav／.header-search／首頁 .desk-cart／/p 與商品頁的 .header-member）手機一律藏。
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */

/* 手機：桌機頂列才有的節點全藏（/p、商品頁的會員鈕 Kelly 2026-12-01 已從手機頂列拿掉，只在桌機回來） */

@media (min-width:1024px){
  /* 桌機 token：內容最寬 920（Kelly 12-01：視覺集中，1440→1200→1040→920）、左右留白 48→64（隨寬度）；--dk-pad＝實際左右內距（超過 1440＋留白時兩邊平分）。
     ⚠️ 用 100vw 不用 100%：這個值也拿來算出血（照片區的負邊距），% 在不同層對到的寬度不一樣。代價是有捲軸的系統在 >1568 寬時偏 ≤8px。 */
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron){
    --dk-max:920px;
    --dk-gutter:clamp(48px,4.5vw,64px);
    --dk-pad:max(var(--dk-gutter),calc((100vw - var(--dk-max)) / 2));
    --dk-hdr-h:60px;   /* Kelly 12-03 頂列收小（原 76px） */
  }

  /* ── 頂列骨架：flex，兩邊各一個等寬的彈性空白把選單推到中間 ──────────────────────────
     不用 1fr auto 1fr 的 grid：logo 與店名是兩個節點（兩個都開時要並排），塞不進同一格。
     代價：選單是「左右兩組之間」的正中，不是視窗正中；左右兩組寬度差多少，選單偏一半（店名四個字約偏 30px）。 */
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav){
    display:flex;align-items:center;gap:4px;
    height:var(--dk-hdr-h);min-height:var(--dk-hdr-h);
    padding:0 calc(var(--dk-pad) - 10px) 0 var(--dk-pad);   /* 右邊 -10：最後一顆 44 的圖示視覺貼齊內容右緣 */
  }
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav)::before,
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav)::after{content:"";flex:1 1 0;min-width:24px}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav)::before{order:1}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav{order:2}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav)::after{order:3}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.header-member,.header-search,.header-cart){order:4}

  /* 左：logo／店名。店名最多佔 30% 寬，再長就截字（…），不擠選單。logo 照 §2.1：高 32 上限、等比。 */
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav) .brand{flex:0 1 auto;min-width:0;max-width:30vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:44px;font-size:19px;letter-spacing:.06em}   /* 店名跟手機頂列同字級（Kelly 12-03，原 24） */
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .site-header .brand-home{flex:0 0 auto;margin-right:8px}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .site-header .brand-logo{max-height:36px;max-width:200px}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .site-header:has(.brand.off) .brand-logo{max-width:30vw}

  /* 藏：漢堡、返回、首頁右下浮動購物車（桌機改在頂列） */
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav) :is(.menu-open,.list-back){display:none}
  .tpl-macaron .cart-fab{display:none!important}   /* 首頁 script 會拿掉 hidden；!important 對上 kawaii.css 的 [hidden]{…!important} 同一層 */

  /* ── 中：橫排選單 ─────────────────────────────────────────────────────────────── */
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav{display:flex;align-items:center;gap:2px;flex:0 0 auto}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-item{
    display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0 14px;border-radius:999px;
    color:var(--m-ink);text-decoration:none;white-space:nowrap;
    font:500 16px/1 "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:.04em;   /* 跟抽屜選單同一組字（site.css 選單段：馬卡龍思源黑 500） */
  }
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-item svg{width:14px;height:14px;opacity:.7;transition:transform .15s}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-item:focus-visible{outline:2px solid var(--m-ink);outline-offset:-2px}
  @media (hover:hover){
    :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-item:hover{background:var(--m-soft)}
  }

  /* 「商品」下拉分類：停住或 Tab 進來才展開。上方 8px 透明橋接，滑鼠從字移到清單不會斷。
     分類多：清單最高 60vh 內捲；分類名長：換行不截（清單寬 200–280）。 */
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-group{position:relative}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-sub{
    position:absolute;top:100%;left:50%;z-index:60;
    display:flex;flex-direction:column;min-width:200px;max-width:280px;max-height:min(60vh,420px);overflow-y:auto;
    padding:6px;margin-top:8px;border:1px solid var(--m-line);border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.10);
    opacity:0;visibility:hidden;transform:translate(-50%,-4px);transition:opacity .15s,transform .15s,visibility 0s .15s;
  }
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-sub::before{content:"";position:absolute;left:0;right:0;top:-9px;height:9px}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-group:is(:hover,:focus-within) .desk-nav-sub{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .15s,transform .15s}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-group:is(:hover,:focus-within) .desk-nav-item svg{transform:rotate(180deg)}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-sub-item{
    display:flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:8px;
    color:var(--m-ink);text-decoration:none;font:500 15px/1.45 "Noto Sans TC","PingFang TC",sans-serif;overflow-wrap:anywhere;
  }
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-sub-item:focus-visible{outline:2px solid var(--m-ink);outline-offset:-2px}
  @media (hover:hover){
    :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .desk-nav-sub-item:hover{background:var(--m-soft)}
  }
  @media (prefers-reduced-motion:reduce){
    :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.desk-nav-sub,.desk-nav-item svg){transition:none}
  }

  /* ── 右：會員・搜尋・購物車，44 格、實際間距 4 ────────────────────────────────────── */
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart){
    position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0;border-radius:999px;color:var(--m-ink);text-decoration:none;
  }
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .header-search svg{width:22px;height:22px}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart):focus-visible{outline:2px solid var(--m-ink);outline-offset:-2px}
  @media (hover:hover){
    :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart):hover{background:var(--m-soft)}
  }
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) :is(.site-header,.list-nav) .header-cart .cart-count{top:2px;right:0;background:#d83b3b;color:#fff;border:2px solid #fff;min-width:20px;height:20px}
}

/* Kelly 12-01「圓角太圓」：快速購買彈窗（site.css .qb-sheet，所有頁共用）桌機圓角 20→12，照片上緣跟著 */
@media (min-width:1024px){
  .tpl-kawaii.tpl-macaron .qb-sheet{border-radius:0}  /* 12-01 後改：除了商品卡其他都直角 */
  .tpl-kawaii.tpl-macaron .qb-photo{border-radius:0}
}

/* Kelly 12-01「footer 的社群 icon 放大」：20→28，點擊區 44→52（首頁／商品頁頁尾都吃） */
@media (min-width:1024px){
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .store-social a{width:52px;height:52px}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron) .store-social svg{width:28px;height:28px}
}

/* ── desktop-b2-nav.css ── */
/* ═══ 雜誌式（B2）· 桌機頂列＋桌機 token（設計稿 2026-12-01；合併時搬進 site.css「店名與頂列」B2 那組後面）═══════
   版面原則跟馬卡龍同一套（desktop-nav.css）：店名左｜中間「首頁＋商品（停住展開分類）」｜右會員・搜尋・購物車；sticky；漢堡、返回、浮動購物車藏。
   B2 自己的長相：選單是襯線字＋細底線（不是膠囊底色）、下拉清單直角細框、店名襯線字距拉開。
   · 掛 :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2)：首頁與 /p 是 tpl-b2、商品單頁是 brand-b2（買頁不載 b2.css，頂列與 token 住 site.css）。
     寫兩次是為了 0,2,0：要壓過 b2.css 的 `.tpl-b2 .site-header`、site.css 的 `.product-list:is(.tpl-a2,.tpl-b2) .list-nav`。
   · 1023 以下一條都不生效：新節點手機一律藏。
   · B2 的顏色沒有 token，照 b2.css 現有的值：墨 #1f1d1a、灰字 #6f6a60、線 #e3dfd4、底 #fbfaf7、淺底 #f4f1ea、橘 #bc5816（購物車件數）。
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */


@media (min-width:1024px){
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2){
    --dk-max:920px;                    /* 頂列、首圖、商品格線 */
    --dk-narrow:780px;                 /* 關於、照片區、影片 */
    --dk-text:624px;                   /* 常見問題、聯絡（窄欄的 80%） */
    --dk-gutter:clamp(48px,4.5vw,64px);
    --dk-pad:max(var(--dk-gutter),calc((100vw - var(--dk-max)) / 2));
    --dk-hdr-h:60px;   /* Kelly 12-03 頂列收小（原 72px） */
    --b2-ink:#1f1d1a;--b2-muted:#6f6a60;--b2-line:#e3dfd4;--b2-bg:#fbfaf7;--b2-soft:#f4f1ea;--b2-accent:#bc5816;
  }

  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav){
    position:sticky;top:0;z-index:45;
    display:flex;align-items:center;gap:4px;
    height:var(--dk-hdr-h);min-height:var(--dk-hdr-h);
    padding:0 calc(var(--dk-pad) - 10px) 0 var(--dk-pad);
    background:var(--hdr-bg);border-bottom:var(--hdr-line);
  }
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav)::before,
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav)::after{content:"";flex:1 1 0;min-width:24px}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav)::before{order:1}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav{order:2}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav)::after{order:3}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.header-member,.header-search,.header-cart){order:4}

  /* 店名：襯線、字距拉開（B2 的刊頭感）；最多 30% 寬，再長截字 */
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav) .brand{flex:0 1 auto;min-width:0;max-width:30vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:44px;font:400 18px/44px "Noto Serif TC",serif;letter-spacing:.1em;color:var(--b2-ink)}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .site-header .brand-home{flex:0 0 auto;margin-right:8px}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .site-header .brand-logo{max-height:34px;max-width:200px}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .site-header:has(.brand.off) .brand-logo{max-width:30vw}

  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav) :is(.menu-open,.list-back){display:none}
  .tpl-b2.tpl-b2 .cart-fab{display:none!important}

  /* 中：襯線、字距 .12em；停住／目前頁畫一條墨色細底線（不用膠囊底色——B2 用線不用色塊） */
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav{display:flex;align-items:center;gap:8px;flex:0 0 auto}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-item{
    position:relative;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 14px;
    color:var(--b2-ink);text-decoration:none;white-space:nowrap;font:400 15px/1 "Noto Serif TC",serif;letter-spacing:.12em;
  }
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-item::after{content:"";position:absolute;left:14px;right:14px;bottom:9px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .2s}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-item svg{width:13px;height:13px;opacity:.6;transition:transform .15s}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-item:focus-visible{outline:1px solid var(--b2-ink);outline-offset:-2px}
  @media (hover:hover){
    :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-item:hover::after,
    :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-group:hover>.desk-nav-item::after{transform:scaleX(1)}
  }
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-group{position:relative}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-sub{
    position:absolute;top:100%;left:50%;z-index:60;
    display:flex;flex-direction:column;min-width:200px;max-width:280px;max-height:min(60vh,420px);overflow-y:auto;
    padding:8px 0;margin-top:8px;border:1px solid var(--b2-line);border-radius:0;background:var(--b2-bg);box-shadow:0 10px 28px rgba(31,29,26,.08);
    opacity:0;visibility:hidden;transform:translate(-50%,-4px);transition:opacity .15s,transform .15s,visibility 0s .15s;
  }
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-sub::before{content:"";position:absolute;left:0;right:0;top:-9px;height:9px}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-group:is(:hover,:focus-within) .desk-nav-sub{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .15s,transform .15s}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-group:is(:hover,:focus-within) .desk-nav-item svg{transform:rotate(180deg)}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-sub-item{
    display:flex;align-items:center;min-height:44px;padding:8px 20px;
    color:var(--b2-ink);text-decoration:none;font:400 15px/1.45 "Noto Serif TC",serif;letter-spacing:.06em;overflow-wrap:anywhere;
  }
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-sub-item+.desk-nav-sub-item{border-top:1px solid var(--b2-line)}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-sub-item:focus-visible{outline:1px solid var(--b2-ink);outline-offset:-2px}
  @media (hover:hover){:is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .desk-nav-sub-item:hover{background:var(--b2-soft)}}
  @media (prefers-reduced-motion:reduce){:is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.desk-nav-sub,.desk-nav-item svg,.desk-nav-item::after){transition:none}}

  /* 右：44 格；停住只換淺底，不畫圈 */
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart){
    position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0;border-radius:0;color:var(--b2-ink);text-decoration:none;
  }
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart) svg{width:21px;height:21px}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart):focus-visible{outline:1px solid var(--b2-ink);outline-offset:-2px}
  @media (hover:hover){:is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart):hover{background:var(--b2-soft)}}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) :is(.site-header,.list-nav) .header-cart .cart-count{top:3px;right:1px;min-width:18px;height:18px;padding:0 4px;background:#d83b3b;color:#fff;border-radius:999px;border:2px solid var(--b2-bg);font:600 10.5px/1 sans-serif}

  /* 頁尾社群圖示放大（跟馬卡龍同一條：20→28、點擊區 52） */
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .store-social a{width:52px;height:52px}
  :is(.tpl-b2.tpl-b2,.brand-b2.brand-b2) .store-social svg{width:28px;height:28px}
}

/* ── desktop-a2-nav.css ── */
/* ═══ 卡片式（A2）· 桌機頂列＋桌機 token（設計稿 2026-12-01；合併時搬進 site.css「店名與頂列」A2 那組後面）═══════
   版面同馬卡龍／B2（店名左｜首頁＋商品（停住展開分類）｜會員・搜尋・購物車；sticky；漢堡、返回、浮動購物車藏）。
   A2 自己的長相：黑體、選單停住是淺底圓角膠囊、下拉清單是白色圓角卡＋輕影（跟 A2 的卡片同一種語彙）。
   · 掛 :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2)（0,2,0）；A2 沒有色票 token，照 a2.css 現有值：墨 #1a1c1a、灰 #6f6a60、線 #e3dfd4、底 #faf9f6、襯底 #f4f1ea。
   · 1023 以下一條都不生效：新節點手機一律藏。
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */


@media (min-width:1024px){
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2){
    --dk-max:920px;                    /* 頂列、首圖、商品格線 */
    --dk-narrow:780px;                 /* 關於、照片區、影片 */
    --dk-text:624px;                   /* 常見問題、聯絡（窄欄的 80%） */
    --dk-gutter:clamp(48px,4.5vw,64px);
    --dk-pad:max(var(--dk-gutter),calc((100vw - var(--dk-max)) / 2));
    --dk-hdr-h:60px;   /* Kelly 12-03 頂列收小（原 72px） */
    --tp-ink:#1a1c1a;--tp-muted:#6f6a60;--tp-line:#e3dfd4;--tp-bg:#faf9f6;--tp-soft:#f4f1ea;--tp-accent:#bc5816;
  }

  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav){
    position:sticky;top:0;z-index:45;
    display:flex;align-items:center;gap:4px;
    height:var(--dk-hdr-h);min-height:var(--dk-hdr-h);
    padding:0 calc(var(--dk-pad) - 10px) 0 var(--dk-pad);
    background:var(--hdr-bg);border-bottom:var(--hdr-line);
  }
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav)::before,
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav)::after{content:"";flex:1 1 0;min-width:24px}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav)::before{order:1}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav{order:2}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav)::after{order:3}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.header-member,.header-search,.header-cart){order:4}

  /* 店名：襯線、字距拉開（B2 的刊頭感）；最多 30% 寬，再長截字 */
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav) .brand{flex:0 1 auto;min-width:0;max-width:30vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:44px;font:500 17px/44px "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:.04em;color:var(--tp-ink)}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .site-header .brand-home{flex:0 0 auto;margin-right:8px}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .site-header .brand-logo{max-height:34px;max-width:200px}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .site-header:has(.brand.off) .brand-logo{max-width:30vw}

  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav) :is(.menu-open,.list-back){display:none}
  .tpl-a2.tpl-a2 .cart-fab{display:none!important}

  /* 中：襯線、字距 .12em；停住／目前頁畫一條墨色細底線（不用膠囊底色——B2 用線不用色塊） */
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav{display:flex;align-items:center;gap:8px;flex:0 0 auto}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-item{
    position:relative;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 16px;border-radius:999px;
    color:var(--tp-ink);text-decoration:none;white-space:nowrap;font:500 15px/1 "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:.04em;
  }
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-item::after{content:"";position:absolute;left:14px;right:14px;bottom:9px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .2s}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-item svg{width:13px;height:13px;opacity:.6;transition:transform .15s}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-item:focus-visible{outline:1px solid var(--tp-ink);outline-offset:-2px}
  @media (hover:hover){
    :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-item:hover::after,
    :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-group:hover>.desk-nav-item::after{transform:scaleX(1)}
  }
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-group{position:relative}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-sub{
    position:absolute;top:100%;left:50%;z-index:60;
    display:flex;flex-direction:column;min-width:200px;max-width:280px;max-height:min(60vh,420px);overflow-y:auto;
    padding:6px;margin-top:8px;border:1px solid var(--tp-line);border-radius:12px;background:#fff;box-shadow:0 12px 32px rgba(26,28,26,.10);
    opacity:0;visibility:hidden;transform:translate(-50%,-4px);transition:opacity .15s,transform .15s,visibility 0s .15s;
  }
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-sub::before{content:"";position:absolute;left:0;right:0;top:-9px;height:9px}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-group:is(:hover,:focus-within) .desk-nav-sub{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .15s,transform .15s}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-group:is(:hover,:focus-within) .desk-nav-item svg{transform:rotate(180deg)}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-sub-item{
    display:flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:8px;
    color:var(--tp-ink);text-decoration:none;font:500 14.5px/1.45 "Noto Sans TC",sans-serif;overflow-wrap:anywhere;
  }
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-sub-item+.desk-nav-sub-item{border-top:1px solid var(--tp-line)}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-sub-item:focus-visible{outline:1px solid var(--tp-ink);outline-offset:-2px}
  @media (hover:hover){:is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-sub-item:hover{background:var(--tp-soft)}}
  @media (prefers-reduced-motion:reduce){:is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.desk-nav-sub,.desk-nav-item svg,.desk-nav-item::after){transition:none}}

  /* 右：44 格；停住只換淺底，不畫圈 */
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart){
    position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0;border-radius:999px;color:var(--tp-ink);text-decoration:none;
  }
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart) svg{width:21px;height:21px}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart):focus-visible{outline:1px solid var(--tp-ink);outline-offset:-2px}
  @media (hover:hover){:is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart):hover{background:var(--tp-soft)}}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.site-header,.list-nav) .header-cart .cart-count{top:3px;right:1px;min-width:18px;height:18px;padding:0 4px;background:#d83b3b;color:#fff;border-radius:999px;border:2px solid var(--tp-bg);font:600 10.5px/1 sans-serif}

  /* 頁尾社群圖示放大（跟馬卡龍同一條：20→28、點擊區 52） */
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .store-social a{width:52px;height:52px}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .store-social svg{width:28px;height:28px}
  /* A2：選單停住是淺底膠囊（不畫底線）；分類清單項目之間不畫線 */
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-item::after{content:none}
  :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) .desk-nav-sub-item+.desk-nav-sub-item{border-top:0}
  @media (hover:hover){
    :is(.tpl-a2.tpl-a2,.brand-a2.brand-a2) :is(.desk-nav-item:hover,.desk-nav-group:hover>.desk-nav-item){background:var(--tp-soft)}
  }
  /* A2 首頁頂列的 ::before 是毛玻璃底（a2.css，絕對定位），當不了左邊的彈性空白：首頁改成「選單左右 auto」置中在兩組之間 */
  .tpl-a2.tpl-a2 .site-header::after{content:none}
  .tpl-a2.tpl-a2 .site-header .desk-nav{margin-inline:auto}
}

/* ── desktop-minimal-nav.css ── */
/* ═══ 極簡 · 桌機頂列＋桌機 token（設計稿 2026-12-01；合併時搬進 site.css「店名與頂列」極簡那組後面）═══════════
   版面同馬卡龍／B2。極簡自己的長相：黑體細字、字距拉很開（店名 .24em、選單 .16em）、停住是一條墨線、
   下拉清單直角細框、購物車數字用赭紅方塊（極簡唯一的點綴色）。
   · 掛 :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal)（0,2,0）；顏色照 minimal.css 的 --ss-* 值（買頁不載 minimal.css，所以這裡另外寫一份 --tp-*）。
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */


@media (min-width:1024px){
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal){
    --dk-max:920px;                    /* 頂列、首圖、商品格線 */
    --dk-narrow:780px;                 /* 關於、照片區、影片 */
    --dk-text:624px;                   /* 常見問題、聯絡（窄欄的 80%） */
    --dk-gutter:clamp(48px,4.5vw,64px);
    --dk-pad:max(var(--dk-gutter),calc((100vw - var(--dk-max)) / 2));
    --dk-hdr-h:60px;   /* Kelly 12-03 頂列收小（原 72px） */
    --tp-ink:#141414;--tp-muted:#6b6b6b;--tp-line:#e6e6e3;--tp-bg:#ffffff;--tp-soft:#f6f6f4;--tp-accent:#b0502c;
  }

  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav){
    position:sticky;top:0;z-index:45;
    display:flex;align-items:center;gap:4px;
    height:var(--dk-hdr-h);min-height:var(--dk-hdr-h);
    padding:0 calc(var(--dk-pad) - 10px) 0 var(--dk-pad);
    background:var(--hdr-bg);border-bottom:var(--hdr-line);
  }
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav)::before,
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav)::after{content:"";flex:1 1 0;min-width:24px}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav)::before{order:1}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav{order:2}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav)::after{order:3}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.header-member,.header-search,.header-cart){order:4}

  /* 店名：襯線、字距拉開（B2 的刊頭感）；最多 30% 寬，再長截字 */
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav) .brand{flex:0 1 auto;min-width:0;max-width:30vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:44px;font:500 15px/44px "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:.24em;color:var(--tp-ink)}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .site-header .brand-home{flex:0 0 auto;margin-right:8px}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .site-header .brand-logo{max-height:34px;max-width:200px}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .site-header:has(.brand.off) .brand-logo{max-width:30vw}

  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav) :is(.menu-open,.list-back){display:none}
  .tpl-minimal.tpl-minimal .cart-fab{display:none!important}

  /* 中：襯線、字距 .12em；停住／目前頁畫一條墨色細底線（不用膠囊底色——B2 用線不用色塊） */
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav{display:flex;align-items:center;gap:8px;flex:0 0 auto}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-item{
    position:relative;display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 14px;
    color:var(--tp-ink);text-decoration:none;white-space:nowrap;font:400 14px/1 "Noto Sans TC","PingFang TC",sans-serif;letter-spacing:.16em;
  }
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-item::after{content:"";position:absolute;left:14px;right:14px;bottom:9px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .2s}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-item svg{width:13px;height:13px;opacity:.6;transition:transform .15s}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-item:focus-visible{outline:1px solid var(--tp-ink);outline-offset:-2px}
  @media (hover:hover){
    :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-item:hover::after,
    :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-group:hover>.desk-nav-item::after{transform:scaleX(1)}
  }
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-group{position:relative}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-sub{
    position:absolute;top:100%;left:50%;z-index:60;
    display:flex;flex-direction:column;min-width:200px;max-width:280px;max-height:min(60vh,420px);overflow-y:auto;
    padding:8px 0;margin-top:8px;border:1px solid var(--tp-line);border-radius:0;background:var(--tp-bg);box-shadow:none;
    opacity:0;visibility:hidden;transform:translate(-50%,-4px);transition:opacity .15s,transform .15s,visibility 0s .15s;
  }
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-sub::before{content:"";position:absolute;left:0;right:0;top:-9px;height:9px}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-group:is(:hover,:focus-within) .desk-nav-sub{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .15s,transform .15s}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-group:is(:hover,:focus-within) .desk-nav-item svg{transform:rotate(180deg)}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-sub-item{
    display:flex;align-items:center;min-height:44px;padding:8px 20px;
    color:var(--tp-ink);text-decoration:none;font:400 14px/1.45 "Noto Sans TC",sans-serif;letter-spacing:.08em;overflow-wrap:anywhere;
  }
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-sub-item+.desk-nav-sub-item{border-top:1px solid var(--tp-line)}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-sub-item:focus-visible{outline:1px solid var(--tp-ink);outline-offset:-2px}
  @media (hover:hover){:is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-sub-item:hover{background:var(--tp-soft)}}
  @media (prefers-reduced-motion:reduce){:is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.desk-nav-sub,.desk-nav-item svg,.desk-nav-item::after){transition:none}}

  /* 右：44 格；停住只換淺底，不畫圈 */
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart){
    position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:0;border-radius:0;color:var(--tp-ink);text-decoration:none;
  }
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart) svg{width:21px;height:21px}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart):focus-visible{outline:1px solid var(--tp-ink);outline-offset:-2px}
  @media (hover:hover){:is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav) :is(.header-member,.header-search,.header-cart):hover{background:var(--tp-soft)}}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) :is(.site-header,.list-nav) .header-cart .cart-count{top:3px;right:1px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#d83b3b;color:#fff;border:0;font:600 10.5px/1 sans-serif}

  /* 頁尾社群圖示放大（跟馬卡龍同一條：20→28、點擊區 52） */
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .store-social a{width:52px;height:52px}
  :is(.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .store-social svg{width:28px;height:28px}
}

/* ── 購物車、結帳（Kelly 12-02 選兩欄：左清單／表單、右欄「金額＋主按鈕」；結帳頁頂列只放店名＋回購物車）── */
/* ⚠️ 要壓過 site.css 的 `.ps-buy .list-nav{display:flex}`（0,2,0）：只寫 .dk-buy-top 的話手機會冒出桌機頂列（12-02 抓到） */
body.checkout-page .dk-buy-top{display:none}
/* 手機：結帳頁的 .dk-side 不產生盒子；購物車的 .dk-side 接手原本 .cart-body 的內距與「撐滿」，畫面跟現在一樣 */
.dk-side{display:contents}
.dk-side-title{display:none}
.customer-cart .cart-body:has(+ .dk-side){flex:0 0 auto;padding-bottom:0}
.customer-cart .dk-side{display:block;flex:1;padding:0 24px 32px}
@media(max-width:360px){.customer-cart .dk-side{padding-left:16px;padding-right:16px}}
/* 金額那一列的上 margin 20 原本跟最後一件商品的下 margin 28 疊在一起（同一個容器）；拆成 .dk-side 之後不再疊，手機補回 28 */
@media(max-width:1023px){.customer-cart .dk-side [data-cart-totals]>.sum-row:first-child{margin-top:0}}
/* 結帳鈕搬進 main 之後會被 .buy-body 的左右 24、下 32 內距框住：抵銷回原本整條寬（合併時改成 renderer 直接輸出在對的位置更好） */
.checkout-page .dk-side .act-bar{margin:0 -24px -32px;width:auto;max-width:none}

@media (min-width:1024px){
  html:has(body.customer-cart),html:has(body.checkout-page){background:#fff}
  /* 買頁的 body 在桌機收成 780 置中、兩側米色（buy.css）：這兩頁改回整頁白底，寬度交給內容欄 */
  body.customer-cart,body.checkout-page{background:#fff;max-width:none}

  /* ── 結帳頁頂列：店名＋「回購物車」（不放選單、搜尋：付款前不把客人帶走）──────────── */
  body.checkout-page .dk-buy-top{display:flex;width:100%;max-width:none;margin:0;background:#fff;align-items:center;position:sticky;top:0;z-index:6;flex-shrink:0}
  .checkout-page .dk-buy-top::before{order:1}
  .checkout-page .dk-buy-top::after{order:3}
  .checkout-page .dk-buy-back{order:4;display:inline-flex;align-items:center;min-height:44px;padding:0 10px;color:#1a1c1a;font-size:14px;text-decoration:underline;text-underline-offset:4px}
  .checkout-page .buy-nav{padding:40px 0 4px;min-height:0}
  .checkout-page .buy-nav-back{display:none}
  .checkout-page .buy-nav > .buy-nav-title{padding-left:0;font-size:26px}

  .customer-cart .cart-page{min-height:0}
  .customer-cart .cart-header{padding:40px 0 20px}
  .customer-cart .cart-header h1{font-size:26px}
  .customer-cart .cart-checkout{padding:16px}

  /* 暫停結帳頁的 LINE 鈕不在右欄（DOM 在頁尾後面）：不貼底、640 寬，body 是 flex 直排，order 1／頁尾 2 排回頁尾前面。
     正常結帳頁的付款鈕在 main 的右欄裡，頁尾照樣排在 main 後面。 */
  .checkout-page .act-bar{max-width:640px;order:1;position:static;border-top:0;padding:8px 0 24px;margin-top:0}
  .checkout-page .buy-body{padding:12px 0 8px}
  .checkout-page .site-footer{order:2;margin-top:64px;padding-left:0;padding-right:0}   /* 頁尾左緣對齊內容欄（買頁頁尾自帶 24 內距） */

  /* ── 兩欄：左清單／表單、右欄「金額＋主按鈕」（Kelly 12-02 選）─────────────────────── */
  body.customer-cart,body.checkout-page{--dk-side:360px;--dk-gap:56px}
  .customer-cart .cart-page,
  .checkout-page :is(.buy-nav,.buy-body,.site-footer){max-width:var(--dk-max,920px)}
  /* 購物車：右欄是 aside（摘要）＋ 結帳鈕兩個格子，卡片外框用 .cart-page::before 畫在後面（結帳鈕在手機要貼底，不能包進 aside）。
     購物車通常不長，這張卡不跟著捲。 */
  .customer-cart .cart-page{display:grid;grid-template-columns:minmax(0,1fr) var(--dk-side);grid-template-rows:repeat(6,auto) 1fr;column-gap:var(--dk-gap);align-items:start}
  .customer-cart .cart-header{grid-column:1 / -1;grid-row:1}
  .customer-cart .cart-body{grid-column:1;grid-row:2 / span 6;padding:0}
  /* 桌機 aside 不產生盒子：標題、金額、結帳鈕、繼續購物各佔右欄一列，卡片外框畫在 .cart-page::before */
  .customer-cart .dk-side{display:contents}
  .customer-cart .cart-page::before{content:"";grid-column:2;grid-row:2 / span 5;align-self:stretch;border:1px solid #e6e3dc;border-radius:16px}
  .customer-cart .dk-side > *,.customer-cart .cart-footer{grid-column:2;position:relative;margin-left:24px;margin-right:24px}
  .customer-cart .dk-side-title{grid-row:2;margin-top:24px;margin-bottom:14px}
  .customer-cart [data-cart-status]{grid-row:3}
  .customer-cart [data-cart-totals]{grid-row:4}
  .customer-cart .cart-footer{grid-row:5;border:0;padding:20px 0 0;background:none}
  .customer-cart .cart-continue{grid-row:6;justify-self:center;margin:12px 24px 20px}
  .customer-cart .cart-total strong{font-size:26px}
  .customer-cart .cart-row{padding-bottom:28px;border-bottom:1px solid #eee9e0}
  .customer-cart .cart-row:last-child{border-bottom:0}

  .checkout-page .buy-body{display:grid;grid-template-columns:minmax(0,1fr) var(--dk-side);column-gap:var(--dk-gap);row-gap:0;align-items:start}
  /* row-gap 0：右欄跨 20 列（左欄有幾塊不固定），有 gap 的話空列會各撐出 20 */
  .checkout-page .buy-body > :not(.dk-side):not(:last-child){margin-bottom:20px}
  .checkout-page .buy-body > :not(.dk-side){grid-column:1}
  .checkout-page .buy-body > .dk-side{grid-column:2;grid-row:1 / span 20}

  /* 右欄卡：訂單摘要＋主按鈕，捲動時停在頂列下面 */
  .checkout-page .dk-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:calc(var(--dk-hdr-h,76px) + 24px);padding:24px;border:1px solid #e6e3dc;border-radius:16px;background:#fff}
  .dk-side-title{display:block;margin:0;font:600 17px/1.4 'Noto Sans TC','PingFang TC',sans-serif}

  /* 收據的鋸齒是 mask 挖的（buy.css），內距拿掉後會咬到「訂單明細」那行：卡片已經是外框，桌機右欄不要鋸齒 */
  .checkout-page .dk-side .checkout-receipt{margin:0;padding:0;background:none;-webkit-mask:none;mask:none}
  .checkout-page .dk-side .checkout-receipt::before,
  .checkout-page .dk-side .checkout-receipt::after{display:none}
  .checkout-page .dk-side .act-bar{position:static;order:0;border:0;padding:4px 0 0;margin:0;background:none}
}

/* 極簡：右欄卡片、購物車摘要框、頁首明細跟版型一樣直角（2026-12-02，Kelly 未回，先照建議） */
@media (min-width:1024px){
  .brand-minimal .dk-side,.customer-cart.brand-minimal .cart-page::before{border-radius:0}
}
.ps-buy.brand-minimal .top-brief{border-radius:0}

/* 桌機首圖左右鈕縮到 34（Kelly 2026-12-03 縮小 30%）：看得到的圓變小，點擊範圍用 ::after 往外撐到 44。 */
@media (min-width:1024px){
  :is(.tpl-kawaii.tpl-macaron,.tpl-b2.tpl-b2,.tpl-minimal.tpl-minimal) .hero .hero-nav{position:relative}
  :is(.tpl-kawaii.tpl-macaron,.tpl-a2.tpl-a2,.tpl-b2.tpl-b2,.tpl-minimal.tpl-minimal) .hero .hero-nav::after{content:"";position:absolute;inset:-5px}
}

/* ── 首頁商品區排序（renderer 的 homeSort）：預設藏；目前只有馬卡龍桌機顯示（Kelly 2026-12-03）。── */
.home-sort{display:none}

/* 結帳頁、購物車的店名跟首頁同色（Kelly 2026-12-03）：馬卡龍首頁店名吃 --ss-ink（＝該色的 --m-ink 暖棕），
   這兩頁沒載 kawaii.css、店名退回通用的深黑。手機、桌機都一樣。商品單頁在 buy.css 另有 --k-ink，不動。 */
:is(.ps-buy,.customer-cart).brand-kawaii.brand-macaron .list-nav .brand{color:var(--m-ink)}

/* 頂列「商品」下拉：分類多時排成多欄（Kelly 2026-12-03「超過變兩排三排」）。四款共用。
   7 個以上兩欄、13 個以上三欄；欄寬照最長的名字（最寬 240），整塊不捲動。逐列分隔線（卡片式、雜誌式）在多欄時拿掉，不然欄跟欄對不齊。 */
@media (min-width:1024px){
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron,.tpl-b2.tpl-b2,.brand-b2.brand-b2,.tpl-a2.tpl-a2,.brand-a2.brand-a2,.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-sub:has(>:nth-child(7)){
    display:grid;grid-template-columns:repeat(2,minmax(150px,240px));column-gap:4px;width:max-content;min-width:0;max-width:none;max-height:none;overflow:visible}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron,.tpl-b2.tpl-b2,.brand-b2.brand-b2,.tpl-a2.tpl-a2,.brand-a2.brand-a2,.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-sub:has(>:nth-child(13)){grid-template-columns:repeat(3,minmax(150px,240px))}
  :is(.tpl-kawaii.tpl-macaron,.brand-kawaii.brand-macaron,.tpl-b2.tpl-b2,.brand-b2.brand-b2,.tpl-a2.tpl-a2,.brand-a2.brand-a2,.tpl-minimal.tpl-minimal,.brand-minimal.brand-minimal) .desk-nav-sub:has(>:nth-child(7))>.desk-nav-sub-item{border-top:0}
}

/* /p 搜尋框（Kelly 2026-12-03「不要那寬、不需要黑框」）：
   ① 黑框是 kawaii.css 全站的 :focus-visible 外框套到輸入框上；框本身 focus 時已經變深色，輸入框不再另畫一圈。
   ② 桌機搜尋框最寬 360、靠右（原本撐滿右欄，跟分類膠囊擠在一起）。 */
.list-tools .list-search-field input:focus-visible{outline:0}
@media (min-width:1024px){
  .list-tools.is-searching{justify-content:flex-end}
  .list-tools.is-searching>.list-search{flex:0 1 360px}
}

/* 桌機商品卡：滑鼠停住換第二張照片（Kelly 2026-12-03「所有的商品都要」；renderer 只有第二張存在才輸出 .product-photo-alt）。
   手機、觸控、平板一律不出現（沒有 hover，點下去就進商品頁了）。
   ⚠️ 停住之前保持 display:none：lazy 圖只有「有版面」才會下載，先畫成 opacity:0 的話一進頁面每張卡都多載一張圖。停住那一刻才載、淡入。
   疊在第一張上、底色蓋住第一張（整張顯示時留邊不會透出第一張）。三種卡：
   · 有照片框的（/p 與首頁兩個一排的 .catalog-photo、商品頁「你可能會喜歡」的 .related-product-photo）：鋪滿那個框。
   · 首頁一排一個的大卡（沒有照片框，各版型照片位置、圓角不同）：位置由 render.mjs HOVER_ALT_SCRIPT 量第一張照片後寫進 style。
   ⚠️ 隱藏規則的權重要贏版型的 `.tpl-* img{display:block}`（0,1,1）與商品頁的 `.ps-buy .related-product-photo img`（0,2,1）。 */
body img.product-photo-alt,.ps-buy .related-product-photo>img.product-photo-alt{display:none}
@keyframes ps-alt-in{from{opacity:0}to{opacity:1}}
@media (min-width:1024px) and (hover:hover) and (pointer:fine){
  :is(.catalog-photo,.related-product-photo,.sec-products>.product-card:not(.catalog-card))>.product-photo-alt{position:absolute;z-index:1;margin:0;
    object-fit:var(--ps-photo-fit);background:var(--ss-photo-bg,#fff);pointer-events:none;animation:ps-alt-in .25s ease}
  :is(.catalog-photo,.related-product-photo)>.product-photo-alt{inset:0;width:100%;height:100%;border-radius:0}
  .related-product-photo,.sec-products>.product-card:not(.catalog-card){position:relative}
  body :is(.catalog-card:hover .catalog-photo,.related-product-card:hover .related-product-photo,.sec-products>.product-card:not(.catalog-card):hover)>img.product-photo-alt{display:block}
  .catalog-photo>:is(.catalog-veil,.catalog-tag),.sec-products>.product-card:not(.catalog-card)>.catalog-tag{z-index:2}
  @media (prefers-reduced-motion:reduce){.product-photo-alt{animation:none!important}}
}

/* Kelly 2026-12-03：
   ① 卡片式首頁商品卡（一排一個那種大卡，桌機三欄）底部貼邊——價格貼著卡框、下面沒留白。卡底補 20。
   ② 四款的「關於」描述桌機置中（馬卡龍 12-03 也加）。 */
@media (min-width:1024px){
  .tpl-a2.tpl-a2 .sec-products>.product-card:not(.catalog-card){padding-bottom:20px}
  :is(.tpl-a2.tpl-a2,.tpl-b2.tpl-b2,.tpl-minimal.tpl-minimal,.tpl-kawaii.tpl-macaron) .sec-about .sec-text{text-align:center}  /* 四款一起（雜誌式標題本來就置中） */
  /* 標題跟著置中（內文置中、標題靠左會歪一邊）；極簡的英文小標連前面那條短線一起置中 */
  :is(.tpl-a2.tpl-a2,.tpl-minimal.tpl-minimal,.tpl-kawaii.tpl-macaron) .sec-about>:is(.eyebrow,.sec-title){text-align:center;align-self:center;justify-content:center}
}

/* 首頁照片區桌機左右換圖鈕（Kelly 2026-12-03「不要大，優雅」；行為在 render.mjs GALLERY_NAV_SCRIPT）。四款共用。
   看得到的是 30 的白圓、14 的細箭頭、一圈淡淡的細框，不用陰影（首圖左右鈕同一天拿掉陰影）；點擊範圍 44。
   壓在照片列左右兩端、對準照片中線；手機、觸控、放得下全部照片時都不出現（JS 控 hidden）。 */
.gallery-nav{display:none}
@media (min-width:1024px) and (hover:hover) and (pointer:fine){
  .sec-gallery{position:relative}
  .sec-gallery>.gallery-nav{position:absolute;z-index:3;top:var(--gallery-mid,50%);transform:translateY(-50%);display:grid;place-items:center;
    width:44px;height:44px;margin:0;padding:0;border:0;background:none;color:#2a2622;cursor:pointer}
  .sec-gallery>.gallery-nav[hidden]{display:none}
  .sec-gallery>.gallery-nav::before{content:"";grid-area:1/1;width:30px;height:30px;border-radius:999px;background:rgba(255,255,255,.88);
    -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(0,0,0,.08);transition:background .2s}
  .sec-gallery>.gallery-nav:hover::before{background:#fff}
  .sec-gallery>.gallery-nav svg{grid-area:1/1;position:relative;width:14px;height:14px;stroke-width:1.6}
  .sec-gallery>.gallery-nav.prev{left:max(4px,calc((100vw - var(--dk-narrow,780px)) / 2 - 22px))}
  .sec-gallery>.gallery-nav.next{right:max(4px,calc((100vw - var(--dk-narrow,780px)) / 2 - 22px))}
  .sec-gallery>.gallery-nav.next svg{transform:scaleX(-1)}
  .sec-gallery>.gallery-nav:focus-visible{outline:2px solid #2a2622;outline-offset:-6px;border-radius:999px}
}

/* 卡片式、雜誌式、極簡：商品照右下的文字按鈕（Kelly 2026-12-03，取代＋；選 A：三款同規格）。
   字＝商家在 App 設的按鈕文字（預設「立即購買」，站外是那個按鈕自己的字）；一直顯示，售完不出現（照片上已經有「售完」）。
   位置靠容器查詢單位：照片寬＝卡片寬（100cqw），高＝寬 ÷ --ps-photo-ratio；按鈕高 40、離照片右下各 12。
   ⚠️ 三款共用的幾何全在這裡，各版型 CSS 只放那一款的邊框、圓角、底色、字色。
   ⚠️ grid-area:auto：卡片式的卡是 grid，絕對定位的按鈕若還掛在「cta」那格，top 會從卡底那格往下算，整顆跑出卡外被裁掉。 */
@media (min-width:1024px) and (hover:hover) and (pointer:fine){
  :is(.tpl-a2.tpl-a2,.tpl-b2.tpl-b2,.tpl-minimal.tpl-minimal) .sec-products>.product-card{container-type:inline-size}
  :is(.tpl-a2.tpl-a2,.tpl-b2.tpl-b2,.tpl-minimal.tpl-minimal) .sec-products>.product-card .product-cta{
    position:absolute;z-index:2;right:12px;top:calc(100cqw / (var(--ps-photo-ratio)) - 40px - 12px);grid-area:auto;
    display:inline-flex;align-self:auto;align-items:center;justify-content:center;max-width:calc(100% - 24px);min-height:40px;margin:0;padding:0 16px;
    font:500 13px/1 "Noto Sans TC",sans-serif;letter-spacing:.08em;box-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  :is(.tpl-a2.tpl-a2,.tpl-b2.tpl-b2,.tpl-minimal.tpl-minimal) .sec-products>.product-card .product-cta.is-disabled{display:none}
}
