/* 單車避難所 Cycle Refuge — 前台樣式
   設計語言取自標誌：單一線寬的墨線、亞麻與木頭的暖色、鐵捲門橫紋、避難所窗內的琥珀色燈光。 */
:root {
  --ink: #231916;
  --ink-2: #3b302b;
  --ink-soft: #5d524c;
  --muted: #8a7f77;
  --paper: #f5f1ea;
  --linen: #ebe4d8;
  --linen-2: #e2d9ca;
  --card: #fffdf9;
  --line: #d8cebf;
  --line-strong: #231916;
  --glow: #e0913a;
  --glow-deep: #b86a1d;
  --glow-soft: #f7e3c4;
  --wood: #b98b5e;
  --ok: #4a7457;
  --danger: #a8432e;
  --radius: 14px;
  --radius-sm: 8px;
  --stroke: 1.5px;
  --shadow: 0 1px 0 rgba(35, 25, 22, .04), 0 10px 30px -18px rgba(35, 25, 22, .35);
  --font: "Source Sans 3", "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --serif: "Noto Serif TC", serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; color: var(--muted);
}
.eyebrow.light { color: rgba(255, 255, 255, .6); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: .01em; }
.h-display { font-size: clamp(40px, 7vw, 88px); font-weight: 700; letter-spacing: .04em; line-height: .98; }
.h-section { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.lead { font-size: 18px; color: var(--ink-soft); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: var(--stroke) solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 600; letter-spacing: .04em; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(35, 25, 22, .6); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.glow { background: var(--glow); border-color: var(--glow); color: #241307; }
.btn.glow:hover { background: #eaa24f; }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.outline-light { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, .55); }
.btn.outline-light:hover { background: var(--paper); color: var(--ink); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; height: 72px; gap: 28px; }
.logo-h { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-h svg { height: 40px; width: auto; }
.logo-h .zh { font-size: 13px; letter-spacing: .3em; font-weight: 600; color: var(--ink-soft); padding-left: 12px; border-left: 1px solid var(--line); }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font-weight: 600; font-size: 15px; position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--stroke); background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative;
  border: var(--stroke) solid transparent; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--glow); color: #241307; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.icon-btn .count:empty { display: none; }
.avatar-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; }
.avatar-dot img { width: 100%; height: 100%; object-fit: cover; }
.menu-toggle { display: none; }

/* ---------- 首頁主視覺：拉起鐵捲門 ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--paper);
  background: var(--ink);
  min-height: min(760px, calc(100vh - 72px));
  display: flex; align-items: stretch;
}
.hero::before { /* 窗內暖光 */
  content: ""; position: absolute; inset: -20% -10% -20% 30%;
  background:
    radial-gradient(closest-side at 62% 52%, rgba(240, 160, 70, .55), rgba(224, 145, 58, .18) 55%, transparent 75%),
    radial-gradient(closest-side at 78% 30%, rgba(255, 200, 120, .25), transparent 70%);
  filter: blur(10px);
  animation: glow 6s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: .82; } to { opacity: 1; } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .h-display { margin: 18px 0 10px; }
.hero-copy .zh-title { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: .5em; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hero-copy p { max-width: 460px; color: rgba(255, 255, 255, .72); font-size: 17px; margin: 26px 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 48px; color: rgba(255, 255, 255, .6); font-size: 13px; letter-spacing: .08em; }
.hero-meta b { display: block; color: var(--paper); font-size: 26px; letter-spacing: 0; }

.storefront { position: relative; aspect-ratio: 1 / .92; z-index: 1; }
.storefront .window {
  position: absolute; inset: 0; border: var(--stroke) solid rgba(255, 255, 255, .55); border-radius: 6px;
  background: radial-gradient(circle at 50% 55%, rgba(255, 196, 120, .22), rgba(35, 25, 22, .1) 70%);
  display: grid; place-items: center; overflow: hidden;
}
.storefront .window .mark { width: 62%; color: #fff7ea; filter: drop-shadow(0 0 22px rgba(255, 190, 110, .45)); }
.storefront .window .mark svg { width: 100%; height: auto; }
.storefront .sign { position: absolute; bottom: 12%; left: 0; right: 0; text-align: center; letter-spacing: .38em; font-weight: 700; font-size: clamp(14px, 1.6vw, 20px); color: #fff7ea; }
.shutter { /* 鐵捲門：載入時往上收 */
  position: absolute; inset: 0; z-index: 3; border-radius: 6px;
  background:
    repeating-linear-gradient(180deg, #3a2f2a 0 13px, #2a201c 13px 15px, #4a3e38 15px 16px);
  box-shadow: inset 0 -6px 0 #1a1210;
  transform-origin: top;
  animation: shutter-up 1.6s cubic-bezier(.7, 0, .2, 1) .5s forwards;
}
.shutter::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 54px; height: 6px; margin-left: -27px; border-radius: 3px; background: #6b5d55; }
@keyframes shutter-up { to { transform: scaleY(.06); opacity: .0; } }
@media (prefers-reduced-motion: reduce) { .shutter { animation: none; display: none; } .hero::before { animation: none; } }

/* ---------- 跑馬燈 ---------- */
.ticker { background: var(--linen); border-block: var(--stroke) solid var(--ink); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 36px; padding: 13px 0; animation: tick 38s linear infinite; font-weight: 600; letter-spacing: .2em; font-size: 14px; }
.ticker-track span { display: inline-flex; align-items: center; gap: 36px; }
.ticker-track svg { width: 26px; height: 12px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- 區塊 ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head .h-section { margin-top: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: var(--stroke) solid var(--ink); padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* 品牌概念：BIKE + HOME + WORKSHOP + GLASSES */
.concept { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: var(--stroke) solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.concept-item { padding: 34px 28px 32px; position: relative; }
.concept-item + .concept-item { border-left: var(--stroke) solid var(--ink); }
.concept-item + .concept-item::before {
  content: "+"; position: absolute; left: -13px; top: 58px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: var(--stroke) solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1;
}
.concept-item .ico { width: 88px; height: 64px; margin-bottom: 22px; color: var(--ink); }
.concept-item .ico svg { width: 100%; height: 100%; }
.concept-item h3 { font-size: 13px; letter-spacing: .3em; font-weight: 700; }
.concept-item h4 { font-size: 22px; margin: 6px 0 10px; }
.concept-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- 商品卡 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.card .img { position: relative; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .5s ease; }
.card:hover .img img { transform: scale(1.04); }
.card .img .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; background: #fff; }
.card:hover .img .alt { opacity: 1; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .brand { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.card .name { font-weight: 600; font-size: 16px; line-height: 1.35; }
.card .en { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 12px; }
.price { font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.price-ref { color: var(--muted); text-decoration: line-through; font-size: 14px; }

/* 吊牌造型標籤（取自品牌吊牌貼紙） */
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 16px 0 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  background: var(--ink); color: var(--paper);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  border-radius: 4px 0 0 4px;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--paper); opacity: .9; }
.tag.pre { background: var(--glow-soft); color: var(--glow-deep); }
.tag.pre::before { background: var(--glow-deep); }
.tag.static { position: static; }
.chip-flag { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .14em; padding: 4px 8px; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); }

/* ---------- 代購流程 ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps::before { /* 路線虛線 */
  content: ""; position: absolute; left: 6%; right: 6%; top: 31px; border-top: 2px dashed var(--ink); opacity: .35;
}
.step { position: relative; text-align: left; }
.step .num {
  width: 64px; height: 64px; border-radius: 50%; border: var(--stroke) solid var(--ink); background: var(--paper);
  display: grid; place-items: center; font-weight: 700; font-size: 18px; letter-spacing: .05em; margin-bottom: 20px; position: relative;
}
.step:last-child .num { background: var(--ink); color: var(--paper); }
.step h4 { font-size: 19px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- 委託代購橫幅 ---------- */
.request-band {
  position: relative; overflow: hidden; color: var(--paper); background: var(--ink); border-radius: 22px; padding: 56px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.request-band::after { /* 鐵捲門橫紋 */
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38%;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.request-band h2 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 12px; }
.request-band p { color: rgba(255, 255, 255, .7); margin: 0; }
.request-form { position: relative; z-index: 1; display: flex; gap: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px; }
.request-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--paper); padding: 0 18px; }
.request-form input::placeholder { color: rgba(255, 255, 255, .45); }

/* ---------- 頁尾 ---------- */
.site-footer { margin-top: 96px; background: var(--ink); color: rgba(255, 255, 255, .72); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-badge { width: 150px; color: var(--paper); }
.footer-badge svg { width: 100%; height: auto; }
.site-footer h5 { color: var(--paper); font-size: 12px; letter-spacing: .3em; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a:hover { color: var(--paper); }
.footer-rule { display: flex; align-items: center; gap: 16px; margin-top: 56px; font-size: 12px; letter-spacing: .32em; color: rgba(255, 255, 255, .5); }
.footer-rule::before { content: "CYCLE REFUGE"; }
.footer-rule span { flex: 1; height: 1px; background: rgba(255, 255, 255, .3); }

/* ---------- 選物列表 ---------- */
.page-head { padding: 56px 0 28px; border-bottom: var(--stroke) solid var(--ink); margin-bottom: 32px; }
.page-head .h-section { margin-top: 8px; }
.page-head p { color: var(--ink-soft); margin: 10px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip small { font-weight: 600; opacity: .55; }
.filters .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.search-inline { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; height: 40px; background: var(--card); }
.search-inline input { border: 0; outline: 0; background: transparent; width: 180px; }
.search-inline svg { width: 18px; height: 18px; color: var(--muted); }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty svg { width: 120px; margin: 0 auto 20px; color: var(--line); }

/* ---------- 商品頁 ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 24px 0; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.gallery { position: sticky; top: 96px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery .thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; aspect-ratio: 1; cursor: pointer; overflow: hidden; }
.gallery .thumbs button.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.gallery .main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 36px; }
.pdp-info .brand { font-size: 12px; letter-spacing: .3em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.pdp-info h1 { font-size: clamp(26px, 3vw, 34px); margin: 10px 0 6px; }
.pdp-info .en { color: var(--muted); margin: 0 0 22px; }
.price-block { display: flex; align-items: baseline; gap: 14px; padding: 20px 0; border-block: 1px solid var(--line); }
.price-block .price { font-size: 32px; }
.price-block .save { font-size: 13px; font-weight: 700; color: var(--glow-deep); background: var(--glow-soft); padding: 3px 9px; border-radius: 999px; }
.opt-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; margin: 24px 0 10px; display: flex; justify-content: space-between; }
.opt-label span { color: var(--muted); font-weight: 600; letter-spacing: 0; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: inline-grid; place-items: center; min-width: 56px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; background: var(--card); transition: all .15s; }
.sizes input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.sizes input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 48px; background: var(--card); }
.qty button { width: 44px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 20px; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; outline: 0; font-weight: 700; }
.buy-row { display: flex; gap: 10px; margin-top: 26px; }
.buy-row .btn { flex: 1; }
.facts { margin: 28px 0 0; padding: 0; list-style: none; border: var(--stroke) solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.facts li { display: grid; grid-template-columns: 44px 120px 1fr; align-items: center; padding: 14px 18px; gap: 6px; font-size: 15px; }
.facts li + li { border-top: 1px dashed var(--line); }
.facts svg { width: 26px; height: 26px; }
.facts .k { color: var(--muted); font-weight: 600; font-size: 14px; }
.desc { margin-top: 32px; color: var(--ink-soft); }
.desc h3 { font-size: 13px; letter-spacing: .3em; color: var(--ink); margin-bottom: 12px; }
.desc p { margin: 0 0 12px; }
.note-box { margin-top: 26px; padding: 20px 22px; background: var(--linen); border-radius: var(--radius); font-size: 14px; color: var(--ink-soft); display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.note-box svg { width: 34px; height: 34px; color: var(--ink); }
.note-box b { color: var(--ink); }

/* ---------- 表單、帳號、購物袋 ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: 18px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: 0; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(224, 145, 58, .25); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.alert.err { background: #f6e1da; color: var(--danger); }
.alert.ok { background: #e1ece3; color: var(--ok); }
.alert.info { background: var(--glow-soft); color: var(--glow-deep); }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.cart-line .t { font-weight: 600; }
.cart-line .meta { font-size: 13px; color: var(--muted); }
.cart-line .ctrl { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cart-line .ctrl .qty { height: 36px; }
.cart-line .ctrl .qty button { width: 34px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-row.total { border-top: var(--stroke) solid var(--ink); margin-top: 8px; padding-top: 16px; font-size: 20px; font-weight: 700; }

.login-card { max-width: 460px; margin: 56px auto; text-align: center; padding: 44px 40px; }
.login-card .mark { width: 120px; margin: 0 auto 18px; color: var(--ink); }
.login-card .mark svg { width: 100%; height: auto; }
.login-card h1 { font-size: 26px; margin-bottom: 8px; }
.login-card p { color: var(--ink-soft); margin: 0 0 26px; }
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 50px; border-radius: 999px;
  border: 1px solid #dadce0; background: #fff; font-weight: 600; color: #3c4043; cursor: pointer; transition: box-shadow .2s;
}
.gbtn:hover { box-shadow: 0 2px 8px rgba(60, 64, 67, .2); }
.gbtn svg { width: 20px; height: 20px; }
.demo-google { text-align: left; margin-top: 18px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; display: none; }
.demo-google.open { display: block; }
.demo-google .field { margin-bottom: 12px; }
.perks { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); text-align: left; display: grid; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--linen); }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.s-new { background: var(--glow-soft); color: var(--glow-deep); }
.status-pill.s-done { background: #e1ece3; color: var(--ok); }
.status-pill.s-cancel { background: #eee; color: #888; }
.order-list { list-style: none; margin: 0; padding: 0; }
.order-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.order-list .no { font-weight: 700; letter-spacing: .04em; }
.order-list small { color: var(--muted); }

.thanks { text-align: center; padding: 40px 0 16px; }
.thanks .mark { width: 140px; margin: 0 auto 18px; }
.thanks .mark svg { width: 100%; height: auto; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 16px; position: relative; color: var(--muted); font-size: 14px; }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: var(--stroke) solid var(--line); background: var(--card); margin-top: 5px; margin-left: 6px; z-index: 1; }
.timeline li::after { content: ""; position: absolute; left: 12px; top: 18px; bottom: 0; border-left: 1px dashed var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline li.now::before { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 0 4px var(--glow-soft); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 999px; font-weight: 600; display: flex; gap: 14px; align-items: center; z-index: 100; opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, visibility .35s; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast a { color: var(--glow); text-decoration: underline; }

/* ---------- 響應式 ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .concept { grid-template-columns: repeat(2, 1fr); }
  .concept-item:nth-child(3) { border-left: 0; }
  .concept-item:nth-child(n+3) { border-top: var(--stroke) solid var(--ink); }
  .concept-item:nth-child(3)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: var(--paper); border-bottom: var(--stroke) solid var(--ink); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .menu-toggle { display: grid; }
  .logo-h .zh { display: none; }
  .logo-h svg { height: 34px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; }
  .storefront { max-width: 380px; width: 100%; margin: 0 auto; order: -1; }
  .hero-meta { margin-top: 32px; gap: 20px; }
  .grid, .grid.three { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .body { padding: 12px 12px 14px; }
  .card .name { font-size: 15px; }
  .card .img img { padding: 12px; }
  .tag { top: 10px; left: 10px; font-size: 11px; height: 24px; }
  .chip-flag { display: none; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { left: 31px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 2px dashed var(--ink); }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
  .step .num { margin: 0; }
  .request-band { grid-template-columns: 1fr; padding: 36px 22px; }
  .request-form { flex-direction: column; border-radius: 18px; }
  .request-form input { height: 46px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .concept { grid-template-columns: 1fr; }
  .concept-item + .concept-item { border-left: 0; border-top: var(--stroke) solid var(--ink); }
  .concept-item + .concept-item::before { display: flex; left: 28px; top: -13px; }
  .concept-item:nth-child(3)::before { display: grid; }
  .pdp, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery .thumbs button { width: 64px; flex: none; }
  .form-grid { grid-template-columns: 1fr; }
  .search-inline { margin-left: 0; width: 100%; }
  .search-inline input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 20px; margin: 24px auto; }
  .facts li { grid-template-columns: 36px 96px 1fr; padding: 12px 14px; }
}

/* ===================== v2：更有趣的全站細節 ===================== */
/* 頂部公告跑馬燈 */
.announce { background: var(--glow); color: #241307; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: .08em; border-bottom: var(--stroke) solid var(--ink); }
.announce-track { display: inline-flex; gap: 22px; padding: 7px 0; animation: tick 46s linear infinite; }

/* 按鈕：墨線外框＋錯位硬陰影，像貼紙 */
.btn { box-shadow: 3px 3px 0 var(--ink); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.glow { border-color: var(--ink); }
.btn.outline-light, .btn.light { box-shadow: 3px 3px 0 rgba(255, 255, 255, .35); }
.btn.outline-light:hover { box-shadow: 5px 5px 0 var(--glow); }

/* 商品卡：粗墨框、硬陰影、滑過時微微傾斜 */
.card { border: var(--stroke) solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
.card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--ink); }
.card .img { border-bottom: var(--stroke) solid var(--ink); }
.chip { border: var(--stroke) solid var(--ink); }
.chip.on { box-shadow: 2px 2px 0 var(--glow); }
.panel { border: var(--stroke) solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
.gallery .main { border: var(--stroke) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); border-radius: 18px; }
.page-head { border-bottom: 0; position: relative; padding-bottom: 36px; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 18px, transparent 18px 26px); opacity: .9; border-radius: 2px; }
.page-head .h-section { font-size: clamp(32px, 5vw, 56px); }

/* 共用：章節編號 */
.ch-no { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--glow); }
.ch-no::before { content: ""; width: 26px; height: var(--stroke); background: currentColor; }
.ch-no.dark { color: var(--glow-deep); }

/* ===================== 多語系 ===================== */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; width: auto; padding: 0 10px; gap: 6px; display: inline-flex; border-radius: 999px; font-size: 13px; font-weight: 700; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 19px; height: 19px; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 168px; background: var(--card); color: var(--ink); border: var(--stroke) solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.lang-menu li a { display: block; padding: 9px 12px; border-radius: 9px; font-weight: 600; font-size: 15px; }
.lang-menu li a:hover { background: var(--linen); }
.lang-menu li a.on { background: var(--ink); color: var(--paper); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 40px; font-size: 14px; }
.footer-langs a { color: rgba(255, 255, 255, .6); }
.footer-langs a:hover, .footer-langs a.on { color: var(--paper); }
.footer-langs a.on { text-decoration: underline; text-underline-offset: 4px; }
.footer-langs span { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, .45); }
@media (max-width: 820px) { .lang-menu summary span:not(.avatar-dot) { display: none; } .lang-menu summary { width: 42px; padding: 0; justify-content: center; } .footer-langs span { margin-left: 0; width: 100%; } }
/* 泰文的上下標記號不能加字距 */
.lang-th h1, .lang-th h2, .lang-th h3, .lang-th .nav a, .lang-th .chip, .lang-th .btn { letter-spacing: 0; }

/* 店到店門市選擇（簡易版） */
.cvs-box { border: var(--stroke) dashed var(--ink); border-radius: 14px; padding: 16px 18px; background: var(--linen); }
.cvs-box[hidden], .field[hidden] { display: none; }
.cvs-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cvs-hint { margin: 0; font-size: 14px; color: var(--ink-soft); flex: 1 1 260px; }
.cvs-find[hidden] { display: none; }
.cvs-last { margin: -4px 0 12px; font-size: 13px; color: var(--glow-deep); font-weight: 600; }
.cvs-box .form-grid { gap: 12px; }

/* 結帳：寄件資訊卡 */
.stack-col { display: grid; gap: 18px; align-content: start; }
.ship-card dl { display: grid; grid-template-columns: 76px 1fr; gap: 12px 12px; margin: 0; font-size: 14px; }
.ship-card dt { color: var(--muted); font-weight: 700; font-size: 13px; padding-top: 1px; }
.ship-card dd { margin: 0; line-height: 1.55; word-break: break-word; }
.ship-card dd span { color: var(--ink-soft); }
.ship-card .muted { color: var(--muted); }
#checkoutForm .hint:empty { display: none; }

/* 結帳：取貨與付款方式卡片（未開放的顯示但不能選） */
.choice-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-set legend { font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 8px; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: var(--stroke) solid var(--ink); background: #fff; box-shadow: inset 0 0 0 3px #fff; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--card); }
.choice:has(input:checked)::before { background: var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--glow); outline-offset: 2px; }
.choice-body { display: grid; gap: 2px; min-width: 0; }
.choice-body b { font-size: 15px; }
.choice-body small { font-size: 12px; color: var(--ink-soft); line-height: 1.45; }
.choice.off { cursor: not-allowed; background: var(--paper); color: var(--muted); border-style: dashed; }
.choice.off::before { border-color: var(--line); background: transparent; box-shadow: none; }
.choice.off b { color: var(--muted); font-weight: 600; }
.choice .soon { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--linen-2); color: var(--ink-soft); }
.cvs-find-wrap { display: grid; justify-items: end; gap: 6px; max-width: 320px; }
.cvs-map-note { font-size: 12px; color: var(--ink-soft); line-height: 1.5; text-align: right; }
@media (max-width: 820px) { .cvs-find-wrap { justify-items: start; max-width: none; } .cvs-map-note { text-align: left; } }

/* 現貨售完改代購 */
.sold-note { margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--glow-soft); color: var(--glow-deep); font-size: 14px; font-weight: 600; }
.cart-line .meta.lack { color: var(--danger); font-weight: 600; }
.cart-line .meta.lack .link-btn { color: var(--glow-deep); font-weight: 700; margin-left: 6px; }
.btn.disabled { opacity: .45; pointer-events: none; }

/* Powered by KiWEDOGO（深色頁尾用白線版標誌） */
.footer-rule { flex-wrap: wrap; }
.powered { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .55); text-decoration: none; letter-spacing: .2em; opacity: .85; transition: opacity .2s; }
.powered small { font-size: 10px; text-transform: uppercase; }
.powered img { display: block; height: auto; }
.powered:hover, .powered:focus-visible { opacity: 1; color: var(--paper); }

/* 代購委託報價卡 */
.quote-card { margin-top: 18px; padding: 20px 22px; border: var(--stroke) solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: 4px 4px 0 var(--glow); }
.quote-card .eyebrow { display: block; margin-bottom: 8px; }
.quote-amount { font-size: 34px; font-weight: 900; letter-spacing: .01em; margin-bottom: 10px; }
.quote-row { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.quote-row span { color: var(--muted); }
.quote-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.quote-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.quote-hint.ok { color: var(--ok); font-weight: 700; }
.status-pill { white-space: nowrap; }

/* 會員選單（點大頭貼展開） */
.acct-menu summary { padding: 0; width: 42px; justify-content: center; }
.acct-menu ul { min-width: 230px; }
.acct-menu li a { display: flex; align-items: center; gap: 10px; }
.acct-menu li a svg { width: 18px; height: 18px; flex: none; }
.acct-who { padding: 10px 12px 12px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; display: grid; gap: 2px; }
.acct-who b { font-size: 15px; }
.acct-who small { font-size: 12px; color: var(--muted); word-break: break-all; }
.acct-sep { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 4px; }
#orders, #profile { scroll-margin-top: 96px; }

.req-brand { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.req-brand a { color: var(--glow-deep); font-weight: 700; }
.ext-link { color: var(--glow-deep); word-break: break-all; }

/* 手機版點擊目標：搜尋框整塊可點、購物袋數量鈕與「移除」夠大且不斷行 */
.search-inline input { height: 100%; }
.link-btn { white-space: nowrap; }
@media (max-width: 820px) {
  .cart-line { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; }
  .cart-line img { width: 76px; height: 76px; }
  .cart-line .ctrl { flex-wrap: wrap; gap: 10px; }
  .cart-line .ctrl .qty { height: 42px; }
  .cart-line .ctrl .qty button { width: 42px; }
  .cart-line .link-btn { min-height: 40px; padding: 0 4px; }
}

/* 窄手機（360px 以下的 Android 等）：頁首五個圖示放得下 */
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .header-tools { gap: 2px; }
  .header-tools .icon-btn, .acct-menu summary, .lang-menu summary { width: 38px; height: 38px; }
}
@media (max-width: 350px) {
  .header-tools .search-btn { display: none; } /* 搜尋在「全部選物」頁的搜尋框 */
}

/* 手機：語言與會員選單都對齊頁首右側邊界展開，窄螢幕也不會超出畫面左緣 */
@media (max-width: 820px) {
  .header-tools { position: relative; }
  .header-tools .lang-menu { position: static; }
  .header-tools .lang-menu ul { right: 0; max-width: calc(100vw - 40px); }
}
