/* ==========================================================================
   Simplete 團購站 — 設計系統

   品牌取樣自產品包裝:暖白瓶身 + 玫瑰金字。所以主色是銅金而不是常見的美妝粉,
   底色帶一點暖度(#faf7f4)而不是純白,讓去背的白色瓶身不會整個糊在背景裡。
   ========================================================================== */

:root {
  --bg: #faf7f4;
  --surface: #ffffff;
  --surface-alt: #f4efe9;
  --ink: #2e2a27;
  --ink-soft: #6f665f;
  --ink-faint: #a49a92;
  --line: #ece3d9;
  --line-strong: #d9c9b8;

  --brand: #b98a63;
  --brand-strong: #966842;
  --brand-soft: #f5eae0;

  --success: #3f7d5a;
  --success-soft: #e4f1e9;
  --danger: #b34a44;
  --danger-soft: #f8e6e4;
  --warn: #a97b2b;
  --warn-soft: #f8eed8;

  --font-body: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-display: "Noto Serif TC", Georgia, "Songti TC", serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 14px rgba(80, 58, 40, 0.07);
  --shadow-lift: 0 8px 28px rgba(80, 58, 40, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.3; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.12rem; }

a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* **`hidden` 屬性一定要真的藏起來。** 瀏覽器內建的 [hidden]{display:none} 權重最低,
   任何 `display:flex` 的 class(.price-row、.signup-popup…)都會把它蓋掉——
   症狀是註冊彈窗關不掉、沒用優惠券也顯示「折抵 NT$0」。 */
[hidden] { display: none !important; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- 頂部 ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  padding: 8px 0;
  letter-spacing: .02em;
  overflow: hidden;          /* 捲出去的那一份要被裁掉 */
}
/* 跑馬燈。兩份內容並排,往左位移剛好一份的寬度再瞬間跳回 —— 接縫永遠對得上,
   看起來是連續不斷的。`min-width:100%` 是為了文字很短時也填滿整條。 */
.announce-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: announce-scroll 26s linear infinite;
}
.announce-item { padding: 0 2.5rem; white-space: nowrap; }
@keyframes announce-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* 滑鼠停在上面時暫停,讓人看得完一句話。 */
.announce:hover .announce-track { animation-play-state: paused; }
/* **`prefers-reduced-motion` 是總開關。** 停掉動畫之後要讓它變回一行置中的靜態
   文字,而且只留一份 —— 只停動畫的話,兩份內容會並排擠在一起變成重複的句子。 */
@media (prefers-reduced-motion: reduce) {
  .announce { text-align: center; padding: 8px 16px; }
  .announce-track { animation: none; width: auto; justify-content: center; }
  .announce-item + .announce-item { display: none; }
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: var(--brand-strong);
  font-weight: 400;
}
.logo:hover { text-decoration: none; }

/* 頁首的品牌鎖定:QQBELLE(主)+ 這一檔的商品品牌(次)。
   兩個品牌並置最怕變成「誰是誰」講不清楚,所以用大小拉開層級——
   QQBELLE 是經營這個站的公司(實體 logo、較大),simpleté 只是這一檔賣的東西。
   下一檔換品牌時只要換後半段。 */
.logo-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-lockup:hover { text-decoration: none; }
.logo-mark { height: 26px; width: auto; display: block; }
.logo-campaign {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em;
  color: var(--brand-strong); white-space: nowrap;
  padding-left: 12px; border-left: 1px solid var(--line);
}
@media (max-width: 720px) {
  /* 手機上先保住 QQBELLE(客人要知道跟誰買),檔期名稱在 hero 的大字裡還會再出現 */
  .logo-mark { height: 22px; }
  .logo-campaign { font-size: .85rem; padding-left: 9px; }
}
@media (max-width: 420px) {
  .logo-campaign { display: none; }
}
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; font-size: .92rem; }
/* nowrap:手機上「全部商品」「登入」原本會被擠成一字一行 */
.nav a { color: var(--ink-soft); white-space: nowrap; }
.nav a:hover { color: var(--brand-strong); text-decoration: none; }

.cart-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft); color: var(--brand-strong);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem;
}
.nav-logout { display: inline; }

/* 手機版的漢堡選單。
   **收合只掛在 `.nav-ready` 底下**——那個 class 是 nav.js 自己加的。腳本沒載入時
   連結照原樣排在頁首(擠但點得到),不會出現「連結全藏起來、漢堡按了又沒反應」。
   (同仁登入後頁首有七八個連結,手機上原本被擠成一字一行。) */
.nav-toggle, .cart-pill-mobile { display: none; }
@media (max-width: 720px) {
  .nav-ready .cart-pill-mobile { display: inline-flex; margin-left: auto; white-space: nowrap; }
  .nav-ready .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    flex: none; width: 40px; height: 40px; padding: 0 10px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  }
  .nav-toggle span {
    display: block; height: 2px; border-radius: 2px; background: var(--brand-strong);
    transition: transform .25s ease, opacity .2s ease;
  }
  /* 7px = 線高 2px + 間距 5px,三條線剛好疊成一個 X */
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-ready .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 4px 20px 16px; font-size: 1rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(80, 58, 40, .4);
    max-height: calc(100vh - 110px); overflow-y: auto; overflow-x: visible;
  }
  .nav-open .nav { display: flex; }
  .nav-ready .nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
  /* 選單裡不再放一顆購物車,頁首已經有了 */
  .nav-ready .nav .cart-pill { display: none; }
  .nav-ready .nav-logout { display: block; padding-top: 12px; }
  .nav-ready .nav-logout .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle span { transition: none; }
}

/* ---------- 通用元件 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 22px; font-size: .95rem; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: #7f5734; color: #fff; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 6px 10px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }

.tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 4px;
}
.tag-brand { background: var(--brand-soft); color: var(--brand-strong); }
.tag-save { background: var(--danger-soft); color: var(--danger); }
.tag-ok { background: var(--success-soft); color: var(--success); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-muted { background: var(--surface-alt); color: var(--ink-soft); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }

.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: .86rem; }
.tiny { font-size: .78rem; }
.strike { text-decoration: line-through; color: var(--ink-faint); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }

.price { font-size: 1.35rem; font-weight: 700; color: var(--brand-strong); }
.price-lg { font-size: 1.8rem; }
.price small { font-size: .68em; font-weight: 600; }

.messages { margin: 16px 0; padding: 0; list-style: none; }
.messages li {
  padding: 11px 16px; border-radius: var(--radius-sm); margin-bottom: 8px;
  font-size: .92rem; border: 1px solid transparent;
}
.messages .success { background: var(--success-soft); color: var(--success); }
.messages .error   { background: var(--danger-soft);  color: var(--danger); }
.messages .info, .messages .warning { background: var(--warn-soft); color: var(--warn); }

/* ---------- 首頁 hero ---------- */
.hero {
  background: linear-gradient(160deg, #fdfaf7 0%, var(--brand-soft) 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
  text-align: center;
}
.hero .eyebrow {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand-strong); font-weight: 700; margin-bottom: 14px;
}
.hero h1 { font-family: var(--font-display); font-size: 2.3rem; font-weight: 400; }
.hero p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 22px; }
/* 三句各一行。窄螢幕上某一句太長時照樣會折,但不會跟下一句黏在同一行 */
.hero .hero-lead span { display: block; }

/* 「優惠組合」上方的橫幅:在內容寬度裡、圓角,跟下面的商品卡是同一個版面 */
.bundle-banners { display: grid; gap: 14px; margin-bottom: 26px; }
.bundle-banners .banner { border-radius: var(--radius); overflow: hidden; }

/* 品牌影片。比例固定 16:9、寬度跟著畫面走——iframe 沒給比例的話,手機上會是一條
   300×150 的預設小框。播放器本身會替直式影片加黑邊,不必另外處理。 */
.brand-video-section { padding-top: 8px; }
.brand-video {
  position: relative; aspect-ratio: 16 / 9; max-width: 900px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden; background: #1f1a17;
  box-shadow: 0 18px 40px -24px rgba(80, 58, 40, .45);
}
.brand-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 購物服務頁(購物說明/退貨須知/客服專區) ---------- */
.info-page { max-width: 820px; }
.service-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.service-tabs a {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink-soft); font-size: .9rem;
}
.service-tabs a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-strong); }
.service-tabs a[aria-current="page"] { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.info-page h1 { font-family: var(--font-display); font-weight: 400; text-align: center; margin-bottom: 14px; }
.info-lead { text-align: center; color: var(--ink-soft); line-height: 1.9; margin: 0 auto 30px; }
.info-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 18px;
}
.info-block-highlight { background: var(--brand-soft); border-color: rgba(185, 138, 99, .3); }
.info-block h2 { font-size: 1.12rem; margin: 0 0 12px; }
.info-block h3 { font-size: .98rem; margin: 18px 0 6px; color: var(--brand-strong); }
.info-block p { margin: 0 0 8px; line-height: 1.85; }
.info-list { list-style: none; padding: 0; margin: 0 0 8px; }
.info-list li { padding: 5px 0; line-height: 1.8; }
.info-list-dots { list-style: disc; padding-left: 1.3em; }
.info-list-dots li { padding: 2px 0; }
.info-checks { color: var(--ink-soft); }
.info-block .info-note { font-size: .86rem; color: var(--ink-soft); }
/* 退貨流程的 ①②③④ 用 CSS 計數畫成圓圈,不寫死在文字裡——插一步進去不必重編號 */
.info-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.info-steps li { counter-increment: step; position: relative; padding: 0 0 14px 44px; }
.info-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  border-radius: 50%; background: var(--brand-strong); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.info-steps h3 { margin-top: 3px; }
.info-closing { text-align: center; color: var(--ink-soft); line-height: 1.9; margin: 30px auto 0; }
@media (max-width: 640px) {
  .info-block { padding: 18px 16px; }
  .info-steps li { padding-left: 40px; }
}

/* ---------- 結帳頁:賣場優惠券 ---------- */
/* 版型參考使用者 2026-09-17 給的蝦皮結帳頁:明細裡一列「賣場優惠券  -$50 ›」,點開從底部拉出選券。
   JS 沒跑的時候 .coupon-sheet 不會加上 .is-modal,選項就直接排在明細裡,照樣選得到。 */
.coupon-block { margin: 4px 0 2px; }
.coupon-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 9px 0; border: 0; background: none; font: inherit; font-size: .92rem; color: var(--ink);
  text-align: left; cursor: pointer;
}
.coupon-row:disabled, .coupon-row.is-static { cursor: default; }
.coupon-row-label { color: var(--ink-soft); }
.coupon-row-value { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-faint); }
.coupon-row-chev { font-size: 1.2rem; line-height: 1; color: var(--ink-faint); }
.coupon-badge {
  position: relative; padding: 1px 9px; font-weight: 700; font-size: .84rem; color: #c0475a;
  border: 1px solid #d9606f; border-radius: 3px; background: #fff5f6;
}
.coupon-badge::before, .coupon-badge::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border: 1px solid #d9606f; border-radius: 50%; background: var(--surface);
}
.coupon-badge::before { left: -4px; clip-path: inset(0 0 0 50%); }
.coupon-badge::after { right: -4px; clip-path: inset(0 50% 0 0); }

.coupon-sheet-head, .coupon-sheet-foot { display: none; }
.coupon-list { display: grid; gap: 10px; margin: 4px 0 8px; }
.coupon-card {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center;
  gap: 12px; padding: 12px 14px 12px 18px; cursor: pointer; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; font-size: .86rem; line-height: 1.5;
}
/* 左緣的鋸齒:票券的樣子 */
.coupon-card::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 6px;
  background: radial-gradient(circle at 0 6px, var(--surface-alt) 3px, transparent 3.5px) 0 0 / 6px 12px repeat-y;
}
.coupon-card-icon {
  width: 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.05; color: #fff; font-weight: 700;
  background: linear-gradient(145deg, #e9a7b3, #c07586);
}
.coupon-card-icon small { font-size: .62rem; font-weight: 600; letter-spacing: .04em; }
.coupon-card-icon b { font-size: 1.15rem; }
.coupon-card-main { display: flex; flex-direction: column; min-width: 0; }
.coupon-card-main .coupon-card-title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.coupon-card-main .tiny { color: var(--ink-faint); }
.coupon-card input { position: absolute; opacity: 0; pointer-events: none; }
.coupon-check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.coupon-card input:checked ~ .coupon-check { background: #d9606f; border-color: #d9606f; }
.coupon-card input:checked ~ .coupon-check::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg);
}
.coupon-card:has(input:checked) { border-color: #e39aa5; box-shadow: 0 0 0 1px #e39aa5 inset; }
.coupon-card input:focus-visible ~ .coupon-check { outline: 2px solid var(--brand); outline-offset: 2px; }
.coupon-card.is-none { grid-template-columns: minmax(0, 1fr) auto; padding-left: 18px; }
.coupon-card.is-disabled { cursor: not-allowed; }
.coupon-card.is-disabled .coupon-card-icon { background: #cfc8c2; }
.coupon-card.is-disabled .coupon-card-title { color: var(--ink-faint); }
.coupon-card-note {
  grid-column: 1 / -1; margin: 2px -14px -12px -18px; padding: 7px 18px;
  border-top: 1px dashed var(--line); font-size: .8rem; color: var(--ink-soft);
}
.coupon-card-note.is-pending { color: var(--warn); }

/* JS 接手後:底部拉出的選單 */
.coupon-sheet.is-modal {
  position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(40, 30, 24, .45);
}
.coupon-sheet.is-modal .coupon-sheet-panel {
  width: 100%; max-width: 520px; max-height: 82vh; display: flex; flex-direction: column;
  background: var(--surface-alt); border-radius: 16px 16px 0 0; box-shadow: 0 -12px 40px -12px rgba(40, 30, 24, .35);
  animation: coupon-sheet-up .28s cubic-bezier(.22, 1, .36, 1);
}
.coupon-sheet.is-modal .coupon-sheet-head {
  display: flex; align-items: center; justify-content: center; position: relative; padding: 16px 48px;
  background: var(--surface); border-radius: 16px 16px 0 0; border-bottom: 1px solid var(--line);
}
.coupon-sheet-head h3 { margin: 0; font-size: 1.05rem; }
.coupon-sheet-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border: 0; background: none; color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.coupon-sheet.is-modal .coupon-list { overflow-y: auto; margin: 0; padding: 14px 16px; }
.coupon-sheet.is-modal .coupon-sheet-foot {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.coupon-sheet-foot .coupon-sheet-saving { font-size: .9rem; }
.coupon-sheet-foot .coupon-sheet-saving b { color: #c0475a; }
@media (min-width: 700px) {
  .coupon-sheet.is-modal { align-items: center; }
  .coupon-sheet.is-modal .coupon-sheet-panel, .coupon-sheet.is-modal .coupon-sheet-head { border-radius: 16px; }
  .coupon-sheet.is-modal .coupon-sheet-head { border-radius: 16px 16px 0 0; }
  .coupon-sheet.is-modal .coupon-sheet-foot { border-radius: 0 0 16px 16px; }
}
@keyframes coupon-sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .coupon-sheet.is-modal .coupon-sheet-panel { animation: none; } }
.coupon-shortfall { color: var(--warn); }
.free-shipping-warning {
  margin: 8px 0; padding: 10px 12px; font-size: .84rem; line-height: 1.6;
  border-left-color: var(--warn); background: var(--warn-soft);
}

/* ---------- 購物車:加價購專區 ---------- */
.addon-zone { margin-top: 26px; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.addon-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.addon-thumb { aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; }
.addon-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.addon-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.addon-name { font-size: .9rem; font-weight: 600; line-height: 1.4; }
.addon-price { font-size: .84rem; color: var(--ink-soft); margin-top: auto; }
.addon-price b { color: var(--brand-strong); font-size: 1rem; }
@media (max-width: 640px) {
  .addon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- 註冊 / 會員中心 ---------- */
.auth-card { max-width: 460px; margin: 0 auto; padding: 28px 28px 24px; }
.auth-card h1 { margin-top: 0; }
.auth-perk {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px;
  border: 1px dashed rgba(185, 138, 99, .6); border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand-strong);
}
.member-heading { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin: 0 0 12px; }
/* 使用者 2026-09-17:未使用是彩色的,使用過改為「已使用」並變灰(參考 LINE 優惠券的已過期章) */
.coupon-ticket {
  position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; align-items: stretch;
  margin-bottom: 12px; background: var(--surface); border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 18px -10px rgba(150, 80, 95, .45); border: 1px solid #f0d3d8;
}
.coupon-ticket-stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 14px 8px; color: #fff; text-align: center;
  background: linear-gradient(150deg, #efb4bf 0%, #d88898 55%, #c07586 100%);
}
/* 票根與內文之間的打孔線 */
.coupon-ticket-stub::after {
  content: ""; position: absolute; right: -5px; top: 0; bottom: 0; width: 10px;
  background: radial-gradient(circle at 5px 8px, var(--bg) 4px, transparent 4.5px) 0 0 / 10px 16px repeat-y;
}
.coupon-ticket-amount { font-size: 1.75rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.coupon-ticket-amount small { font-size: .8rem; font-weight: 700; margin-right: 1px; }
.coupon-ticket-stub .tiny { color: rgba(255, 255, 255, .92); }
.coupon-ticket-body { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 14px 12px 18px; min-width: 0; }
.coupon-ticket-kind { font-size: .72rem; letter-spacing: .08em; color: #c07586; font-weight: 700; }
.coupon-ticket-status { align-self: center; margin-right: 14px; }
.coupon-stamp {
  display: none; width: 66px; height: 66px; border-radius: 50%; border: 2px dashed #8f8a86;
  align-items: center; justify-content: center; font-weight: 800; font-size: .92rem; letter-spacing: .06em;
  color: #7d7875; transform: rotate(-14deg); box-shadow: 0 0 0 3px #fff inset, 0 0 0 5px #b5b0ac inset;
}
.coupon-ticket.is-used, .coupon-ticket.is-expired { box-shadow: none; border-color: var(--line); background: #f4f2f0; }
.coupon-ticket.is-used .coupon-ticket-stub, .coupon-ticket.is-expired .coupon-ticket-stub { filter: grayscale(1); opacity: .6; }
.coupon-ticket.is-used .coupon-ticket-body, .coupon-ticket.is-expired .coupon-ticket-body { color: var(--ink-faint); }
.coupon-ticket.is-used .coupon-ticket-kind, .coupon-ticket.is-expired .coupon-ticket-kind { color: var(--ink-faint); }
.coupon-ticket.is-used .coupon-stamp, .coupon-ticket.is-expired .coupon-stamp { display: flex; }
@media (max-width: 480px) {
  .coupon-ticket { grid-template-columns: 88px minmax(0, 1fr) auto; }
  .coupon-ticket-amount { font-size: 1.45rem; }
  .coupon-stamp { width: 54px; height: 54px; font-size: .8rem; }
}

/* ---------- 註冊送券彈跳視窗 ---------- */
.signup-popup {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(40, 30, 24, .55);
}
.signup-popup-card {
  /* 設計圖四周有透明留白,實際圖卡約占 85% 寬 */
  position: relative; width: 100%; max-width: 520px; text-align: center;
  animation: signup-pop .35s cubic-bezier(.22, 1, .36, 1);
}
.signup-popup-art { display: block; }
.signup-popup-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(40, 20, 25, .35)); }
.signup-popup-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; margin-top: 2px;
  min-width: 230px; padding: 13px 34px; border-radius: 999px; color: #fff; font-size: 1.05rem;
  font-weight: 600; letter-spacing: .18em; text-decoration: none;
  background: linear-gradient(180deg, #bd8290 0%, #a86a7a 100%);
  box-shadow: 0 10px 22px -10px rgba(120, 55, 70, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.signup-popup-cta span { font-size: 1.3rem; line-height: 1; letter-spacing: 0; }
.signup-popup-cta:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(120, 55, 70, .85); }
.signup-popup-login {
  display: inline-block; margin: 12px 0 0; padding: 6px 16px; border-radius: 14px;
  font-size: .8rem; line-height: 1.6; color: #fff; background: rgba(40, 25, 30, .6);
}
.signup-popup-login a { color: #fff; text-decoration: underline; }
.signup-popup-close {
  position: absolute; top: 4%; right: 5%; z-index: 1; width: 38px; height: 38px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #7a5560; background: #fff; box-shadow: 0 4px 14px rgba(40, 20, 25, .3);
}
.signup-popup-close:hover { color: #3a2a2e; }
@media (max-width: 480px) {
  .signup-popup-close { top: 0; right: 2%; }
  .signup-popup-cta { min-width: 0; width: 82%; }
}
@keyframes signup-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .signup-popup-card { animation: none; } }

/* ---------- 商品格 ---------- */
.section { padding-block: 44px; }   /* 只設上下:寫成 padding 簡寫會把 .container 的左右留白蓋成 0 */
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; margin: 0; }
.section-head .sub { color: var(--ink-soft); font-size: .9rem; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* **手機固定兩欄**(使用者 2026-09-14 指定)。
   原本的 `minmax(280px, 1fr)` 在手機上扣掉左右邊距只剩約 335px,只塞得下一欄——
   於是每個商品佔滿一整個螢幕高,客人要滑很久才看得完九個商品,也沒辦法並排比價。
   **一定要寫 `minmax(0, 1fr)` 而不是 `1fr`**:`1fr` 的最小值是內容的最小寬度,
   商品名稱或 `white-space:nowrap` 的價格一長,那一欄就會被撐開、整排超出螢幕。
   兩欄之後卡片只有一半寬,字級與內距要跟著收,不然名稱會擠成一個字一行。 */
/* 組合的一句話賣點(例如「補水透亮．晶瑩水嫩」)。放在品名下面、字小一級,
   讓客人在三組之間一眼分得出差別,不必點進去看。 */
.product-card .subtitle { margin: -2px 0 0; font-size: .84rem; letter-spacing: .04em; color: var(--brand-strong); }
@media (max-width: 640px) {
  .product-card .subtitle { font-size: .74rem; letter-spacing: 0; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card .thumb img { padding: 8px; }
  .product-card .body { padding: 11px 11px 12px; gap: 6px; }
  .product-card h3 { font-size: .9rem; line-height: 1.4; }
  .product-card .contents { font-size: .74rem; }
  .product-card .contents li { overflow-wrap: anywhere; }
  .product-card .price { font-size: 1.08rem; }
  .product-card .prices { gap: 2px 6px; }
  .product-card .tag { font-size: .68rem; padding: 1px 6px; }
  .product-card .btn { padding: 7px 8px; font-size: .84rem; }
}

.product-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.product-card .thumb {
  aspect-ratio: 1 / 1; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-card .thumb .placeholder { color: var(--ink-faint); font-size: .85rem; }
.product-card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-card h3 { margin: 0; font-size: 1rem; line-height: 1.45; }
.product-card h3 a { color: var(--ink); }
.product-card .contents { font-size: .82rem; color: var(--ink-soft); }
.product-card .contents li { margin: 0; }
.product-card .prices { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

/* ---------- 商品詳情 ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 36px 0; }
/* 單欄時也要 minmax(0, 1fr)。寫成 1fr 的話下限是內容寬度,而輪播是一整排並排的圖——
   手機上整頁被撐到 540px,圖片右半截跑出畫面外。 */
@media (max-width: 860px) { .product-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.gallery-main {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.price-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: .92rem; }
.price-row.highlight { border-top: 1px dashed var(--line-strong); margin-top: 8px; padding-top: 12px; }
.qty-input { width: 76px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 1rem; text-align: center; font-family: inherit; }
.bullet-list { margin: 0; padding-left: 1.15em; color: var(--ink-soft); font-size: .92rem; }
.bullet-list li { margin-bottom: 5px; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); }
.table th, .table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: var(--surface-alt); font-size: .82rem; color: var(--ink-soft); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* 購物車:桌機是表格,手機改成一品一張卡。
   五欄的表格塞進 360px 只能左右捲,而「數量/移除」剛好在捲不到的那一側——
   客人看得到商品卻找不到怎麼改數量。 */
.cart-list-price { display: block; }
@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr { display: block; }
  .cart-table tr { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
  .cart-table tbody tr:last-child { border-bottom: none; }
  .cart-table td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 5px 0; border: none; text-align: right;
  }
  .cart-table td[data-label]::before { content: attr(data-label); color: var(--ink-soft); font-size: .84rem; }
  .cart-table td.cart-name { display: block; text-align: left; font-weight: 600; padding-bottom: 8px; }
  .cart-table td.cart-remove { justify-content: flex-end; padding-top: 2px; }
  .cart-list-price { display: inline; margin-left: 6px; }
}

/* 結帳頁:左邊填資料、右邊訂單摘要。窄於 860px 就上下疊——
   右欄有 300px 的下限,手機上兩欄並排一定會撐破畫面。 */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---------- 表單 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: .96rem; font-family: inherit; background: var(--surface); color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field .hint { font-size: .78rem; color: var(--ink-faint); }

/* ---------- 儀表板 ---------- */
.dash-header {
  background: var(--surface); border-bottom: 1px solid var(--line); padding: 22px 0 0;
}
.dash-tabs { display: flex; gap: 4px; margin-top: 16px; }
.dash-tabs a {
  padding: 9px 16px; font-size: .9rem; color: var(--ink-soft);
  border-bottom: 2px solid transparent; font-weight: 600;
}
.dash-tabs a:hover { text-decoration: none; color: var(--brand-strong); }
.dash-tabs a.active { color: var(--brand-strong); border-bottom-color: var(--brand); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px;
}
.stat .label { font-size: .8rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }
.stat .value { font-size: 1.7rem; font-weight: 700; line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .note { font-size: .78rem; color: var(--ink-faint); margin-top: 2px; }
.stat.accent { background: linear-gradient(150deg, #fdfaf7, var(--brand-soft)); border-color: var(--line-strong); }
.stat.accent .value { color: var(--brand-strong); }

/* 級距進度條 */
.tier-track {
  position: relative; height: 12px; background: var(--surface-alt);
  border-radius: 999px; margin: 30px 0 8px; border: 1px solid var(--line);
}
.tier-fill {
  position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--brand), var(--brand-strong));
  border-radius: 999px;
}
.tier-marks { position: relative; height: 42px; }
.tier-mark { position: absolute; transform: translateX(-50%); text-align: center; font-size: .74rem; color: var(--ink-soft); }
.tier-mark .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); margin: -26px auto 4px; border: 2px solid var(--surface); }
.tier-mark.reached .dot { background: var(--brand-strong); }
.tier-mark.reached { color: var(--brand-strong); font-weight: 700; }

/* 每日走勢 */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 8px; }
.spark .bar { flex: 1; background: var(--brand-soft); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.spark .bar.has { background: var(--brand); }
.spark .bar:hover { background: var(--brand-strong); }
.spark-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-faint); margin-top: 6px; }

.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88rem; background: var(--surface-alt); color: var(--ink);
}

.callout {
  border-left: 3px solid var(--brand); background: var(--brand-soft);
  padding: 13px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .9rem; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

/* ---------- 頁尾 ---------- */
.site-footer {
  margin-top: 56px; background: var(--ink); color: #cfc6bd;
  padding: 34px 0; font-size: .86rem;
}
.site-footer a { color: #e8dfd5; }
/* 四欄(品牌/購物服務/客服/團購資訊)。原本是 flex 換行,加了「購物服務」之後
   1024px 寬時「團購資訊」會自己掉到第二排、貼在最左邊,看起來像排版壞了。
   改成固定欄數:桌機一排四欄、平板兩欄、手機一欄。 */
.site-footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 36px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr); } }
/* 頁尾的 logo 是深底,原圖是黑字——反白處理才看得見 */
.footer-logo { height: 24px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .9; }
.footer-intro { margin: 10px 0 12px; font-size: .82rem; line-height: 1.7; color: #cfc6bd; }
.footer-legal {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .78rem; color: #a1968c; line-height: 1.8;
}

@media (max-width: 680px) {
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
  .site-header .inner { height: 56px; gap: 12px; }
  .nav { gap: 12px; font-size: .85rem; }
  .section { padding-block: 30px; }
}
@media (max-width: 420px) {
  /* 375px 的手機:logo + 三個連結原本差 15px 放不下。縮兩側留白與間距,
     不砍連結——「全部商品」「購物車」是客人在手機上最常點的兩個。 */
  .container { padding: 0 16px; }
  .site-header .inner { gap: 10px; }
  .logo-mark { height: 20px; }
  .nav { gap: 10px; font-size: .82rem; }
  .cart-pill { padding: 5px 10px; font-size: .82rem; }
  /* 同仁登入後頁首會多出一排後台連結,手機上塞不下就讓那一排橫向滑動,
     而不是把整頁撐寬 */
  .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-ready .nav { padding-left: 16px; padding-right: 16px; }
}


/* ---------- 結帳:同上、配送方式 ---------- */
.same-as-buyer {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; color: var(--ink-soft); cursor: pointer; user-select: none;
}
.same-as-buyer input { width: 16px; height: 16px; }

/* 組合商品的內含品項:品名靠左、原價靠右,才看得出「兩瓶單買要多少」 */
.bundle-items li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }

/* 配送方式做成兩張可點的卡片而不是下拉。
   宅配與超商取貨的資費、填的欄位、能不能貨到付款全都不一樣,
   藏在下拉裡客人不會察覺自己選了什麼。 */
.ship-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .ship-options { grid-template-columns: 1fr; } }
.ship-option {
  display: block; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s;
}
.ship-option:hover { border-color: var(--brand); }
.ship-option input { margin-right: 8px; }
.ship-option.is-active { border-color: var(--brand-strong); background: var(--brand-soft); }
.ship-option .title { font-weight: 700; font-size: .95rem; }
.ship-option .desc { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

.store-box {
  margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); background: var(--surface-alt); font-size: .9rem;
}
.store-box.is-picked { border-style: solid; border-color: var(--success); background: var(--success-soft); }


/* ---------- 首頁橫幅 ---------- */
.banners { background: var(--surface); }
.banner { display: block; }
.banner img {
  display: block; width: 100%; height: auto;
  /* 橫幅圖片的比例由圖片自己決定,不要用 object-fit 硬裁——
     行銷排好的文字位置被裁掉之後,那張圖就白做了。 */
}
.banner + .banner { border-top: 1px solid var(--line); }

/* ---------- 商品頁輪播 ---------- */
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%; scroll-snap-align: start; margin: 0;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.88); color: var(--brand-strong);
  font-size: 1.5rem; line-height: 1; box-shadow: 0 1px 6px rgba(0,0,0,.14);
}
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }
.gallery-arrow:hover { background: #fff; }

.gallery-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.gallery-dots .dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.22);
}
.gallery-dots .dot.is-on { background: var(--brand); }

.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px;
}
.gallery-thumb {
  flex: 0 0 68px; height: 68px; padding: 0; cursor: pointer; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.gallery-thumb.is-on { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 商說圖 ---------- */
.product-manual figure { margin: 0; }
.product-manual img {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  /* 手冊是很寬的跨頁,在窄畫面上會縮得很小——所以下面讓它可以橫向捲動看細節。 */
}
/* 商說圖(ProductImage 的 detail)是直式、本來就為手機設計的,照螢幕寬度縮放即可。
   **下面的 min-width 只能套在手冊跨頁(figure)上**——原本連商說圖一起套,
   結果手機上 1000×1300 的直圖被撐到 680px 寬、右半邊直接被切掉,連橫向捲動都沒有。 */
.product-manual > img + img, .product-manual > img + figure { margin-top: 14px; }
@media (max-width: 720px) {
  .product-manual figure { overflow-x: auto; }
  .product-manual figure img { min-width: 680px; }
}

/* 超商通路選擇。**放在我們的結帳頁上,不要丟到綠界那一頁去選**——
   綠界的「運送方式」頁會叫客人再選一次配送方式與通路、再填一次收件人姓名與手機,
   而那些他在結帳頁上都已經填過了。 */
.cvs-chains{display:flex;flex-wrap:wrap;gap:8px}
.cvs-chain{
  display:inline-block;padding:8px 16px;border:1px solid var(--line-strong,#d9c9b8);
  border-radius:999px;background:#fff;color:var(--ink,#2e2a27);
  text-decoration:none;font-size:14px;letter-spacing:.03em;
  transition:border-color .18s ease,background .18s ease;
}
.cvs-chain:hover{border-color:var(--accent,#966842);background:var(--accent-wash,rgba(185,138,99,.13))}

/* 頁尾的社群連結。
   **兩個 Instagram 圖示長得一模一樣,所以一定要帶文字。** 只放圖示的話,客人不知道
   哪個是 QQBELLE、哪個是商品品牌——而 hover 的 tooltip 在手機上完全不存在。 */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  text-decoration: none; color: inherit;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.social a:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .4);
  transform: translateY(-2px);
}
.social .ig-glyph { display: block; flex: none; }
.social-label { display: flex; flex-direction: column; line-height: 1.25; }
.social-label b { font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.social-label em { font-size: 11.5px; font-style: normal; opacity: .68; }

/* 固定在右下角的客服按鈕。
   **hover 只放大一點點**(1.08):浮動按鈕是一直在畫面上的東西,放大太多會變成
   一直在動的干擾,而這個站賣的是客單價 1,000 up 的保養品,過度花俏會讀成廉價。 */
.support-fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 28px -8px rgba(80, 58, 40, .38);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.support-fab img { display: block; width: 56px; height: 56px; flex: none; }
.support-fab:hover,
.support-fab:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 14px 34px -8px rgba(80, 58, 40, .48);
}
/* 文字預設收起來(寬度 0),滑過才展開——手機上沒有 hover,收著才不會擋住畫面。 */
.support-fab-tip {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-size: 14px;
  color: var(--ink);
  transition: max-width .22s ease, opacity .22s ease, padding .22s ease;
  padding: 0;
}
.support-fab:hover .support-fab-tip,
.support-fab:focus-visible .support-fab-tip {
  max-width: 120px; opacity: 1; padding-right: 18px;
}
.support-fab:hover, .support-fab:focus-visible { width: auto; }


@media (max-width: 640px) {
  .support-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  /* 手機沒有 hover,展開的文字只會擋住畫面 */
  .support-fab:hover { width: 56px; }
  .support-fab:hover .support-fab-tip { max-width: 0; opacity: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .support-fab, .support-fab-tip { transition: none; }
  .support-fab:hover, .support-fab:focus-visible { transform: none; }
}

/* 結團倒數。
   **「酷炫」在這個站要往光澤與質感走,不是彈跳閃爍** —— 賣的是客單價 1,000 up 的
   保養品,過度花俏的動畫在美妝電商上會直接讀成廉價(這是全站動效的既定調性)。
   所以做法是:玫瑰金漸層的數字、柔和的光暈、秒數換字時輕輕跳一下。 */
.hero .countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  /* **左右一定要 auto。** hero 的段落是 `max-width:560px` 靠 auto 邊界置中的,
     這裡用 `margin: 26px 0 30px` 會把那個 auto 蓋成 0,整排倒數就貼到左邊去
     (而 hero 其他文字都是置中的,看起來像排版壞了)。 */
  margin: 26px auto 30px;
  /* hero 的段落預設 `max-width:560px`。倒數是四格數字加標題,天數變三位數時
     560px 會不夠而折行,所以這裡放開。 */
  max-width: none;
  font-weight: 700;
  color: var(--brand-strong);
}
.hero .countdown .countdown-clock { width: 28px; height: 28px; flex: none; }
.hero .countdown .countdown-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cd-lead { font-size: .95rem; letter-spacing: .06em; opacity: .8; margin-right: 2px; }

/* 一格數字。用 `min-width` 而不是固定寬度:天數可能是 1 位也可能是 3 位,
   固定寬度會讓「100 天」被擠出來。 */
.cd-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-width: 62px;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 241, 232, .8));
  border: 1px solid rgba(185, 138, 99, .28);
  box-shadow: 0 10px 26px -14px rgba(150, 104, 66, .55),
              inset 0 1px 0 rgba(255, 255, 255, .9);
}
.cd-unit b {
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;   /* 數字等寬,跳動時整排不會左右晃 */
  background: linear-gradient(135deg, #b98a63, #966842 55%, #c9a77f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cd-unit i { font-style: normal; font-size: .82rem; font-weight: 600; opacity: .7; }

/* 換字時輕輕跳一下。**只有變動的那一格會跳**(見 effects.js), 不是整排一起閃。 */
@keyframes cd-beat {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-3px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
.cd-beat { animation: cd-beat .42s cubic-bezier(.22, 1, .36, 1); }

/* 結團之後不留一排停在 0 的數字 —— 那看起來像壞掉。 */
.hero .countdown.is-over .countdown-text { font-size: 1.05rem; letter-spacing: .08em; }

@media (max-width: 640px) {
  .cd-unit { min-width: 54px; padding: 8px 9px; border-radius: 12px; }
  .cd-unit b { font-size: 1.6rem; }
  .hero .countdown { gap: 8px; }
  /* 標題獨佔一行、四格數字排在下一行。並排的話 375px 只放得下三格,
     「秒」會自己掉到第二行,看起來像排版壞了。 */
  .hero .countdown .countdown-text { justify-content: center; }
  .cd-lead { flex-basis: 100%; text-align: center; margin: 0 0 2px; }
}

/* **`prefers-reduced-motion` 是總開關**(全站動效的第 2 條規矩)。
   關掉跳動,但數字照樣每秒更新 —— 停掉的是動畫,不是資訊。 */
@media (prefers-reduced-motion: reduce) {
  .cd-beat { animation: none; }
}

/* 開賣與結團時間。
   **獨立於倒數那一行** —— 倒數的文字每秒被 JS 換掉,寫在裡面的話開賣時間會在
   第一秒就消失。放在倒數下方、字級小一級:倒數是要人現在行動的,這兩行是給人
   對行事曆用的,不該搶走注意力。 */
.hero .campaign-window {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  max-width: none;
  margin: -14px auto 26px;
  font-size: .88rem;
  color: var(--ink-soft);
}
.hero .campaign-window b {
  font-weight: 600;
  color: var(--brand-strong);
  margin-right: 6px;
  letter-spacing: .06em;
}
@media (max-width: 640px) {
  .hero .campaign-window { gap: 2px 16px; font-size: .82rem; }
}

/* ---------- 會員登入/註冊(2026-09-17,版型參考使用者給的左右兩欄畫面) ---------- */
.auth-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
  max-width: 980px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.auth-pane { padding: 34px 40px 36px; }
.auth-pane + .auth-pane { border-left: 1px solid var(--line); }
.auth-single {
  max-width: 520px; margin: 0 auto; padding: 32px 36px 30px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.auth-title { text-align: center; font-size: 1.3rem; margin: 0 0 18px; }
.auth-title span { font-family: var(--font-display); font-weight: 400; color: var(--brand-strong); margin-right: 6px; }
.auth-tabs { display: flex; justify-content: center; margin: 0 0 18px; }
.auth-tab {
  border: 0; background: none; font: inherit; font-size: .92rem; font-weight: 700; color: var(--ink-faint);
  padding: 4px 16px 8px; cursor: pointer; border-bottom: 3px solid transparent;
}
.auth-tab + .auth-tab { border-left: 1px solid var(--line-strong); }
.auth-tab.is-active { color: var(--ink); border-bottom-color: var(--brand-strong); }
.auth-field { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 4px 12px; margin-bottom: 14px; }
.auth-field > label { font-size: .88rem; color: var(--ink-soft); }
.auth-field > .hint { grid-column: 2; font-size: .76rem; color: var(--ink-faint); }
.auth-field input, .auth-phone, .auth-pw { width: 100%; min-width: 0; }
.auth-field input {
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent;
  padding: 9px 2px; font: inherit; font-size: .95rem; color: var(--ink);
}
.auth-field input:focus { outline: none; border-bottom-color: var(--brand-strong); box-shadow: 0 1px 0 var(--brand-strong); }
.auth-field input[readonly] { color: var(--ink-soft); }
.auth-phone { display: flex; align-items: center; gap: 8px; }
.auth-phone-cc { flex: none; font-size: .88rem; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-soft); }
.auth-pw { position: relative; }
.auth-pw input { padding-right: 38px; }
.auth-eye {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px;
  border: 0; cursor: pointer; opacity: .6; background-color: transparent;
  background-repeat: no-repeat; background-position: center; background-size: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2a27' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.auth-eye.is-on {
  opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2a27' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
}
.auth-warn { color: var(--warn) !important; }
.auth-warn.is-emphasis { font-weight: 700; }
.auth-check { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; line-height: 1.6; margin: 8px 0; cursor: pointer; }
.auth-check input { margin-top: 5px; flex: none; accent-color: var(--brand-strong); }
.auth-check-inline { margin: 0; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px 122px; font-size: .86rem; }
.auth-link { text-decoration: underline; color: var(--ink); }
.auth-submit { display: block; min-width: 150px; margin: 18px auto 0; }
.auth-error {
  background: var(--danger-soft); color: var(--danger); font-size: .88rem; line-height: 1.7;
  padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px;
}
.auth-perk-line { text-align: center; font-size: .88rem; color: var(--ink-soft); margin: -8px 0 18px; }
.auth-perk-line b { color: var(--brand-strong); }
.auth-single .auth-perk { margin-bottom: 18px; }
.auth-other { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.auth-other > span { display: block; font-size: .86rem; color: var(--ink-soft); margin-bottom: 12px; }
.auth-other-top { margin: 0 0 18px; padding: 0 0 16px; border-top: 0; border-bottom: 1px solid var(--line); }
.auth-other-top > span { margin: 12px 0 0; }
.auth-google {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem;
}
.auth-google:hover { text-decoration: none; border-color: var(--brand); }
@media (max-width: 760px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-pane { padding: 26px 20px 28px; }
  .auth-pane + .auth-pane { border-left: 0; border-top: 8px solid var(--bg); }
  .auth-single { padding: 26px 20px; }
  .auth-field { grid-template-columns: 1fr; gap: 2px; }
  .auth-field > .hint { grid-column: 1; }
  .auth-row { margin-left: 0; }
}

/* 註冊完成頁 */
.welcome-card {
  max-width: 520px; margin: 0 auto; text-align: center; padding: 36px 30px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.welcome-badge {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(145deg, #e9a7b3, #c07586);
}
.welcome-card h1 { font-size: 1.45rem; }
.welcome-lead { font-size: 1.02rem; line-height: 1.8; }
.welcome-lead b { color: #c0475a; }
.welcome-ticket { text-align: left; margin: 18px 0 6px; }
.welcome-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.welcome-actions .btn { min-width: 160px; }

/* 會員中心:基本資料 */
.member-profile { margin-top: 22px; }
.member-profile dl {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.member-profile dt { font-size: .78rem; color: var(--ink-faint); }
.member-profile dd { margin: 2px 0 0; font-size: .95rem; }
.member-birthday-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.member-birthday-form input { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; }
@media (max-width: 560px) { .member-profile dl { grid-template-columns: 1fr; } }

/* 購物車:還沒註冊的人的提示框 */
.cart-signup-box {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px;
  background: #fff; border: 1px solid #efc9d0; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .88rem; line-height: 1.55; box-shadow: 0 4px 14px -8px rgba(192, 117, 134, .5);
}
.cart-signup-box:hover { text-decoration: none; border-color: #d88898; }
.cart-signup-box b { color: #c0475a; }
.cart-signup-icon { font-size: 1.3rem; flex: none; }
.cart-signup-go { margin-left: auto; font-size: 1.3rem; color: var(--ink-faint); }

/* 結帳:同步註冊為會員 */
.checkout-signup { margin-top: 14px; padding: 12px 14px; border: 1px dashed #e3b3bd; border-radius: var(--radius-sm); background: #fff8f9; }
.checkout-signup .auth-check { margin: 2px 0; }
.checkout-signup-fields { margin-top: 10px; }

/* 退貨區 */
.returns-head { margin-bottom: 16px; }
.returns-empty { padding: 28px; text-align: center; }
.returns-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.returns-order { padding: 16px 18px; margin-bottom: 12px; }
.returns-order header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.returns-order header div { display: flex; flex-direction: column; }
.returns-request { padding: 10px 12px; margin: 8px 0; background: var(--surface-alt); border-radius: var(--radius-sm); display: grid; gap: 4px; }
.returns-reply { color: var(--brand-strong); }
.returns-form { padding: 20px 22px; }
.returns-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.returns-item select { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; margin-left: 6px; }
.returns-reasons { display: grid; gap: 2px; }
