/* ============================================================
   智果 ZHIGUO — 前台 UI 原型 樣式
   風格：日式文青平塗（cream 紙感底 × 粗黑描邊 × 硬陰影）
   ============================================================ */

/* ---------- 0. 設計變數 ---------- */
:root {
  /* 平塗色票 */
  --mint:  #87D3BA;
  --sky:   #A6D9E9;
  --lemon: #FBE159;
  --peach: #F7B7A3;
  --rose:  #F2A8C0;
  --lilac: #C4BEE8;
  --moss:  #B6CE8E;
  --clay:  #E48B6A;

  --ink:    #1A1A16;
  --ink-2:  #4C4C44;
  --muted:  #8A8A7E;
  --paper:  #FFFBF2;
  --paper-2:#F4EFE3;
  --white:  #FFFFFF;
  --line:   #1A1A16;
  --hair:   #E3DCCC;
  --sale:   #D8442F;

  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --bw:   2px;                              /* 描邊粗細 */
  --hard:    4px 4px 0 var(--ink);          /* 硬陰影 */
  --hard-sm: 3px 3px 0 var(--ink);
  --hard-lg: 6px 6px 0 var(--ink);
  --wrap: 1200px;
}

/* ---------- 1. Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", "Hiragino Sans", "PingFang TC", "Microsoft JhengHei",
               -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* 紙紋：極淡格線 */
  background-image:
    linear-gradient(rgba(26,26,22,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,22,.028) 1px, transparent 1px);
  background-size: 28px 28px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }

/* 圖示尺寸 */
.ic     { width: 1em; height: 1em; display: inline-block; vertical-align: -.14em; flex-shrink: 0; }
.ic-lg  { width: 1.5em; height: 1.5em; }
.ic-xl  { width: 2.2em; height: 2.2em; }

/* 英文小標（eyebrow） */
.eyebrow {
  font-size: 11px; letter-spacing: .32em; font-weight: 800; text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- 2. 跑馬燈 ---------- */
.ticker {
  background: var(--lemon); border-bottom: var(--bw) solid var(--line);
  overflow: hidden; height: 34px; display: flex; align-items: center;
}
.ticker-track { display: flex; gap: 0; white-space: nowrap; animation: run 34s linear infinite; }
.ticker-track span {
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; padding: 0 26px;
  display: inline-flex; align-items: center; gap: 8px;
}
.ticker-track span::before { content: '◆'; font-size: 8px; }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 3. Header ---------- */
.header {
  background: var(--paper); position: sticky; top: 0; z-index: 60;
  border-bottom: var(--bw) solid var(--line);
}
.header-main { display: flex; align-items: center; gap: 24px; padding: 14px 0; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--lemon); border: var(--bw) solid var(--line);
  display: grid; place-items: center; font-size: 20px; font-weight: 900;
  box-shadow: var(--hard-sm);
}
.logo-text b { display: block; font-size: 23px; letter-spacing: .18em; line-height: 1.1; font-weight: 900; }
.logo-text span { display: block; font-size: 9.5px; letter-spacing: .34em; color: var(--muted); font-weight: 700; }

.search { flex: 1; position: relative; max-width: 480px; }
.search input {
  width: 100%; height: 44px; border: var(--bw) solid var(--line); border-radius: 999px;
  padding: 0 112px 0 20px; outline: none; background: var(--white); font-size: 14px;
}
.search input::placeholder { color: #ADA79A; }
.search input:focus { box-shadow: var(--hard-sm); }
.search button {
  position: absolute; right: 5px; top: 5px; height: 32px; padding: 0 20px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px;
  transition: background .16s;
}
.search button:hover { background: var(--sale); }

.header-acts { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hact {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 11px; border-radius: var(--r-sm); font-size: 10.5px; font-weight: 700;
  position: relative; transition: color .16s;
}
.hact .ic { font-size: 20px; }
.hact:hover { color: var(--sale); }
.cart-count {
  position: absolute; top: 0; right: 4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--sale); color: #fff; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center; line-height: 1; border: 1.5px solid var(--ink);
}

/* ---------- 4. 主選單 ---------- */
.nav { background: var(--paper); border-bottom: var(--bw) solid var(--line); }
.nav-list { display: flex; align-items: stretch; height: 46px; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-item { position: relative; flex-shrink: 0; }
.nav-link {
  display: flex; align-items: center; gap: 7px; height: 100%; padding: 0 18px;
  font-weight: 800; font-size: 14.5px; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: all .16s;
}
.nav-link .ic { font-size: 17px; }
.nav-item:hover .nav-link, .nav-link.on { color: var(--sale); border-bottom-color: var(--sale); }

.subnav {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--paper); border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--hard); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .16s; z-index: 70;
}
.nav-item:hover .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px;
  border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; transition: all .14s;
}
.subnav a .ic { font-size: 17px; }
.subnav a:hover { background: var(--lemon); }

.nav-promo {
  margin-left: auto; display: flex; align-items: center; gap: 7px; padding-left: 18px;
  font-size: 12.5px; font-weight: 800; color: var(--sale); white-space: nowrap; align-self: center;
}
.nav-promo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sale); animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ---------- 5. 主視覺輪播 ---------- */
.hero { padding: 26px 0 4px; }
.slider {
  position: relative; border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; height: 372px; box-shadow: var(--hard-lg);
}
.slide {
  position: absolute; inset: 0; padding: 44px 52px; display: flex; flex-direction: column;
  justify-content: center; opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.slide.on { opacity: 1; pointer-events: auto; }
.slide-badge {
  align-self: flex-start; background: var(--paper); border: var(--bw) solid var(--line);
  padding: 4px 15px; border-radius: 999px; font-size: 12px; font-weight: 800;
  margin-bottom: 16px; box-shadow: var(--hard-sm); position: relative; z-index: 3;
}
.slide .jp {
  font-size: 15px; font-weight: 800; letter-spacing: .2em; opacity: .72;
  position: relative; z-index: 3; margin-bottom: 2px;
}
.slide h2 { font-size: 44px; line-height: 1.2; letter-spacing: .05em; font-weight: 900; position: relative; z-index: 3; }
.slide p { font-size: 16px; margin: 12px 0 24px; max-width: 460px; position: relative; z-index: 3; }
.btn-ink {
  align-self: flex-start; background: var(--ink); color: var(--paper); font-weight: 800;
  padding: 12px 28px; border-radius: 999px; border: var(--bw) solid var(--line);
  display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 3;
  box-shadow: var(--hard-sm); transition: transform .16s, box-shadow .16s;
}
.btn-ink:hover { transform: translate(-2px,-2px); box-shadow: var(--hard); }

/* 主視覺裝飾圖示群 */
.slide-deco { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; z-index: 1; }
.slide-deco span {
  position: absolute; display: grid; place-items: center;
  background: var(--paper); border: var(--bw) solid var(--line); border-radius: 50%;
  box-shadow: var(--hard-sm);
}
.slide-deco span .ic { width: 54%; height: 54%; }
.slide-deco span:nth-child(1) { width: 132px; height: 132px; right: 20%; top: 16%; }
.slide-deco span:nth-child(2) { width: 92px;  height: 92px;  right: 4%;  top: 6%; }
.slide-deco span:nth-child(3) { width: 108px; height: 108px; right: 6%;  bottom: 12%; }
.slide-deco span:nth-child(4) { width: 74px;  height: 74px;  right: 34%; bottom: 8%; }
.slide-deco span:nth-child(5) { width: 62px;  height: 62px;  right: 44%; top: 8%; }

/* 輪播控制列 */
.carousel-ctl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.cbtn {
  width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--line);
  background: var(--paper); display: grid; place-items: center; font-size: 18px;
  box-shadow: var(--hard-sm); transition: all .16s;
}
.cbtn:hover { background: var(--lemon); transform: translate(-2px,-2px); box-shadow: var(--hard); }
.cbtn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; transform: none; }
.cnum { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.cnum .bar { width: 68px; height: 2px; background: var(--hair); position: relative; }
.cnum .bar i { position: absolute; left: 0; top: 0; height: 100%; background: var(--ink); transition: width .3s; }
.cnum .cur { color: var(--ink); }
.cnum .tot { color: var(--muted); }

/* ---------- 6. 服務保證 ---------- */
.trust { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 26px 0 4px; }
.trust-item {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--hard-sm);
}
.trust-item .badge {
  width: 42px; height: 42px; border-radius: 50%; border: var(--bw) solid var(--line);
  background: var(--lemon); display: grid; place-items: center; flex-shrink: 0; font-size: 21px;
}
.trust-item b { display: block; font-size: 14.5px; font-weight: 800; }
.trust-item small { color: var(--muted); font-size: 12px; }

/* ---------- 7. 區塊標題 ---------- */
.section { padding: 44px 0; }
.sec-head { text-align: center; margin-bottom: 26px; }
.sec-head .eyebrow { display: block; margin-bottom: 6px; }
/* 螢光筆底線：直接畫在文字自身的 background，不用負 z-index，避免被區塊底色蓋掉 */
.sec-head h2 {
  font-size: 42px; font-weight: 900; letter-spacing: .01em; line-height: 1.15;
  display: inline-block; padding: 0 6px;
  background: linear-gradient(transparent 60%, var(--lemon) 60%, var(--lemon) 90%, transparent 90%);
}
.band-lemon .sec-head h2 {
  background: linear-gradient(transparent 60%, var(--paper) 60%, var(--paper) 90%, transparent 90%);
}
.sec-head .sub { font-size: 14.5px; font-weight: 700; color: var(--ink-2); margin-top: 4px; }

.sec-head-row { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; }
.sec-head-row h2 { font-size: 27px; font-weight: 900; letter-spacing: .04em; display: flex; align-items: center; gap: 9px; }
.sec-head-row h2 .ic { font-size: 25px; }
.sec-head-row .sub { color: var(--muted); font-size: 13.5px; padding-bottom: 5px; }
.sec-more {
  margin-left: auto; font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 6px;
  border-bottom: 2px solid var(--ink); padding-bottom: 2px; transition: gap .16s;
}
.sec-more:hover { gap: 11px; color: var(--sale); border-color: var(--sale); }

/* 帶底色的整段區塊 */
.band { border-top: var(--bw) solid var(--line); border-bottom: var(--bw) solid var(--line); }
.band-mint  { background: var(--mint); }
.band-sky   { background: var(--sky); }
.band-lemon { background: var(--lemon); }
.band-paper { background: var(--paper-2); }

/* ---------- 8. 最新消息 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.news-card {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--hard-sm);
  transition: transform .18s, box-shadow .18s;
}
.news-card:hover { transform: translate(-3px,-3px); box-shadow: var(--hard-lg); }
.news-vis { height: 132px; display: grid; place-items: center; border-bottom: var(--bw) solid var(--line); position: relative; }
.news-vis .ic { font-size: 46px; }
.news-vis .date {
  position: absolute; left: 0; top: 0; background: var(--ink); color: var(--paper);
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 3px 9px;
}
.news-body { padding: 13px 15px 16px; }
.news-body .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.news-body h3 {
  font-size: 14.5px; font-weight: 700; line-height: 1.6; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 9. 分類入口 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.cat-card {
  border: var(--bw) solid var(--line); border-radius: var(--r-lg); padding: 24px 22px;
  box-shadow: var(--hard); position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.cat-card:hover { transform: translate(-3px,-3px); box-shadow: var(--hard-lg); }
.cat-card .cap {
  width: 60px; height: 60px; border-radius: 50%; background: var(--paper);
  border: var(--bw) solid var(--line); display: grid; place-items: center; font-size: 30px;
  margin-bottom: 14px;
}
.cat-card .en { font-size: 10.5px; letter-spacing: .28em; font-weight: 800; opacity: .65; }
.cat-card h3 { font-size: 22px; font-weight: 900; letter-spacing: .06em; }
.cat-card .tagline { font-size: 13px; margin-bottom: 13px; opacity: .8; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 5px; }
.cat-subs span {
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--line);
}
.cat-card .count { margin-top: 13px; font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 5px; }

/* ---------- 10. Banner 輪播（首頁中段） ---------- */
.promo-wrap { position: relative; }
.promo-view { overflow: hidden; border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--hard); }
.promo-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.promo-slide {
  min-width: 100%; padding: 34px 40px; display: flex; align-items: center; gap: 26px;
}
.promo-slide .pic {
  width: 106px; height: 106px; border-radius: 50%; background: var(--paper);
  border: var(--bw) solid var(--line); display: grid; place-items: center;
  font-size: 50px; flex-shrink: 0; box-shadow: var(--hard-sm);
}
.promo-slide .kicker { font-size: 11px; letter-spacing: .3em; font-weight: 800; opacity: .7; }
.promo-slide h3 { font-size: 29px; font-weight: 900; letter-spacing: .03em; line-height: 1.3; }
.promo-slide p { font-size: 14.5px; margin: 5px 0 14px; }
.promo-slide .btn-ink { align-self: auto; }
.promo-txt { flex: 1; min-width: 0; }

.promo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.promo-dots span {
  width: 10px; height: 10px; border-radius: 50%; border: var(--bw) solid var(--line);
  background: var(--paper); cursor: pointer; transition: all .18s;
}
.promo-dots span.on { background: var(--ink); width: 30px; border-radius: 999px; }

.promo-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; border: var(--bw) solid var(--line);
  background: var(--paper); display: grid; place-items: center; font-size: 17px;
  box-shadow: var(--hard-sm); transition: background .16s;
}
.promo-arrow:hover { background: var(--lemon); }
.promo-arrow.prev { left: -16px; }
.promo-arrow.next { right: -16px; }

/* ---------- 11. 兩側廣告輪播 ---------- */
.rail { position: fixed; top: 172px; width: 168px; z-index: 40; display: none; }
.rail-l { left: calc(50% - 600px - 188px); }
.rail-r { left: calc(50% + 600px + 20px); }
@media (min-width: 1640px) { .rail { display: block; } }

.rail-label {
  font-size: 10px; letter-spacing: .28em; font-weight: 800; color: var(--muted);
  text-align: center; margin-bottom: 6px;
}
.rail-view {
  position: relative; height: 250px; border: var(--bw) solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--hard-sm); background: var(--paper);
}
.rail-ad {
  position: absolute; inset: 0; padding: 18px 16px; display: flex; flex-direction: column;
  align-items: center; text-align: center; justify-content: center; gap: 4px;
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.rail-ad.on { opacity: 1; pointer-events: auto; }
.rail-ad .pic {
  width: 62px; height: 62px; border-radius: 50%; background: var(--paper);
  border: var(--bw) solid var(--line); display: grid; place-items: center;
  font-size: 30px; margin-bottom: 8px;
}
.rail-ad .tag {
  font-size: 9.5px; letter-spacing: .24em; font-weight: 800;
  background: var(--ink); color: var(--paper); padding: 2px 9px; border-radius: 999px;
}
.rail-ad b { font-size: 15.5px; font-weight: 900; letter-spacing: .04em; line-height: 1.4; }
.rail-ad small { font-size: 11.5px; opacity: .82; line-height: 1.5; }
.rail-ad .go {
  margin-top: 9px; font-size: 12px; font-weight: 800; background: var(--paper);
  border: var(--bw) solid var(--line); border-radius: 999px; padding: 5px 15px;
}
.rail-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.rail-dots span { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--line); cursor: pointer; }
.rail-dots span.on { background: var(--ink); }

/* ---------- 12. 限時搶購 ---------- */
.flash-head {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: var(--bw) solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  padding: 18px 24px; box-shadow: var(--hard); margin-bottom: 22px;
}
.flash-head h2 { font-size: 26px; font-weight: 900; letter-spacing: .06em; display: flex; align-items: center; gap: 9px; }
.flash-head .sub { font-size: 13px; color: var(--ink-2); }
.countdown { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.countdown .lbl { font-size: 12px; font-weight: 800; margin-right: 5px; }
.cd-box {
  background: var(--ink); color: var(--paper); border-radius: var(--r-sm);
  min-width: 44px; padding: 5px 8px; text-align: center;
  font-weight: 900; font-size: 19px; font-variant-numeric: tabular-nums;
}
.cd-sep { font-weight: 900; }

/* ---------- 13. 商品卡 ---------- */
.p-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.p-grid.col4 { grid-template-columns: repeat(4,1fr); }

.p-card {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--hard-sm); transition: transform .18s, box-shadow .18s;
}
.p-card:hover { transform: translate(-3px,-3px); box-shadow: var(--hard-lg); }

.p-thumb {
  aspect-ratio: 1/1; display: grid; place-items: center; position: relative;
  border-bottom: var(--bw) solid var(--line);
}
.p-thumb .ic { width: 46%; height: 46%; transition: transform .28s; }
.p-card:hover .p-thumb .ic { transform: scale(1.1) rotate(-4deg); }

/* 真實商品照片：填滿方形不變形，沒照片時上面的圖示照舊 */
.p-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.p-card:hover .p-thumb .p-img { transform: scale(1.06); }
.gallery .main .p-img { width: 100%; height: 100%; }
.thumbs .p-img { width: 100%; height: 100%; }
.cl-pic .p-img, .oc-pic .p-img, .dl-pic .p-img { border-radius: 4px; }

.p-tag {
  position: absolute; top: 9px; left: 9px; z-index: 3;
  font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px;
  border: 1.5px solid var(--line); letter-spacing: .05em;
}
.p-tag.熱銷 { background: var(--sale); color: #fff; }
.p-tag.限時 { background: var(--lemon); }
.p-tag.新品 { background: var(--mint); }
.p-off {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
}

.p-body { padding: 12px 13px 14px; display: flex; flex-direction: column; flex: 1; }
.p-sub { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.p-name {
  font-size: 14px; font-weight: 700; line-height: 1.5; margin-top: 3px; height: 42px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.p-card:hover .p-name { color: var(--sale); }
.p-rate { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin: 7px 0 8px; }
.p-rate .ic { font-size: 13px; color: var(--clay); }
.p-price { display: flex; align-items: baseline; gap: 7px; margin-top: auto; }
.p-price .now { font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.p-price .now small { font-size: 12.5px; font-weight: 800; }
.p-price .was { color: var(--muted); font-size: 12.5px; text-decoration: line-through; }
.p-add {
  margin-top: 11px; height: 36px; border-radius: 999px; border: var(--bw) solid var(--line);
  background: var(--paper); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .16s;
}
.p-add:hover { background: var(--ink); color: var(--paper); }

/* ---------- 14. 企業服務區塊 ---------- */
.svc-band {
  background: var(--ink); color: var(--paper); border: var(--bw) solid var(--line);
  border-radius: var(--r-lg); padding: 38px; box-shadow: var(--hard);
}
.svc-band .sec-head-row h2 { color: var(--paper); }
.svc-band .sec-head-row .sub { color: rgba(255,251,242,.65); }
.svc-band .sec-more { color: var(--lemon); border-color: var(--lemon); }
.svc-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.svc-col {
  background: rgba(255,251,242,.06); border: 1.5px solid rgba(255,251,242,.28);
  border-radius: var(--r); padding: 22px; transition: all .18s;
}
.svc-col:hover { background: rgba(255,251,242,.12); transform: translateY(-4px); }
.svc-col .cap {
  width: 48px; height: 48px; border-radius: 50%; background: var(--lemon); color: var(--ink);
  border: var(--bw) solid var(--paper); display: grid; place-items: center; font-size: 24px;
}
.svc-col h3 { font-size: 18px; font-weight: 900; letter-spacing: .06em; margin: 10px 0 4px; }
.svc-col .note { font-size: 12.5px; opacity: .68; margin-bottom: 12px; }
.svc-col ul li {
  font-size: 13px; padding: 7px 0; border-top: 1px solid rgba(255,251,242,.16);
  display: flex; justify-content: space-between; gap: 10px;
}
.svc-col ul li span { color: var(--lemon); font-weight: 800; white-space: nowrap; font-size: 12px; }
.svc-col .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; font-size: 13px; font-weight: 800; color: var(--lemon); }

/* ---------- 15. 麵包屑 ---------- */
.crumb { padding: 16px 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.crumb a:hover { color: var(--sale); }

/* ---------- 16. 分類頁橫幅 ---------- */
.cat-banner {
  border: var(--bw) solid var(--line); border-radius: var(--r-lg); padding: 30px 36px;
  position: relative; overflow: hidden; box-shadow: var(--hard); margin-bottom: 22px;
}
.cat-banner .cap {
  width: 56px; height: 56px; border-radius: 50%; background: var(--paper);
  border: var(--bw) solid var(--line); display: grid; place-items: center; font-size: 28px;
}
.cat-banner .en { font-size: 10.5px; letter-spacing: .3em; font-weight: 800; opacity: .65; margin-top: 12px; }
.cat-banner h1 { font-size: 34px; font-weight: 900; letter-spacing: .06em; }
.cat-banner p { font-size: 14.5px; opacity: .85; }
.cat-banner .strip {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: var(--bw) solid var(--line);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 800;
  box-shadow: var(--hard-sm);
}

/* ---------- 17. 分類頁佈局 ---------- */
.shop { display: grid; grid-template-columns: 228px 1fr; gap: 22px; align-items: start; padding-bottom: 44px; }

.filter {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--hard-sm); position: sticky; top: 96px;
}
.filter h4 {
  font-size: 14px; font-weight: 900; letter-spacing: .06em; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1.5px solid var(--hair);
  display: flex; align-items: center; gap: 7px;
}
.filter-group { margin-bottom: 20px; }
.filter-group:last-of-type { margin-bottom: 14px; }
.fbtn {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 7px 10px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600;
  transition: all .14s; margin-bottom: 1px;
}
.fbtn .ic { font-size: 15px; }
.fbtn:hover { background: var(--paper-2); }
.fbtn.on { background: var(--lemon); font-weight: 800; }
.fbtn .n { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.fbtn.on .n { color: var(--ink); }
.filter-reset {
  width: 100%; height: 36px; border-radius: 999px; border: var(--bw) solid var(--line);
  font-size: 13px; font-weight: 800; transition: all .16s;
}
.filter-reset:hover { background: var(--ink); color: var(--paper); }

.shop-bar {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 11px 16px; box-shadow: var(--hard-sm);
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.shop-bar .count { font-size: 13.5px; font-weight: 700; }
.shop-bar .count b { font-size: 16px; font-weight: 900; }
.sorts { display: flex; gap: 5px; margin-left: auto; flex-wrap: wrap; }
.sort-btn {
  padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  border: 1.5px solid var(--hair); transition: all .14s;
}
.sort-btn:hover { border-color: var(--ink); }
.sort-btn.on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 800; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager button {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px;
  border: var(--bw) solid var(--line); background: var(--paper);
  font-size: 13.5px; font-weight: 800; transition: all .14s;
}
.pager button:hover:not(:disabled) { background: var(--lemon); }
.pager button.on { background: var(--ink); color: var(--paper); }
.pager button:disabled { opacity: .35; cursor: not-allowed; }

.empty {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 64px 20px; text-align: center; box-shadow: var(--hard-sm); grid-column: 1/-1;
}
.empty .ic { font-size: 48px; }
.empty p { color: var(--muted); margin-top: 10px; font-weight: 600; }

/* ---------- 18. 商品明細頁 ---------- */
.detail { display: grid; grid-template-columns: 468px 1fr; gap: 40px; padding-bottom: 10px; }

.gallery .main {
  aspect-ratio: 1/1; border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  display: grid; place-items: center; box-shadow: var(--hard); overflow: hidden;
}
.gallery .main .ic { width: 48%; height: 48%; }
.thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }
.thumbs div {
  aspect-ratio: 1/1; border-radius: var(--r-sm); display: grid; place-items: center;
  cursor: pointer; border: var(--bw) solid var(--line); transition: all .16s;
}
.thumbs div .ic { width: 46%; height: 46%; }
.thumbs div.on { box-shadow: var(--hard-sm); }

.d-info h1 { font-size: 28px; font-weight: 900; line-height: 1.42; letter-spacing: .02em; }
.d-meta { display: flex; align-items: center; gap: 12px; margin: 12px 0 18px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; font-weight: 600; }
.d-meta .ic { font-size: 14px; color: var(--clay); }
.d-meta .id { margin-left: auto; }

.d-seller {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 7px 16px; border: var(--bw) solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--hard-sm);
}
.d-seller .ic { font-size: 17px; }
.d-seller b { font-weight: 900; }

.d-pricebox {
  background: var(--lemon); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--hard-sm);
}
.d-pricebox .row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.d-pricebox .now { font-size: 38px; font-weight: 900; letter-spacing: -.02em; }
.d-pricebox .now small { font-size: 17px; }
.d-pricebox .was { color: var(--ink-2); text-decoration: line-through; font-size: 15px; }
.d-pricebox .save {
  background: var(--sale); color: #fff; font-size: 12px; font-weight: 800;
  padding: 3px 11px; border-radius: 999px; border: 1.5px solid var(--line);
}
.d-pricebox .note { font-size: 12.5px; font-weight: 600; margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.d-pricebox .note span { display: flex; align-items: center; gap: 5px; }

.d-desc { font-size: 15px; margin: 20px 0; }
.d-feats { margin: 18px 0 22px; }
.d-feats li { display: flex; gap: 10px; padding: 6px 0; font-size: 14.5px; align-items: flex-start; }
.d-feats li .ic { font-size: 17px; color: var(--sale); margin-top: 3px; }

.d-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.qty { display: flex; align-items: center; border: var(--bw) solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button { width: 40px; height: 44px; display: grid; place-items: center; font-size: 15px; transition: background .14s; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 50px; height: 44px; text-align: center; border: none; outline: none; font-weight: 800; font-size: 15px; background: transparent; }
.btn-cart, .btn-buy {
  height: 48px; padding: 0 30px; border-radius: 999px; border: var(--bw) solid var(--line);
  font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--hard-sm); transition: transform .16s, box-shadow .16s;
}
.btn-cart { background: var(--paper); }
.btn-buy  { background: var(--sale); color: #fff; }
.btn-cart:hover, .btn-buy:hover { transform: translate(-2px,-2px); box-shadow: var(--hard); }

.d-svc {
  display: flex; gap: 20px; flex-wrap: wrap; padding-top: 18px;
  border-top: 1.5px dashed var(--hair); font-size: 13px; font-weight: 600;
}
.d-svc span { display: flex; align-items: center; gap: 6px; }

/* 分頁標籤 */
.tabs {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--hard-sm); margin: 34px 0; overflow: hidden;
}
.tab-heads { display: flex; border-bottom: var(--bw) solid var(--line); overflow-x: auto; }
.tab-heads button {
  padding: 14px 24px; font-weight: 800; font-size: 14.5px; color: var(--muted);
  white-space: nowrap; border-right: 1.5px solid var(--hair); transition: all .14s;
}
.tab-heads button.on { background: var(--lemon); color: var(--ink); }
.tab-body { padding: 24px 26px; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1.5px solid var(--hair); }
.spec-table th { width: 170px; color: var(--muted); font-weight: 700; background: var(--paper); }
.rv { padding: 15px 0; border-bottom: 1.5px solid var(--hair); }
.rv:last-child { border: none; }
.rv-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rv-top b { color: var(--ink); font-size: 14px; font-weight: 800; }
.rv-top .ic { font-size: 13px; color: var(--clay); }
.rv p { margin-top: 5px; font-size: 14px; }

/* ---------- 19. 服務頁 ---------- */
.svc-hero {
  background: var(--ink); color: var(--paper); border: var(--bw) solid var(--line);
  border-radius: var(--r-lg); padding: 46px 42px; box-shadow: var(--hard); margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.svc-hero .eyebrow { color: var(--lemon); }
.svc-hero h1 { font-size: 38px; font-weight: 900; letter-spacing: .06em; margin: 6px 0 12px; }
.svc-hero p { font-size: 15px; opacity: .82; max-width: 640px; margin-bottom: 22px; }
.svc-hero .chips { display: flex; gap: 10px; flex-wrap: wrap; }
.svc-hero .chips a {
  background: transparent; border: var(--bw) solid var(--paper); color: var(--paper);
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 7px; transition: all .16s;
}
.svc-hero .chips a:hover { background: var(--lemon); color: var(--ink); border-color: var(--lemon); }

.svc-sec { margin-bottom: 44px; }
.svc-sec-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.svc-sec-head .cap {
  width: 52px; height: 52px; border-radius: 50%; background: var(--lemon);
  border: var(--bw) solid var(--line); display: grid; place-items: center; font-size: 25px;
  box-shadow: var(--hard-sm);
}
.svc-sec-head h2 { font-size: 24px; font-weight: 900; letter-spacing: .06em; }
.svc-sec-head p { color: var(--muted); font-size: 13px; font-weight: 700; }

.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.svc-card {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 22px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--hard-sm); transition: transform .18s, box-shadow .18s;
}
.svc-card:hover { transform: translate(-3px,-3px); box-shadow: var(--hard-lg); }
.svc-card .top { display: flex; align-items: center; gap: 12px; padding-right: 60px; }
.svc-card .top .cap {
  width: 46px; height: 46px; border-radius: 50%; background: var(--sky);
  border: var(--bw) solid var(--line); display: grid; place-items: center; font-size: 23px; flex-shrink: 0;
}
.svc-card h3 { font-size: 17px; font-weight: 900; line-height: 1.45; }
.svc-card .period { position: absolute; top: 20px; right: 20px; font-size: 11px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.svc-card .desc { font-size: 13.5px; margin: 13px 0; flex: 1; }
.svc-card .feats li { font-size: 13px; display: flex; gap: 8px; padding: 3px 0; align-items: flex-start; }
.svc-card .feats li .ic { font-size: 14px; color: var(--sale); margin-top: 3px; }
.tier-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.tier-table td { padding: 8px 8px; border-bottom: 1.5px solid var(--hair); }
.tier-table td:first-child { font-weight: 800; white-space: nowrap; }
.tier-table td:nth-child(2) { color: var(--ink-2); font-size: 12.5px; }
.tier-table td:last-child { text-align: right; font-weight: 800; white-space: nowrap; }
.svc-card .foot {
  margin-top: 15px; padding-top: 13px; border-top: 1.5px dashed var(--hair);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.svc-card .from small { color: var(--muted); font-size: 11px; display: block; font-weight: 700; }
.svc-card .from b { font-size: 21px; font-weight: 900; }
.svc-card .ask {
  background: var(--ink); color: var(--paper); padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 800; white-space: nowrap; border: var(--bw) solid var(--line);
  transition: all .16s;
}
.svc-card .ask:hover { background: var(--sale); }

.svc-cta {
  background: var(--lemon); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  padding: 40px; text-align: center; box-shadow: var(--hard); margin-bottom: 44px;
}
.svc-cta h2 { font-size: 28px; font-weight: 900; letter-spacing: .04em; }
.svc-cta p { margin: 10px 0 20px; font-size: 14.5px; }

/* ---------- 20. Footer ---------- */
.footer { background: var(--ink); color: #C9C6BC; margin-top: 48px; padding: 44px 0 0; font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 32px; }
.foot-brand .logo-mark { background: var(--lemon); border-color: var(--paper); box-shadow: none; color: var(--ink); }
.foot-brand .logo-text b { color: var(--paper); }
.foot-brand .logo-text span { color: #8C887E; }
.foot-brand .jp { font-size: 12.5px; color: var(--lemon); margin-top: 12px; letter-spacing: .06em; font-weight: 700; }
.foot-brand p { margin-top: 8px; line-height: 1.95; font-size: 12.5px; }
.foot-brand p b { color: var(--paper); font-weight: 700; }
.foot-col h4 { color: var(--paper); font-size: 14px; font-weight: 900; letter-spacing: .1em; margin-bottom: 12px; }
.foot-col li { padding: 4px 0; font-size: 12.5px; }
.foot-col a { display: inline-flex; align-items: center; gap: 7px; }
.foot-col a:hover { color: var(--lemon); }
.foot-scope { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.foot-scope span { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid #45443D; color: #9A968C; }
.foot-bottom {
  border-top: 1px solid #34332D; padding: 15px 0; font-size: 11.5px; color: #7C7A72;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.foot-note { background: #121210; padding: 9px 0; font-size: 11px; color: #6A6862; text-align: center; }

/* ---------- 21. Toast / 回頂 ---------- */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(18px);
  background: var(--ink); color: var(--paper); padding: 12px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 700; border: var(--bw) solid var(--line);
  box-shadow: var(--hard); opacity: 0; pointer-events: none; transition: all .24s; z-index: 200;
  display: flex; align-items: center; gap: 9px;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ic { font-size: 17px; color: var(--lemon); }

.totop {
  position: fixed; right: 24px; bottom: 28px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); border: var(--bw) solid var(--line); box-shadow: var(--hard-sm);
  display: grid; place-items: center; font-size: 19px;
  opacity: 0; pointer-events: none; transition: all .24s; z-index: 90;
}
.totop.on { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--lemon); }

/* ============================================================
   購物流程（購物車 / 結帳 / 訂單完成）
   ============================================================ */
.wrap.narrow { max-width: 820px; }
.shop-2col { display: grid; grid-template-columns: 1fr 330px; gap: 24px; align-items: start; padding-bottom: 44px; }

/* 免運進度條 */
.freebar {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 14px 18px; box-shadow: var(--hard-sm); margin-bottom: 18px;
}
.freebar-txt { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.freebar-txt .ic { font-size: 18px; }
.freebar-txt b { font-weight: 900; }
.freebar-rail { height: 10px; background: var(--paper-2); border: 1.5px solid var(--line); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.freebar-rail i { display: block; height: 100%; background: var(--mint); transition: width .35s; }

/* 賣家分組 */
.cart-group {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--hard-sm); margin-bottom: 18px; overflow: hidden;
}
.seller-head {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  border-bottom: var(--bw) solid var(--line); font-size: 14px;
}
.seller-head .ic { font-size: 18px; }
.seller-head b { font-weight: 900; }
.seller-head span { margin-left: auto; font-weight: 800; font-size: 13.5px; }

/* 購物車列 */
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto auto 40px; gap: 14px;
  align-items: center; padding: 14px 16px; border-bottom: 1.5px solid var(--hair);
}
.cart-line:last-child { border-bottom: none; }
.cl-pic {
  width: 84px; height: 84px; border: var(--bw) solid var(--line); border-radius: var(--r-sm);
  display: grid; place-items: center;
}
.cl-pic .ic { width: 52%; height: 52%; }
.cl-sub { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.cl-info h3 { font-size: 14.5px; font-weight: 700; line-height: 1.5; margin: 2px 0 4px; }
.cl-info h3:hover { color: var(--sale); }
.cl-unit { font-size: 12.5px; color: var(--muted); }
.cl-qty .qty { border-width: 1.5px; }
.cl-qty .qty button { width: 34px; height: 38px; }
.cl-qty .qty input { width: 40px; height: 38px; font-size: 14px; }
.cl-sum { font-size: 17px; font-weight: 900; min-width: 92px; text-align: right; }
.cl-del {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--hair);
  display: grid; place-items: center; font-size: 14px; color: var(--muted); transition: all .15s;
}
.cl-del:hover { border-color: var(--sale); color: var(--sale); }

/* 側欄卡片 */
.side-card-box {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--hard); position: sticky; top: 96px;
}
.side-card-box h3 { font-size: 17px; font-weight: 900; letter-spacing: .06em; margin-bottom: 14px; }
.side-note { font-size: 12.5px; color: var(--muted); display: flex; gap: 7px; align-items: flex-start; margin: 12px 0; }
.side-note .ic { font-size: 15px; flex-shrink: 0; margin-top: 2px; }
.side-tiny { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.6; }

.sum-box { border-top: 1.5px dashed var(--hair); padding-top: 12px; margin-top: 12px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 14px; }
.sum-row b { font-weight: 800; }
.sum-row .free { color: var(--sale); font-weight: 900; }
.sum-row.total {
  border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 11px; font-size: 15px;
}
.sum-row.total b { font-size: 25px; font-weight: 900; }

.btn-ink.full, .btn-plain.full { display: flex; width: 100%; justify-content: center; margin-top: 12px; }
.btn-plain {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: var(--bw) solid var(--line);
  background: var(--paper); font-weight: 800; font-size: 14px; min-height: 46px;
  transition: background .16s;
}
.btn-plain:hover { background: var(--lemon); }

/* 啟動失敗時的提示（連不上資料庫之類） */
.boot-err {
  margin: 16px auto; max-width: 720px; padding: 14px 18px;
  border: var(--bw) solid var(--line); border-radius: var(--r);
  background: var(--peach); font-weight: 700; font-size: 14px;
  box-shadow: var(--hard-sm);
}

/* Google 登入鈕：維持全站描邊風格，但標誌本身保留官方四色不做任何加工 */
.brand-logo { width: 18px; height: 18px; flex-shrink: 0; }
.btn-google { background: var(--white); }
.btn-google:hover { background: var(--paper); }

/* 結帳表單 */
.co-user, .co-warn {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border: var(--bw) solid var(--line); border-radius: var(--r); margin-bottom: 18px;
  font-size: 14px; box-shadow: var(--hard-sm);
}
.co-user { background: var(--mint); }
.co-warn { background: var(--lemon); flex-wrap: wrap; }
.co-warn .btn-ink { margin-left: auto; }
.co-user .ic, .co-warn .ic { font-size: 20px; flex-shrink: 0; }

.co-sec {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--hard-sm); margin-bottom: 18px;
}
.co-sec h3 {
  font-size: 17px; font-weight: 900; letter-spacing: .04em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.co-sec h3 .no {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 14px; flex-shrink: 0;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.field label i { color: var(--sale); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; border: var(--bw) solid var(--line); border-radius: var(--r-sm);
  padding: 11px 14px; outline: none; background: var(--paper); font-size: 15px;
  min-height: 46px; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: var(--hard-sm); background: var(--white); }
.field textarea { resize: vertical; }

.ship-opts { display: grid; gap: 10px; }
.ship-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--paper);
  transition: all .16s;
}
.ship-opt.on { background: var(--lemon); box-shadow: var(--hard-sm); }
.ship-opt input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; }
.ship-opt b { display: block; font-size: 15px; font-weight: 800; }
.ship-opt small { color: var(--ink-2); font-size: 12.5px; }
.ship-opt .fee { margin-left: auto; font-weight: 900; font-size: 16px; white-space: nowrap; }

.cvs-box { margin-top: 16px; padding-top: 16px; border-top: 1.5px dashed var(--hair); }
.cvs-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cvs-hint { font-size: 12px; color: var(--muted); }

.pay-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--sky);
  box-shadow: var(--hard-sm);
}
.pay-opt .ic { font-size: 21px; flex-shrink: 0; }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt small { font-size: 12.5px; line-height: 1.6; display: block; margin-top: 3px; }

/* 側欄明細 */
.co-group { margin-bottom: 12px; }
.co-group-h {
  font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px;
  color: var(--ink-2); padding-bottom: 5px; border-bottom: 1.5px solid var(--hair); margin-bottom: 6px;
}
.co-group-h .ic { font-size: 14px; }
.co-line { display: flex; gap: 8px; font-size: 12.5px; padding: 3px 0; }
.co-line .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-line .q { color: var(--muted); }
.co-line .s { font-weight: 800; white-space: nowrap; }

/* 訂單完成頁 */
.done-top { text-align: center; padding: 30px 0 26px; }
.done-top .ic { color: var(--mint); }
.done-top h1 { font-size: 34px; font-weight: 900; letter-spacing: .08em; margin: 8px 0 4px; }
.done-top p { font-size: 15px; }
.done-top b { font-size: 18px; font-weight: 900; letter-spacing: .04em; }

.pay-card {
  background: var(--lemon); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--hard); margin-bottom: 26px;
}
.pay-card h2 { font-size: 21px; font-weight: 900; display: flex; align-items: center; gap: 9px; }
.pay-amount {
  background: var(--paper); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 14px 18px; margin: 16px 0; text-align: center;
}
.pay-amount small { font-size: 12px; color: var(--muted); font-weight: 700; display: block; }
.pay-amount b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; }
.pay-table { width: 100%; border-collapse: collapse; background: var(--paper); border: var(--bw) solid var(--line); border-radius: var(--r); overflow: hidden; }
.pay-table th, .pay-table td { padding: 11px 15px; text-align: left; border-bottom: 1.5px solid var(--hair); font-size: 14.5px; }
.pay-table tr:last-child th, .pay-table tr:last-child td { border-bottom: none; }
.pay-table th { width: 84px; color: var(--muted); font-weight: 700; }
.pay-table .acct { font-weight: 900; font-size: 17px; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-table .copy {
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); display: inline-flex; align-items: center; gap: 5px;
}
.pay-table .copy:hover { background: var(--ink); color: var(--paper); }
.pay-todo {
  display: flex; gap: 12px; align-items: flex-start; background: var(--paper);
  border: var(--bw) dashed var(--line); border-radius: var(--r); padding: 16px; font-size: 14px;
}
.pay-todo .ic { font-size: 20px; flex-shrink: 0; }
.pay-deadline {
  display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 600;
}
.pay-deadline .ic { font-size: 17px; }
.pay-note { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }

.done-detail h2 { font-size: 21px; font-weight: 900; margin-bottom: 14px; }
.done-line {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border-bottom: 1.5px solid var(--hair); font-size: 14px;
}
.done-line:last-child { border-bottom: none; }
.dl-pic {
  width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  display: grid; place-items: center; flex-shrink: 0;
}
.dl-pic .ic { width: 55%; height: 55%; }
.dl-n { flex: 1; min-width: 0; }
.dl-q { color: var(--muted); }
.dl-s { font-weight: 800; white-space: nowrap; }
.done-detail .sum-box { background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--hard-sm); margin-top: 16px; }

/* ============================================================
   我的訂單
   ============================================================ */
.orders-alert {
  display: flex; gap: 12px; align-items: flex-start; background: var(--lemon);
  border: var(--bw) solid var(--line); border-radius: var(--r); padding: 14px 18px;
  box-shadow: var(--hard-sm); margin-bottom: 20px; font-size: 14px;
}
.orders-alert .ic { font-size: 20px; flex-shrink: 0; }
.orders-alert b { font-weight: 900; }

.order-card {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--hard-sm); margin-bottom: 20px; overflow: hidden;
}
.oc-head {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: var(--bw) solid var(--line); background: var(--paper);
}
.oc-no { font-weight: 900; font-size: 15px; letter-spacing: .04em; }
.oc-date { font-size: 12.5px; color: var(--muted); margin-left: 10px; }
.oc-status {
  margin-left: auto; font-size: 12.5px; font-weight: 800; padding: 4px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); white-space: nowrap;
}
.oc-body { padding: 6px 0; }
.oc-seller { padding: 8px 18px; }
.oc-seller + .oc-seller { border-top: 1.5px dashed var(--hair); }
.oc-seller-h {
  font-size: 12px; font-weight: 800; color: var(--ink-2);
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.oc-seller-h .ic { font-size: 14px; }
.oc-item { display: flex; align-items: center; gap: 11px; padding: 7px 0; font-size: 14px; }
.oc-item:hover .oc-n { color: var(--sale); }
.oc-pic {
  width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  display: grid; place-items: center; flex-shrink: 0;
}
.oc-pic .ic { width: 56%; height: 56%; }
.oc-n { flex: 1; min-width: 0; }
.oc-q { color: var(--muted); font-size: 13px; }
.oc-s { font-weight: 800; white-space: nowrap; }

.oc-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-top: var(--bw) solid var(--line); background: var(--paper);
}
.oc-total small { font-size: 11.5px; color: var(--muted); font-weight: 700; display: block; }
.oc-total b { font-size: 23px; font-weight: 900; }
.oc-acts { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.oc-due { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 5px; color: var(--sale); }
.oc-due .ic { font-size: 15px; }
.oc-paid {
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 5px;
  background: var(--mint); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 13px;
}
.oc-paid .ic { font-size: 15px; }

.oc-more { border-top: 1.5px solid var(--hair); }
.oc-more summary {
  padding: 11px 18px; font-size: 13px; font-weight: 800; cursor: pointer;
  list-style: none; display: flex; align-items: center; gap: 7px;
}
.oc-more summary::-webkit-details-marker { display: none; }
.oc-more summary::before { content: '+'; font-weight: 900; }
.oc-more[open] summary::before { content: '−'; }
.oc-more .spec-table { margin: 0 18px 16px; width: calc(100% - 36px); }

/* ============================================================
   彈窗
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(26,26,22,.55); }
.modal-box {
  position: relative; width: min(100%, 420px); background: var(--paper);
  border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--hard-lg);
  max-height: 88vh; display: flex; flex-direction: column;
  animation: pop .22s cubic-bezier(.4,0,.2,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: var(--bw) solid var(--line);
}
.modal-head b { font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.modal-x {
  width: 38px; height: 38px; border-radius: 50%; border: var(--bw) solid var(--line);
  display: grid; place-items: center; font-size: 16px;
}
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot {
  display: flex; gap: 10px; padding: 16px 20px; border-top: var(--bw) solid var(--line);
}
.modal-foot > * { flex: 1; justify-content: center; }

.rp-order {
  background: var(--lemon); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.rp-order b { font-weight: 900; }
.rp-note {
  font-size: 12px; color: var(--muted); display: flex; gap: 7px; align-items: flex-start; margin-top: 4px;
}
.rp-note .ic { font-size: 14px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   登入 / 註冊
   ============================================================ */
.auth-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; padding: 10px 0 48px; }

.auth-card {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--hard); overflow: hidden;
}
.auth-tabs { display: flex; border-bottom: var(--bw) solid var(--line); }
.auth-tabs button {
  flex: 1; padding: 16px; font-size: 15.5px; font-weight: 800; color: var(--muted);
  border-right: 1.5px solid var(--hair); transition: all .16s;
}
.auth-tabs button:last-child { border-right: none; }
.auth-tabs button.on { background: var(--lemon); color: var(--ink); }
.auth-body { padding: 24px; }
.auth-forgot { display: block; text-align: right; font-size: 12.5px; font-weight: 700; margin: -6px 0 4px; }
.auth-forgot:hover { color: var(--sale); }
.auth-or { text-align: center; margin: 18px 0 12px; position: relative; }
.auth-or::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--hair);
}
.auth-or span { position: relative; background: var(--white); padding: 0 14px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.auth-tiny { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.7; }

.auth-side {
  background: var(--mint); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--hard-sm);
}
.auth-side h3 { font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.auth-side li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; padding: 6px 0; }
.auth-side li .ic { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.auth-note {
  font-size: 12px; margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed rgba(26,26,22,.25);
  display: flex; gap: 7px; align-items: flex-start;
}
.auth-note .ic { font-size: 14px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   會員中心
   ============================================================ */
.acc-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--lemon); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--hard); margin-bottom: 20px;
}
.acc-avatar {
  width: 60px; height: 60px; border-radius: 50%; background: var(--paper);
  border: var(--bw) solid var(--line); display: grid; place-items: center; font-size: 30px; flex-shrink: 0;
}
.acc-top h1 { font-size: 24px; font-weight: 900; letter-spacing: .04em; }
.acc-top p { font-size: 13.5px; color: var(--ink-2); }
.acc-top .btn-plain { margin-left: auto; }
.acc-admin {
  display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--paper);
  font-size: 12.5px; font-weight: 800; padding: 5px 14px; border-radius: 999px;
}

.acc-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.acc-stat {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--hard-sm); transition: transform .16s, box-shadow .16s;
}
a.acc-stat:hover { transform: translate(-2px,-2px); box-shadow: var(--hard); }
.acc-stat small { font-size: 12px; color: var(--muted); font-weight: 700; display: block; }
.acc-stat b { font-size: 27px; font-weight: 900; }
.acc-stat b.warn { color: var(--sale); }

.co-sec .sec-desc { font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.co-sec h3 .no .ic { font-size: 15px; }
.field input:disabled { background: var(--paper-2); color: var(--muted); cursor: not-allowed; }
.admin-sec { border-color: var(--sale); }
.admin-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   後台（內嵌在前台，管理員限定）
   ============================================================ */
.admin-bar {
  background: var(--ink); color: var(--paper); border: var(--bw) solid var(--line);
  border-radius: var(--r-lg); padding: 18px 22px; box-shadow: var(--hard); margin-bottom: 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.admin-title { display: flex; align-items: center; gap: 9px; }
.admin-title .ic { font-size: 22px; color: var(--lemon); }
.admin-title b { font-size: 20px; font-weight: 900; letter-spacing: .06em; }
.admin-warn {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; background: var(--sale);
  padding: 3px 10px; border-radius: 999px; margin-left: 4px;
}
.admin-tabs { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.admin-tabs a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px;
  border: var(--bw) solid var(--paper); border-radius: 999px;
  font-size: 14px; font-weight: 800; transition: all .16s;
}
.admin-tabs a.on, .admin-tabs a:hover { background: var(--lemon); color: var(--ink); border-color: var(--lemon); }

.admin-stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-bottom: 18px; }
.admin-stat {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 14px 16px; box-shadow: var(--hard-sm);
}
.admin-stat small { font-size: 11.5px; color: var(--muted); font-weight: 700; display: block; }
.admin-stat b { font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.admin-stat b.warn { color: var(--sale); }

.admin-filters {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--hard-sm); margin-bottom: 18px;
}
.af-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.af-row.acts { margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--hair); }
.af-row.acts .btn-plain { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.af-field { display: flex; flex-direction: column; gap: 5px; }
.af-field.grow { flex: 1; min-width: 220px; }
.af-field label { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.af-field input, .af-field select {
  border: var(--bw) solid var(--line); border-radius: var(--r-sm); padding: 8px 12px;
  background: var(--paper); font-size: 14px; min-height: 40px; outline: none; font-family: inherit;
}
.af-field input:focus, .af-field select:focus { background: var(--white); box-shadow: var(--hard-sm); }

.admin-count { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.admin-count b { font-size: 17px; font-weight: 900; }

.table-scroll {
  overflow-x: auto; border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--hard-sm); background: var(--white);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 940px; }
.admin-table th, .admin-table td {
  padding: 11px 13px; text-align: left; border-bottom: 1.5px solid var(--hair); vertical-align: top;
}
.admin-table thead th {
  background: var(--paper); font-size: 12px; font-weight: 800; white-space: nowrap;
  position: sticky; top: 0; border-bottom: var(--bw) solid var(--line);
}
.admin-table tbody tr:hover { background: var(--paper); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table .num { text-align: right; white-space: nowrap; }
.admin-table .dim { color: var(--muted); font-size: 12px; }
.admin-table .hl { background: #FFF9DC; }
.admin-table thead .hl { background: var(--lemon); }
.admin-table .last5 {
  font-size: 17px; font-weight: 900; letter-spacing: .12em; font-variant-numeric: tabular-nums;
}
.seller-chip {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 9px;
  border: 1.5px solid var(--line); border-radius: 999px; margin: 1px 2px 1px 0; white-space: nowrap;
}
.role-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800;
  padding: 3px 11px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-2);
}
.role-chip.admin { background: var(--lemon); }
.role-chip .ic { font-size: 13px; }
.st-sel {
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 6px 8px;
  font-size: 12.5px; background: var(--paper); font-family: inherit; min-height: 34px;
}
.admin-note {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted);
  margin-top: 14px; padding: 12px 14px; background: var(--paper-2);
  border: 1.5px dashed var(--line); border-radius: var(--r);
}
.admin-note .ic { font-size: 15px; flex-shrink: 0; margin-top: 2px; }
.nav-link.admin { color: var(--sale); }

/* ---------- 後台商品管理 ---------- */
.pm-pic {
  width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.pm-pic .ic { width: 58%; height: 58%; }
.pm-pic .p-img { width: 100%; height: 100%; }
.admin-table tr.row-off td { opacity: .5; }
.admin-table tr.row-off .oc-status { opacity: 1; }
.tag-noimg {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  color: var(--sale); margin-top: 3px;
}
.tag-noimg .ic { font-size: 13px; }
.pm-acts { white-space: nowrap; }
.mini {
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); margin-right: 4px; min-height: 32px;
}
.mini:hover { background: var(--lemon); }

/* 編輯彈窗加寬 */
.modal-box.wide { width: min(100%, 620px); }
.modal-id {
  margin-left: auto; margin-right: 10px; font-size: 12px; font-weight: 800;
  color: var(--muted); letter-spacing: .06em;
}
.modal-foot .foot-hint { flex: 1; font-size: 12px; color: var(--muted); align-self: center; }
.btn-plain.danger { border-color: var(--sale); color: var(--sale); flex: 0 0 auto; }
.btn-plain.danger:hover { background: var(--sale); color: #fff; }

/* 圖片上傳 */
.img-drop {
  border: var(--bw) dashed var(--line); border-radius: var(--r); padding: 22px 16px;
  text-align: center; cursor: pointer; background: var(--paper); transition: all .16s;
}
.img-drop:hover, .img-drop.over { background: var(--lemon); }
.img-drop .ic { color: var(--ink-2); }
.img-drop p { font-size: 14px; margin: 8px 0 3px; }
.img-drop small { font-size: 12px; color: var(--muted); }
.img-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.img-item {
  position: relative; width: 80px; height: 80px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden;
}
.img-item[data-main] { border-color: var(--sale); border-width: 2.5px; }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item > button {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(26,26,22,.8); color: #fff; display: grid; place-items: center; font-size: 11px;
}
.main-badge {
  position: absolute; left: 0; bottom: 0; right: 0; background: var(--sale); color: #fff;
  font-size: 10px; font-weight: 800; text-align: center; padding: 2px 0;
}
.img-add {
  width: 80px; height: 80px; border: 1.5px dashed var(--line); border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 20px; background: var(--paper);
}
.img-add:hover { background: var(--lemon); }
.img-empty { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* 圖示挑選 */
.icon-pick { display: flex; gap: 10px; align-items: center; }
.icon-pick .icon-prev {
  width: 46px; height: 46px; border: var(--bw) solid var(--line); border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 22px; flex-shrink: 0; background: var(--paper);
}
.icon-pick input { flex: 1; }

/* 開關 */
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--ink); }

/* 商品已下架提示 */
.offsale {
  display: flex; gap: 12px; align-items: flex-start; background: var(--paper-2);
  border: var(--bw) solid var(--line); border-radius: var(--r); padding: 16px 18px;
  margin: 14px 0; font-size: 14px;
}
.offsale .ic { font-size: 21px; flex-shrink: 0; }

/* ============================================================
   內容頁（關於 / 購物說明 / FAQ / 聯絡 / 消息）
   ============================================================ */
.about-hero { text-align: center; padding: 34px 0 26px; }
.about-hero h1 { font-size: 32px; font-weight: 900; line-height: 1.5; margin: 8px 0 12px; letter-spacing: .02em; }
.about-hero p { font-size: 14.5px; color: var(--ink-2); line-height: 2; }
.about-story {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  padding: 28px 32px; box-shadow: var(--hard); margin-bottom: 12px;
}
.about-story p { font-size: 15.5px; line-height: 2.1; margin-bottom: 16px; }
.about-story p:last-child { margin-bottom: 0; }

.value-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.value-card {
  border: var(--bw) solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--hard-sm); transition: transform .18s, box-shadow .18s;
}
.value-card:hover { transform: translate(-3px,-3px); box-shadow: var(--hard); }
.value-card .cap {
  width: 52px; height: 52px; border-radius: 50%; background: var(--paper);
  border: var(--bw) solid var(--line); display: grid; place-items: center; font-size: 25px;
}
.value-card h3 { font-size: 19px; font-weight: 900; margin: 12px 0 6px; letter-spacing: .04em; }
.value-card p { font-size: 14px; line-height: 1.85; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--lemon); border: var(--bw) solid var(--line);
}
.tl-date { font-size: 12.5px; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.tl-body h3 { font-size: 18px; font-weight: 900; margin: 2px 0 4px; }
.tl-body p { font-size: 14px; line-height: 1.85; }

.info-table th { width: 120px; }
.scope-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.scope-chips span {
  font-size: 11.5px; font-weight: 700; padding: 3px 10px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
}

.about-cta {
  background: var(--mint); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  padding: 36px; text-align: center; box-shadow: var(--hard); margin: 12px 0 44px;
}
.about-cta h2 { font-size: 26px; font-weight: 900; letter-spacing: .04em; }
.about-cta p { margin: 8px 0 20px; font-size: 14.5px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 購物說明 */
.policy-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.policy-nav button {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px;
  border: var(--bw) solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: 14px; font-weight: 800; min-height: 44px; transition: all .16s;
}
.policy-nav button.on { background: var(--lemon); box-shadow: var(--hard-sm); }
.policy-nav button:hover { background: var(--lemon); }

.policy-card {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  padding: 28px 32px; box-shadow: var(--hard); margin-bottom: 20px;
}
.policy-card > h2 {
  font-size: 24px; font-weight: 900; letter-spacing: .05em;
  display: flex; align-items: center; gap: 10px; padding-bottom: 16px;
  border-bottom: var(--bw) solid var(--line); margin-bottom: 20px;
}
.pb { margin-bottom: 26px; }
.pb:last-of-type { margin-bottom: 0; }
.pb h3 {
  font-size: 16.5px; font-weight: 900; margin-bottom: 10px;
  padding-left: 12px; border-left: 4px solid var(--lemon);
}
.pb p { font-size: 14.5px; line-height: 2; margin-bottom: 8px; }
.pb-list { margin: 6px 0; }
.pb-list li { display: flex; gap: 9px; align-items: flex-start; padding: 5px 0; font-size: 14.5px; line-height: 1.8; }
.pb-list li .ic { font-size: 16px; color: var(--sale); flex-shrink: 0; margin-top: 4px; }
.pb-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.pb-table th, .pb-table td { padding: 10px 13px; text-align: left; border-bottom: 1.5px solid var(--hair); }
.pb-table th { background: var(--paper); font-weight: 800; width: 120px; white-space: nowrap; }
.pb-table td:nth-child(2) { font-weight: 800; white-space: nowrap; }
.policy-updated { font-size: 12px; color: var(--muted); margin-top: 22px; padding-top: 14px; border-top: 1.5px dashed var(--hair); }

.policy-foot {
  display: flex; gap: 10px; align-items: center; background: var(--paper-2);
  border: 1.5px dashed var(--line); border-radius: var(--r); padding: 14px 18px;
  font-size: 13.5px; margin-bottom: 44px;
}
.policy-foot .ic { font-size: 18px; flex-shrink: 0; }
.policy-foot a { font-weight: 800; border-bottom: 2px solid var(--ink); }
.policy-foot a:hover { color: var(--sale); border-color: var(--sale); }

/* FAQ */
.faq-search {
  display: flex; align-items: center; gap: 10px; background: var(--white);
  border: var(--bw) solid var(--line); border-radius: 999px; padding: 4px 16px;
  box-shadow: var(--hard-sm); margin-bottom: 22px;
}
.faq-search .ic { font-size: 19px; flex-shrink: 0; }
.faq-search input { flex: 1; border: none; outline: none; background: none; padding: 12px 0; font-size: 15px; }
.faq-search button {
  width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2);
  display: grid; place-items: center; font-size: 13px; flex-shrink: 0;
}
.faq-group { margin-bottom: 26px; }
.faq-cat {
  font-size: 17px; font-weight: 900; letter-spacing: .06em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 9px;
}
.faq-cat span {
  font-size: 11.5px; background: var(--lemon); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 1px 9px;
}
.faq-item {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--hard-sm); margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 15px 18px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q'; font-weight: 900; color: var(--sale); flex-shrink: 0; font-size: 16px;
}
.faq-item[open] summary { background: var(--lemon); }
.faq-a {
  padding: 14px 18px 16px 40px; font-size: 14.5px; line-height: 2;
  border-top: 1.5px solid var(--hair); color: var(--ink-2);
}

/* 聯絡我們 */
.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; padding-bottom: 44px; }
.contact-form {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--hard);
}
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field.two label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.contact-side { display: grid; gap: 14px; }
.cs-card {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--hard-sm);
}
.cs-card h3 { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cs-card li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; border-bottom: 1.5px solid var(--hair); }
.cs-card li:last-child { border-bottom: none; }
.cs-card li b { font-weight: 800; white-space: nowrap; }
.cs-card p { font-size: 13.5px; line-height: 1.9; }
.cs-dim { color: var(--muted); font-size: 12px; margin-top: 6px; }
.cs-card.quick { background: var(--sky); }
.cs-card.quick a {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin-bottom: 6px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 700; min-height: 44px;
}
.cs-card.quick a:hover { background: var(--lemon); }
.cs-card.quick a:last-child { margin-bottom: 0; }

/* 最新消息 */
.news-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.news-filter button {
  padding: 8px 18px; border: var(--bw) solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: 13.5px; font-weight: 800; min-height: 40px; transition: all .16s;
}
.news-filter button.on { background: var(--ink); color: var(--paper); }
.news-filter button:hover:not(.on) { background: var(--lemon); }

.news-list { display: grid; gap: 16px; padding-bottom: 44px; }
.news-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px;
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--hard-sm); overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.news-row:hover { transform: translate(-3px,-3px); box-shadow: var(--hard-lg); }
.nr-vis { display: grid; place-items: center; border-right: var(--bw) solid var(--line); min-height: 140px; }
.nr-vis .ic { font-size: 46px; }
.nr-body { padding: 18px 20px 18px 0; }
.nr-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.nr-date { font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--muted); }
.nr-cat {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  background: var(--ink); color: var(--paper); padding: 2px 9px; border-radius: 999px;
}
.nr-body h3 { font-size: 18px; font-weight: 900; line-height: 1.5; margin-bottom: 6px; }
.news-row:hover .nr-body h3 { color: var(--sale); }
.nr-body p { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.nr-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; margin-top: 10px; }

.post {
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--hard); overflow: hidden; margin-bottom: 20px;
}
.post-vis { height: 200px; display: grid; place-items: center; border-bottom: var(--bw) solid var(--line); }
.post-vis .ic { font-size: 68px; }
.post-meta { display: flex; align-items: center; gap: 10px; padding: 22px 32px 0; }
.post h1 { font-size: 30px; font-weight: 900; line-height: 1.45; padding: 10px 32px 0; letter-spacing: .01em; }
.post-lead {
  font-size: 16px; font-weight: 700; line-height: 1.9; padding: 14px 32px 0; color: var(--ink-2);
}
.post-body { padding: 20px 32px 32px; }
.post-body p { font-size: 15.5px; line-height: 2.15; margin-bottom: 18px; }
.post-body p:last-child { margin-bottom: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.post-nav a {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--white); border: var(--bw) solid var(--line); border-radius: var(--r);
  box-shadow: var(--hard-sm); font-size: 13.5px; font-weight: 700; transition: all .16s;
}
.post-nav a:hover { background: var(--lemon); }
.post-nav a.next { justify-content: flex-end; text-align: right; }
.post-nav a .ic { font-size: 20px; flex-shrink: 0; }
.post-nav small { display: block; font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .1em; }
.post-back { text-align: center; padding-bottom: 44px; }

.foot-reg { font-size: 11.5px; color: #8C887E; margin-top: 10px; }

/* ---------- 22. 手機側邊抽屜選單 ---------- */
.burger { display: none; }

.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.on { visibility: visible; }
.drawer-mask { position: absolute; inset: 0; background: rgba(26,26,22,.5); opacity: 0; transition: opacity .25s; }
.drawer.on .drawer-mask { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 344px);
  background: var(--paper); border-left: var(--bw) solid var(--line);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column;
}
.drawer.on .drawer-panel { transform: none; }
.drawer-top {
  display: flex; align-items: center; justify-content: space-between; padding: 15px 18px;
  border-bottom: var(--bw) solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2;
}
.drawer-x {
  width: 42px; height: 42px; border-radius: 50%; border: var(--bw) solid var(--line);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.drawer-search { display: flex; gap: 8px; padding: 14px 18px; border-bottom: 1.5px solid var(--hair); }
.drawer-search input {
  flex: 1; height: 44px; border: var(--bw) solid var(--line); border-radius: 999px;
  padding: 0 16px; outline: none; background: var(--white); font-size: 15px;
}
.drawer-search button {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.drawer-row { display: flex; align-items: stretch; border-bottom: 1.5px solid var(--hair); }
.drawer-row.solo { border-bottom: 1.5px solid var(--hair); }
.drawer-main, .drawer-row.solo {
  display: flex; align-items: center; gap: 11px; padding: 15px 18px;
  font-weight: 800; font-size: 15.5px; flex: 1; min-height: 56px;   /* 觸控目標 ≥ 44px */
}
.drawer-main .ic, .drawer-row.solo .ic { font-size: 20px; }
.drawer-tog {
  width: 58px; display: grid; place-items: center; font-size: 16px;
  border-left: 1.5px solid var(--hair); transition: transform .2s;
}
.drawer-acc.open .drawer-tog { transform: rotate(90deg); background: var(--lemon); }
.drawer-subs { display: none; background: var(--paper-2); border-bottom: 1.5px solid var(--hair); }
.drawer-acc.open .drawer-subs { display: block; }
.drawer-subs a {
  display: flex; align-items: center; gap: 10px; padding: 0 18px 0 36px;
  font-size: 14.5px; font-weight: 600; min-height: 50px;
  border-bottom: 1px solid rgba(26,26,22,.06);
}
.drawer-subs a:last-child { border-bottom: none; }
.drawer-subs a:active { background: var(--lemon); }
.drawer-foot { margin-top: auto; padding: 18px 18px 28px; display: grid; gap: 9px; }
.drawer-foot a {
  display: flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 50px;
  border: var(--bw) solid var(--line); border-radius: 999px; font-weight: 800; font-size: 14.5px;
}

/* ---------- 23. 手機篩選面板 ---------- */
.filter-open { display: none; }
.sheet-head, .sheet-apply, .sheet-mask { display: none; }

/* ---------- 24. 手機購買列（商品頁） ---------- */
.buy-bar { display: none; }

/* ---------- 25. RWD ---------- */
@media (max-width: 1180px) {
  .p-grid { grid-template-columns: repeat(4,1fr); }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .detail { grid-template-columns: 1fr; gap: 26px; }
  .gallery { max-width: 440px; }
}
@media (max-width: 900px) {
  .header-main { gap: 10px; padding: 11px 0; }
  .search { display: none; }                     /* 搜尋改到抽屜裡，讓 Header 不擠 */
  .header-acts { margin-left: auto; gap: 0; }
  .hact { padding: 6px 9px; min-width: 52px; }   /* 觸控目標 */
  .burger { display: flex; }
  .nav-promo { display: none; }
  .nav-list { height: 44px; }
  .nav-item:hover .subnav { display: none; }     /* 手機不靠 hover，子分類走抽屜 */
  .subnav { display: none; }
  .cat-grid, .trust { grid-template-columns: repeat(2,1fr); }
  .svc-cols, .svc-grid { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; gap: 0; }
  .slider { height: 330px; }

  /* 篩選改成由下往上的彈出面板 */
  .filter-open {
    display: inline-flex; align-items: center; gap: 6px; position: relative;
    padding: 8px 16px; border: var(--bw) solid var(--line); border-radius: 999px;
    font-weight: 800; font-size: 13.5px; background: var(--paper); min-height: 40px;
  }
  .filter-open .fdot {
    position: absolute; top: -3px; right: -3px; width: 11px; height: 11px;
    border-radius: 50%; background: var(--sale); border: 1.5px solid var(--line);
  }
  .filter-sheet { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
  .filter-sheet.on { visibility: visible; }
  .sheet-mask {
    display: block; position: absolute; inset: 0;
    background: rgba(26,26,22,.5); opacity: 0; transition: opacity .25s;
  }
  .filter-sheet.on .sheet-mask { opacity: 1; }
  .filter {
    position: absolute; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 84vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-radius: 20px 20px 0 0; border-bottom: none; box-shadow: none;
    transform: translateY(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    padding: 0 18px 18px;
  }
  .filter-sheet.on .filter { transform: none; }
  .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: var(--white); z-index: 3;
    padding: 16px 0 12px; margin-bottom: 6px; border-bottom: 1.5px solid var(--hair);
  }
  .sheet-head b { font-size: 17px; font-weight: 900; }
  .sheet-x {
    width: 40px; height: 40px; border-radius: 50%; border: var(--bw) solid var(--line);
    display: grid; place-items: center; font-size: 17px;
  }
  .fbtn { min-height: 46px; font-size: 14.5px; }
  .sheet-apply {
    display: block; position: sticky; bottom: 0; width: 100%; margin-top: 12px;
    height: 52px; border-radius: 999px; background: var(--ink); color: var(--paper);
    font-weight: 800; font-size: 15px; border: var(--bw) solid var(--line);
  }
  .filter-reset { min-height: 46px; }

  /* 商品頁固定購買列 */
  /* 購物流程頁 */
  .shop-2col, .auth-wrap { grid-template-columns: 1fr; gap: 18px; }
  .acc-stats { grid-template-columns: 1fr; gap: 10px; }
  .acc-top { padding: 18px; }
  .acc-top .btn-plain { margin-left: 0; width: 100%; }
  .oc-foot { gap: 10px; }
  .oc-acts { margin-left: 0; width: 100%; }
  .oc-acts .btn-ink { flex: 1; justify-content: center; }
  .oc-head { flex-wrap: wrap; }
  .modal-box { width: 100%; }
  /* 後台 */
  .admin-stats { grid-template-columns: repeat(2,1fr); }
  .admin-bar { padding: 16px; }
  .admin-tabs { margin-left: 0; width: 100%; }
  .admin-tabs a { flex: 1; justify-content: center; }
  .af-field { flex: 1; min-width: 140px; }
  .af-row.acts .btn-plain { flex: 1; }
  /* 內容頁 */
  .value-grid, .contact-grid { grid-template-columns: 1fr; }
  .field.two { grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 23px; }
  .about-story, .policy-card { padding: 20px; }
  .news-row { grid-template-columns: 1fr; }
  .nr-vis { border-right: none; border-bottom: var(--bw) solid var(--line); min-height: 110px; }
  .nr-body { padding: 16px 18px; }
  .post-meta, .post h1, .post-lead { padding-left: 20px; padding-right: 20px; }
  .post-body { padding: 18px 20px 26px; }
  .post h1 { font-size: 22px; }
  .post-vis { height: 150px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
  .info-table th { width: 92px; }
  .pb-table th { width: 88px; }
  .side-card-box { position: static; }
  .cart-line {
    grid-template-columns: 68px 1fr auto;
    grid-template-areas:
      "pic info del"
      "pic qty  sum";
    row-gap: 10px; padding: 14px;
  }
  .cl-pic  { grid-area: pic; width: 68px; height: 68px; align-self: start; }
  .cl-info { grid-area: info; }
  .cl-qty  { grid-area: qty; }
  .cl-sum  { grid-area: sum; min-width: 0; font-size: 16px; }
  .cl-del  { grid-area: del; align-self: start; }
  .co-warn { flex-direction: column; align-items: flex-start; }
  .co-warn .btn-ink { margin-left: 0; width: 100%; justify-content: center; }
  .co-sec { padding: 18px; }
  .ship-opt .fee { font-size: 15px; }
  .pay-card { padding: 20px; }
  .pay-amount b { font-size: 28px; }
  .pay-table th { width: 68px; font-size: 13px; }
  .pay-table .acct { font-size: 15px; }
  .done-top h1 { font-size: 26px; }
  .done-line { flex-wrap: wrap; }
  .done-line .dl-n { flex-basis: calc(100% - 56px); }

  body[data-page="product"] { padding-bottom: 84px; }
  .buy-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: var(--bw) solid var(--line);
  }
  .buy-bar .bb-price { flex-shrink: 0; }
  .buy-bar .bb-price small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; }
  .buy-bar .bb-price b { font-size: 21px; font-weight: 900; }
  .buy-bar .bb-cart, .buy-bar .bb-buy {
    flex: 1; min-height: 48px; border-radius: 999px; border: var(--bw) solid var(--line);
    font-weight: 800; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .buy-bar .bb-cart { background: var(--paper); flex: 0 0 52px; }
  .buy-bar .bb-buy { background: var(--sale); color: #fff; }
  .totop { bottom: 96px; right: 16px; }
  .slide { padding: 30px 30px; }
  .slide h2 { font-size: 32px; }
  .slide-deco { display: none; }
  .sec-head h2 { font-size: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .promo-slide { padding: 26px 28px; gap: 18px; }
  .promo-slide h3 { font-size: 23px; }
  .promo-arrow.prev { left: 8px; }
  .promo-arrow.next { right: 8px; }
}
@media (max-width: 640px) {
  .p-grid, .p-grid.col4 { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .news-grid, .trust, .cat-grid, .foot-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 14px; }
  .section { padding: 32px 0; }
  .hact span:not(.cart-count) { font-size: 10px; }
  .p-name { font-size: 13.5px; height: 40px; }
  .p-price .now { font-size: 18px; }
  .p-add { height: 40px; }                        /* 觸控目標 */
  .sort-btn { min-height: 36px; padding: 6px 14px; }
  .shop-bar { gap: 10px; }
  .shop-bar .count { font-size: 13px; }
  .tab-heads button { padding: 13px 18px; font-size: 14px; }
  .d-info h1 { font-size: 22px; }
  .crumb { font-size: 12px; }
  .cbtn { width: 46px; height: 46px; }
  .trust-item { padding: 13px 15px; }
  .slider { height: 300px; }
  .slide h2 { font-size: 26px; }
  .slide p { font-size: 14px; }
  .sec-head h2 { font-size: 26px; }
  .flash-head { flex-direction: column; align-items: flex-start; }
  .countdown { margin-left: 0; }
  .cat-banner, .svc-hero { padding: 26px 22px; }
  .cat-banner h1, .svc-hero h1 { font-size: 26px; }
  .d-pricebox .now { font-size: 30px; }
  .promo-slide { flex-direction: column; text-align: center; }
  .promo-slide .btn-ink { align-self: center; }
  .svc-band { padding: 24px 20px; }
}
