/*
 * ONYX SELECT — 選品店（V 2026-09-14 定黑底紫光；2026-09-17 改成白底）
 * 白底＋深色字＋一點紫。S3ctor 也是白底，所以跟它分開靠的是：一律圓角、大小寫混排的襯線標題、
 * 不出現任何比賽數據、強調色是紫不是紅、底色是帶一點暖的紙白不是純白。
 * 顏色一律用下面的變數；不要在規則裡寫死顏色（黑底改白底那次，寫死的 60 處要一處一處找）。
 * 字體＝V 2026-09-14 選的 04「賽車海報」：DM Serif Display＋思源宋體（大標題 900、小標題 700）＋Manrope。
 *   粗字塞太多會變吵：900 只給大標題，新加的小標題一律 700。
 * 紫色是場地的光，不是標記——只用在光暈、焦點與極少數強調，不要拿去塗按鈕。
 * 網站的「結構」要跟 S3ctor 一樣完整（V：要點進去、要分類），「長相」不准像。
 */
:root {
  --bg: #fbfaf8;
  --ink: #141217;
  --ink2: #4b4756;
  --card: #ffffff;
  --soft: #f0eef2;
  --mute: #8b8794;
  --line: rgba(20, 18, 23, .08);
  --line2: rgba(20, 18, 23, .15);
  --hoverline: rgba(20, 18, 23, .32);
  --panel: #ffffff;
  --glass: rgba(251, 250, 248, .84);
  --scrim: rgba(20, 18, 23, .28);
  --shadow: rgba(20, 18, 23, .16);
  --violet: #7c3aed;
  --violet-hi: #6d28d9;
  --glow: rgba(124, 58, 237, .16);
  --bad: #d33b3b;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --r: 18px;
  --pad: clamp(18px, 4vw, 44px);
  --max: 1320px;
  --hd: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "DM Serif Display", "Noto Serif TC", "Songti TC", serif;
  --serif-tc: "Noto Serif TC", "DM Serif Display", "Songti TC", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.7 "Manrope", "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: var(--violet); color: #fff; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ─── 公告列：三句話輪流淡入 ─── */
.topbar { position: relative; height: 34px; overflow: hidden; background: var(--ink); }
.topbar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .84); opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.topbar span.is-on { opacity: 1; transform: none; }

/* ─── 頁首 ─── */
.hd { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); border-bottom: 1px solid var(--line); }
.hd__in { max-width: var(--max); margin: 0 auto; height: var(--hd); padding: 0 var(--pad); display: flex; align-items: center; gap: 24px; }
.hd__mark { text-decoration: none; display: flex; align-items: baseline; gap: .4em; flex: none; }
.hd__mark b { font: 400 27px/1 var(--serif); letter-spacing: .01em; }
.hd__mark span { font-size: 10px; letter-spacing: .24em; color: var(--mute); }
.nav { display: none; align-items: center; gap: 2px; margin: 0 auto; }
.nav [data-nav-kinds] { display: contents; }
@media (min-width: 960px) { .nav { display: flex; } }
.nav__a { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; padding: 9px 14px; border-radius: 999px; color: var(--ink2); transition: color .3s, background .3s; }
.nav__a svg { width: 10px; height: 6px; stroke-width: 1.5; transition: transform .4s var(--ease); }
.nav__a:hover, .nav__a.is-on { color: var(--ink); }
.nav__a.is-on::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px 2px var(--glow); }
.nav__drop { position: relative; }
.nav__drop:hover .nav__a svg, .nav__drop:focus-within .nav__a svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; width: min(720px, 80vw); padding: 18px; border-radius: 22px;
  background: var(--panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line2);
  box-shadow: 0 30px 80px -20px var(--shadow), 0 0 60px -30px var(--glow);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__drop:hover .mega, .nav__drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mega__d { display: flex; flex-direction: column; gap: 8px; text-decoration: none; padding: 8px; border-radius: 14px; transition: background .3s; }
.mega__d:hover { background: var(--soft); }
.mega__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); }
.mega__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transform-origin: var(--o, 50% 50%); }
.mega__d b { display: block; font: 400 17px/1.2 var(--serif); }
.mega__d small { font-size: 11px; color: var(--mute); }
.mega__all { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; padding: 12px 8px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.mega__all a { text-decoration: none; color: var(--ink2); }
.mega__all a:hover { color: var(--ink); }
.mega__more { margin-left: auto; color: var(--violet-hi) !important; }

.hd__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
@media (min-width: 960px) { .hd__tools { margin-left: 0; } }
.icon { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink); transition: background .3s; }
.icon:hover { background: var(--soft); }
.icon svg { width: 21px; height: 21px; }
.icon--cart i {
  position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; font-style: normal;
  display: grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--soft); color: var(--mute); transition: background .3s, color .3s, box-shadow .3s;
}
.icon--cart.has i { background: var(--violet); color: #fff; box-shadow: 0 0 14px var(--glow); }
.icon--menu span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 1px; background: currentColor; transition: transform .45s var(--ease); }
.icon--menu span:first-child { transform: translateY(-4px); }
.icon--menu span:last-child { transform: translateY(4px); }
.hd.menu-open .icon--menu span:first-child { transform: rotate(45deg); }
.hd.menu-open .icon--menu span:last-child { transform: rotate(-45deg); }
@media (min-width: 960px) { .icon--menu { display: none; } }
.demo { background: #fff4d6; color: #7a5b00; font-size: 12px; text-align: center; padding: 6px var(--pad); }

main { min-height: 70vh; }
.eyebrow { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; color: var(--mute); }

/* 換頁 */
/* 換頁只動透明度，不准動 transform／filter：那兩個會讓 #app 變成定位基準，
   裡面 position:fixed 的篩選面板與手機加入購物車列就會跑到整頁最底下（2026-09-14 踩過） */
#app { transition: opacity .16s ease; }
#app.pg-out { opacity: 0; }
#app.pg-in { animation: pgIn .5s ease both; }
@keyframes pgIn { from { opacity: 0; } }

/* 麵包屑 */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 18px; font-size: 12px; color: var(--mute); }
.crumbs a, .crumbs span { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs > * + *::before { content: "/"; margin: 0 9px; color: #c9c5d0; }
.crumbs span { color: var(--ink2); max-width: 22em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs--pd { max-width: 1180px; margin: 22px auto 0; padding: 0 var(--pad); }

/* ─── 首頁：入口 ─── */
.land {
  position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--pad) clamp(40px, 6vw, 72px);
  display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; min-height: calc(100svh - var(--hd) - 34px);
}
@media (min-width: 900px) { .land { grid-template-columns: 1.05fr 1fr; } }
@media (max-width: 899px) { .land .case { order: -1; } }
.land__text { position: relative; z-index: 1; }
.hero__word { margin: 0 0 20px; font: 400 15px/1 var(--serif); letter-spacing: .02em; color: var(--ink2); display: flex; align-items: center; gap: 10px; }
.hero__word::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 14px 2px var(--glow); }
.hero__title { margin: 0; font: 900 clamp(34px, 6.2vw, 72px)/1.22 var(--serif-tc); letter-spacing: .01em; }
.hero__title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--violet-hi); }
.hero__sub { margin: 20px 0 0; max-width: 30em; color: var(--ink2); font-size: 15px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 500; border: 1px solid transparent; cursor: pointer; background: none;
  transition: background .3s, border-color .3s, box-shadow .5s var(--ease);
}
.pill--light { background: var(--ink); color: var(--bg); }
.pill--light:hover { box-shadow: 0 0 0 6px rgba(20, 18, 23, .05), 0 10px 40px var(--glow); }
.pill--ghost { border-color: var(--line2); color: var(--ink); }
.pill--ghost:hover { border-color: var(--hoverline); }
.pill span { transition: transform .5s var(--ease); }
.pill:hover span { transform: translateX(3px); }

/* 展示櫃：一件收藏品，被一盞紫光照著 */
.case {
  position: relative; display: block; text-decoration: none; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #efe8fb 0%, #f8f6fb 55%, #ffffff 100%);
  border: 1px solid var(--line); isolation: isolate;
}
.case__beam { position: absolute; inset: -20% 10% 30%; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 50% 40%, var(--glow), transparent 70%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; }
/* 上緣 0–18% 是車手名與副標、下緣 94% 以後是免責聲明：用上下漸層藏掉，黑底靠「變亮」疊色消失 */
.case__img {
  position: absolute; left: 5%; top: -8%; width: 90%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  mix-blend-mode: normal; transform-origin: 50% 60%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 19%, #000 31%, #000 86%, transparent 93%);
  mask-image: linear-gradient(to bottom, transparent 19%, #000 31%, #000 86%, transparent 93%);
  transition: transform 1.4s var(--ease);
}
.case:hover .case__img { transform: scale(1.04); }
.case__floor { position: absolute; left: 20%; right: 20%; bottom: 25%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 58, 237, .3), transparent); filter: blur(6px); }
.case__label { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.case__label b { display: block; font: 400 24px/1.1 var(--serif); }
.case__label small { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; }
.case__label i { font-style: normal; font-size: 13px; color: var(--ink2); white-space: nowrap; }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
/* 展示櫃放衣服（2026-09-16 起首頁主打衣服）：衣服照是一般商品照（常常白底），不能用鑰匙圈那套「變亮疊色＋上下遮罩」，
   整張照片填滿、底部加一層暗色讓標題讀得到 */
.case--photo .case__img { left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; transform-origin: 50% 50%; }
.case--photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, transparent, rgba(9, 8, 12, .88)); pointer-events: none; }
.case--photo .case__label { z-index: 2; }
.case--photo .case__beam { display: none; }

/* 區塊 */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--pad); }
.sec__hd { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.sec__hd h2 { margin: 0; font: 900 clamp(21px, 3vw, 30px)/1.3 var(--serif-tc); }
.sec__hd h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--mute); margin-left: .35em; font-size: .8em; }
.sec__more { text-decoration: none; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.sec__more:hover { color: var(--ink); }

/* 逛種類：大卡 */
.kinds { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .kinds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .kinds { grid-template-columns: repeat(4, 1fr); } }
.kind {
  position: relative; display: flex; flex-direction: column; min-height: 210px; padding: 20px; text-decoration: none;
  border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); isolation: isolate;
  transition: border-color .4s, box-shadow .6s var(--ease);
}
@media (min-width: 1080px) { .kind { min-height: 300px; } }
.kind:hover { border-color: rgba(124, 58, 237, .28); box-shadow: 0 20px 60px -30px var(--glow); }
.kind img { position: absolute; right: -10%; bottom: -12%; width: 78%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; z-index: -1; opacity: .6;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); transition: opacity .6s, transform 1.2s var(--ease); }
.kind:hover img { opacity: .95; transform: scale(1.06); }
.kind__no { font: italic 400 15px/1 var(--serif); color: var(--mute); }
.kind__txt { margin-top: auto; max-width: 70%; }
.kind__txt b { display: block; font: 900 22px/1.3 var(--serif-tc); }
.kind__txt small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--mute); }
.kind__go { margin-top: 14px; font-size: 13px; color: var(--ink2); }

/* 依車手逛 */
.drivers {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 42%); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 8px;
}
.drivers::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .drivers { grid-auto-columns: minmax(170px, 23%); } }
@media (min-width: 1080px) { .drivers { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; } .drivers .driver { aspect-ratio: 5 / 4; } }
.driver { position: relative; display: block; text-decoration: none; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); scroll-snap-align: start; isolation: isolate; }
.driver img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transform-origin: var(--o, 50% 50%); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9) brightness(.85); }
.driver:hover img { transform: scale(calc(var(--z, 1) * 1.06)); filter: saturate(1) brightness(1); }
.driver::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(9, 8, 12, .92) 100%); z-index: 1; }
.driver__name { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.driver__name b { display: block; font: 400 21px/1.1 var(--serif); }
.driver__name small { font-size: 12px; color: var(--mute); }

/* 掃光：滑過時一道紫光慢慢掃過 */
.sweep { position: relative; }
.sweep::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(124, 58, 237, .2) 50%, transparent 65%);
  background-size: 260% 100%; background-position: 130% 0; opacity: 0;
}
.sweep:hover::before { opacity: 1; background-position: -130% 0; transition: background-position 1.3s var(--ease), opacity .2s; }

/* 橫向商品列 */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 6px;
}
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
@media (min-width: 720px) { .rail { grid-auto-columns: minmax(180px, 30%); } }
@media (min-width: 1080px) { .rail { grid-auto-columns: calc((100% - 14px * 4) / 5); margin: 0; padding: 0 0 6px; } }

/* 三個承諾 */
.sec__note { margin: -8px 0 18px; font-size: 13px; color: var(--mute); }
/* 首頁區塊裡的商品格：.sec 已經有左右留白，格子本身不要再留一次 */
.grid--in { padding: 0; }

/* 加購小物：購物車抽屜與購物車頁，有衣服才出現 */
.addon { margin: 18px 0 8px; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.addon__hd { margin: 0 0 12px; font-size: 14px; font-weight: 500; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.addon__hd small { font-size: 12px; font-weight: 400; color: var(--mute); }
.addon__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 132px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.addon__row::-webkit-scrollbar { display: none; }
.addon__item { display: flex; flex-direction: column; gap: 4px; min-width: 0; scroll-snap-align: start; }
.addon__img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.addon__img img { width: 100%; height: 100%; object-fit: cover; }
.addon__name { font-size: 12px; line-height: 1.45; text-decoration: none; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.addon__price { font-size: 13px; }
.addon__btn { margin-top: 2px; display: inline-flex; justify-content: center; align-items: center; height: 32px; border-radius: 999px; border: 1px solid var(--line2); background: none; color: var(--ink); font-size: 12px; text-decoration: none; cursor: pointer; }
.addon__btn:hover { border-color: var(--violet-hi); color: var(--violet-hi); }

.promises { display: grid; gap: 12px; }
@media (min-width: 900px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise { display: block; text-decoration: none; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(20, 18, 23, .015), transparent); transition: border-color .3s; }
.promise:hover { border-color: var(--line2); }
.promise b { display: block; font: 700 16px/1.4 var(--serif-tc); margin-bottom: 6px; }
.promise p { margin: 0; font-size: 13px; color: var(--mute); line-height: 1.8; }

/* ─── 分類頁 ─── */
.coll { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(24px, 5vw, 48px) var(--pad) clamp(18px, 3vw, 28px); overflow: hidden; }
.coll h1 { margin: 0; font: 900 clamp(32px, 5.4vw, 60px)/1.15 var(--serif-tc); }
.coll--face h1, .coll--face .coll__line { position: relative; z-index: 1; }
.coll h1:lang(zh-Hant-TW) { letter-spacing: .01em; }
.coll__line { margin: 12px 0 0; color: var(--ink2); font-size: 14px; max-width: 34em; }
.coll__face { position: absolute; right: var(--pad); top: 0; bottom: 0; width: min(46%, 420px); pointer-events: none; opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.coll__face img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); transform-origin: var(--o, 50% 50%); mix-blend-mode: normal; }

.tabs { display: flex; gap: 6px; overflow-x: auto; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); transition: border-color .3s, background .3s, color .3s; }
.tab small { font-size: 11px; color: var(--mute); }
.tab:hover { color: var(--ink); border-color: var(--hoverline); }
.tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tab.is-on small { color: rgba(255, 255, 255, .62); }

.bar { position: sticky; top: var(--hd); z-index: 20; max-width: var(--max); margin: 0 auto 18px; padding: 10px var(--pad); display: flex; align-items: center; gap: 12px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bar__btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: none; cursor: pointer; font-size: 13px; }
.bar__btn:hover { border-color: var(--hoverline); }
.bar__btn i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--violet); color: #fff; font-size: 11px; display: grid; place-items: center; }
.bar__n { font-size: 13px; color: var(--mute); }
.bar__view { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.bar__view button { width: 32px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 999px; color: var(--mute); cursor: pointer; }
.bar__view button svg { width: 15px; height: 15px; }
.bar__view button.is-on { background: var(--soft); color: var(--ink); }
.actives { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--max); margin: -4px auto 18px; padding: 0 var(--pad); }
.actives a { text-decoration: none; font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink2); }
.actives a:hover { color: var(--ink); }
.actives .actives__clear { background: none; color: var(--mute); text-decoration: underline; }

.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 34px) clamp(10px, 2vw, 22px);
  padding: 0 var(--pad) 88px; max-width: var(--max); margin: 0 auto;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid--big { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid--big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { text-decoration: none; display: block; min-width: 0; }
.card__img { position: relative; aspect-ratio: 1 / 1; background: var(--card); overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); transition: border-color .4s, box-shadow .6s var(--ease); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s var(--ease); }
.card__img .card__alt { opacity: 0; }
@media (hover: hover) { .card:hover .card__alt { opacity: 1; } }
.card:hover .card__img { border-color: rgba(124, 58, 237, .28); box-shadow: 0 18px 50px -20px var(--glow); }
.card:hover .card__img img { transform: scale(1.04); }
.card__meta { margin-top: 12px; font-size: 11px; letter-spacing: .04em; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__name { margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { margin-top: 4px; font-size: 14px; color: var(--ink2); }
.tag { position: absolute; left: 10px; top: 10px; z-index: 4; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink2); font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); }
.tag--hot { color: var(--violet-hi); border-color: rgba(124, 58, 237, .4); }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 20px var(--serif); color: var(--mute); }
.empty { grid-column: 1 / -1; padding: 48px 0; color: var(--mute); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.empty p { margin: 0; }

/* 篩選面板（手機從下面、桌機從右邊） */
.sheet, .drawer, .menu, .search { position: fixed; inset: 0; z-index: 60; }
.sheet__bg, .drawer__bg, .menu__bg, .search__bg { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.is-open > .sheet__bg, .is-open > .drawer__bg, .is-open > .menu__bg, .is-open > .search__bg { opacity: 1; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86svh; display: flex; flex-direction: column;
  background: var(--panel); border-radius: 24px 24px 0 0; border: 1px solid var(--line2); border-bottom: 0;
  transform: translateY(100%); transition: transform .45s var(--ease);
}
@media (min-width: 720px) { .sheet__panel { left: auto; top: 0; width: 420px; max-height: none; border-radius: 24px 0 0 24px; border: 1px solid var(--line2); border-right: 0; transform: translateX(100%); } }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__hd, .drawer__hd { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sheet__hd b, .drawer__hd b { font: 700 18px/1.3 var(--serif-tc); }
.sheet__hd button, .drawer__hd button { border: 0; background: none; color: var(--mute); font-size: 13px; cursor: pointer; }
.sheet__body { padding: 8px 22px 22px; overflow-y: auto; }
.sheet__lab { margin: 20px 0 10px; font-size: 12px; color: var(--mute); }
.sheet__ft { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet__ft .btn { height: 48px; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--soft); border: 1px solid var(--line2); transition: background .3s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mute); transition: transform .4s var(--ease), background .3s; }
.switch input:checked + i { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 16px -2px var(--glow); }
.switch input:checked + i::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--violet-hi); outline-offset: 2px; }

/* 購物車抽屜 */
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line2); transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.drawer__pad { padding: 22px; }
.drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--mute); }
.drawer__lines { flex: 1; overflow-y: auto; padding: 4px 22px; }
.drawer__ft { padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__ft .sum { margin: 0 0 14px; }
.drawer__link { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--mute); }
.freebar { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.freebar p { margin: 0 0 8px; font-size: 13px; color: var(--ink2); }
.freebar i { display: block; height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.freebar b { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #7c3aed, var(--violet-hi)); box-shadow: 0 0 12px var(--glow); transition: width .8s var(--ease); }
.dl { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.dl--gone { opacity: .5; }
.dl__img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card); }
.dl__img img { width: 100%; height: 100%; object-fit: cover; }
.dl__name { display: block; font-size: 14px; line-height: 1.45; text-decoration: none; }
.dl__var { display: block; font-size: 12px; color: var(--mute); }
.dl__ctl { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.dl__rm { border: 0; background: none; padding: 0; font-size: 12px; color: var(--mute); text-decoration: underline; cursor: pointer; }
.dl__price { font-size: 14px; white-space: nowrap; }
.qty--s button { width: 32px; height: 32px; font-size: 15px; }
.qty--s output { min-width: 22px; font-size: 13px; }

/* 手機選單 */
.menu__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: rgba(255, 255, 255, .97); border-left: 1px solid var(--line2); transform: translateX(100%); transition: transform .5s var(--ease); overflow-y: auto; }
.menu.is-open .menu__panel { transform: none; }
.menu__body { padding: calc(var(--hd) + 44px) 26px calc(32px + env(safe-area-inset-bottom)); }
.menu__lab { margin: 26px 0 8px; font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.menu__lab:first-child { margin-top: 0; }
.menu__big { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; text-decoration: none; font: 900 24px/1.3 var(--serif-tc); border-bottom: 1px solid var(--line); }
.menu__big small { font: 400 12px/1 "Manrope", sans-serif; color: var(--mute); }
.menu__drivers { display: flex; flex-wrap: wrap; gap: 8px; }
.menu__drivers a { text-decoration: none; font: 400 17px/1 var(--serif); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line2); }
.menu__small { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; }
.menu__small a { text-decoration: none; color: var(--ink2); }
.menu.is-open .menu__body > * { animation: rise .6s var(--ease) both; }
.menu.is-open .menu__body > :nth-child(2) { animation-delay: .04s; } .menu.is-open .menu__body > :nth-child(3) { animation-delay: .08s; }
.menu.is-open .menu__body > :nth-child(4) { animation-delay: .12s; } .menu.is-open .menu__body > :nth-child(5) { animation-delay: .16s; }
.menu.is-open .menu__body > :nth-child(6) { animation-delay: .2s; } .menu.is-open .menu__body > :nth-child(n+7) { animation-delay: .24s; }
/* 手機選單在頁首底下（要看得到頁首那顆關閉鈕）；購物車與搜尋蓋過頁首 */
.hd { z-index: 70; }
.drawer, .search, .sheet { z-index: 75; }

/* 搜尋 */
.search__panel { position: absolute; left: 0; right: 0; top: 0; max-height: 90svh; overflow-y: auto; background: var(--panel); border-bottom: 1px solid var(--line2); border-radius: 0 0 24px 24px; padding: 14px var(--pad) 26px; transform: translateY(-100%); transition: transform .45s var(--ease); }
.search.is-open .search__panel { transform: none; }
.search__form { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line2); }
.search__form:focus-within { border-color: var(--violet-hi); box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.search__form svg { width: 20px; height: 20px; color: var(--mute); flex: none; }
.search__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__form button { border: 0; background: none; color: var(--mute); font-size: 13px; padding: 0 12px; cursor: pointer; }
.search__out { max-width: 760px; margin: 18px auto 0; }
.search__lab { margin: 0 0 10px; font-size: 12px; color: var(--mute); }
.search__hot { display: flex; flex-wrap: wrap; gap: 8px; }
.search__hot a { text-decoration: none; font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); }
.search__hits { display: grid; gap: 4px; }
@media (min-width: 720px) { .search__hits { grid-template-columns: 1fr 1fr; } }
.hit { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-decoration: none; }
.hit:hover { background: var(--soft); }
.hit__img { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--card); }
.hit__img img { width: 100%; height: 100%; object-fit: cover; }
.hit b { display: block; font-weight: 500; font-size: 14px; line-height: 1.4; }
.hit small { font-size: 12px; color: var(--mute); }
.search__all { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--violet-hi); }

/* 骨架 */
.skel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding: 48px var(--pad); max-width: var(--max); margin: 0 auto; }
@media (min-width: 720px) { .skel { grid-template-columns: repeat(4, 1fr); } }
.skel i { aspect-ratio: 1; border-radius: var(--r); background: linear-gradient(90deg, var(--card), #f5f3f7, var(--card)); background-size: 200% 100%; animation: sh 1.6s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* ─── 商品頁 ─── */
/* minmax(0, …)＋子元素 min-width:0：相簿是一整排橫向照片，不擋住的話會把欄位撐得比螢幕寬 */
.pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 16px var(--pad) 40px; max-width: 1180px; margin: 0 auto; }
.pd > *, .two > * { min-width: 0; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; } .pd__info { position: sticky; top: calc(var(--hd) + 20px); } }
.pd__main { position: relative; }
.pd__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--card); border-radius: 24px; border: 1px solid var(--line); }
.pd__track::-webkit-scrollbar { display: none; }
.pd__track figure { position: relative; flex: 0 0 100%; margin: 0; aspect-ratio: 1 / 1; scroll-snap-align: start; }
.pd__track img { width: 100%; height: 100%; object-fit: cover; }
.pd__nav { position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 22px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .3s; }
.pd__nav--l { left: 14px; } .pd__nav--r { right: 14px; }
.pd__main:hover .pd__nav { opacity: 1; }
@media (hover: none) { .pd__nav { display: none; } }
.pd__count { position: absolute; right: 14px; bottom: 14px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .82); color: var(--ink2); }
.pd__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.pd__thumbs::-webkit-scrollbar { display: none; }
.pd__thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s; }
.pd__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pd__thumbs button.is-on { opacity: 1; border-color: var(--violet-hi); }
.pd__eyebrow { display: flex; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--mute); }
.pd__eyebrow a { text-decoration: none; }
.pd__eyebrow a:first-child { font: italic 400 16px/1.3 var(--serif); color: var(--violet-hi); }
.pd__eyebrow a:hover { color: var(--ink); }
.pd__name { margin: 0; font: 900 clamp(24px, 3.2vw, 34px)/1.35 var(--serif-tc); }
.pd__sub { margin: 8px 0 0; font-size: 13px; color: var(--mute); }
.pd__priceRow { display: flex; align-items: center; gap: 12px; margin: 16px 0 24px; }
.pd__price { font-size: 22px; font-weight: 500; }
.stock { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(31, 138, 76, .1); color: var(--ok); }
.stock--low { background: rgba(124, 58, 237, .12); color: var(--violet-hi); }
.stock--out { background: var(--soft); color: var(--mute); }
.pd__label { display: flex; gap: 10px; align-items: baseline; font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.pd__label small { color: var(--ink2); font-size: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.opt { border: 1px solid var(--line2); background: var(--card); padding: 9px 16px; font-size: 13px; cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; transition: border-color .3s, box-shadow .3s; }
.opt:hover { border-color: var(--hoverline); }
.opt small { font-size: 11px; color: var(--mute); }
.opt--img { padding-left: 5px; }
.opt--img img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.opt--img:disabled img { opacity: .4; }
.opt.is-on { border-color: var(--violet-hi); box-shadow: 0 0 0 1px var(--violet-hi), 0 0 18px -4px var(--glow); }
.opt:disabled { color: var(--mute); background: transparent; text-decoration: line-through; cursor: not-allowed; }
/* 多選項（尺寸 × 顏色）：這個組合售完，還是可以點，點了會顯示已售完 */
.opt.is-out:not(.is-on) { color: var(--mute); background: transparent; text-decoration: line-through; }
/* 原價劃線 */
.card__price s, .pd__price s { margin-left: 8px; color: var(--mute); font-size: .82em; font-weight: 400; }
.pd__row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pd__left { font-size: 13px; color: var(--bad); }
.pd__buy { display: grid; gap: 10px; }
@media (min-width: 480px) { .pd__buy { grid-template-columns: 1.4fr 1fr; } }
.perks { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink2); }
.perks svg { width: 20px; height: 20px; flex: none; color: var(--violet-hi); }
.acc { margin-top: 22px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font: 700 15px/1.4 var(--serif-tc); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 300 20px/1 "Manrope", sans-serif; color: var(--mute); transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 0 18px; font-size: 14px; line-height: 1.95; color: var(--ink2); }
.acc__body a { color: var(--violet-hi); }
.buybar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line2); box-shadow: 0 16px 50px -12px var(--shadow);
}
.buybar.is-in { animation: rise .45s var(--ease) both; }
.buybar div { flex: 1; min-width: 0; }
.buybar b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar small { font-size: 12px; color: var(--mute); }
.buybar .btn { width: auto; height: 44px; padding: 0 22px; font-size: 14px; }
@media (min-width: 900px) { .buybar { display: none; } }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); background: var(--card); border-radius: 999px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 18px; cursor: pointer; border-radius: 50%; }
.qty button:disabled { color: var(--line2); cursor: default; }
.qty output { min-width: 28px; text-align: center; font-size: 14px; }
.btn {
  width: 100%; height: 54px; border: 0; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  transition: opacity .2s, box-shadow .5s var(--ease);
}
.btn:not(:disabled):hover { box-shadow: 0 0 0 6px rgba(20, 18, 23, .05), 0 12px 40px -8px var(--glow); }
.btn:disabled { opacity: .3; cursor: not-allowed; }
.btn--line { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.btn--line:not(:disabled):hover { box-shadow: none; border-color: var(--hoverline); }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── 購物車、結帳、訂單、說明頁 ─── */
.page { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) var(--pad) 96px; }
.page--wide { max-width: 1120px; }
.page h1 { margin: 0 0 26px; font: 900 clamp(26px, 3.6vw, 36px)/1.3 var(--serif-tc); }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; } .summary { position: sticky; top: calc(var(--hd) + 20px); } }
.summary { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.summary .sum { margin-top: 0; }
.summary__lab { margin: 0 0 12px; font-size: 12px; color: var(--mute); }
.mini { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 13px; }
.mini__img { position: relative; width: 52px; height: 52px; border-radius: 10px; background: var(--bg); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.mini__img i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink2); color: var(--bg); font: 600 11px/20px "Manrope", sans-serif; text-align: center; font-style: normal; }
.mini__name small { display: block; color: var(--mute); font-size: 12px; }
.summary .mini + .sum { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.flash { border-radius: 12px; border: 1px solid rgba(211, 59, 59, .3); background: rgba(211, 59, 59, .07); color: var(--bad); padding: 12px 16px; font-size: 13px; margin-bottom: 20px; }
.flash--ok { border-color: rgba(31, 138, 76, .3); background: rgba(31, 138, 76, .07); color: var(--ok); }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:first-child { padding-top: 0; }
.line__img { position: relative; aspect-ratio: 1; background: var(--card); overflow: hidden; border-radius: 14px; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-size: 15px; line-height: 1.5; text-decoration: none; display: block; }
.line__var { font-size: 12px; color: var(--mute); }
.line__ctl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.line__rm { border: 0; background: none; color: var(--mute); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
.line__price { font-size: 14px; white-space: nowrap; }
.line--gone { opacity: .5; }
.sum { margin: 24px 0; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.sum .sum__total { border-top: 1px solid var(--line2); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 600; }
.hint { font-size: 12px; color: var(--violet-hi); margin: -8px 0 16px; }

.f { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.f legend { display: block; font: 700 17px/1.4 var(--serif-tc); margin-bottom: 14px; padding: 0; }
.f label > span { display: block; font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.f label { display: block; margin-bottom: 16px; }
.in { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line2); background: var(--card); border-radius: 12px; font-size: 16px; outline: none; transition: border-color .3s, box-shadow .3s; -webkit-appearance: none; appearance: none; }
textarea.in { height: 92px; padding: 12px 16px; resize: vertical; }
select.in { background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
select.in option { background: var(--card); }
.in:focus { border-color: var(--violet-hi); box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.in.is-bad { border-color: var(--bad); }
.in::placeholder { color: #aaa6b2; }
.err { display: block; color: var(--bad); font-size: 12px; margin-top: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.stores { max-height: 280px; overflow-y: auto; border: 1px solid var(--line2); border-radius: 12px; margin-top: 8px; background: var(--card); }
.stores:empty { display: none; }
.store { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 11px 16px; cursor: pointer; }
.store:first-child { border-top: 0; }
.store:hover { background: var(--soft); }
.store b { font-weight: 500; font-size: 14px; }
.store small { display: block; color: var(--mute); font-size: 12px; }
.stores__more { padding: 10px 16px; font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); }
.picked { display: flex; justify-content: space-between; gap: 12px; align-items: start; border: 1px solid var(--violet-hi); border-radius: 12px; background: var(--card); padding: 12px 16px; }
.picked b { font-weight: 500; }
.picked small { display: block; color: var(--mute); font-size: 12px; }
.picked button { border: 0; background: none; text-decoration: underline; font-size: 12px; cursor: pointer; white-space: nowrap; }
.terms { font-size: 12px; color: var(--mute); line-height: 1.95; margin: 8px 0 18px; }

.steps { display: flex; margin: 8px 0 28px; padding: 0; gap: 6px; }
.steps li { flex: 1; list-style: none; font-size: 12px; color: var(--mute); padding-top: 12px; border-top: 2px solid var(--line2); }
.steps li.is-done { color: var(--ink); border-color: var(--violet); }
.pay { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.pay h2 { margin: 0 0 14px; font: 700 16px/1.4 var(--serif-tc); }
.kv { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--mute); font-size: 12px; }
.kv b { font-weight: 500; font-family: "Manrope", monospace; letter-spacing: .04em; word-break: break-all; }
.copy { border: 1px solid var(--line2); background: none; font-size: 12px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.report { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.report .btn { width: auto; padding: 0 22px; height: 50px; }
.muted { color: var(--mute); font-size: 13px; }
.orders a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.guide h2 { font: 700 18px/1.4 var(--serif-tc); margin: 34px 0 8px; }
.guide p, .guide li { font-size: 14px; color: var(--ink2); line-height: 1.95; }
.guide ul, .guide ol { padding-left: 1.3em; margin: 0; }
.guide a, .terms a { color: var(--violet-hi); }
.guide__more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.guide__more a { text-decoration: none; font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2) !important; }

/* ─── 頁尾 ─── */
.ft { position: relative; border-top: 1px solid var(--line); overflow: hidden; margin-top: 24px; }
.ft::before { content: ""; position: absolute; left: 50%; top: -60px; width: 640px; height: 140px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124, 58, 237, .16), transparent); pointer-events: none; }
.ft__in { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 32px; display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .ft__in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ft__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .ft__brand { grid-column: auto; } }
.ft__mark { font: 400 34px/1 var(--serif); }
.ft__mark span { font: 10px/1 "Manrope", sans-serif; letter-spacing: .24em; color: var(--mute); margin-left: .5em; }
.ft__brand p { margin: 12px 0 0; font-size: 13px; color: var(--mute); max-width: 22em; }
.ft__ig { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--violet-hi); }
.ft__col > p { margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; color: var(--mute); }
.ft__col div { display: grid; gap: 9px; }
.ft__col a { text-decoration: none; font-size: 14px; color: var(--ink2); }
.ft__col a:hover { color: var(--ink); }
.ft__fine { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ft__fine p { margin: 4px 0; font-size: 11px; color: var(--mute); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 13px; z-index: 80; white-space: nowrap; box-shadow: 0 12px 40px -10px var(--glow); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--bg); margin-left: 12px; font-weight: 600; }

/* ─── 專心結帳：結帳與訂單頁收起選單、搜尋、購物車、公告列 ─── */
.hd__secure { display: none; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--ink2); }
.hd__secure svg { width: 16px; height: 16px; color: var(--violet-hi); }
body.is-focus .nav, body.is-focus .hd__tools, body.is-focus .topbar, body.is-focus .ft__in { display: none; }
body.is-focus .hd__secure { display: inline-flex; }
body.is-focus .ft { margin-top: 0; }

/* ─── 結帳頁 ─── */
.co { max-width: 1120px; margin: 0 auto; padding: clamp(22px, 4vw, 40px) var(--pad) 96px; }
.co__hd { margin-bottom: 26px; }
.co__kicker { margin: 22px 0 4px; font: italic 400 18px/1 var(--serif); color: var(--violet-hi); }
.co__hd h1 { margin: 0; font: 900 clamp(30px, 4.6vw, 46px)/1.2 var(--serif-tc); }
.co__lead { margin: 10px 0 0; color: var(--ink2); font-size: 14px; }
.co__flash { margin-bottom: 18px; }
.flow { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--mute); }
.flow li { display: flex; align-items: center; }
.flow li + li::before { content: ""; width: clamp(18px, 5vw, 44px); height: 1px; margin: 0 10px; background: var(--line2); }
.flow li.is-done + li::before, .flow li.is-on::before { background: linear-gradient(90deg, var(--violet), var(--violet-hi)); }
.flow a, .flow span { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.flow a::before, .flow span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line2); }
.flow .is-done a { color: var(--ink2); }
.flow .is-done a::before { background: var(--violet); border-color: var(--violet); }
.flow .is-on span { color: var(--ink); }
.flow .is-on span::before { border-color: var(--violet-hi); box-shadow: 0 0 0 3px rgba(124, 58, 237, .2), 0 0 12px var(--glow); background: var(--violet-hi); }

.co__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .co__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; } .co__side { position: sticky; top: calc(var(--hd) + 20px); } }
.co__side { display: none; }
@media (min-width: 900px) { .co__side { display: block; } .peek, .co__go--m { display: none !important; } }
@media (max-width: 899px) { .co__go--d { display: none !important; } }

/* 手機：訂單內容收成一條，點開才看 */
.peek { margin: 0 0 20px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); overflow: hidden; }
.peek summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-size: 14px; }
.peek summary::-webkit-details-marker { display: none; }
.peek summary span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); }
.peek summary span::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: translateY(-2px) rotate(45deg); transition: transform .4s var(--ease); }
.peek[open] summary span::after { transform: translateY(2px) rotate(-135deg); }
.peek summary b { font-weight: 600; font-size: 16px; }
.peek .sumcard { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }

.blk { padding: 22px 0; border-top: 1px solid var(--line); }
.blk:first-child { border-top: 0; padding-top: 0; }
.blk__t { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; font: 700 19px/1.3 var(--serif-tc); }
.blk__t span { font: italic 400 16px/1 var(--serif); color: var(--violet-hi); }
.blk__t--s { font-size: 16px; margin-bottom: 8px; }
.blk__note { margin: 12px 0 0; font-size: 12px; color: var(--mute); }
.blk--policy { padding: 18px 20px; margin: 8px 0 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(20, 18, 23, .015), transparent); }
.blk--policy p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink2); }
.blk--policy a { color: var(--violet-hi); margin-left: 4px; }

.payopt { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; transition: border-color .3s, box-shadow .4s var(--ease); }
.payopt input { position: absolute; opacity: 0; pointer-events: none; }
.payopt.is-on { border-color: var(--violet-hi); box-shadow: 0 0 0 1px var(--violet-hi), 0 14px 40px -24px var(--glow); }
.payopt__dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; }
.payopt.is-on .payopt__dot { border-color: var(--violet-hi); }
.payopt.is-on .payopt__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violet-hi); box-shadow: 0 0 10px var(--glow); }
.payopt__txt b { display: block; font-weight: 600; font-size: 15px; }
.payopt__txt small { display: block; margin-top: 2px; font-size: 12px; color: var(--mute); line-height: 1.6; }
.payopt__ico svg { width: 26px; height: 26px; color: var(--ink2); }

/* 浮動標籤：沒填時標籤在框裡，一點進去就縮到框的上緣 */
.fl { position: relative; margin-bottom: 14px; }
.fl .in { height: 56px; padding: 20px 16px 6px; }
.fl label { position: absolute; left: 17px; top: 18px; font-size: 15px; color: var(--mute); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.fl .in:focus + label, .fl .in:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); }
.fl .in:focus + label { color: var(--violet-hi); }
.fl em { display: block; margin: 6px 2px 0; font-style: normal; font-size: 12px; color: var(--mute); }
.fl .in.is-bad ~ em { display: none; }
.fl .err { margin: 6px 2px 0; }
.fl--search { margin-bottom: 10px; }
.picked { align-items: center; }
.picked__pin { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--violet-hi); box-shadow: 0 0 12px var(--glow); }
.picked > div { flex: 1; }
.more summary { list-style: none; cursor: pointer; font-size: 14px; color: var(--ink2); display: inline-flex; align-items: center; gap: 8px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 14px; transition: transform .4s var(--ease); }
.more[open] summary::before { transform: rotate(45deg); }
.more textarea { margin-top: 12px; }

.sumcard { padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.sumcard__lines { display: grid; gap: 4px; max-height: 320px; overflow-y: auto; }
.sumcard .sum { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.sumcard .hint { margin: 6px 0 0; }
.sumcard__edit { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--mute); }
.mini__pr { font-size: 13px; white-space: nowrap; }
.btn--go { justify-content: space-between; padding: 0 26px; margin-top: 16px; height: 58px; }
.btn--go b { font-weight: 600; }
.btn--go.is-loading { justify-content: center; }
.btn--go.is-loading span, .btn--go.is-loading b { display: none; }
.co__fine { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--mute); }
.co__fine a { color: var(--ink2); }
.co__err { text-align: center; margin-top: 12px; }
.co__safe { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12px; color: var(--mute); }
.co__safe svg { width: 14px; height: 14px; }

/* 送單過場 */
.sending { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 18px; background: rgba(251, 250, 248, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s var(--ease); }
.sending.is-in { opacity: 1; }
.sending p { margin: 0; font: 700 16px/1 var(--serif-tc); color: var(--ink2); }
.sending__ring { width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(124, 58, 237, .18); border-top-color: var(--violet-hi); box-shadow: 0 0 40px -6px var(--glow); animation: spin 1s linear infinite; }

/* ─── 訂單頁 ─── */
.od { max-width: 760px; margin: 0 auto; padding: clamp(26px, 5vw, 56px) var(--pad) 96px; }
.od__hero { text-align: center; }
.seal { position: relative; width: 84px; height: 84px; margin: 0 auto 18px; }
.seal::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .8; }
.seal svg { position: relative; width: 100%; height: 100%; stroke: var(--violet-hi); stroke-width: 2.4; }
.seal circle { stroke: rgba(124, 58, 237, .35); stroke-width: 1.6; }
.seal--x svg { stroke: var(--mute); } .seal--x::before { opacity: .2; }
.od--fresh .seal circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: draw .9s var(--ease) .1s forwards; }
.od--fresh .seal path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .75s forwards; }
.od--fresh .seal::before { animation: bloom 1.6s var(--ease) .7s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bloom { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.15); } 100% { opacity: .8; transform: scale(1); } }
.od--fresh .od__kicker, .od--fresh .od__hero h1, .od--fresh .od__lead, .od--fresh .od__no { animation: rise .8s var(--ease) both; }
.od--fresh .od__kicker { animation-delay: .85s; } .od--fresh .od__hero h1 { animation-delay: .95s; }
.od--fresh .od__lead { animation-delay: 1.05s; } .od--fresh .od__no { animation-delay: 1.15s; }
.od--fresh .track, .od--fresh .pay2, .od--fresh .receipt { animation: rise .9s var(--ease) 1.25s both; }
.od__kicker { margin: 0 0 6px; font: italic 400 18px/1 var(--serif); color: var(--violet-hi); }
.od__hero h1 { margin: 0; font: 900 clamp(32px, 6vw, 50px)/1.2 var(--serif-tc); }
.od__lead { margin: 10px 0 0; color: var(--ink2); font-size: 14px; }
.od__no { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; }
.od__no span { color: var(--mute); }
.od__no b { font: 600 14px/1 "Manrope", monospace; letter-spacing: .04em; }

.track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: 36px 0 28px; padding: 0; list-style: none; }
.track li { position: relative; text-align: center; padding: 0 4px; }
.track li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line2); }
.track li:first-child::before { display: none; }
.track li.is-done::before, .track li.is-on::before { background: linear-gradient(90deg, var(--violet), var(--violet-hi)); }
.track i { position: relative; z-index: 1; display: block; width: 16px; height: 16px; margin: 0 auto 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); }
.track .is-done i { background: var(--violet); border-color: var(--violet); }
.track .is-on i { border-color: var(--violet-hi); box-shadow: 0 0 0 4px rgba(124, 58, 237, .18), 0 0 16px var(--glow); }
.track .is-on i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--violet-hi); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.track b { display: block; font-size: 13px; font-weight: 600; color: var(--mute); }
.track .is-done b, .track .is-on b { color: var(--ink); }
.track small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.5; color: var(--mute); }
@media (max-width: 560px) { .track small { display: none; } .track b { font-size: 11.5px; } }

.pay2 { margin-bottom: 22px; }
.due { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; margin-bottom: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.due b { font: 600 15px/1 "Manrope", monospace; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.due.is-soon { border-color: rgba(183, 121, 31, .4); } .due.is-soon b { color: var(--warn); }
.due.is-late b { color: var(--bad); }
.bankcard {
  position: relative; overflow: hidden; padding: 22px 22px 20px; border-radius: 24px; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, rgba(124, 58, 237, .35), transparent 55%), linear-gradient(160deg, #1d1729, #0f0d15 70%);
  border: 1px solid rgba(124, 58, 237, .22); box-shadow: 0 30px 70px -40px var(--glow);
}
.bankcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.bankcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 600; }
.bankcard__top small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink2); }
.bankcard__mark { font: 400 22px/1 var(--serif); color: rgba(243, 241, 248, .55); }
.bankcard__acct { margin: 22px 0 18px; }
.bankcard span { display: block; font-size: 11px; letter-spacing: .08em; color: var(--mute); }
.bankcard__acct b { display: block; margin: 6px 0 12px; font: 600 clamp(22px, 5.6vw, 30px)/1.1 "Manrope", monospace; letter-spacing: .06em; font-variant-numeric: tabular-nums; word-break: break-all; }
.bankcard__row { display: flex; flex-wrap: wrap; gap: 14px 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.bankcard__row b { display: block; margin: 4px 0 8px; font-size: 16px; font-weight: 600; }
.bankcard__amt { font-size: 22px !important; }
.copy { border: 1px solid var(--line2); background: transparent; color: var(--ink); font-size: 12px; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.copy:hover { border-color: var(--hoverline); }
.copy.is-ok { background: var(--violet); border-color: var(--violet); color: #fff; }
.copy--l { padding: 9px 18px; font-size: 13px; }

.last5 { margin-top: 14px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.last5__t { margin: 0 0 16px; font-size: 14px; color: var(--ink2); }
.last5__t b { color: var(--ink); font-weight: 600; }
.last5__boxes { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.last5__boxes .in { width: 52px; height: 62px; padding: 0; text-align: center; font: 600 24px/1 "Manrope", monospace; border-radius: 14px; }
.last5 .btn { max-width: 320px; margin: 0 auto; }
.last5 .err { margin-top: 10px; }
.last5__hint { margin: 12px 0 0; font-size: 12px; color: var(--mute); }
.done { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(31, 138, 76, .28); background: rgba(31, 138, 76, .06); }
.done__dot { width: 10px; height: 10px; margin-top: 7px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px rgba(31, 138, 76, .6); }
.done b { font-weight: 600; } .done p { margin: 2px 0 0; font-size: 13px; color: var(--ink2); }

.receipt { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.receipt h2 { margin: 0 0 12px; font: 700 17px/1.3 var(--serif-tc); }
.receipt__items div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.receipt__items small { margin-left: 8px; color: var(--mute); }
.receipt .sum { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.receipt__meta { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.receipt__meta div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; font-size: 13px; }
.receipt__meta dt { color: var(--mute); }
.receipt__meta dd { margin: 0; color: var(--ink2); }
.receipt__meta a { color: var(--violet-hi); margin-left: 4px; }
.od__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.od__fine { text-align: center; margin: 16px 0 0; font-size: 12px; color: var(--mute); }

/* 進場：往上浮一點點再亮起來。起始狀態只寫在 keyframes 裡，動畫沒跑時東西照樣看得到 */
.rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ─── 白底（2026-09-17）：放在深色底上的東西，字要自己指定成淺色 ─── */
.driver__name { color: #fff; }
.driver__name small { color: rgba(255, 255, 255, .72); }
.coll__face { display: none; }                        /* 黑底時代的車手頭像光暈，白底上會變成一團灰 */
.bankcard { color: #f3f1f8; }
.bankcard span { color: #a19cab; }
.bankcard__top small { color: rgba(243, 241, 248, .7); }
.bankcard .copy { color: #f3f1f8; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.bankcard .copy:hover { border-color: rgba(255, 255, 255, .45); }
.bankcard .copy.is-ok { background: var(--violet); border-color: var(--violet); }
.hd, .bar, .tag { -webkit-backdrop-filter: saturate(1.2) blur(16px); backdrop-filter: saturate(1.2) blur(16px); }
.card__img, .addon__img, .dl__img, .line__img, .mini__img img, .hit__img { background: var(--soft); }
.card:hover .card__img { box-shadow: 0 18px 44px -22px var(--shadow); }
.btn:not(:disabled):hover, .pill--light:hover { box-shadow: 0 12px 30px -12px var(--shadow); }
.sheet__panel, .drawer__panel, .search__panel, .menu__panel, .mega { box-shadow: 0 30px 80px -30px var(--shadow); }

/* ─── 首頁第一屏：不放任何字（V 2026-09-17「不要有文字好了」），服飾照片並排，點了進商品頁 ─── */
.look {
  max-width: var(--max); margin: 0 auto; padding: clamp(14px, 2.4vw, 26px) var(--pad) 8px;
  display: grid; gap: clamp(8px, 1.2vw, 14px);
  grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.look::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .look { grid-auto-columns: calc((100% - 14px) / 2.3); } }
@media (min-width: 1080px) { .look { grid-auto-flow: row; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); overflow: visible; } }
.look a { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden; background: var(--soft); scroll-snap-align: start; }
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.look a:hover img { transform: scale(1.03); }

/* 衣服的照片是直式的：商品格用 2:3，不要裁成正方形 */
.card--tall .card__img { aspect-ratio: 2 / 3; }
/* 首頁服飾區商品少（≤3）時用大格；手機上直式衣服一排一件會拉得太長，維持一排兩件 */
@media (max-width: 719px) { .grid--in.grid--big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 衣服的商品頁相簿用 4:5（照片是 2:3，正方形會把模特兒的頭腳裁掉） */
.pd--tall .pd__track figure { aspect-ratio: 4 / 5; }

/* 衣服的尺寸與規格（商品頁摺疊區） */
.spec { margin: 0 0 14px; display: grid; gap: 6px; }
.spec div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.spec dt { color: var(--mute); }
.spec dd { margin: 0; color: var(--ink); }
.sizes { overflow-x: auto; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; }
.sizes table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.sizes th, .sizes td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sizes thead th { font-weight: 500; color: var(--mute); background: var(--soft); }
.sizes tbody tr:last-child th, .sizes tbody tr:last-child td { border-bottom: 0; }
.sizes tbody th { font-weight: 600; color: var(--ink); }
.spec__note { margin: 0; font-size: 12px; line-height: 1.8; color: var(--mute); }
