/* ==========================================================================
   GLOBAL DESIGN TOKENS  —  改一個 :root 變數，全站套用
   品牌：Addless 風格 · 極簡 · 大量留白 · 細線條
   ========================================================================== */

:root {
  /* ---------- Brand Palette (粉色系，可一鍵替換) ---------- */
  --brand-accent:   #E08899;   /* 主色：按鈕、Logo、標題底線（玫瑰粉，飽和度提高）*/
  --brand-hover:    #C96D81;   /* hover 加深（深玫瑰）*/
  --brand-light:    #FBE5EA;   /* 淡粉：背景、tag、分隔 */
  --brand-ink:      #1A1A1A;   /* 文字主色（極黑） */
  --brand-muted:    #8A8A8A;   /* 副文字 */
  --brand-line:     #E8E8E8;   /* 細線條 */
  --brand-bg:       #FFFFFF;   /* 主背景 */
  --brand-bg-alt:   #FAF8F7;   /* 微暖白，用於分區 */

  /* ---------- Type ---------- */
  --font-heading: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-body:    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en:      "Cormorant Garamond", "Noto Sans TC", serif;
  /* 數字專用：用 Inter 取代 Cormorant，提升金額/訂單編號等資訊辨識度
     保留 --font-en 給品牌名、breadcrumb、blog 結尾等裝飾性英文 */
  --font-num:     "Inter", "Helvetica Neue", "Noto Sans TC", sans-serif;

  /* ---------- Motion ---------- */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    0.25s;
  --dur-base:    0.45s;
  --dur-slow:    0.8s;

  /* ---------- Layout ---------- */
  --container-max: 1440px;
  --gutter: clamp(24px, 4vw, 64px);
  --navbar-h:      72px;
}

/* Theme presets — 切換 data-theme 即可替換主色 */
[data-theme="rose"]   { --brand-accent:#F4B6C2; --brand-hover:#E89AAB; --brand-light:#FCE7EC; }
[data-theme="coral"]  { --brand-accent:#FF8FA3; --brand-hover:#E96B85; --brand-light:#FFE4EA; }
[data-theme="mauve"]  { --brand-accent:#D8A7B1; --brand-hover:#B98692; --brand-light:#F2E1E4; }
[data-theme="dusty"]  { --brand-accent:#E8B4BC; --brand-hover:#C98B95; --brand-light:#FAF0F1; }

/* Font presets */
[data-font="sans"]   { --font-body: "Noto Sans TC", sans-serif; --font-heading: "Noto Sans TC", sans-serif; }
[data-font="round"]  { --font-body: sans-serif; --font-heading: "Noto Sans TC", sans-serif; }
[data-font="serif"]  { --font-body: "Noto Serif TC", serif; --font-heading: "Noto Serif TC", serif; }

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 3px; /* 全站統一字距，子元素會繼承此設定 */
  color: var(--brand-ink);
  background: var(--brand-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #3A3A3A;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-soft); }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================================================
   NAVBAR  (滾動 50px 後加入背景模糊)
   ========================================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--navbar-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: transparent;
  transition:
    background-color var(--dur-base) var(--ease-soft),
    backdrop-filter var(--dur-base) var(--ease-soft),
    border-color var(--dur-base) var(--ease-soft),
    color var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft);
  border-bottom: 1px solid transparent;
}
/* Navbar 在 hero 上方（未滾動時）：白字模式，僅限有 hero 的頁面 */
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) {
  color: #fff;
}
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__menu a,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__icons button,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__logo .brand-name {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__logo svg {
  stroke: #fff;
}
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__toggle .bar {
  background: #fff;
}
/* 手機抽屜內：永遠白底黑字，不被父 navbar 的白字模式影響 */
.navbar__drawer,
.navbar__drawer a,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__drawer,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__drawer a {
  color: var(--brand-ink);
  text-shadow: none;
}
/* 抽屜內 hover 改粉色（特異性需大於上方強制黑字規則）*/
.navbar__drawer a:hover,
body[data-screen-label="01 Home"] .navbar:not(.is-scrolled) .navbar__drawer a:hover {
  color: var(--brand-hover);
}
/* 其他頁面（無 hero）的未滾動狀態：直接顯示白底邏輯，不要 transparent */
body:not([data-screen-label="01 Home"]) .navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--brand-line);
}
/* 滾動之後：白底、黑字（恢復原樣） */
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--brand-line);
}
.navbar.is-scrolled .navbar__logo svg {
  stroke: var(--brand-accent);
}
.navbar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: none;
}
.navbar__logo .brand-name { font-style: italic; font-weight: 400; }
.navbar__logo svg { stroke: var(--brand-accent); transition: stroke var(--dur-fast) var(--ease-soft); }
.navbar__logo:hover svg { stroke: var(--brand-hover); }

.navbar__menu {
  display: flex;
  gap: 36px;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.navbar__menu a {
  position: relative;
  padding: 6px 0;
  color: var(--brand-ink);
}
.navbar__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-smooth);
}
.navbar__menu a:hover::after { transform: scaleX(1); transform-origin: left; }

.navbar__icons {
  display: flex;
  align-items: center;
  gap: 22px;
}
.navbar__icons button {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-ink);
  transition: color var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
  position: relative;
}
.navbar__icons button:hover { color: var(--brand-hover); transform: translateY(-1px); }
.navbar__icons .cart-badge {
  position: absolute;
  top: -9px; right: -11px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 13px; line-height: 22px; /* 字體與圓徑同步放大，提升可辨識度 */
  font-weight: 700;
  text-align: center;
  font-family: var(--font-num); /* 數字改用 Inter，小尺寸下比 Cormorant 更清晰 */
  box-shadow: 0 0 0 2px #fff; /* 加寬白邊讓 badge 與 icon 有更明顯區隔 */
}

/* ---- Mobile hamburger toggle ---- */
.navbar__icons .navbar__toggle {
  display: none;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  color: var(--brand-ink);
}
.navbar__toggle span {
  position: relative;
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-soft), opacity var(--dur-fast);
}
.navbar__toggle span::before,
.navbar__toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-soft), top var(--dur-base) var(--ease-soft);
}
.navbar__toggle span::before { top: -7px; }
.navbar__toggle span::after  { top:  7px; }
.navbar__toggle.is-open span                  { background: transparent; }
.navbar__toggle.is-open span::before          { top: 0; transform: rotate(45deg); }
.navbar__toggle.is-open span::after           { top: 0; transform: rotate(-45deg); }

/* ---- Mobile drawer ---- */
.navbar__drawer {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - var(--navbar-h));
  width: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding: 40px var(--gutter) 56px;
  display: none;
  flex-direction: column;
  gap: 28px;
  z-index: 49;
  border-top: 1px solid var(--brand-line);
  overflow-y: auto;
  box-sizing: border-box;
}
.navbar__drawer.is-open { display: flex; }
.navbar__drawer a {
  display: block;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-line);
  width: 100%;
}
.navbar__drawer a:hover { color: var(--brand-hover); }

@media (max-width: 768px) {
  .navbar__menu { display: none; }
  .navbar__icons .navbar__toggle { display: inline-flex; }
  .navbar__icons { gap: 14px; }
  .navbar__inner { gap: 12px; }
  .navbar__logo { font-size: 22px; gap: 8px; }
  .navbar__logo svg { width: 24px; height: 24px; }
  /* Hide search on mobile to save space; cart + account remain */
  .navbar__icons > button[aria-label="搜尋"] { display: none; }
}
/* Lock scroll when drawer open */
body.is-drawer-open { overflow: hidden; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 18px;
  letter-spacing: 0.12em;
  border-radius: 999px;
  transition:
    background-color var(--dur-base) var(--ease-soft),
    color var(--dur-base) var(--ease-soft),
    transform var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft),
    border-color var(--dur-base) var(--ease-soft);
  will-change: transform;
}
.btn-primary {
  background: var(--brand-accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {  /* 排除 disabled 狀態，避免售完按鈕仍變色 */
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(232, 154, 171, 0.55);
  color: #fff;
}
/* 共用 disabled 樣式：售完或暫停操作時統一灰底、停用互動視覺 */
.btn:disabled,
.btn[disabled] {
  background: #c9c9c9;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 1;
}
.btn-ghost {
  border: 1px solid var(--brand-ink);
  color: var(--brand-ink);
}
.btn-ghost:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-light {
  background: var(--brand-light);
  color: var(--brand-ink);
}
.btn-light:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn:focus,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 98, 120, 0.25);
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }

/* 連續分類 section 的斑馬條紋：奇數套底色、偶數白底 */
/* 預設給底色，作為不支援 :nth-child(... of S) 的舊瀏覽器 fallback */
.section-stripe { background: var(--brand-bg-alt); }
/* CSS Selectors Level 4：在所有 .section-stripe 內依序計算，不受其它兄弟 section 干擾 */
.section-stripe:nth-child(even of .section-stripe) { background: #fff; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-muted);
  font-weight: 500;
}
.section-title { font-size: clamp(24px, 3.4vw, 40px); font-weight: 400; letter-spacing: 0.04em; position: relative; padding-bottom: 16px; margin-bottom: 32px; color: #3A3A3A; }
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 2px;
  background: var(--brand-accent);
}
.section-title.center { display: block; text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-lede {
  max-width: 56ch;
  color: var(--brand-muted);
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.9;
}
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   HERO CAROUSEL
   ========================================================================== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 480px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-bg-alt) 100%);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-smooth);
  background-size: cover;
  background-position: center;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 35%, rgba(0,0,0,0.15) 65%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}
.hero__content {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(60px, 12vh, 140px);
  z-index: 2;
  color: #fff;
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero__content .eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.32em;
  font-size: 15px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 18px;
}
.hero__content h1 {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: clamp(44px, 7vw, 55px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.18;
  margin-bottom: 28px;
  color: #fff;
}
.hero__content p {
  font-size: 18px;
  line-height: 1.9;
  max-width: 460px;
  opacity: 0.92;
  margin-bottom: 32px;
}
.hero__dots {
  position: absolute;
  bottom: 48px; right: var(--gutter);
  display: flex; gap: 12px;
  z-index: 3;
}
.hero__dots button {
  width: 32px; height: 2px;
  background: rgba(255,255,255,0.4);
  transition: background var(--dur-base) var(--ease-soft), width var(--dur-base) var(--ease-soft);
}
.hero__dots button.is-active { background: #fff; width: 56px; }

.hero__counter {
  position: absolute;
  bottom: 48px; left: var(--gutter);
  z-index: 3;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.24em;
  color: #fff;
  display: flex; align-items: center; gap: 14px;
}
.hero__counter .line { width: 40px; height: 1px; background: rgba(255,255,255,0.5); }

/* ---- Hero RWD ---- */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 70vh;
  }
  .hero__content {
    bottom: 110px;     /* 讓位給底部的 counter / dots，避免重疊 */
    right: var(--gutter);
    max-width: none;
  }
  .hero__content h1 { margin-bottom: 18px; }
  .hero__content p { margin-bottom: 24px; max-width: none; font-size: 17px; }
  .hero__counter { bottom: 60px; font-size: 14px; }
  .hero__counter .line { width: 28px; }
  .hero__dots { bottom: 28px; }
  .hero__dots button { width: 22px; }
  .hero__dots button.is-active { width: 36px; }
}
@media (max-width: 480px) {
  .hero { min-height: 92vh; }
  .hero__content { bottom: 100px; }
  .hero__content .eyebrow { font-size: 13px; margin-bottom: 12px; }
  .hero__content .btn { padding: 12px 22px; font-size: 15px; }
}

/* ==========================================================================
   PRODUCT GRID & CARD
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 40px) clamp(16px, 1.8vw, 28px);
}
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .product-grid { grid-template-columns: 1fr; } }

/* min-width: 0 解除 grid item 預設的 auto (= min-content) 寬度，避免內部 <img> naturalWidth 把 grid track 撐爆 */
.product-card { display: block; min-width: 0; }
.product-card__media {
  position: relative;
  overflow: hidden;
  width: 100%; /* 明確指定寬度為父層 100%，搭配 aspect-ratio 才會以容器寬度推導高度 */
  aspect-ratio: 3 / 4;
  background: var(--brand-bg-alt);
  margin-bottom: 16px;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-smooth);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--brand-light);
  color: var(--brand-ink);
  font-size: 13px;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  z-index: 2;
}
.product-card__quick {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--brand-ink);
  transform: translateY(100%);
  transition: transform var(--dur-base) var(--ease-smooth);
}
.product-card:hover .product-card__quick { transform: translateY(0); color: var(--brand-hover); }

/* 售完遮罩：覆蓋整張商品圖，半透明灰色底色搭配置中 Sold Out 文字 */
.product-card__sold-out {
  position: absolute;
  inset: 0;
  background: rgba(128, 128, 128, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.product-card__sold-out span {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 18px;
  font-weight: 500;
}
/* 售完商品停用 hover 放大與快速檢視動效，避免誤導使用者仍可加入購物車 */
.product-card.is-sold-out:hover .product-card__media img { transform: none; }
.product-card.is-sold-out .product-card__quick { display: none; }

.product-card__title {
  font-size: 20px;
  margin: 6px 0 4px;
  font-weight: 400;
}
.product-card__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brand-muted);
  margin-bottom: 8px;
  /* 單行省略：超過容器寬度時以「…」截斷，避免列表卡片高度不一致 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card__price {
  font-family: var(--font-num);
  font-size: 22px; /* 商品卡片售價放大，是商品列表最關鍵的數字資訊 */
  font-weight: 500;
  letter-spacing: 0.02em; /* Inter 走窄一點的字距，比 Cormorant 緊湊 */
  font-variant-numeric: tabular-nums;
}
.product-card__price del { color: var(--brand-muted); margin-right: 8px; }

/* ==========================================================================
   CTA / MEMBER BLOCK
   ========================================================================== */
.cta-block {
  background: var(--brand-light);
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  text-align: center;
}
.cta-block h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.cta-block p {
  max-width: 52ch;
  margin: 0 auto 32px;
  color: var(--brand-ink);
  opacity: 0.78;
  line-height: 1.9;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--brand-line);
  padding: 80px 0 40px;
  font-size: 15px;
  color: var(--brand-muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer__col h4 {
  color: #1A1A1A;
  font-size: 17px;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 24px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a:hover { color: var(--brand-hover); }
.footer__bottom {
  border-top: 1px solid var(--brand-line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-en);
  letter-spacing: 0.16em;
  font-size: 14px;
}
.footer__social { display: flex; gap: 18px; }
.footer__social a { width: 36px; height: 36px; border: 1px solid var(--brand-line); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; transition: all var(--dur-base) var(--ease-soft); }
.footer__social a:hover { border-color: var(--brand-accent); color: var(--brand-accent); transform: translateY(-2px); }

@media (max-width: 768px) {
  .footer { padding: 56px 0 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; margin-bottom: 40px; }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-smooth),
    transform 0.9s var(--ease-smooth);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-field {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px;
}
.form-field label {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #3A3A3A;
  font-family: var(--font-body);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  border: none;
  border-bottom: 1px solid var(--brand-line);
  background: transparent;
  padding: 10px 12px;            /* 加入左右 padding，避免輸入內容貼齊邊框 */
  font: inherit;
  color: var(--brand-ink);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--brand-accent);
}

/* ==========================================================================
   CART / TABLE
   ========================================================================== */
.cart-row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--brand-line);
}
.cart-row img { width: 120px; aspect-ratio: 3/4; object-fit: cover; }

@media (max-width: 640px) {
  .cart-row {
    grid-template-columns: 88px 1fr auto;
    grid-template-areas:
      "img title remove"
      "img price price";
    gap: 12px 16px;
    align-items: start;
  }
  .cart-row img { width: 88px; grid-area: img; }
  .cart-row > *:nth-child(2) { grid-area: title; }
  .cart-row > *:nth-child(3) { grid-area: price; align-self: end; }
  .cart-row > *:nth-child(4) { grid-area: remove; justify-self: end; }
}
.qty {
  display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--brand-line); padding: 6px 12px;
}
.qty button { width: 20px; height: 20px; }
.qty button:hover { color: var(--brand-hover); }

/* ==========================================================================
   BREADCRUMB & MISC
   ========================================================================== */
.breadcrumb {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.breadcrumb a:hover { color: var(--brand-hover); }
.breadcrumb .sep { width: 18px; height: 1px; background: var(--brand-line); }

.divider { width: 100%; height: 1px; background: var(--brand-line); }

.tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  background: var(--brand-light);
  color: var(--brand-ink);
}

/* ==========================================================================
   V2 (Minimal) — RWD overrides
   v2-cat / v2-hero__img RWD 已由 v2 內建 <style> 處理；此處只補 marquee
   ========================================================================== */
@media (max-width: 768px) {
  .v2-hero { padding-top: calc(var(--navbar-h) + 36px); }
}
@media (max-width: 480px) {
  .v2-marquee { font-size: clamp(56px, 16vw, 96px) !important; }
}

/* ==========================================================================
   V3 (Asymmetric) — RWD overrides
   ========================================================================== */
@media (max-width: 1024px) {
  /* 平板：v3-feat 的 12 欄錯落改成 6 欄成對 */
  .v3-feat__a { grid-column: 1 / span 7 !important; }
  .v3-feat__b { grid-column: 8 / span 5 !important; align-self: start !important; }
  .v3-feat__c { grid-column: 1 / -1 !important; margin-top: 32px !important; }
}

@media (max-width: 768px) {
  .v3-hero {
    min-height: auto;
    padding-bottom: 0;
  }
  .v3-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .v3-hero__text {
    padding: 40px 24px 36px;
  }
  .v3-hero__text h1 {
    font-size: clamp(48px, 14vw, 80px);
    margin-bottom: 24px;
  }
  .v3-hero__image {
    aspect-ratio: 4 / 5;
    height: auto;
  }
  /* 浮動小圖在手機上縮小並避免被內容裁切 */
  .v3-hero__floating {
    width: 36vw;
    bottom: 20px;
    right: 20px;
    border-width: 4px;
  }
  /* 手機上文字區塊保留底部空間，避免被浮動小圖蓋住 */
  .v3-hero__text { padding-bottom: clamp(28px, 6vw, 48px); }
  .v3-hero__image { padding-bottom: 0; }
  /* Marquee 縮小 */
  .v3-marquee { padding: 14px 0; }
  .v3-marquee__track { font-size: 16px; gap: 36px; }
  .v3-marquee__track span { gap: 36px; }
  /* Featured 全部單欄 */
  .v3-feat { gap: 16px; }
  .v3-feat__a,
  .v3-feat__b,
  .v3-feat__c {
    grid-column: 1 / -1 !important;
    margin-top: 0 !important;
    aspect-ratio: 4 / 5 !important;
  }
  .v3-feat__b { aspect-ratio: 1 / 1 !important; }
  /* 分類大數字縮小 */
  .v3-num { font-size: clamp(64px, 18vw, 110px); }
}

@media (max-width: 480px) {
  .v3-hero__text { padding: 32px 20px 28px; }
  .v3-hero__text h1 { font-size: clamp(42px, 13vw, 64px); }
  .v3-hero__floating { width: 40vw; bottom: 14px; right: 14px; border-width: 3px; }
  /* Hero 兩個按鈕在小螢幕上各佔一行寬度比較好點 */
  .v3-hero__text .flex.gap-4 { flex-wrap: wrap; gap: 10px; }
  .v3-hero__text .flex.gap-4 .btn { flex: 1 1 auto; padding: 12px 18px; font-size: 15px; }
}

/* ==========================================================================
   PRODUCT LIST — Filter bar RWD
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}
.filter-bar__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.filter-bar__cats button {
  padding: 8px 14px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-soft);
}
.filter-bar__cats button:hover { background: var(--brand-light); }
.filter-bar__cats button.is-active { background: var(--brand-light); }
.filter-bar__sort {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--brand-muted);
}
.filter-bar__sort label {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.filter-bar__sort select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--brand-line);
  padding: 6px 0;
  outline: none;
  font: inherit;
  color: inherit;
}

@media (max-width: 768px) {
  .filter-bar { gap: 12px; padding: 18px 0; }
  /* 手機讓分類條可水平捲動，避免換多行擠成一團 */
  .filter-bar__cats {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-bar__cats::-webkit-scrollbar { display: none; }
  .filter-bar__cats button { padding: 8px 12px; font-size: 13px; }
  .filter-bar__sort {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   PRODUCT DETAIL — Gallery / Info / Actions RWD
   ========================================================================== */
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr; /* 圖片區上限 560px，避免主圖過大 */
  gap: 48px;
  padding: 32px 0;
}
.pdp-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pdp-gallery__main {
  position: relative;
  aspect-ratio: 3 / 4; /* 與列表頁 product-card__media 同比例，方便共用同一張圖 */
  overflow: hidden;
  background: var(--brand-light);
}
.pdp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.pdp-gallery__main img.is-active { opacity: 1; }
.pdp-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.pdp-gallery__nav:hover { background: var(--brand-accent); color: #fff; }
.pdp-gallery__nav.prev { left: 16px; }
.pdp-gallery__nav.next { right: 16px; }
.pdp-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.pdp-gallery__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--brand-light);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  padding: 0;
  background-color: var(--brand-light);
}
.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-gallery__thumb:hover { opacity: 0.85; }
.pdp-gallery__thumb.is-active {
  border-color: var(--brand-accent);
}
.pdp-gallery__counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255,255,255,0.92);
  color: #2A2A2A;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 2;
}
@media (max-width: 640px) {
  .pdp-gallery__thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .pdp-gallery__nav { width: 38px; height: 38px; }
}
.pdp-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pdp-info { position: sticky; top: calc(var(--navbar-h) + 24px); align-self: start; }

.pdp-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}
.pdp-actions .btn-primary { flex: 1; }
.pdp-actions__fav {
  width: 52px;
  flex-shrink: 0;
  padding: 0;
}

.pdp-sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.pdp-sizes button {
  padding: 12px 0;
  border: 1px solid var(--brand-line);
  font-size: 16px;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.pdp-sizes button:hover { border-color: var(--brand-ink); }
.pdp-sizes button.is-active { border-color: var(--brand-ink); }

@media (max-width: 1024px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; padding: 24px 0; }
  .pdp-info { position: static; }
}
@media (max-width: 640px) {
  /* 手機 gallery 主圖全寬 + thumbs 改 2 欄保留瀏覽 */
  .pdp-gallery { gap: 8px; }
  .pdp-gallery__main { aspect-ratio: 3 / 4; }
}
@media (max-width: 380px) {
  /* 極窄螢幕：尺寸格 5 欄太擠，改成自動換行 */
  .pdp-sizes {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pdp-breadcrumb { flex-wrap: wrap; row-gap: 6px; }

/* ==========================================================================
   CART — 強化 cart-row 在 769–1024 中型螢幕可讀性
   （手機雙欄重排已在前面 640px 規則中處理）
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 641px) {
  .cart-row {
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 16px;
  }
  .cart-row img { width: 100px; }
}

/* Cart 主版面 (items + summary)：md:col-span 12 欄到單欄已由 Tailwind 處理；
   但需要在切到單欄時讓 summary 有合理間距 */
@media (max-width: 768px) {
  body[data-screen-label="04 Cart"] aside.md\:col-span-4 { margin-top: 8px; }
}

/* ==========================================================================
   CHECKOUT — Steps / Form / Summary RWD
   ========================================================================== */
.checkout-steps {
  display: flex;
  gap: 24px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.checkout-steps span {
  padding-bottom: 8px;
  white-space: nowrap;
}
.checkout-steps .is-current {
  border-bottom: 2px solid var(--brand-accent);
}
.checkout-steps .is-pending {
  color: var(--brand-muted);
}

@media (max-width: 640px) {
  .checkout-steps {
    gap: 12px;
    font-size: 13px;
    letter-spacing: 0.12em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .checkout-steps::-webkit-scrollbar { display: none; }
}

.checkout-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--brand-line);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.checkout-radio:hover { border-color: var(--brand-ink); }
.checkout-radio.is-active { border-color: var(--brand-accent); }
.checkout-radio__label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.checkout-radio__price {
  font-family: var(--font-num);
  font-size: 17px; /* 取貨/付款方式列的費用，明確指定字級避免被父層壓小 */
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .checkout-radio { padding: 12px 14px; font-size: 16px; }
}

/* Checkout 訂單明細圖文行：手機縮小圖、避免擠 */
.checkout-line {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-line);
  align-items: flex-start;
}
.checkout-line__img {
  width: 80px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
}
.checkout-line__body { flex: 1; min-width: 0; }
.checkout-line__price {
  font-family: var(--font-num);
  font-size: 18px; /* 訂單摘要單品價格，與商品卡片價格對齊 */
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .checkout-line { gap: 12px; }
  .checkout-line__img { width: 64px; height: 80px; }
}

/* 表單姓名/城市等 2 欄在極窄螢幕改單欄 */
@media (max-width: 380px) {
  body[data-screen-label="05 Checkout"] form .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

/* Checkout 手機：訂單摘要移到表單前面（dom 順序不變，靠 flex order） */
@media (max-width: 768px) {
  body[data-screen-label="05 Checkout"] .grid.md\:grid-cols-12 {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  body[data-screen-label="05 Checkout"] form { order: 2; }
  body[data-screen-label="05 Checkout"] aside { order: 1; }
  /* 手機上摘要的 padding 縮減 */
  body[data-screen-label="05 Checkout"] aside > div { padding: 24px; }
}

/* ==========================================================================
   ABOUT — Hero 大圖比例 / Material 中型螢幕 2 欄
   ========================================================================== */
.about-hero-img {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--brand-light);
}
@media (max-width: 768px) {
  .about-hero-img { aspect-ratio: 4 / 5; }
}

/* Material 3 欄在中型螢幕改 2 欄，避免每張圖太窄 */
@media (max-width: 1024px) and (min-width: 769px) {
  body[data-screen-label="07 About"] .grid.md\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   ACCOUNT — 兩欄 gap 在中型螢幕收斂
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
  body[data-screen-label="06 Account"] .grid.md\:grid-cols-2 {
    gap: 40px;
  }
}
/* 手機切單欄時，兩個區塊之間多一條分隔線增加視覺區隔 */
@media (max-width: 768px) {
  body[data-screen-label="06 Account"] .grid.md\:grid-cols-2 > div + div {
    padding-top: 32px;
    border-top: 1px solid var(--brand-line);
    margin-top: 8px;
  }
}

/* ==========================================================================
   ORDER DETAIL (06c) — 防止內容撐破手機版寬度
   - Grid 子項加 min-width:0，避免內部 min-content（datetime-local input、長字串）
     撐大隱式 column track，使外層 grid 寬度超過容器
   - input 強制 100% 寬度與 box-sizing，避免原生 datetime-local 的寬 intrinsic 撐出
   - 標題、flex 列允許長字串（訂單號、Email、帳號）換行
   ========================================================================== */
body[data-screen-label="06c Order Detail"] .grid.md\:grid-cols-12 > * { min-width: 0; }
body[data-screen-label="06c Order Detail"] .form-field input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body[data-screen-label="06c Order Detail"] .section-title.s-dash-1 {
  overflow-wrap: anywhere;
  word-break: break-word;
}
body[data-screen-label="06c Order Detail"] .flex.justify-between { gap: 12px; }
body[data-screen-label="06c Order Detail"] .flex.justify-between > * { min-width: 0; }
body[data-screen-label="06c Order Detail"] .flex.justify-between > *:last-child {
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: right;
}
body[data-screen-label="06c Order Detail"] .dash-order__item > div { min-width: 0; }

/* 訂單詳情頁所有數字（金額、電話、Email、帳號、日期）統一拉高字級並換成 Inter
   原本繼承父層 text-sm（14px）且為 Cormorant，連續數字辨識度低 */
body[data-screen-label="06c Order Detail"] .font-en {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
body[data-screen-label="06c Order Detail"] .dash-order__item .font-en {
  font-size: 18px; /* 商品明細單價，比一般數字再放大一級 */
  font-weight: 500;
}
body[data-screen-label="06c Order Detail"] .text-2xl.font-en {
  font-size: 30px; /* 訂單總計金額為此頁最重要數字，覆寫 text-2xl 預設 24px */
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  body[data-screen-label="06c Order Detail"] .grid.md\:grid-cols-12 { gap: 24px; }
  body[data-screen-label="06c Order Detail"] .p-6 { padding: 18px; }
  body[data-screen-label="06c Order Detail"] .text-2xl.font-en { font-size: 26px; } /* 窄螢幕避免換行 */
}

/* 訂單詳情頁的觸發列：標題與說明在左、操作按鈕在右
   - 桌機並排呈現，手機改為直向避免按鈕被擠壓
   - 文字側給 min-width:0，避免長句把右側按鈕推出容器 */
body[data-screen-label="06c Order Detail"] .order-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body[data-screen-label="06c Order Detail"] .order-action-row__text { min-width: 0; flex: 1; }
body[data-screen-label="06c Order Detail"] .order-action-row__btn  { flex: 0 0 auto; }
body[data-screen-label="06c Order Detail"] .order-action-row .btn {
  padding: 10px 22px;
  font-size: 14px;
  letter-spacing: 0.08em;
}
@media (max-width: 480px) {
  body[data-screen-label="06c Order Detail"] .order-action-row { flex-direction: column; align-items: stretch; }
  body[data-screen-label="06c Order Detail"] .order-action-row__btn .btn { width: 100%; }
}

/* 訂單詳情頁的表單彈跳視窗
   - 沿用 .front-modal 的視覺基調，但允許較寬面板與左對齊內容以容納表單欄位
   - 視窗本身用 [hidden] 控制顯示，避免額外 JS class 切換時序問題
   - z-index 設在 .front-modal(9999) 之下，讓 modal.confirm 的二次確認能蓋過此視窗 */
body[data-screen-label="06c Order Detail"] .order-dialog {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
body[data-screen-label="06c Order Detail"] .order-dialog[hidden] { display: none !important; }
body[data-screen-label="06c Order Detail"] .order-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body[data-screen-label="06c Order Detail"] .order-dialog__panel {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px 32px 28px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: order-dialog-in 0.22s ease;
}
@keyframes order-dialog-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
body[data-screen-label="06c Order Detail"] .order-dialog__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--brand-muted, #888);
  font-size: 22px;
  line-height: 1;
}
body[data-screen-label="06c Order Detail"] .order-dialog__close:hover { color: var(--brand-ink, #3A3A3A); }
body[data-screen-label="06c Order Detail"] .order-dialog__title { margin: 0 0 8px; font-weight: 500; font-size: 18px; }
body[data-screen-label="06c Order Detail"] .order-dialog__lead  { margin: 0 0 20px; font-size: 12px; color: var(--brand-muted, #888); line-height: 1.7; }
/* 彈窗內 input 強制 100% 寬度，避免 datetime-local 原生 intrinsic 撐破面板 */
body[data-screen-label="06c Order Detail"] .order-dialog .form-field input,
body[data-screen-label="06c Order Detail"] .order-dialog .form-field select,
body[data-screen-label="06c Order Detail"] .order-dialog .form-field textarea {
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   CONTACT — 兩欄 gap、表單姓名/Email 窄螢幕單欄
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
  body[data-screen-label="08 Contact"] .grid.md\:grid-cols-12 {
    gap: 40px;
  }
}
@media (max-width: 380px) {
  body[data-screen-label="08 Contact"] form .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
}
/* FAQ 標題與 + 號避免擠在一起 */
body[data-screen-label="08 Contact"] details summary { gap: 16px; }

/* ==========================================================================
   PRIVACY — 手機 sidebar 改橫排錨點
   ========================================================================== */
.privacy-toc {
  position: sticky;
  top: calc(var(--navbar-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}
.privacy-toc a {
  color: var(--brand-ink);
  transition: color var(--dur-fast) var(--ease-soft);
}
.privacy-toc a:hover { color: var(--brand-hover); }

@media (max-width: 768px) {
  .privacy-toc {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--brand-line);
  }
  .privacy-toc::-webkit-scrollbar { display: none; }
  .privacy-toc a {
    padding: 8px 14px;
    background: var(--brand-bg-alt);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 15px;
  }
}

/* Privacy 內文標題在手機收斂 */
@media (max-width: 480px) {
  body[data-screen-label="09 Privacy"] .section-title { font-size: 28px !important; }
}

/* ==========================================================================
   COMPARE HOMES — 手機提示「建議桌機瀏覽」
   ========================================================================== */
.compare-mobile-hint {
  display: none;
  padding: 60px 24px;
  text-align: center;
  font-family: "Noto Sans TC", sans-serif;
  background: #fff;
  border-bottom: 1px solid #E8E8E8;
}
.compare-mobile-hint h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.compare-mobile-hint p {
  font-size: 16px;
  line-height: 1.8;
  color: #8A8A8A;
  margin: 0;
}
@media (max-width: 1024px) {
  .compare-mobile-hint { display: block; }
}


/* ==========================================================================
   UTILITIES — 從 inline style 抽出來的常用屬性
   ========================================================================== */

/* Colors */
.u-muted        { color: var(--brand-muted); }
.u-ink          { color: var(--brand-ink); }
.u-accent       { color: var(--brand-accent); }
.u-hover        { color: var(--brand-hover); }
.u-white        { color: #fff; }

/* Backgrounds */
.u-bg-light     { background: var(--brand-light); }
.u-bg-alt       { background: var(--brand-bg-alt); }
.u-bg-ink       { background: var(--brand-ink); color: #fff; }
.u-bg-white     { background: #fff; }

/* Borders */
.u-b-line       { border-color: var(--brand-line); }
.u-b-ink        { border-color: var(--brand-ink); }
.u-b-accent     { border-color: var(--brand-accent); }
.u-b-line-soft  { border-color: rgba(0,0,0,.2); }
.u-b-line-softer{ border-color: rgba(0,0,0,.1); }
.u-b-light      { border-color: rgba(255,255,255,.3); }

/* Font weights & style */
.u-fw-300       { font-weight: 300; }
.u-fw-400       { font-weight: 400; }
.u-fw-500       { font-weight: 500; }
.u-italic       { font-style: italic; }
.u-italic-accent{ font-style: italic; color: var(--brand-accent); }
.u-italic-ink   { font-style: italic; color: var(--brand-ink); }

/* Line heights */
.u-lh-tight     { line-height: 1.4; }
.u-lh-snug      { line-height: 1.7; }
.u-lh-normal    { line-height: 1.85; }
.u-lh-relaxed   { line-height: 1.95; }

/* Padding-top compositions for navbar-height-aware heroes */
.pt-nav-60      { padding-top: calc(var(--navbar-h) + 60px); }
.pt-nav-80      { padding-top: calc(var(--navbar-h) + 80px); }
.pt-nav-100     { padding-top: calc(var(--navbar-h) + 100px); }

/* Text alignment + max-width 常用組合 */
.u-center-narrow{ text-align: center; max-width: 54ch; margin-left: auto; margin-right: auto; }

/* Common composite */
.u-muted-relaxed { color: var(--brand-muted); line-height: 1.95; }
.u-muted-snug    { color: var(--brand-muted); line-height: 1.85; }

/* Hide responsive helpers */
@media(max-width:1024px){ .u-hide-md{ display:none !important; } }
@media(max-width:768px) { .u-hide-sm{ display:none !important; } }

/* Footer brand link spacing fix */
.footer__brand-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }

/* 額外字級加大微調 — 針對特定元素 */
/* 這些原本字級是 12-13px 太小，加大成 13-14px 提升中年友善度 */
.footer__heading, .footer__cat { font-size: 17px; letter-spacing: 0.04em; font-weight: 700; color: #1A1A1A; }
.footer__copy, .footer__tagline { font-size: 16px; }
.footer__col a { font-size: 15px; color: #5A5A5A; }


/* ==========================================================================
   PAGE-SPECIFIC STYLES — v1-editorial
   ========================================================================== */

/****************************************************************************/

/* ==========================================================================
   PAGE-SPECIFIC STYLES — v1-editorial
   從 inline style="..." 與 <style>...</style> 抽出，per-page 分區
   ========================================================================== */

/* === about (from <style> block) === */

/* === account (from <style> block) === */

/* === cart (from <style> block) === */

/* === checkout (from <style> block) === */

/* === contact (from <style> block) === */

/* === index (from <style> block) === */
  
/* === privacy (from <style> block) === */

/* === product-list (from <style> block) === */

/* === product (from <style> block) === */

/* === about (from style="" attrs) === */
.s-about-1 { font-size: clamp(24px, 3.4vw, 40px); letter-spacing: 0.04em; line-height: 1.35; margin: 16px 0; color: #3A3A3A; font-weight: 400; }
.s-about-2 { font-size:22px; }
.s-about-3 { margin-top:10px; line-height:1.9; }
/* === account (from style="" attrs) === */
.s-account-1 { font-size:34px; margin-bottom:32px; }
.s-account-2 { font-size:34px; margin-bottom:24px; }
.s-account-3 { line-height:1.9; margin-bottom:24px; }
/* === cart (from style="" attrs) === */
.s-cart-1 { font-size: clamp(24px, 3.4vw, 40px); margin-bottom: 48px; color: #3A3A3A; font-weight: 400; }
.s-cart-2 { margin:4px 0; }
.s-cart-3 { font-size:24px; margin:6px 0 24px; }
.s-cart-4 { font-size:16px; }
/* === checkout (from style="" attrs) === */
.s-checkout-1 { font-size:clamp(32px,4vw,48px); margin-bottom:48px; }
.s-checkout-2 { font-size:20px; margin-bottom:20px; }
.s-checkout-3 { font-size:20px; margin:32px 0 20px; }
.s-checkout-4 { margin:4px 0; }
/* === contact (from style="" attrs) === */
.s-contact-1 { font-size: clamp(24px, 3.4vw, 40px); margin-bottom: 32px; color: #3A3A3A; font-weight: 400; }
.s-contact-2 { line-height:1.9; margin-bottom:32px; }
.s-contact-3 { line-height:1.9; }
/* === index (from style="" attrs) === */
.s-index-1 { background-image:url('https://images.unsplash.com/photo-1584917865442-de89df76afd3?w=2000&q=80'); }
.s-index-2 { background-image:url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?w=2000&q=80'); }
.s-index-3 { background-image:url('https://images.unsplash.com/photo-1601924994987-69e26d50dc26?w=2000&q=80'); }
.s-index-4 { font-size:18px; }
.s-index-5 { font-size:26px; margin-top:6px; }
.s-index-6 { margin-top:8px; }
/* === privacy (from style="" attrs) === */
.s-privacy-1 { font-size:38px; }
.s-privacy-2 { margin-top:24px; }
.s-privacy-3 { font-size:20px; }
.s-privacy-4 { font-size:34px; }
.s-privacy-5 { font-size:30px; }
/* === product-list (from style="" attrs) === */
.s-product-list-1 { font-size: clamp(24px, 3.4vw, 40px); color: #3A3A3A; font-weight: 400; }
/* === product (from style="" attrs) === */
.s-product-1 { padding-top:calc(var(--navbar-h) + 40px); }
.s-product-2 { font-size:clamp(28px,3vw,40px); letter-spacing:0.04em; margin:8px 0 16px; }
.s-product-3 { letter-spacing:0.04em; }
.s-product-4 { font-size: 14px; line-height: 1.9; margin-bottom: 32px; }
.s-product-5 { background:#C9A57B; }
.s-product-6 { background:#EFE7D9; }
.s-product-7 { background:#1A1A1A; }
.s-product-8 { font-size: 14px; line-height: 1.9; padding-top: 8px; }
/* footer brand link spacing fix */
.footer__brand-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
/* footer tagline (取代 partials 內被移除的 inline) */
.footer__tagline {
  margin-top: 14px;
  max-width: 32ch;
  line-height: 1.95;
  color: var(--brand-muted);
  font-size: 16px;
}

/* ==========================================================================
   ACCOUNT DASHBOARD (account-dashboard.html)
   ========================================================================== */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--brand-line);
}
.dash-username { color: var(--brand-accent); font-style: italic; font-family: var(--font-en); }
.dash-tier { color: var(--brand-accent); font-weight: 500; }
.dash-logout { padding: 10px 24px; }

.dash-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.dash-sidebar { position: sticky; top: calc(var(--navbar-h) + 24px); }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--brand-muted);
  border-left: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft);
}
.dash-nav a:hover { color: var(--brand-ink); }
.dash-nav a.is-active {
  color: var(--brand-accent);
  border-left-color: var(--brand-accent);
  background: var(--brand-light);
  font-weight: 500;
}

.dash-content { min-width: 0; }
.dash-panel { display: none; }
.dash-panel.is-active { display: block; }
.dash-panel__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  margin-bottom: 12px;
}
.dash-section-title {
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #3A3A3A;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-line);
}

/* Tags */
.dash-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.dash-tag--success { background: #E8F4EC; color: #3A8D58; }
.dash-tag--pink { background: var(--brand-light); color: var(--brand-hover); }

/* Order card */
.dash-order {
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  margin-bottom: 16px;
  transition: border-color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.dash-order:hover { border-color: var(--brand-accent); box-shadow: 0 4px 16px rgba(224, 136, 153, 0.08); }
.dash-order__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--brand-line);
  background: var(--brand-bg-alt);
}
.dash-order__date { font-size: 17px; margin-top: 4px; color: #2A2A2A; font-weight: 500; }
.dash-order__items { padding: 8px 22px; }
.dash-order__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--brand-line);
}
.dash-order__item:last-child { border-bottom: none; }
.dash-order__item img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 2px;
}
.dash-order__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 22px;
  background: var(--brand-bg-alt);
}

/* Stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.dash-stat {
  padding: 24px;
  background: var(--brand-light);
  border-radius: 4px;
  text-align: center;
}
.dash-stat__num {
  font-family: var(--font-num); /* 會員儀表板統計數字（如累計消費、訂單筆數），改 Inter 辨識度更高 */
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--brand-hover);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dash-stat__lbl {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--brand-muted);
  margin-top: 4px;
}

/* Consign row */
.dash-consign {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  margin-bottom: 12px;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.dash-consign:hover { border-color: var(--brand-accent); }
.dash-consign img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 2px;
}
.dash-consign--done { opacity: 0.7; }
.dash-consign__price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dash-consign__price .font-en { font-family: var(--font-num); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }

.dash-cta {
  margin-top: 32px;
  padding: 28px;
  background: var(--brand-bg-alt);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Address */
.dash-address {
  padding: 18px 22px;
  border: 1px solid var(--brand-line);
  border-radius: 4px;
  margin-bottom: 12px;
}
.dash-address--default { border-color: var(--brand-accent); background: var(--brand-light); }
.dash-address__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.dash-address__actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--brand-line);
}

/* Dashboard RWD */
@media (max-width: 768px) {
  .dash-grid { grid-template-columns: 1fr; gap: 24px; }
  .dash-sidebar { position: static; }
  .dash-nav { flex-direction: row; overflow-x: auto; gap: 0; padding-bottom: 4px; }
  .dash-nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: 10px 14px;
  }
  .dash-nav a.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--brand-accent);
    background: transparent;
  }
  .dash-stats { grid-template-columns: 1fr; }
  .dash-consign { grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; }
  .dash-consign img { width: 72px; height: 72px; }
  .dash-consign__price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--brand-line); align-items: center; }
  .dash-order__item { grid-template-columns: 56px 1fr auto; gap: 12px; }
  .dash-order__item img { width: 56px; height: 56px; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dash-logout { align-self: flex-end; }
}

/* Page-specific font */
.s-dash-1 { font-size: clamp(28px, 4vw, 40px); margin-top: 4px; }

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 18vh 24px 24px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-soft);
}
.search-overlay.is-open { display: flex; opacity: 1; }
.search-overlay__close {
  position: absolute;
  top: 28px; right: 28px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-ink);
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-soft);
}
.search-overlay__close:hover { background: var(--brand-light); color: var(--brand-hover); }
.search-overlay__form {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.search-overlay__label {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
.search-overlay__input {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--brand-line);
  font-size: clamp(22px, 3vw, 32px);
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--brand-ink);
  background: transparent;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-soft);
}
.search-overlay__input:focus { border-bottom-color: var(--brand-accent); }
.search-overlay__input::placeholder { color: var(--brand-muted); font-weight: 300; }
.search-overlay__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.search-overlay__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--brand-ink);
  border-radius: 999px;
  background: var(--brand-ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft), border-color var(--dur-fast) var(--ease-soft);
}
.search-overlay__submit:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.search-overlay__hint {
  font-size: 14px;
  color: var(--brand-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.search-overlay__hint a {
  color: var(--brand-ink);
  padding: 4px 10px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  font-size: 13px;
  transition: border-color var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.search-overlay__hint a:hover { border-color: var(--brand-accent); color: var(--brand-hover); }

body.is-search-open { overflow: hidden; }

@media (max-width: 768px) {
  .search-overlay { padding: 14vh 18px 18px; }
  .search-overlay__close { top: 16px; right: 16px; }
}


/* ==========================================================================
   PAGINATION（分頁元件）
   ========================================================================== */
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--brand-line);
}
.pagination .pg-meta {
  font-family: var(--font-en);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5A5A5A;
  font-weight: 500;
}
.pagination .pg-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .pg-num,
.pagination .pg-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 6px;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #2A2A2A;
  border: 1px solid var(--brand-line);
  background: #fff;
  transition: all 0.25s ease;
  border-radius: 4px;
  text-decoration: none;
}
.pagination .pg-num:hover,
.pagination .pg-arrow:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}
.pagination .pg-num.is-current {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  font-weight: 700;
}
.pagination .pg-arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}
.pagination .pg-ellipsis {
  padding: 0 6px;
  color: var(--brand-muted);
  font-family: var(--font-en);
  user-select: none;
}

@media (max-width: 640px) {
  .pagination .pg-num,
  .pagination .pg-arrow {
    min-width: 42px;
    height: 42px;
    font-size: 16px;
  }
}


/* ==========================================================================
   TAG PILLS 強化（blog 標籤、商品分類）
   ========================================================================== */
.tag-pill {
  display: inline-block;
  padding: 8px 18px !important;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  letter-spacing: 0.05em;
  color: #3A3A3A;
  transition: all 0.25s ease;
  text-decoration: none;
}
.tag-pill:hover,
.tag-pill.is-on {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

/* 商品列表分類 button (filter-bar buttons) */
.filter-bar__cats button,
.pl1-filter button {
  font-family: var(--font-body) !important;
  font-size: 16px !important;
}


/* btn 內小字 override，避免 text-xs 把按鈕字壓得太小 */
.btn.text-xs { font-size: 14px !important; padding: 12px 24px !important; letter-spacing: 0.18em; }


/* Order ID 編號 */
.dash-order__id {
  font-size: 16px; /* 原 13px 偏小，會員辨識訂單號困難，故放大 */
  letter-spacing: 0.08em; /* Inter 字距比 Cormorant 緊，稍微收窄 */
  color: #2A2A2A; /* 加深色彩提升對比，由淺灰改為主文字色 */
  font-family: var(--font-num);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.dash-order__count { font-size: 16px; color: #2A2A2A; } /* 件數加大並加深 */
.dash-order__total {
  font-size: 18px;
  color: #2A2A2A;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.dash-order__amount {
  font-family: var(--font-num);
  font-size: 24px; /* 訂單總金額是列表最重要的數字，給予最大字級 */
  font-weight: 600;
  margin-left: 6px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.dash-order__item .font-en {
  font-family: var(--font-num); /* 覆寫 .font-en 的 Cormorant，列表內單品價統一用 Inter */
  font-size: 17px; /* 列表內每件商品單價，避免繼承父層字級導致過小 */
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   數字 / 英文混排 utility
   讓成色、規格等元素內的「裝飾數字」用 Cormorant，中文用思源黑體
   後台輸入「8.5 成新」時，數字部分由前端用 <span class="num"> 包裝
   ※ .dash-stat__num 屬於關鍵統計數字，已於上方獨立指定 Inter，不放入此聯合 selector
   ========================================================================== */
.num {
  font-family: var(--font-en);
  font-feature-settings: "lnum" 1;
  letter-spacing: 0.02em;
}


/* ==========================================================================
   FAQ 常見問題（faq.blade.php 專用）
   - 以 <details>/<summary> 實作可展開條目，外觀採用底線分隔的條列式
   - 展開動畫透過 ::details-content + interpolate-size 由 block-size 0 → auto 過渡
   ========================================================================== */
.faq-group {
  margin-bottom: 64px; /* 區塊（保養 / 寄賣 / 趨勢）之間的垂直間距 */
}
.faq-group__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--brand-line); /* 區塊標題以底線分隔群組 */
  margin-bottom: 8px;
  color: #3A3A3A;
}
.faq-item {
  border-bottom: 1px solid var(--brand-line); /* 每筆問題以細線分隔，呈現條列感 */
  interpolate-size: allow-keywords; /* 啟用後 block-size 才能從 0 平滑過渡到 auto */
}
.faq-item summary {
  list-style: none; /* 隱藏預設展開箭頭 */
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker {
  display: none; /* Safari/WebKit 隱藏預設三角箭頭 */
}
.faq-item summary:hover {
  color: var(--brand-hover); /* hover 變色提示可互動 */
}
.faq-q {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
  font-family: var(--font-body);
  color: #3A3A3A;
}
.faq-icon {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 300;
  color: var(--brand-accent);
  flex-shrink: 0;
  transition: transform .35s var(--ease-smooth);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg); /* 展開時「+」旋轉成「×」 */
}
.faq-a {
  padding: 4px 0 28px;
  line-height: 2;
  color: var(--brand-muted);
  max-width: 70ch; /* 限制最大字寬以保持長段文字易讀 */
}

/* 展開滑動動畫 */
/* 為何用 ::details-content：可直接針對 <details> 內容區套用過渡，不需額外包一層 wrapper */
/* 為何用 interpolate-size：CSS 預設不允許從固定值過渡到 auto，此屬性開啟關鍵字插值能力 */
.faq-item::details-content {
  block-size: 0;
  overflow: hidden; /* 動畫過程隱藏溢出，避免顯示半截文字 */
  transition: block-size .4s var(--ease-smooth),
              content-visibility .4s allow-discrete; /* allow-discrete 讓 content-visibility 參與過渡 */
}
.faq-item[open]::details-content {
  block-size: auto;
}

@media (max-width: 640px) {
  .faq-group { margin-bottom: 40px; }
  .faq-group__title { font-size: 20px; padding-bottom: 14px; margin-bottom: 0; }
  .faq-item summary { padding: 22px 4px; gap: 20px; }
  .faq-q { font-size: 16px; line-height: 1.55; }
  .faq-icon { font-size: 24px; }
  .faq-a { padding: 0 4px 22px; line-height: 1.85; font-size: 15px; }
}
@media (max-width: 480px) {
  .faq-group__title { font-size: 18px; }
  .faq-q { font-size: 15px; }
}
