/* Mission Angel 護膚品網店 — mobile-first 樣式（v2：Kueshi／Dermastir／Apis） */
:root {
  --ink: #2b2b2b;
  --ink-2: #6b6b6b;
  --line: #e4e0d9;
  --card: #ffffff;
  --bg: #F7F4EF;          /* 暖米底 */
  --primary: #3E7C6B;     /* Sage 主色 */
  --primary-ink: #ffffff;
  --accent: #C98A7D;      /* 玫瑰金 */
  --good: #3E7C6B;
  --bad: #b4442e;
  --radius: 12px;
  --header-h: 56px;
  --brand-kueshi: #F08A4B;
  --brand-dermastir: #3E7C6B;
  --brand-apis: #6E8F6A;
  /* 聖誕版皮膚（body.xmas 開關；節日後剷走 body 個 class 即還原） */
  --xmas-red: #C0392B;
  --xmas-red-deep: #8E2A2A;
  --xmas-gold: #C9A227;
  --xmas-pine: #1F4A3E;
  --xmas-snow: #FFFFFF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select, input, textarea { font-family: inherit; }
button { cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; max-width: 1200px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; letter-spacing: .3px; }
.brand-logo { height: 30px; width: auto; }
.menu-toggle {
  margin-left: auto; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; width: 44px; height: 44px; font-size: 1.15rem; color: var(--ink);
}
.main-nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line); flex-direction: column;
}
.main-nav.open { display: flex; }
.main-nav a { padding: 14px 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.cart-link { display: flex; align-items: center; gap: 5px; font-weight: 600; margin-left: auto; min-height: 44px; }
.cart-icon { font-size: 1.15rem; }
#cart-count {
  background: var(--accent); color: #fff; border-radius: 999px;
  min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; padding: 0 6px;
}

/* ---------- Main / footer ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 14px 14px 32px; min-height: 60vh; }
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 22px 14px 26px; }
.footer-brand { font-weight: 700; margin-bottom: 4px; }
.footer-note { color: var(--ink-2); font-size: .85rem; margin: 4px 0 12px; }
.footer-note a { color: var(--primary); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; }
.footer-nav a { color: var(--ink-2); }
.footer-disclaimer { color: var(--ink-2); font-size: .75rem; margin-top: 14px; }

/* ---------- 共用 ---------- */
.section-title { font-size: 1.02rem; font-weight: 700; margin: 20px 0 10px; }
.page-title { font-size: 1.25rem; font-weight: 700; margin: 6px 0 12px; }
.muted { color: var(--ink-2); }
.price { font-weight: 700; color: var(--primary); }
.price-pending { color: var(--accent); font-weight: 700; font-size: .88rem; }
.price-enquiry { color: var(--ink); font-weight: 700; font-size: .92rem; }
.price-enquiry small { display: block; color: var(--ink-2); font-weight: 400; font-size: .68rem; line-height: 1.3; }
.btn {
  display: inline-block; border: 0; border-radius: 10px; padding: 12px 18px; min-height: 44px;
  font-size: .95rem; font-weight: 600; text-align: center; background: var(--primary); color: var(--primary-ink);
}
.btn.block { display: block; width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.whatsapp { background: #25D366; color: #08351b; }
.btn.added { background: #2f5f52; }
.btn.mini { padding: 8px 12px; font-size: .78rem; border-radius: 8px; min-height: 34px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 首頁 ---------- */
.hero {
  background: linear-gradient(180deg, #F4EEE6 0%, #EFE7DC 100%);
  border-radius: 16px; padding: 26px 20px 18px; margin-bottom: 8px;
}
.hero-kicker { font-size: .68rem; letter-spacing: .22em; color: var(--primary); font-weight: 700; margin: 0 0 8px; }
.hero h1 { font-size: 1.6rem; line-height: 1.35; margin: 0 0 10px; letter-spacing: .02em; }
.hero p { color: var(--ink-2); margin: 0 0 16px; font-size: .92rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero-actions .btn { flex: 1 1 auto; }
.btn.ghost-light { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.selling-points { display: flex; flex-wrap: wrap; gap: 8px; }
.selling-points span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: .78rem; color: var(--ink-2);
}
.brand-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.brand-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: block; border-left: 4px solid var(--line);
}
.brand-card.bc-kueshi { border-left-color: var(--brand-kueshi); }
.brand-card.bc-dermastir { border-left-color: var(--brand-dermastir); }
.brand-card.bc-apis { border-left-color: var(--brand-apis); }
.bc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bc-top h3 { margin: 0; font-size: 1.02rem; }
.bc-top span { color: var(--ink-2); font-size: .76rem; }
.brand-card p { margin: 2px 0 6px; color: var(--ink-2); font-size: .84rem; }
.bc-count { color: var(--primary); font-size: .8rem; font-weight: 600; }
.home-note { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 18px; }
.home-note h3 { margin: 0 0 6px; font-size: .95rem; }
.home-note ol { margin: 0 0 8px; padding-left: 20px; font-size: .88rem; color: var(--ink-2); }
.home-note p { margin: 0; font-size: .8rem; }

/* ---------- 目錄 ---------- */
.toolbar { display: flex; gap: 8px; margin: 10px 0; }
.toolbar input, .toolbar select {
  flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 9px; font-size: .9rem; background: #fff; min-height: 44px;
}
.toolbar input[type="search"] { flex: 2 1 60%; }
.toolbar select { flex: 0 0 auto; width: 92px; padding-right: 26px; font-size: .86rem; }
.cat-chips { display: flex; gap: 8px; margin: 10px 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; white-space: nowrap;
  padding: 9px 14px; font-size: .83rem; color: var(--ink); min-height: 38px; display: inline-flex; align-items: center;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.result-line { font-size: .82rem; color: var(--ink-2); margin: 4px 0 12px; }
.result-line .muted { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; display: flex; flex-direction: column; gap: 6px;
}
.product-card .card-link { display: flex; flex-direction: column; gap: 6px; }
.product-card .card-price { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.product-card .thumb {
  aspect-ratio: 1/1; background: #f2eeea; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.brand-tag { color: var(--ink-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.brand-tag.bt-kueshi { color: var(--brand-kueshi); }
.brand-tag.bt-dermastir { color: var(--brand-dermastir); }
.brand-tag.bt-apis { color: var(--brand-apis); }
.product-card h3 {
  font-size: .88rem; margin: 0; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .vol { color: var(--ink-2); font-size: .76rem; }
.img-empty { color: #c9b8a6; font-size: 1.6rem; }

/* ---------- 產品詳情 ---------- */
.pdp-gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.pdp-gallery .thumb { aspect-ratio: 1/1; background: #f2eeea; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pdp-gallery img { width: 100%; height: 100%; object-fit: contain; }
.img-note { text-align: center; color: var(--ink-2); font-size: .75rem; margin: 8px 0 0; }
.pdp-info { margin-top: 4px; }
.pdp h1 { font-size: 1.28rem; margin: 8px 0 2px; line-height: 1.4; }
.pdp .brand-line { color: var(--ink-2); font-size: .84rem; }
.pdp .price-row { margin: 10px 0 6px; font-size: 1.25rem; }
.pdp .meta-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--ink-2); margin-bottom: 6px; }
.pdp .meta-row span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.pdp section { margin-top: 16px; }
.pdp section h2 { font-size: .96rem; margin: 0 0 6px; }
.pdp section p { margin: 0; font-size: .9rem; color: #3a3a3a; }
.pdp .actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.back-link { display: block; font-size: .82rem; color: var(--ink-2); margin-bottom: 8px; }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-row button { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 1.1rem; }

/* ---------- 購物車 / 結帳 ---------- */
.cart-item {
  display: flex; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin-bottom: 10px; align-items: center; flex-wrap: wrap;
}
.cart-item .thumb { order: 0; width: 72px; height: 72px; background: #f2eeea; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item .info { order: 1; flex: 1 1 calc(100% - 84px); min-width: 0; }
.cart-item .info h3 { font-size: .88rem; margin: 0; line-height: 1.35; }
.cart-item .info .vol { color: var(--ink-2); font-size: .76rem; }
.cart-item .info .price { font-size: .88rem; }
.cart-item .remove { order: 2; color: var(--bad); background: none; border: 0; font-size: .8rem; padding: 6px; }
.cart-item .qty { order: 3; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cart-item .qty button { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 7px; font-size: 1rem; }
.cart-item .qty span { min-width: 22px; text-align: center; font-weight: 600; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.summary .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .92rem; }
.summary .row.total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.summary-note { font-size: .78rem; color: var(--accent); background: #fff7ed; border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; }

.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: .85rem; margin-bottom: 5px; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 1rem; background: #fff; min-height: 46px;
}
.form-field textarea { min-height: 84px; resize: vertical; }
.form-field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, #8a8a8a 50%), linear-gradient(135deg, #8a8a8a 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* ---------- 內容頁 ---------- */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.prose h1 { font-size: 1.22rem; margin-top: 0; }
.prose h2 { font-size: 1rem; margin: 18px 0 6px; }
.prose h3 { font-size: .92rem; margin: 12px 0 4px; }
.prose p { font-size: .9rem; margin: 0 0 8px; }
.prose a { color: var(--primary); font-weight: 600; }
.prose.center { text-align: center; }
.prose .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; }
.prose th { background: #faf8f6; }

.empty { text-align: center; color: var(--ink-2); padding: 40px 10px; }
.empty .btn { margin-top: 12px; }
.notice { background: #fff7ed; border: 1px solid #f0d9b5; border-radius: var(--radius); padding: 12px 14px; font-size: .82rem; margin: 10px 0; color: #6b4a2a; }

/* ---------- 浮動 WhatsApp 客服 ---------- */
.wa-fab {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #06331b; font-weight: 700; font-size: .85rem;
  padding: 12px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(37, 211, 102, .38);
}
.wa-fab svg { display: block; }
.wa-fab:active { transform: translateY(1px); }

/* ---------- 響應式 ---------- */
@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 1.85rem; }
  .result-line .muted { display: inline; }
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .menu-toggle { display: none; }
  .main-nav { display: flex; position: static; flex-direction: row; border: 0; gap: 2px; background: none; }
  .main-nav a { border: 0; padding: 8px 10px; color: var(--ink-2); font-size: .9rem; }
  .main-nav a:hover { color: var(--ink); }
  .cart-link { margin-left: auto; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 40px 36px 28px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions .btn { flex: 0 0 auto; }
  .pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
  .pdp-gallery { position: sticky; top: 74px; align-self: start; }
  .pdp-info { margin-top: 0; }
  .wa-fab { right: 24px; bottom: 24px; }
  .cart-item { flex-wrap: nowrap; }
  .cart-item .thumb { width: 64px; height: 64px; }
  .cart-item .info { flex: 1 1 auto; }
  .cart-item .qty { order: 2; margin-left: 12px; }
  .cart-item .remove { order: 3; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1440px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
  main { padding: 20px 24px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-fab:active { transform: none; }
}

/* ---------- 聖誕版皮膚（body.xmas 開關；節日後剷走 <body> 個 class 即還原） ---------- */

/* 頂部節日 ribbon：紅＋金兩條幼線 */
body.xmas .site-header { border-top: 3px solid var(--xmas-red); }
body.xmas .site-header .header-inner { box-shadow: inset 0 3px 0 var(--xmas-gold); }

/* CTA 主按鈕：聖誕紅（WhatsApp 查價照舊綠） */
body.xmas .btn { background: var(--xmas-red); color: var(--xmas-snow); }
body.xmas .btn:hover { background: var(--xmas-red-deep); }
body.xmas .btn.ghost { background: #fff; color: var(--xmas-red); border: 1px solid var(--xmas-red); }
body.xmas .btn.ghost:hover { background: var(--xmas-red); color: #fff; }
body.xmas .btn.ghost-light { background: #fff; color: var(--xmas-red); border: 1px solid var(--xmas-red); }
body.xmas .btn.whatsapp { background: #25D366; color: #08351b; }
body.xmas .btn.added { background: #2F5F52; }
body.xmas .chip.active { background: var(--xmas-red); border-color: var(--xmas-red); }

/* hero：深綠漸變＋半透明雪花 */
body.xmas .hero {
  background:
    radial-gradient(2px 2px at 12% 24%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 30% 66%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(3px 3px at 46% 28%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(2px 2px at 62% 72%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(3px 3px at 78% 22%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 91% 58%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(2px 2px at 20% 88%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 40%, rgba(255,255,255,.35) 50%, transparent 51%),
    linear-gradient(135deg, var(--xmas-pine) 0%, #2F5F52 100%);
}
body.xmas .hero-kicker { color: var(--xmas-gold); }
body.xmas .hero h1 { color: var(--xmas-snow); }
body.xmas .hero p { color: rgba(255,255,255,.85); }
body.xmas .selling-points span { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }

/* 產品卡：金色幼邊＋左上「聖誕限定」標籤＋右上金色雪花 */
body.xmas .product-card { border: 1px solid var(--xmas-gold); position: relative; }
body.xmas .product-card::before {
  content: "聖誕限定";
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--xmas-red); color: var(--xmas-gold);
  font-size: .62rem; font-weight: 700; line-height: 1;
  padding: 3px 7px; border-radius: 999px; letter-spacing: .5px;
}
body.xmas .product-card::after {
  content: "";
  position: absolute; top: 7px; right: 8px; z-index: 2; width: 15px; height: 15px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g stroke='%23C9A227' stroke-width='1.7' stroke-linecap='round'><line x1='12' y1='1.5' x2='12' y2='22.5'/><line x1='1.5' y1='12' x2='22.5' y2='12'/><line x1='4.6' y1='4.6' x2='19.4' y2='19.4'/><line x1='4.6' y1='19.4' x2='19.4' y2='4.6'/></g></svg>") center/contain no-repeat;
}

/* footer：松柏深綠底＋金色分隔線 */
body.xmas .site-footer { background: #2F5F52; border-top: 1px solid var(--xmas-gold); }
body.xmas .footer-brand { color: #fff; }
body.xmas .footer-note { color: rgba(255,255,255,.8); }
body.xmas .footer-note a { color: var(--xmas-gold); }
body.xmas .footer-nav a { color: rgba(255,255,255,.75); }
body.xmas .footer-disclaimer { color: rgba(255,255,255,.55); }

/* ============ 聖誕活動改進（公告欄／CTA／WhatsApp／動畫／drawer／禮遇） ============ */

/* 頂部公告欄＋倒數 */
.announce-bar {
  background: linear-gradient(90deg, #C0392B, #8E2A2A);
  color: #fff; text-align: center; font-size: .8rem; font-weight: 600;
  padding: 8px 12px; letter-spacing: .2px;
}
.announce-count { color: var(--xmas-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* CTA 轉酒紅（Burgundy）、特價徽章轉香檳金 */
body.xmas .btn { background: var(--xmas-red-deep); }
body.xmas .btn:hover { background: #6d2222; }
body.xmas .btn.added { background: #2F5F52; }
body.xmas .discount-label { background: var(--xmas-gold); color: #4a3a00; }

/* WhatsApp 脈衝光圈 */
.wa-fab { position: relative; }
.wa-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, .6);
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab::before { animation: none; } }

/* hero 文字 fade-in */
.hero-kicker, .hero h1, .hero p, .hero-actions, .selling-points {
  animation: heroFadeUp .8s ease-out both;
}
.hero h1 { animation-delay: .1s; }
.hero p { animation-delay: .2s; }
.hero-actions { animation-delay: .3s; }
.selling-points { animation-delay: .4s; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero h1, .hero p, .hero-actions, .selling-points { animation: none; }
}

/* 產品卡 hover 放大 1.05（placeholder 畫質唔放大，避免朦） */
.product-card .thumb img { transition: transform .4s ease; }
@media (hover: hover) {
  .product-card:hover .thumb img { transform: scale(1.05); }
  .product-card .thumb.is-placeholder img { transition: none; }
  .product-card:hover .thumb.is-placeholder img { transform: none; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 輕量飄雪 */
.snowfall { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.snowflake {
  position: absolute; top: -12px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,.8);
  animation: snowFall linear infinite;
}
@keyframes snowFall { to { transform: translateY(110vh); } }
@media (prefers-reduced-motion: reduce) { .snowfall { display: none; } }

/* 購物車側邊 drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-drawer-backdrop {
  position: absolute; inset: 0; background: rgba(20,20,20,.45);
  opacity: 0; transition: opacity .25s ease;
}
.cart-drawer.open .cart-drawer-backdrop { opacity: 1; }
.cart-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 400px);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,.15);
}
.cart-drawer.open .cart-drawer-panel { transform: none; }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { margin: 0; font-size: 1.05rem; }
.cart-drawer-close { border: 0; background: none; font-size: 1.2rem; color: var(--ink); width: 40px; height: 40px; }
.cart-drawer-items { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px; }
.cart-drawer-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }

/* 免運進度條 */
.free-ship-bar { padding: 10px 16px 6px; }
.free-ship-text { font-size: .82rem; color: var(--ink-2); margin-bottom: 6px; }
.free-ship-track { height: 8px; background: #f0e9df; border-radius: 999px; overflow: hidden; }
.free-ship-fill {
  height: 100%; background: linear-gradient(90deg, var(--xmas-red), var(--xmas-red-deep));
  border-radius: 999px; transition: width .4s ease;
}
.free-ship-done { font-size: .85rem; font-weight: 700; color: #2F5F52; padding: 2px 0 8px; }

/* 聖誕禮遇分頁 */
.gift-band { margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gift-band .section-title { margin-top: 0; display: flex; align-items: baseline; gap: 8px; }
.gift-count { font-size: .72rem; color: var(--ink-2); font-weight: 400; }
.gift-band.tone-kueshi { border-color: var(--brand-kueshi); }
.gift-band.tone-gold { border-color: var(--xmas-gold); }
.gift-band.tone-dermastir { border-color: var(--brand-dermastir); }

/* 折扣 summary 行（drawer + 結帳） */
.drawer-summary { padding: 4px 16px 8px; border-top: 1px solid var(--line); }
.drawer-summary .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; }
.drawer-summary .row.total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.drawer-summary .row.discount, .summary .row.discount { color: var(--xmas-red-deep); font-weight: 600; }
.drawer-summary .row.note, .summary .row.note { font-size: .78rem; color: var(--ink-2); }

/* 首頁原廠示範影片（點擊才載入） */
.home-video { margin: 6px 0 14px; }
.home-video .section-title { margin-top: 0; }
.home-video-sub { color: var(--ink-2); font-size: .86rem; margin: 0 0 12px; }
.video-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #1f4a3e;
}
.video-facade .video-thumb { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: var(--xmas-red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.video-iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
@media (min-width: 768px) {
  .home-video { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: center; }
  .home-video-sub { margin-bottom: 0; }
}

/* 聖誕禮物盒彈窗 */
.coupon-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; }
.coupon-modal[hidden] { display: none; }
.coupon-backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.55); }
.coupon-card {
  position: relative; background: #fff; border-radius: 16px; width: min(92vw, 420px);
  max-height: 86vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.3);
  animation: couponPop .3s ease-out;
}
@keyframes couponPop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.coupon-close { position: absolute; top: 10px; right: 10px; border: 0; background: none; font-size: 1.2rem; color: var(--ink-2); width: 40px; height: 40px; }
.coupon-body { padding: 26px 20px 20px; text-align: center; }
.coupon-gift { font-size: 2.4rem; margin-bottom: 4px; }
.coupon-body h2 { margin: 0 0 10px; font-size: 1.15rem; }
.coupon-code {
  font-size: 1.6rem; font-weight: 800; letter-spacing: 2px; color: var(--xmas-red-deep);
  background: #fff7ed; border: 2px dashed var(--xmas-gold); border-radius: 10px;
  padding: 10px 14px; margin: 8px auto 12px; display: inline-block; user-select: all;
}
.coupon-note { color: var(--ink-2); font-size: .8rem; margin: 0 0 16px; text-align: left; }
.coupon-body .btn { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .coupon-card { animation: none; }
}
