/* ============================================
   OUJI — Korean Premium Beauty E-Commerce
   v3.0 — #6da3b5 Teal-Blue + Frosted Glass + Animations
   Shopify-ready structure
   ============================================ */

:root {
  /* Brand Color — #6da3b5 based palette
     2026-08-10：老闆睇過另一個版本嘅設計，指名要嗰隻藍。抽返出嚟係
     #6da3b5 / #4e8497 / #2b4c58 / #e7f1f4 一組，同我哋原本嗰組
     （#6395a6…）好接近，但深色嗰頭差好遠 —— 我哋原本個 footer 係
     #1e2120，其實係灰墨綠，根本唔係藍。呢個先係佢覺得靚嗰個分別。 */
  --primary: #6da3b5;
  --primary-light: #82afc1;
  --primary-lighter: #aecbd8;
  --primary-lightest: #e7f1f4;
  --primary-dark: #4e8497;
  --primary-darker: #3f6574;
  --primary-deep: #2b4c58;

  /* Action colors — all standard solid commerce CTAs share this mid brand blue. */
  --action-primary: #397f93;
  --action-primary-hover: #356f83;

  /* Extended palette */
  --accent: #89c4d4;
  --accent-light: #a8d8e4;
  --accent-glow: rgba(109, 163, 181, 0.25);
  /* 促銷（孖裝／套裝）用黃黑價錢貼紙色；限時用 --sale 紅（2026-09-25 老闆定兩套信號） */
  --promo: #ffd60a;
  --promo-tint: #fff4b8;
  --promo-ink: #141414;

  /* Warm accent — beige / cream */
  /* ⚠️ 個名叫 --warm-* 係歷史遺留 —— 2026-08-19 全站由米白／奶油轉咗
     藍灰（prototype「藍色微光」）。名冇改係因為成個 stylesheet 都引用緊，
     一次過改名風險大過收益。實際值係冷色，唔好被個名誤導。 */
  --warm-50: #f7f9f9;
  --warm-100: #eef4f5;
  --warm-200: #dce9ec;
  --warm-300: #c8dce2;
  --warm-400: #aecbd8;
  --warm-500: #82afc1;
  --warm-600: #3f6574;
  --warm-gradient: linear-gradient(135deg, #f7f9f9 0%, #eef4f5 100%);
  --warm-glass: rgba(231, 241, 244, 0.62);

  /* Glass / Frost */
  --glass-bg: rgba(255, 255, 255, 0.76);
  --glass-bg-strong: rgba(255, 255, 255, 0.94);
  --glass-bg-light: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(43, 76, 88, 0.11);
  --glass-border-strong: rgba(43, 76, 88, 0.16);
  --glass-shadow: 0 8px 32px rgba(109, 163, 181, 0.08);
  --glass-shadow-hover: 0 12px 40px rgba(109, 163, 181, 0.16);

  /* Neutrals */
  --gray-50: #f7fafb;
  --gray-100: #eff4f6;
  --gray-200: #dfe8ec;
  --gray-300: #c5d3d9;
  --gray-400: #94a8b0;
  --gray-500: #647880;
  --gray-600: #4a5e66;
  --gray-700: #364a52;
  --gray-800: #1e3038;
  --gray-900: #0f1a1e;

  /* Dark base — 就係 footer 同訂閱區嗰隻藍。三隻都係同一個色相，
     淨係深淺唔同，唔好再撈灰或者墨綠入去。 */
  --dark-base: #2b4c58;
  --dark-deep: #1f3a44;
  --dark-mid: #2b4c58;

  /* Semantic */
  --text-primary: #1e3038;
  --text-secondary: #4a5e66;
  --text-tertiary: #94a8b0;
  --text-inverse: #ffffff;
  --bg-primary: #f7f9f9;
  --bg-secondary: #ffffff;
  --border-light: rgba(43, 76, 88, 0.16);
  --border-subtle: rgba(43, 76, 88, 0.09);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Typography — 高級襯線：Cormorant Garamond（英文）× Noto Serif TC（中文）

     兩隻字要夾埋用，中英文先唔會斷開兩種氣質。Cormorant 本身生得細，
     同中文並排會矮一截，所以凡係中英夾雜嘅標題都用 --font-display，
     入面 Cormorant 行先、Noto Serif TC 補中文。

     內文（--font-body）留返無襯線：整版襯線體喺細字度會糊，
     手機睇尤其累眼。襯線負責標題同品牌感，內文負責睇得清楚。 */
  --font-display: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  /* Manrope 行先出英文同數字，中文自動跌落系統字（iPhone／Mac 蘋方、Windows 正黑體、Android Noto）。2026-10-16 Winston 批准唔再載 Noto Sans TC 網頁字型（全部產品頁慳約 2MB）。
     兩隻字嘅字面大細夾得埋，中英夾雜嗰行唔會一高一矮。 */
  --font-body: 'Manrope', 'PingFang TC', 'Microsoft JhengHei', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  /* ⚠️ --font-brand 唔准跟住主題改。OUJI 個字樣係品牌識別，
     換咗字體就係換咗個 logo。頁首、頁尾、載入畫面嗰個 OUJI
     一律用返 League Spartan。 */
  --font-brand: 'League Spartan', sans-serif;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;

  /* Layout */
  --max-width: 1440px;
  --header-height: 64px;
}

/* ----- Reset ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 網頁以外（碌到底再彈、內容唔夠一版高）露出嚟嘅顏色 = footer 同一隻藍。
     冇呢句就係 body 嘅米白，footer 下面會閃出一條白線（Winston 2026-10-15 指出）。 */
  background-color: var(--primary);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 25% 50%, rgba(240,221,200,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(109,163,181,0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 85%, rgba(249,239,228,0.12) 0%, transparent 50%);
  background-attachment: fixed;
}
/* 桌面：body 自己唔准俾滑鼠碌。html 同 body 都係 overflow-x: hidden，body 因此變咗一個識碌嘅盒；
   瀏覽器擴充功能（例如貨幣換算）喺 footer 後面塞嘢、凸出 body 外，碌到底就會再碌多 18px，
   footer 下面露出一條米白（Winston 2026-10-15 指出白邊；喺佢部 Chrome 連埋擴充功能重現到）。
   頁面本身照碌（碌嘅係成個視窗，唔係 body）。手機唔加：iOS Safari 對 body overflow 有自己一套。 */
@media (min-width: 769px) {
  body { overflow-y: hidden; }
}

/* Frosted noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.5;
}

body > * {
  position: relative;
  z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ----- Glass ----- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass--strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
}

/* ----- Typography -----

   Cormorant Garamond 嘅小寫字生得矮（x-height 細），同一個 px 數
   擺落去會細成一個碼咁滯，所以標題全部要上調返，字距亦都收窄 ——
   襯線體本身已經有裝飾，再拉開就散。 */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.12;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.85rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.18;
}

.body-lg { font-size: 1.0625rem; line-height: 1.7; color: var(--text-secondary); }
.body-md { font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary); }

.label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

/* 本來係 128px 上下（即係兩節之間 256px 淨空氣）同 96px。
   喺一部手機上面，等於每碌兩三下就係一屏白位 —— 老闆嘅講法係
   「你嘥晒啲位」。收到一半有多，闊螢幕先俾多啲。 */
.section { padding: clamp(48px, 5.5vw, 80px) 0; position: relative; }
.section--sm { padding: clamp(32px, 3.6vw, 52px) 0; }
/* ----- Brand Intro (light cream, between dark hero and dark brand marquees) ----- */
.section--brand-intro {
  /* Compact padding so users reach content below quickly */
  padding: clamp(48px, 6vw, 80px) 0 !important;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(99,149,166,0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--warm-50) 0%, #fbf4ec 50%, var(--warm-50) 100%);
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(99,149,166,0.08);
  border-bottom: 1px solid rgba(99,149,166,0.08);
}

.section--brand-intro .container {
  position: relative;
  z-index: 2;
}

/* Tighten inner spacing */
.section--brand-intro .section-header {
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* ----- Aurora light bands (CSS only, brand-blue dominant, subtle) ----- */
.section--brand-intro::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(110deg,
      transparent 12%,
      rgba(140,180,195,0.22) 28%,
      rgba(99,149,166,0.30)  42%,
      rgba(82,125,141,0.26)  56%,
      rgba(99,149,166,0.26)  70%,
      transparent 86%);
  filter: blur(34px);
  animation: brandIntroAurora 22s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.section--brand-intro::after {
  content: '';
  position: absolute;
  inset: -25%;
  background:
    linear-gradient(72deg,
      transparent 18%,
      rgba(82,125,141,0.20)  38%,
      rgba(140,180,195,0.24) 52%,
      rgba(99,149,166,0.24)  66%,
      transparent 86%);
  filter: blur(40px);
  animation: brandIntroAuroraReverse 28s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* Disable text-shimmer in this section — gradient text becomes invisible
   against the blue aurora. Use solid primary-dark instead. */

@keyframes brandIntroAurora {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%      { transform: translate3d(-4%, 3%, 0) rotate(1.5deg) scale(1.08); }
}
@keyframes brandIntroAuroraReverse {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.05); }
  50%      { transform: translate3d(5%, -2%, 0) rotate(-1.5deg) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .section--brand-intro::before,
  .section--brand-intro::after { animation: none; }
}

/* ----- Newsletter Note ----- */

.section--brand-intro .label {
  color: var(--primary-dark);
  font-size: 1.2rem !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section--brand-intro .heading-xl {
  color: var(--primary-dark);
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
  font-weight: 400;
}
.section--brand-intro .body-lg {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.9;
}

/* Stats cards inside brand intro — refined editorial row (Aesop / Jo Malone) */
/* Override gradient-border ::before so it doesn't paint a rainbow rim */
/* Vertical 1px hairline between cards */
/* Reset alternating bg/border at brand-intro scope */

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 36px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 12px;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--action-primary);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(57,127,147,0.24), inset 0 1px 0 rgba(255,255,255,0.14);
}

.btn--primary:hover {
  background: var(--action-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(53,111,131,0.3);
}

.btn--secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  color: var(--primary-dark);
  border: 1px solid var(--primary-lighter);
}

.btn--secondary:hover {
  background: var(--action-primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--primary-dark);
  border: none;
  padding: 10px 0;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.btn--ghost::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--primary);
  margin-left: 12px;
  transition: width var(--duration-normal) var(--ease-out);
}

.btn--ghost:hover::after { width: 36px; }

.btn--sm { padding: 10px 24px; font-size: 0.6875rem; }
.btn--full { width: 100%; }

/* 要等伺服器嘅掣（結帳）。冇任何反應嘅話客會以為撳唔到就再撳
   （老闆 2026-09-14 報）。轉得快啲＝感覺快啲，所以 600ms 一圈。
   ⚠️ 唔喺撳落去嗰刻即刻着 —— 預備好嗰下 100ms 內就跳走咗，閃一閃似壞咗多過似 loading。
   加咗之後唔好再用 hover 嘅位移，郁嚟郁去會搞亂緊要等嘅感覺。 */
.btn.is-busy { cursor: progress; transform: none; }
.btn.is-busy::before { opacity: 0; }

.btn__spinner {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: btn-spin 600ms linear infinite;
}

@keyframes btn-spin { to { transform: rotate(360deg); } }

/* 減少動態：轉圈係「仲有嘢做緊」嘅唯一訊號，唔可以停，只可以慢返。 */
@media (prefers-reduced-motion: reduce) {
  .btn__spinner { animation-duration: 1.6s; }
}

/* ----- Announcement Bar -----
   一行到底，高度鎖死。三個優惠喺窄螢幕擺唔落一行，摺咗行條 bar 就會由 36px
   變 62px —— 而下面 header 同 main 兩個位置本來寫死咗 36px，一摺就成版嘢
   被遮住。所以改成：擺得落就照出，擺唔落就輪流出，條 bar 永遠得一行。 */
.announcement-bar {
  /* 宣傳層用較明亮嘅品牌藍；購買按鈕同優惠卡繼續用深藍，保留操作層次。 */
  background: linear-gradient(110deg, #356f83 0%, #397f93 48%, #356f83 100%);
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.12);
  color: white;
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  height: 42px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

/* 2026 中秋限定：全站公告、首頁月夜與產品頁優惠提示。 */
.has-ouji-opening-promo .announcement-bar {
  position:fixed; isolation:isolate; overflow:hidden;
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap;
  gap:8px 18px; min-height:62px; height:auto; padding:10px 22px;
  background:
    radial-gradient(circle at 9% 42%, transparent 0 15px, rgba(255,255,255,.045) 16px 17px, transparent 18px),
    radial-gradient(circle at 22% 78%, rgba(255,255,255,.035) 0 8px, rgba(0,0,0,.28) 9px 12px, transparent 13px),
    radial-gradient(circle at 73% 10%, transparent 0 22px, rgba(255,255,255,.04) 23px 24px, transparent 25px),
    radial-gradient(circle at 91% 72%, rgba(255,255,255,.025) 0 12px, rgba(0,0,0,.3) 13px 17px, transparent 18px),
    linear-gradient(105deg,#030303 0%,#171717 45%,#080808 100%);
  color:#f4f1e9; border-bottom:1px solid rgba(216,190,126,.24);
  box-shadow:inset 0 -10px 24px rgba(0,0,0,.38),0 1px 0 rgba(255,255,255,.05);
  letter-spacing:.02em;
}
.has-ouji-opening-promo .announcement-bar::before {
  content:''; position:absolute; inset:0; z-index:-1; opacity:.3; pointer-events:none;
  background-image:repeating-radial-gradient(ellipse at 30% 160%,transparent 0 17px,rgba(255,255,255,.055) 18px,transparent 20px 33px);
  mix-blend-mode:screen;
}
.has-ouji-opening-promo .announcement-bar__offers { grid-area:auto; display:flex; align-items:center; justify-content:center; gap:7px; padding:0; white-space:nowrap; opacity:1; transform:none; position:static; transition:none; }
.has-ouji-opening-promo .announcement-bar__offers > span { display:inline-flex; align-items:baseline; gap:4px; padding:6px 10px; border:1px solid rgba(233,211,154,.24); border-radius:999px; background:rgba(255,255,255,.06); color:#e4e0d6; font-size:.8rem; font-variant-numeric:tabular-nums; }
.has-ouji-opening-promo .announcement-bar__offers small { color:#b4afa3; font-size:.68rem; }
.has-ouji-opening-promo .announcement-bar__offers b { color:#ffe29a; font-weight:700; }
@media (max-width:720px){
  .has-ouji-opening-promo .announcement-bar { gap:6px 8px; min-height:84px; padding:9px 9px 10px; font-size:.74rem; line-height:1.3; }
  .has-ouji-opening-promo .announcement-bar__offers { order:3; width:100%; justify-content:center; gap:5px; }
  .has-ouji-opening-promo .announcement-bar__offers > span { padding:4px 7px; font-size:.72rem; }
  .has-ouji-opening-promo .announcement-bar__offers small { font-size:.6rem; }
}

.announcement-bar__offers {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.4vw, 52px);
  padding: 0 24px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.announcement-bar__offers.is-on { opacity: 1; transform: none; }

.announcement-bar__offers .announcement-bar__offer {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  opacity: 1;
  transform: none;
}

.announcement-bar__offers .announcement-bar__offer + .announcement-bar__offer::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(100% + clamp(12px, 1.7vw, 26px));
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%);
}

.announcement-bar__label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

/* 窄機收細少少，等「折實滿 HK$400 免運費」呢句最長嘅都擺得落一行 */
@media (max-width: 400px) {
  .announcement-bar { height: 36px; font-size: 0.75rem; letter-spacing: 0.03em; }
}

@media (max-width: 480px) {
  .announcement-bar__offers { gap: 12px; padding: 0 12px; }
  .announcement-bar__offers .announcement-bar__offer { gap: 0; }
  .announcement-bar__offers .announcement-bar__offer + .announcement-bar__offer::before {
    right: calc(100% + 6px);
    height: 12px;
  }
  .announcement-bar__label { display: none; }
}

/* 每個優惠一張，全部疊喺同一格 grid cell，只有 .is-on 嗰張見到。
   用 grid 疊而唔用 position:absolute —— 條 bar 唔使做定位祖先。 */
.announcement-bar__offer {
  grid-area: 1 / 1;
  padding: 0 var(--space-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.announcement-bar__offer.is-on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .announcement-bar__offer,
  .announcement-bar__offers { transition: none; transform: none; }
}

/* --ann-h／--hdr-h 由 script.js 度實際高度寫入。唔准再喺呢度寫死數字：
   之前 header 寫死 top:36px、main 寫死 +36px，但條 bar 摺行之後實際 62px，
   而 .header 實際 render 出嚟係 64px 唔係 token 嗰 56px，兩重誤差夾埋
   令內容被遮 34px。度返實數就永遠唔會再錯。 */
/* 活動條會有自己的 inline script；中間有 script 時，導覽仍須避開活動條。 */
.announcement-bar ~ .header { top: var(--ann-h, 36px); }
main { padding-top: calc(var(--hdr-h, var(--header-height)) + var(--ann-h, 36px)); }

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-out);
}

/* Transparent header: white text/icons */
.header:not(.is-scrolled) .header__logo { color: white; }
.header:not(.is-scrolled) .header__nav a:not(.header__mega a) { color: rgba(255,255,255,0.9); }
.header:not(.is-scrolled) .header__nav a:not(.header__mega a):hover { color: white; }
.header:not(.is-scrolled) .header__action-btn { color: rgba(255,255,255,0.9); }
.header:not(.is-scrolled) .header__action-btn:hover { color: white; }
.header:not(.is-scrolled) .header__menu-toggle span { background: white; }

.header.is-scrolled {
  background: rgba(246,245,240,0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 4px 30px rgba(30,48,56,0.06);
  border-bottom: 1px solid rgba(30,48,56,0.08);
}
.header.is-scrolled .header__logo { color: #6395a6; }
.header.is-scrolled .header__nav a:not(.header__mega a) { color: var(--text-secondary); }
.header.is-scrolled .header__nav a:not(.header__mega a):hover { color: var(--dark-base); }
.header.is-scrolled .header__action-btn { color: var(--text-secondary); }
.header.is-scrolled .header__action-btn:hover { color: var(--dark-base); }
.header.is-scrolled .header__menu-toggle span { background: var(--dark-base); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.header__left {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex: 1;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  line-height: 1;
  padding-top: 2px;
  transition: color var(--duration-normal), opacity var(--duration-normal);
}

.header__logo:hover { opacity: 0.75; }

.header__nav {
  display: flex;
  gap: var(--space-xl);
}

.header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color var(--duration-fast);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
  transform: translateX(-50%);
}

.header__nav a:hover { color: var(--primary-dark); }
.header__nav a:hover::after { width: 100%; }

/* Dropdown submenu */
.header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.header__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: linear-gradient(135deg,
    rgba(210, 230, 240, 0.55) 0%,
    rgba(175, 205, 222, 0.62) 45%,
    rgba(140, 180, 200, 0.55) 100%);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 6px 0;
  min-width: 160px;
  box-shadow:
    0 14px 40px rgba(40, 80, 110, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out), visibility var(--duration-normal);
  z-index: 100;
  margin-top: 10px;
}

.header__submenu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

.header__submenu a {
  display: block;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary) !important;
  white-space: nowrap;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.header__submenu a::after { display: none !important; }

.header__submenu a:hover {
  color: var(--primary-dark) !important;
  background: rgba(255, 255, 255, 0.32);
}

/* Nested submenu items (level-1 row with arrow + level-2 flyout) */
.header__submenu-item {
  position: relative;
}

.header__submenu-item > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header__submenu-item > a::after {
  content: '›' !important;
  display: inline-block !important;
  position: static !important;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-tertiary);
  opacity: 0.7;
  background: none !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  transition: transform var(--duration-fast), color var(--duration-fast);
}

.header__submenu-item:hover > a::after {
  color: var(--primary-dark);
  transform: translateX(2px) !important;
  opacity: 1;
}

.header__subsubmenu {
  position: absolute;
  top: -6px;
  left: 100%;
  background: linear-gradient(135deg,
    rgba(210, 230, 240, 0.55) 0%,
    rgba(175, 205, 222, 0.62) 45%,
    rgba(140, 180, 200, 0.55) 100%);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 6px 0;
  min-width: 130px;
  box-shadow:
    0 14px 40px rgba(40, 80, 110, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out), visibility var(--duration-normal);
  z-index: 101;
  margin-left: 4px;
}

.header__subsubmenu::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 0;
  bottom: 0;
  width: 8px;
}

.header__subsubmenu a {
  display: block;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary) !important;
  white-space: nowrap;
  transition: color var(--duration-fast), background var(--duration-fast);
}

.header__subsubmenu a::after { display: none !important; }

.header__subsubmenu a:hover {
  color: var(--primary-dark) !important;
  background: rgba(255, 255, 255, 0.32);
}

.header__submenu-item:hover > .header__subsubmenu,
.header__submenu-item:focus-within > .header__subsubmenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.header__nav-item:hover .header__submenu,
.header__nav-item:focus-within .header__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.header__action-btn:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.header__action-btn svg { width: 18px; height: 18px; stroke-width: 1.5; }

.header__cart-count,
.header__wishlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 5px;
  position: absolute;
  top: -6px;
  right: -8px;
  line-height: 1;
  white-space: nowrap;
}
.header__action-btn--cart,
.header__action-btn--wishlist { position: relative; }

.header__cart-count,
.mobile-bottom-nav__badge {
  background: linear-gradient(135deg, #e8637a, #d44960);
  box-shadow: 0 2px 8px rgba(232,99,122,0.3);
}
.header__wishlist-count,
.mobile-bottom-nav__wishlist-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 2px 8px rgba(109,163,181,0.3);
}

/* Icon color when has items */
.header__action-btn--wishlist.has-items svg { stroke: var(--primary); fill: var(--primary); }
.header__action-btn--cart.has-items svg { stroke: #e8637a; }

.header__menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.header__menu-toggle span { display: block; width: 20px; height: 1px; background: var(--text-primary); transition: all var(--duration-normal); }

/* ----- Hero ----- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 88 / 40;
  overflow: hidden;
  margin-top: calc(-1 * var(--hdr-h, var(--header-height)));
}

/* ----- Hero Carousel ----- */

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(10px, 30px) scale(1.02); }
}

/* Hero floating images */

/* ----- Section Headers ----- */
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header__label { display: block; margin-bottom: var(--space-md); }
.section-header__title { margin-bottom: var(--space-md); }
.section-header__desc { max-width: 500px; margin: 0 auto; }
.section-header--split { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; gap: var(--space-xl); }

/* ----- Product Card ----- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out);
}

.product-card:hover { transform: translateY(-6px); }

.product-card__image-wrap {
  position: relative;
  /* Square, like the product gallery. Brand covers are shot square or
     wide; a 3/4 box cropped the sides off nearly every one of them. */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: var(--space-md);
  background: rgba(255,255,255,0.5);
  box-shadow: 0 4px 20px rgba(109,163,181,0.06);
  transition: box-shadow var(--duration-normal);
}

.product-card:hover .product-card__image-wrap {
  box-shadow: 0 12px 40px rgba(109,163,181,0.14);
}

.product-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card__mini-brand {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 58px);
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 999px;
  background: rgba(248,251,250,.9);
  box-shadow: 0 3px 10px rgba(31,79,99,.1);
  color: #315b6b;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(9px);
}

.product-card--other-brand-start .product-card__image-wrap {
  box-shadow: 0 0 0 1px rgba(38,127,178,.15), 0 6px 22px rgba(31,79,99,.08);
}

.product-card--other-brand-start .product-card__badge { top: 42px; }

.product-card:hover .product-card__image { transform: scale(1.06); }

.product-card__quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: var(--action-primary);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out), background var(--duration-fast);
  border-radius: 0 0 16px 16px;
}

/* 由 <div> 變咗真 <button>，要清走瀏覽器預設嘅 button 樣 */
button.product-card__quick-add,
.product-card__restock {
  width: 100%;
  border: none;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.product-card:hover .product-card__quick-add,
.product-card:focus-within .product-card__quick-add { transform: translateY(0); }

/* 快速加入同揀規格係同一層級嘅商品卡 CTA；用文字交代行為，唔再用兩隻色。 */
.product-card__quick-add:hover,
.product-card__quick-add:focus-visible { background: var(--action-primary-hover); }

/* 缺貨：唔畀買，改為問佢想唔想我哋補返貨。
   一張灰晒又冇得撳嘅卡係一個死胡同；呢粒掣起碼收到需求。 */
.product-card__restock {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: rgba(43, 76, 88, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out), background 200ms;
  border-radius: 0 0 16px 16px;
}

.product-card:hover .product-card__restock,
.product-card:focus-within .product-card__restock { transform: translateY(0); }
.product-card__restock:disabled { background: rgba(109, 163, 181, 0.92); cursor: default; }

/* 售完嘅卡調淡張相，但字同價錢照舊睇得清 */
.product-card:has(.product-card__restock) .product-card__image { opacity: 0.55; }

/* 語言切換（2026-09-14）：擺喺搜尋掣左邊。
   刻意做得細同靜 —— 佢係一個「有需要先撳」嘅功能，唔應該同購物袋爭注意力。
   ⚠️ 呢段同 shopify.js 嘅 initLangToggle 一齊被另一個 session 覆寫過一次，
   結果 HTML 有個掣但冇樣式又冇邏輯。改動前後都要 grep `header__lang` 對數。 */
.header__lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 9px;
  border: 1px solid var(--glass-border-strong); border-radius: 999px;
  background: transparent; color: var(--text-secondary);
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; cursor: pointer;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.header__lang:hover { color: var(--primary-dark); border-color: var(--primary); }
.header__lang:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 2px; }

.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(109,163,181,0.3);
}
/* 特價牌一律紅色（老闆 2026-09-24），同紅色特價價錢同一個色 */
.product-card__badge--sale {
  background: var(--sale, #c8452f);
  box-shadow: 0 2px 10px rgba(200,69,47,0.28);
}

/* 低庫存（老闆 2026-10-01）：唔放喺圖上面——圖角已經有特價牌、獎項牌、心願單，
   而且白底圖會食字。放喺價錢下面一行：細紅點＋「最後一件／最後兩件」。 */
.product-card__stock {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #8f301f;
}
.product-card__stock i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sale, #c8452f);
  flex: none;
}




.product-card__wishlist {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--duration-normal) var(--ease-spring);
  border: 1px solid rgba(255,255,255,0.5);
}

.product-card:hover .product-card__wishlist { opacity: 1; transform: scale(1); }

.product-card__wishlist svg { width: 14px; height: 14px; stroke: var(--primary-dark); fill: none; stroke-width: 1.5; }

.product-card__wishlist-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
  color: var(--text-tertiary);
  z-index: 2;
}
.product-card__wishlist-btn:hover { transform: scale(1.1); background: #fff; }
.product-card__wishlist-btn.is-active { color: #e74c3c; }
.product-card__wishlist-btn svg { width: 16px; height: 16px; }

.product-card__brand { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.08em; color: var(--primary); text-transform: uppercase; margin-bottom: 4px; }
.product-card__name { font-size: 0.9375rem; font-weight: 400; color: var(--text-primary); line-height: 1.4; margin-bottom: 6px; }
.product-card__price { font-size: 0.875rem; font-weight: 600; color: var(--primary-dark); }
/* 減價卡：劃線原價（細、灰）喺前，紅色特價做主角，一個「慳 $X／X% OFF」細牌 */
.product-card__deal { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.product-card__compare-price { font-size: 0.75rem; font-weight: 400; color: var(--text-tertiary, #8a9499); text-decoration: line-through; }
.product-card__price.product-card__price--sale { color: var(--sale, #c8452f); }  /* 雙 class：要贏 4804 行 warm accent 嘅 .product-card__price */
.product-card__savings { font-size: 0.6875rem; font-weight: 600; line-height: 1; padding: 3px 6px; border-radius: 4px; color: var(--sale, #c8452f); background: rgba(200,69,47,0.1); }
/* 促銷卡（孖裝／套裝）：相底黃色優惠帶；黑色售價加黃色螢光底；「每件 $X」黃底細牌。快速加入掣喺 DOM 後面，hover 時會蓋過條帶 */
.product-card__bundle-band { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--promo); color: var(--promo-ink); font-size: 0.75rem; font-weight: 700; line-height: 1.2; }
.product-card__bundle-band strong { font-weight: 900; letter-spacing: 0.06em; padding-right: 8px; border-right: 1.5px solid currentColor; }
.product-card__price.product-card__price--bundle { color: var(--promo-ink); font-weight: 800; padding: 0 2px; background: linear-gradient(transparent 58%, var(--promo) 58%, var(--promo) 92%, transparent 92%); }
.product-card__per-unit { font-size: 0.6875rem; font-weight: 800; line-height: 1; padding: 3px 6px; border-radius: 2px; color: var(--promo-ink); background: var(--promo-tint); }
/* 防曬換季優惠（2026-10-01 老闆）：促銷條同價錢高光由黃轉紅，其餘版面跟促銷一樣。
   紅底白字 5.4:1；高光用紅色半透明托住深紅字，細字 AA。 */
/* 專櫃套裝（2026-10-02 老闆）：唔係促銷，用深墨底＋金字，同黃條分開 */
.product-card__bundle-band--prestige { background: #1b1814; color: #e3c98f; border-top: 1px solid rgba(227,201,143,0.55); letter-spacing: 0.04em; }
.product-card__bundle-band--prestige strong { font-weight: 800; border-right-color: rgba(227,201,143,0.55); }
.product-card__bundle-band--season { background: var(--sale, #c8452f); color: #fff; }
.product-card__price.product-card__price--season { color: #8f2a19; background: linear-gradient(transparent 58%, rgba(200,69,47,0.30) 58%, rgba(200,69,47,0.30) 92%, transparent 92%); }
.product-card__per-unit--season { color: #8f2a19; background: rgba(200,69,47,0.12); }

/* 清貨任揀 2 件：品牌頁頂紅色 banner */
.pair-deal { margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: var(--sale, #c8452f); color: #fff; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pair-deal p { margin: 0; }
.pair-deal__kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px; background: rgba(255,255,255,0.2); }
.pair-deal__title { font-size: 1.125rem; font-weight: 800; }
.pair-deal__title b { font-size: 1.5rem; margin: 0 6px; }
.pair-deal__title span { font-size: 0.875rem; font-weight: 700; opacity: 0.95; }
.pair-deal__fine { flex-basis: 100%; font-size: 0.75rem; opacity: 0.9; }



/* ----- Brands Page — Dark Smoke Theme ----- */
.brands-page {
  position: relative;
  background: #2b4c58;
  overflow: hidden;
}

.brands-page > .section {
  position: relative;
  z-index: 1;
}

/* ── Hero — gradient overlay for depth ── */

/* ── Section wrapper colours — warm (makeup) vs cool (skincare) ── */
.brands-section--skincare {
  padding-top: 48px;
  padding-bottom: 48px;
  background: linear-gradient(180deg,
    rgba(18,38,44,0.5) 0%,
    rgba(16,34,40,0.6) 100%);
}

/* 隱形眼鏡／頭髮護理：唔再係暖冷二分，所以借品牌色做第三個調子 */

/* ── Glowing divider between sections ── */

/* ── Section label pills — warm vs cool ── */

/* ── Card border tint per section ── */
.brands-section--skincare .brand-card {
  border-color: rgba(100,170,190,0.1);
}
.brands-section--skincare .brand-card:hover {
  border-color: rgba(100,170,190,0.25);
  box-shadow: 0 8px 32px rgba(80,140,170,0.12);
}

/* ----- Brands Page Grid ----- */
.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 2 / 1;
  min-width: 0;
  overflow: hidden;
  background: rgba(36,56,64,0.75);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
  padding: 10px 6px;
}
@media (min-width: 640px) {
  .brand-card {
    padding: 10px 8px;
    border-radius: 14px;
  }
}
.brand-card:hover {
  background: rgba(50,75,85,0.85);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}
.brand-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ── Default: standard thin text logos (4:1, 160×40 SVGs) ── */
.brand-card img {
  max-width: 96%;
  max-height: 68%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ── Bold / heavy logos — scale DOWN for visual balance ── */
.brand-card img[alt="COSRX"],
.brand-card img[alt="Torriden"],
.brand-card img[alt="ANUA"] {
  max-width: 50%;
  max-height: 32%;
}
.brand-card img[alt="Abib"] {
  max-width: 24%;
  max-height: 24%;
}
.brand-card img[alt="beplain"] {
  max-width: 42%;
  max-height: 36%;
}

/* ── Ultra-wide & heavy logos — scale down to match visual weight of standard logos ── */
.brand-card img[alt="SKIN1004"],
.brand-card img[alt="AXIS-Y"],
.brand-card img[alt="innisfree"],
.brand-card img[alt="Dr.Jart+"] {
  max-width: 65%;
  max-height: 55%;
}

/* ── dasique — 3:1 ratio, needs higher max-height than 4:1 logos ── */
.brand-card img[alt="dasique"] {
  max-width: 92%;
  max-height: 75%;
}

/* ── Desktop tweaks ── */
@media (min-width: 640px) {
  .brand-card img {
    max-width: 88%;
    max-height: 60%;
  }
  .brand-card img[alt="COSRX"],
  .brand-card img[alt="Torriden"],
  .brand-card img[alt="ANUA"] {
    max-width: 48%;
    max-height: 30%;
  }
  .brand-card img[alt="Abib"] {
    max-width: 20%;
    max-height: 20%;
  }
  .brand-card img[alt="beplain"] {
    max-width: 38%;
    max-height: 32%;
  }
  .brand-card img[alt="SKIN1004"],
  .brand-card img[alt="AXIS-Y"],
  .brand-card img[alt="innisfree"],
  .brand-card img[alt="Dr.Jart+"] {
    max-width: 60%;
    max-height: 50%;
  }
  /* dasique — 3:1 ratio sits taller in card, constrain max-height to match ~30% fill */
  .brand-card img[alt="dasique"] {
    max-width: 78%;
    max-height: 60%;
  }
}

/* 品牌名唔畫出嚟。以前 hover 會喺 logo 下面彈個名，但「TIRTIR」個
   logo 本身就係「TIRTIR」四個字 —— 等於同一個字講兩次。
   留喺 DOM 度係畀讀屏軟件同搜尋器用，冇視覺重複。 */
.brand-card span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----- Brand Story ----- */
.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(109,163,181,0.08);
}

.brand-story__visual { position: relative; overflow: hidden; }
.brand-story__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s var(--ease-out); }
.brand-story:hover .brand-story__visual img { transform: scale(1.05); }

.brand-story__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4xl);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.brand-story__content .label { margin-bottom: var(--space-lg); }
.brand-story__content .heading-lg { margin-bottom: var(--space-lg); }
.brand-story__content .body-lg { margin-bottom: var(--space-2xl); max-width: 420px; }

/* ----- Category Grid ----- */

/* ----- Editorial ----- */

/* ----- Featured Collection ----- */

/* ----- Marquee ----- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, #2b4c58 0%, #335866 40%, #23414c 70%, #2b4c58 100%);
  border-top: none;
  border-bottom: none;
}

.marquee__inner { display: inline-flex; animation: marquee 35s linear infinite; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- Newsletter ----- */

/* Smoke video bg */

.newsletter__submit {
  min-height: 54px;
  padding: 15px 22px;
  background: #d7ad68;
  color: #173943;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 12px;
  transition: all var(--duration-normal);
  white-space: nowrap;
}

.newsletter__submit:hover { background: #e2bd7d; transform: translateY(-1px); }
.newsletter__submit:disabled { opacity: .62; cursor: wait; transform: none; }

@media (max-width: 760px) {
  .newsletter__submit { width: auto; padding-inline: 14px; border-radius: 12px; }
  .newsletter__submit { border-color: #d7ad68; }
}

/* ----- Video Showcase ----- */

/* Featured hero video */

/* 3-column rows */

/* ----- Footer ----- */
.footer {
  /* 2026-10-06 老闆：「直情係要用佢（Codex 預覽版）嘅配色、佢嘅設計」——
     淺藍 #6da3b5 底、白字、頂部圓弧、Klee One 手寫標語、底部白色大字 OUJI。
     內容（頁面連結、門市資料）跟返我哋網站。 */
  /* 圓弧做喺 ::before：footer 本身底色 = 上面嗰個 section 嘅顏色（--footer-backdrop），
     咁圓弧兩邊角位就係延續上一格，唔會露出一條白縫。冇設定就透明，即係頁面底色。 */
  background: var(--footer-backdrop, transparent);
  color: #ffffff;
  border-top: none;
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before { content: ''; position: absolute; inset: 0; background: var(--primary); border-radius: 50% 50% 0 0 / 30px 30px 0 0; pointer-events: none; }
.footer > .container, .footer > .footer__giant { position: relative; z-index: 1; }
/* 頁尾上面直接係深色全幅 section 嘅頁：首頁會員區（深藍）、妝感配對（深啡舞台）。 */
body:has(.look-stage) .footer { --footer-backdrop: #241a15; }

.footer__grid { display: grid; grid-template-columns: 1.2fr .65fr .65fr .65fr 1fr; gap: 35px; padding-bottom: 45px; margin-bottom: 0; position: relative; }
.footer__logo { display: inline-block; font-family: var(--font-brand); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: 0.22em; text-transform: uppercase; color: #ffffff; }
.footer__tagline { margin: 13px 0; font: 600 15px/1.7 'Klee One', 'Noto Serif TC', serif; color: #ffffff; }
.footer__stamp { margin: 0 0 var(--space-lg); font-size: 9px; letter-spacing: 0.12em; color: #ffffff; }
.footer__brand-desc { margin: 0 0 12px; max-width: 310px; font-size: 12px; font-weight: 400; line-height: 1.9; color: #ffffffd1; }

.footer__social { display: flex; gap: 10px; }
.footer__social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid #ffffff80; color: #ffffff; transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out); }
.footer__social a:hover { background: #ffffff26; transform: translateY(-2px); }
.footer__social svg { width: 15px; height: 15px; }

/* 標題同連結要一眼分到層次（老闆 2026-10-07：「標題和下面一樣大比較難睇」）：標題粗白加一條半透明幼線、連結幼啲淡啲。 */
.footer__col-title { width: fit-content; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #ffffff80; font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #ffffff; }
.footer__links { display: grid; gap: 8px; justify-items: start; }
.footer__links li { margin: 0; }
.footer__links a,
.footer__visit-link { font-size: 13px; font-weight: 400; color: #ffffffd1; text-underline-offset: 3px; }
.footer__links a:hover,
.footer__visit-link:hover { color: #ffffff; text-decoration: underline; }
.footer__visit-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid #ffffff80; border-radius: 99px; font-size: 12px; }
.footer__visit-link::after { content: '↗'; }
.footer__visit-link:hover { text-decoration: none; background: #ffffff1f; }

/* 橫線上面：版權（條款同私隱已搬入 About 一欄）。
   橫線下面跟 Codex 版：左邊細細隻地區、右邊細細隻「回到頁頂」，再落就係大字 OUJI（老闆 2026-10-06）。 */
.footer__meta { padding: 0 0 15px; }
.footer__copyright { font-size: 11px; letter-spacing: 0.035em; color: #ffffff; }
/* 版權下面一行：全店正貨（2026-10-30）；同版權一樣喺橫線上面，細字＋細勾。 */
.footer__trust { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; color: #ffffffcc; font-size: 11px; letter-spacing: 0.035em; }
.footer__trust svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 0 0; border-top: 1px solid #ffffff50; }
.footer__region,
.footer__to-top { font-size: 11px; letter-spacing: 0.035em; color: #ffffff; }
.footer__to-top:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 底部白色大字 OUJI（Codex 版招牌）。Codex 版 footer 冇芝麻，老闆 2026-10-06 要求跟返，所以拎走鞠躬動畫。
   桌面縮到大約一半、淡到 40% 白（Winston 2026-10-15：原本 290px 太大，佔 footer 四成高）；
   手機唔郁，大細同顏色喺下面 768px 嗰段寫返原本數值。 */
.footer__giant { position: relative; margin-top: 24px; text-align: center; pointer-events: none; }
.footer__giant-word { display: block; padding-left: 0.22em; font-family: var(--font-brand); font-weight: 700; font-size: clamp(64px, 10vw, 180px); line-height: 1; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.4); user-select: none; }

/* ----- Breadcrumb ----- */
/* ⚠️ 麵包屑啲短連結唔准縮。老闆 2026-08-31 影咗張相：產品名一長，
   flex 就將「首頁」「護膚」逐隻字擠成直排，變咗「首／頁」上下疊 ——
   成條線嘅節奏散晒。短連結一律 nowrap 唔准縮，要讓位就讓最後嗰個
   產品名（佢縮到剩返一行、超出就 …），因為個名喺下面 H1 度已經有齊。 */
.breadcrumb { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-lg) 0; font-size: 0.75rem; color: var(--text-tertiary); }
.breadcrumb > a,
.breadcrumb__sep { flex: 0 0 auto; white-space: nowrap; }
.breadcrumb > span:last-child {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: var(--gray-300); }

/* ----- Filter Bar ----- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-lg) 0; border-bottom: 1px solid var(--border-light); margin-bottom: var(--space-2xl); }
.filter-bar__count { font-size: 0.8125rem; color: var(--text-tertiary); }

.filter-bar__sort select {
  padding: 10px 36px 10px 14px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a8b0' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ----- Filter Sidebar ----- */
.filter-sidebar {
  position: fixed;
  top: 0; left: -380px;
  width: 380px; height: 100vh;
  background: rgba(242,248,250,0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 2000;
  transition: left var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 8px 0 40px rgba(109,163,181,0.1);
}

.filter-sidebar.is-open { left: 0; }

.filter-sidebar__header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--border-light); background: rgba(242,248,250,0.96); backdrop-filter: blur(24px); }
.filter-sidebar__title { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.filter-sidebar__close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.filter-sidebar__close svg { width: 16px; height: 16px; }
.filter-sidebar__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.filter-group { padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--border-subtle); }
.filter-group__title { list-style: none; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.filter-group__title::-webkit-details-marker { display: none; }
.filter-group__title::after { content: '+'; font-size: 1rem; line-height: 1; color: var(--primary-dark); transition: transform var(--duration-fast); }
.filter-group[open] > .filter-group__title { margin-bottom: var(--space-md); }
.filter-group[open] > .filter-group__title::after { transform: rotate(45deg); }
.filter-group__options { display: flex; flex-direction: column; gap: var(--space-sm); max-height: 42vh; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.filter-option { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; padding: 4px 0; }
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }

.filter-overlay { position: fixed; inset: 0; background: rgba(109,163,181,0.1); backdrop-filter: blur(4px); z-index: 1999; opacity: 0; visibility: hidden; transition: all var(--duration-normal); }
.filter-overlay.is-visible { opacity: 1; visibility: visible; }

/* ----- Product Grid ----- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2xl) var(--space-lg); }

/* 產品格係一嚿嚿砌出嚟嘅（catalog.js 嘅窗口式渲染：離開視窗好遠嗰啲
   嚿會清空，捲返埋去先砌返），所以同一條 list 會有幾個 .product-grid
   上下疊住。兩嚿之間要補返同 grid 一樣嘅行距，否則接口位會夾埋，
   客一眼睇得出邊度斷開。行距跟返 .product-grid 三個斷點。 */
.grid-host { display: flex; flex-direction: column; gap: var(--space-2xl); }

/* ----- Category Banner ----- */
/* 由 300px 收到 176px。呢條 banner 唔賣到嘢 —— 佢淨係講返個分類名，
   而個名喺麵包屑同標籤度已經有。慳返嘅位直接變成多睇到一行貨。 */
.category-banner__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; color: white; letter-spacing: 0.04em; margin-bottom: var(--space-sm); }
.category-banner__desc { font-size: 0.9375rem; color: rgba(255,255,255,0.85); max-width: 500px; }

/* ----- Product Detail ----- */
/* 2026-10-17 產品頁重做（手機＋桌面）：跟新購物袋（下面「Cart（購物袋）」段）同一套面，色票直接用 --bag-*（.page-pdp 同 .page-bag 共用）：
   · 底色冷調灰白；淺青只標重點（手機運送卡、評分總結、已揀狀態）；白卡只畀要成組讀嘅嘢（相、詳細資料、評語、贈禮）。
   · 錢同連結青藍；唯一實色掣係全圓「加入購物袋」#5289A2；暖色只畀 7-11「推薦自取」。一套無襯線字，粗幼分層級；圓角控件 8–10、卡 12。
   · 手機（≤768px）：成闊方形相簿（左右掃）→ 名、價、色號格、數量＋心願；購物條（左價錢、右加入購物袋）浮喺底部導航上面，同購物袋合計條一樣。
   · 桌面（≥769px 兩欄；≥1024px 完整版）：左相（直排細相＋大相，跟住捲）、右 440px 購買欄；詳細資料左字右長圖、評價左總結右評語；
     購買欄捲走之後底部浮起細購物條。唔係手機拉闊。
   JS 掛鈎（product-info__*、qty-*、variant-btn、data-*、#add-to-cart-btn）照舊；舊版散喺成份檔嘅產品頁規則已經喺源頭拎走。 */
body.page-pdp { background: var(--bag-ground); background-image: none; }
.pdp { color: var(--bag-ink); accent-color: var(--bag-teal); }
.pdp ::selection { background: #cfe4eb; color: var(--bag-ink); }
.pdp :focus-visible { outline: 2px solid var(--bag-teal); outline-offset: 2px; }
.pdp ::selection { background: #cfe4eb; color: var(--bag-ink); }
/* 好多元素用 hidden 開關，下面又會幫佢哋設 display —— 統一以 hidden 為準。 */
.pdp [hidden], .pdp-dock[hidden], .pdp-lightbox[hidden] { display: none !important; }
:where(.pdp-stage, .pdp-thumbs, .pdp-actions, .pdp-perks, .pdp-h2, .pdp-lightbox, .pdp-dock, .detail-more, .detail-cuff, .product-state__icon) svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
:is(.pdp, .pdp-lightbox, .pdp-dock) :is(a, button, input, summary):focus-visible { outline: 2px solid var(--bag-teal); outline-offset: 2px; }
.pdp__wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px 28px; }

/* 麵包屑：細、灰，產品名縮到一行 */
.pdp-crumbs { display: none; gap: 6px; padding: 8px 0 9px; color: var(--bag-muted); font-size: 12px; line-height: 1.5; } /* 手機唔出（大品牌手機版都冇） */
.pdp-crumbs a { color: var(--bag-muted); text-decoration: none; }
.pdp-crumbs .breadcrumb__sep { color: #b9c7cc; }

/* 1 · 相簿：一張一格左右掃，張數＋放大鏡；細相喺下面（桌面喺左邊直排） */
.pdp-hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.pdp-gallery { min-width: 0; margin: 0 -16px; }
.pdp-stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.pdp-stage.is-loading { background: linear-gradient(100deg, #eef3f5 30%, #f7fafc 50%, #eef3f5 70%) 0 0 / 200% 100%; animation: pdp-shimmer 1.4s linear infinite; }
@keyframes pdp-shimmer { to { background-position: -200% 0; } }
.pdp-stage__track { display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pdp-stage__track::-webkit-scrollbar { display: none; }
.pdp-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; }
.pdp-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdp-stage__count { position: absolute; left: 12px; bottom: 12px; padding: 2px 10px; border-radius: 999px; background: rgb(255 255 255 / .92); box-shadow: 0 1px 3px rgb(46 58 64 / .12); color: var(--bag-ink); font: 600 12px/1.6 var(--font-body); font-variant-numeric: tabular-nums; pointer-events: none; }
.pdp-stage__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(46 58 64 / .16); color: var(--bag-teal); cursor: zoom-in; }
.pdp-stage__zoom svg { width: 22px; height: 22px; stroke-width: 1.8; }
.pdp-stage__nav { display: none; }
.pdp-thumbs { display: flex; gap: 7px; padding: 8px 16px 0; overflow-x: auto; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb { flex: 0 0 50px; width: 50px; height: 50px; padding: 0; overflow: hidden; border: 1px solid var(--bag-line); border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.pdp-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb.is-active { border-color: var(--bag-teal); box-shadow: inset 0 0 0 1px var(--bag-teal); }

/* 2 · 品牌、名、評分、價錢 */
.pdp-buy { min-width: 0; padding-top: 13px; }
/* 2026-10-20 Winston：跟 Codex 原型嗰種「大企業」購買區（「個名嘅設計、數字同銀碼嘅大細都做得好好」；加入購物袋用返我哋隻藍）。
   品牌字距拉開、類別細字喺右；大字名 600；英文名淡灰；規格一行用幼線分隔；評分金星；簡介；大字價錢右邊一格每件價／色號數。
   數值跟原型（手機 ≤620 嗰套；平板、桌面喺下面 media query）。 */
.pdp-brandline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.pdp-id .product-info__brand { display: inline-block; min-width: 0; font: 700 11px/1.4 var(--font-body); letter-spacing: .12em; }
.pdp-id .product-info__brand a { color: var(--bag-teal); text-decoration: none; }
.pdp-brandline__type { flex: none; color: #89989d; font-size: 11px; line-height: 1.4; }
/* 香港授權行貨（2026-10-30）：跟住品牌名嘅一粒盾牌字 pill（盾牌＋字，同 shopify.js oujiAuthPill() 出嘅內容一樣，有框，產品頁地方大）；
   margin-right:auto 令類別留返最右。冇授權嘅品牌 hidden，唔佔位。 */
.pdp-brandline > .pdp-auth { margin-right: auto; display: inline-flex; flex: none; align-items: center; gap: 4px; height: 20px; padding: 0 9px 0 7px; border-radius: 999px; background: #eef6f8; box-shadow: inset 0 0 0 1px #b7d2da; color: #35707f; font: 500 11.5px/1 var(--font-body); letter-spacing: .02em; white-space: nowrap; }
.pdp-brandline > .pdp-auth[hidden] { display: none; }
.pdp-brandline > .pdp-auth svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pdp-name__brand { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } /* 品牌上面已經有 */
.pdp-id .product-info__name { margin: 0; color: var(--bag-ink); font: 600 25px/1.5 var(--font-body); letter-spacing: .025em; text-wrap: balance; }
.product-info__subtitle { margin: 4px 0 0; color: #778990; font-size: 12px; line-height: 1.6; }
.pdp-specs { --spec-gap: 10px; display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin: 13px 0 0 calc(-1 * var(--spec-gap)); color: #476779; font-size: 11px; font-weight: 700; line-height: 1.5; font-variant-numeric: lining-nums; clip-path: inset(0 0 0 var(--spec-gap)); }
.pdp-specs span { padding: 0 var(--spec-gap); border-left: 1px solid #c6d5db; white-space: nowrap; } /* 分隔線喺左；每行頭嗰條由 clip-path 剪走，斷兩行都唔會吊住一條線 */
/* 全店正貨一行（2026-10-30）：規格一行下面，細字淡色＋細勾；比授權 pill、角色標籤都靜。手機同桌面都係同一位（流入正文，唔喺底部購物條）。 */
.pdp-trust { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; color: #66767e; font: 500 12px/1.4 var(--font-body); letter-spacing: .02em; }
.pdp-trust svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.product-info__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; width: fit-content; margin-top: 15px; color: var(--bag-muted); font-size: 11px; line-height: 1.4; text-decoration: none; }
.product-info__rating .stars { font-size: 12px; letter-spacing: .04em; }
.product-info__rating .stars__row--fg { color: #be872d; }
.product-info__rating-num { color: var(--bag-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-info__rating-num .rating-max { margin-left: 1px; color: var(--bag-muted); font-size: .85em; font-weight: 500; }
.product-info__rating-n { color: var(--bag-muted); }
.product-info__rating:not(.is-static)::after { content: ""; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat; }

.pdp-price { margin-top: 16px; }
.product-info__price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--bag-teal); font-variant-numeric: lining-nums tabular-nums; }
.pp { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pp__now { color: var(--bag-teal); font-size: 31px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; } /* 原型係系統字 600；我哋得一套字（Manrope），用 700 先夠實淨 */
.pp--sale .pp__now { color: var(--sale, #c8452f); } /* 有劃線價：特價紅色，同商品卡 .product-card__price--sale 一樣 */
.pp__was { color: var(--bag-muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
/* 價錢右邊一格：件裝每件價、或者幾多個色號可選 */
.pp__side { display: grid; padding-left: 14px; border-left: 1px solid var(--bag-line); color: var(--bag-ink); font-size: 11px; line-height: 1.7; }
.pp__side b { font-weight: 500; }
.pp__side span { color: var(--bag-muted); }
@media (max-width: 374px) {
  .pp__side { flex-basis: 100%; grid-auto-flow: column; justify-content: start; column-gap: 8px; padding-left: 0; border-left: 0; }
}
.pdp-buy:has(.pp__side[data-count]) .pdp-opt__count { display: none; } /* 價錢隔離已經講咗幾多個色號，色號格標題唔再講 */
.product-info__stock { margin: 6px 0 0; color: #9a4f49; font-size: 12.5px; font-weight: 600; }
.product-info__stock span { color: var(--bag-muted); font-weight: 400; }
.product-pair-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bag-tint); color: var(--bag-teal-ink); font-size: 13px; font-weight: 600; line-height: 1.55; }
.product-pair-note small { display: block; margin-top: 2px; color: var(--bag-muted); font-size: 12px; font-weight: 400; }
/* 短效期：N 折細牌（啞紅，同購物袋到期字一樣）、到期日卡 */
.sd-price { display: grid; gap: 5px; }
.sd-price__tier { width: fit-content; padding: 1px 9px; border-radius: 999px; background: #f6eceb; color: #9a4f49; font-size: 12px; font-weight: 700; line-height: 1.7; letter-spacing: 0; }
.sd-price__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sd-price__now { color: var(--bag-teal); font-size: 31px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.sd-price__was { color: var(--bag-muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.sd-notice { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bag-surface); box-shadow: var(--bag-shadow); }
.sd-notice__date { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; color: var(--bag-muted); font-size: 13px; }
.sd-notice__date strong { color: #9a4f49; font-size: 15px; font-variant-numeric: tabular-nums; }
.sd-notice__terms { display: grid; gap: 3px; margin: 8px 0 0; padding: 8px 0 0 1.1em; border-top: 1px solid var(--bag-line); color: var(--bag-muted); font-size: 12.5px; line-height: 1.55; }
.sd-notice__terms strong { color: var(--bag-ink); }
.sd-notice__more { display: inline-block; margin-top: 8px; color: var(--bag-teal); font-size: 13px; font-weight: 600; text-decoration: none; }

/* 3 · 揀色號／款式／尺碼／度數 */
.pdp-options { margin-top: 20px; scroll-margin: 140px 0 200px; }
.pdp-opt__head { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-bottom: 12px; }
.pdp-opt__head .product-info__option-label { color: var(--bag-ink); font-size: 14px; font-weight: 700; }
.pdp-opt__count { flex: none; margin-left: auto; color: var(--bag-muted); font-size: 12.5px; }
/* 揀咗（或者滑鼠停住）嘅色號名同價錢，緊貼「色號」寫一次——色號格本身唔再逐粒寫名 */
.pdp-opt__picked { min-width: 0; overflow: hidden; color: var(--bag-ink); font-size: 14px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.pdp-opt__picked.is-empty { color: var(--bag-muted); font-weight: 400; }
.pdp-options.is-nudge .product-info__variants { animation: pdp-nudge .55s cubic-bezier(.3, 1.4, .5, 1); }
.pdp-options.is-nudge .product-info__option-label { color: var(--bag-teal); }
@keyframes pdp-nudge { 30% { transform: translateX(-5px); } 60% { transform: translateX(4px); } }
.product-info__variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 40px; padding: 7px 14px; border: 1px solid var(--bag-control); border-radius: 8px; background: #fff; color: var(--bag-ink); font: 500 13.5px/1.35 var(--font-body); text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.variant-btn__price { color: var(--bag-teal); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.variant-btn__state { color: var(--bag-muted); font-size: 11px; font-weight: 500; }
.variant-btn.is-selected { border-color: var(--bag-teal); background: var(--bag-tint); box-shadow: inset 0 0 0 1px var(--bag-teal); color: var(--bag-teal-ink); }
.variant-btn:disabled, .variant-btn.is-soldout { border-style: dashed; background: #f4f7f8; color: #8b999e; }
.variant-btn:disabled { cursor: not-allowed; }
/* 賣晒嘅色號仍然撳得（睇相、睇價錢），揀咗要認得出：實線青邊＋灰字，掣會變「暫時缺貨」（見 product.html variant click） */
/* 圖片色號（.variant-btn--image）排除喺外：佢有自己嘅圓形 swatch 規則，唔可以畀呢條加 tint 底同 inset 框 */
.variant-btn:not(.variant-btn--image).is-soldout.is-selected { border-style: solid; border-color: var(--bag-teal); background: var(--bag-tint); box-shadow: inset 0 0 0 1px var(--bag-teal); color: var(--bag-muted); }
/* 色號：細圓粒（跟 Fenty／Rare Beauty 做法），手機 40px 一行七粒、桌面 36px 一行十粒；名同價錢只喺上面寫一次（2026-10-18 Winston：色號格太大嚿、浪費位） */
.product-info__variants--swatch { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-btn--image { position: relative; display: block; width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; }
.variant-btn__pic { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgb(30 48 56 / .08); transition: box-shadow .15s ease; }
.variant-btn__image { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 未有色號相（老闆規矩：搵唔到官方相先出色號編號）：淺藍實底圓粒＋編號，同有相嗰啲一樣節奏 */
.variant-btn__ph { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--bag-tint); box-shadow: inset 0 0 0 1px #d5e3e9; color: var(--bag-teal); font-size: 11px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.variant-btn--image .variant-btn__name, .variant-btn--image .variant-btn__price, .variant-btn--image .variant-btn__state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.variant-btn--image.is-selected { border: 0; background: none; box-shadow: none; }
.variant-btn--image.is-selected .variant-btn__pic { box-shadow: 0 0 0 2px var(--bag-ground), 0 0 0 3.5px var(--bag-teal); }
.variant-btn--image:disabled, .variant-btn--image.is-soldout { border: 0; background: none; }
.variant-btn--image:disabled .variant-btn__pic, .variant-btn--image.is-soldout .variant-btn__pic { opacity: .45; }
.variant-btn--image:disabled .variant-btn__pic::before, .variant-btn--image.is-soldout .variant-btn__pic::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top right, transparent calc(50% - .75px), rgb(90 106 112 / .7) 50%, transparent calc(50% + .75px)); }
/* 隱形眼鏡度數：細格，右上角一點（實心現貨、空心預訂） */
.product-info__variants--power { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.power-btn { align-items: center; padding: 0 4px; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.power-btn.is-wide { grid-column: span 2; }  /* 「0.00（平光）」呢類長字佔兩格，唔好斷行 */
.power-btn::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; }
.power-btn.is-ready::after, .power-dot--ready { background: var(--bag-teal); }
.power-btn.is-preorder::after, .power-dot--preorder { background: #fff; box-shadow: inset 0 0 0 1.5px #8aa3ad; }
.power-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--bag-muted); font-size: 12px; }
.power-legend span { display: inline-flex; align-items: center; gap: 6px; }
.power-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.power-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--bag-tint); color: var(--bag-teal-ink); font-size: 12.5px; line-height: 1.5; }
.power-note.is-preorder { background: #fff; box-shadow: inset 0 0 0 1px #b9cfd7; color: var(--bag-ink); }

/* 4 · 數量、加入購物袋、心願（桌面喺購買欄一行；手機加入購物袋由底部購物條代撳，見下面 .pdp-dock） */
.pdp-actions { display: flex; align-items: center; gap: 10px; }
.pdp-wish { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--bag-control); border-radius: 50%; background: #fff; color: var(--bag-teal); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.pdp-wish svg { width: 21px; height: 21px; flex: none; }
/* 字只喺手機出（膠囊「♡ 加入願望清單」）；桌面淨係圓形心心，字留畀讀屏 */
.pdp-wish__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pdp-wish.is-active { border-color: #efc7c0; color: #bd3a27; }
.pdp-wish.is-active svg { fill: currentColor; }
.pdp-qty { display: flex; flex: 0 0 auto; align-items: center; height: 48px; border: 1px solid var(--bag-control); border-radius: 10px; background: #fff; }
.pdp-qty .qty-btn { display: grid; place-items: center; width: 31px; height: 100%; padding: 0; border: 0; background: none; color: var(--bag-ink); cursor: pointer; }
.pdp-qty .qty-btn svg { width: 16px; height: 16px; }
/* 16px：iPhone 撳入細過 16px 嘅輸入格會自動放大成頁。 */
.pdp-qty .qty-input { width: 28px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--bag-ink); font: 600 16px/1 var(--font-body); font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.pdp-qty .qty-input::-webkit-outer-spin-button, .pdp-qty .qty-input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
/* 英文版「Please select a shade first」好長：准斷兩行置中，唔好截字 */
.pdp-add { position: relative; flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 4px 22px; border: 0; border-radius: 999px; background: var(--bag-brand); color: #fff; font: 600 15px/1.2 var(--font-body); letter-spacing: .03em; text-wrap: balance; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
/* 袋 icon（原型做法）：用 ::before 畫，JS 改掣字（textContent）唔會洗走佢；未揀色號、已加入、缺貨嗰陣唔出 */
@media (forced-colors: active) {
  .pdp-add::before, .product-info__rating::after { background: ButtonText; }
}
.pdp-add:not(.is-blocked):not(.is-done):not(.btn--sold-out):not(.is-variant-out)::before { content: ""; flex: none; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6Z'/%3E%3Cpath d='M9 10V7a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6Z'/%3E%3Cpath d='M9 10V7a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E") center / contain no-repeat; }
/* 未揀色號：淡底青字（照撳得，撳落去捲返去色號格） */
.pdp-add.is-blocked { background: var(--bag-tint); box-shadow: inset 0 0 0 1px #b9cfd7; color: var(--bag-teal-ink); }
.pdp-add.is-busy { cursor: progress; }
.pdp-add.is-done { background: var(--bag-teal); }
.pdp-add:disabled { cursor: default; }
.pdp-add.btn--sold-out { flex: 0 1 auto; padding: 0 14px; background: #e6ecee; color: var(--bag-muted); font-size: 14px; letter-spacing: 0; }
/* 揀咗賣晒嘅色號：掣照樣佔位（唔縮），灰底灰字，唔再似撳得 */
.pdp-add.is-variant-out { background: #e6ecee; color: var(--bag-muted); letter-spacing: 0; }
.pdp-restock { flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--bag-teal); color: var(--bag-teal); font: 700 15px/1.2 var(--font-body); white-space: nowrap; cursor: pointer; }
.pdp-actions.is-sold-out .pdp-qty { display: none; }

/* 5 · 簡介、成分 */
.product-info__short-desc { display: -webkit-box; max-width: 470px; margin: 13px 0 0; overflow: hidden; color: var(--bag-muted); font-size: 13px; line-height: 1.85; text-wrap: pretty; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } /* 喺評分同價錢中間；淡色、最多兩行，全文喺下面產品介紹 */
.ing-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ing-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--bag-tint); color: var(--bag-teal-ink); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.ing-chip--clean { background: #fff; box-shadow: inset 0 0 0 1px var(--bag-tint-line); }
.ing-chip--warn { background: #f6eceb; color: #9a4f49; }

/* 6 · 運送與自取：簡單一條（Winston 2026-10-17 畀參考圖：「簡簡單單咪得囉…唔使好華麗」；之前嗰張大卡被指「咁大嚿」）。
   淺青底、圓角 10、三格幼線分隔、線 icon；淨係特登突出 7-11「滿 $149 自取免運」（青藍、$149 大啲），其餘灰藍。
   手機格窄，icon 喺上面；桌面 icon 喺左邊（同參考圖一樣）。下面一行細字：送達日數、門市自取、運送詳情。 */
.pdp-perks { display: grid; gap: 14px; margin-top: 22px; }
.pdp-ship__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pdp-ship__ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 10px 2px; border-radius: 10px; background: var(--bag-tint); list-style: none; }
.pdp-ship__way { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 0 4px; text-align: center; }
.pdp-ship__way + .pdp-ship__way { border-left: 1px solid var(--bag-tint-line); }
.pdp-ship__mark { display: grid; place-items: center; height: 22px; color: #6b98a8; }
.pdp-ship__mark svg { width: 20px; height: 20px; stroke-width: 1.5; }
.pdp-ship__mark img { display: block; width: 15px; height: 20px; object-fit: contain; }
.pdp-ship__text { display: grid; gap: 1px; min-width: 0; }
.pdp-ship__name { color: #345561; font-size: 11.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.pdp-ship__fee, .pdp-ship__deal { color: var(--bag-muted); font-size: 11.5px; line-height: 1.35; white-space: nowrap; }
.pdp-ship__fee b { color: #345561; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.pdp-ship__deal b { color: #345561; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.pdp-ship__way.is-key .pdp-ship__deal { color: var(--bag-teal); font-weight: 600; }
.pdp-ship__way.is-key .pdp-ship__deal b { color: var(--bag-teal); font-size: 14px; }
/* 英文字長過中文一倍，三格要准斷行（中文照一行） */
html[lang="en"] .pdp-ship__name, html[lang="en"] .pdp-ship__fee, html[lang="en"] .pdp-ship__deal { white-space: normal; text-wrap: balance; }
.pdp-ship__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 6px 2px 0; color: var(--bag-muted); font-size: 11.5px; line-height: 1.5; }
.pdp-ship__more { margin-left: auto; color: var(--bag-teal); font-weight: 600; text-decoration: none; white-space: nowrap; }
/* 購物優惠（2026-10-18 Winston 喺四個版本揀咗 B）：首頁「今期著數・好物，有禮」兩個優惠位做返網頁字 ——
   粉紅卡＝即減（大紅字 #a8342f）、淺藍卡＝加碼送面霜（深藍灰 #284b5c），兩張疊住、頂到購買欄右邊，芝麻店長疊喺淺藍卡右邊；條款一行細字。
   顏色跟首頁原圖（即減用紅、贈品用藍），係 Winston 揀嘅，唔受「暖色只畀 7-11」限。手機約 183px 高。 */
.pdp-deals { display: grid; gap: 8px; }
.pdp-deals__row { position: relative; } /* 兩張卡頂到購買欄右邊（Winston：唔好為隻貓留空位，要同上下一樣闊）；芝麻疊喺淺藍卡右邊 */
.pdp-deals__list { display: grid; gap: 8px; min-width: 0; }
.pdp-offer { position: relative; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; column-gap: 10px; min-width: 0; padding: 9px 12px 10px 50px; border-radius: 14px; color: inherit; text-decoration: none; }
.pdp-offer__icon { position: absolute; top: 50%; left: 12px; width: 30px; height: 30px; margin-top: -15px; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pdp-offer.is-save { background: linear-gradient(120deg, #fdf3f1 0%, #f8e1dd 100%); box-shadow: inset 0 0 0 1px rgb(196 100 92 / .16); }
.pdp-offer.is-save .pdp-offer__icon { fill: #f8d3ce; stroke: #c4645c; }
.pdp-offer.is-gift { background: linear-gradient(120deg, #f2f8fc 0%, #dfedf6 100%); box-shadow: inset 0 0 0 1px rgb(79 134 163 / .18); transition: box-shadow .15s ease; }
.pdp-offer.is-gift .pdp-offer__icon { fill: #d3e6f2; stroke: #4f86a3; }
.pdp-offer__k { grid-column: 1 / -1; margin: 0; color: #6c5653; font-size: 11.5px; line-height: 1.4; }
.pdp-offer.is-gift .pdp-offer__k { color: #4c6570; }
.pdp-offer__k a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.pdp-offer__v { margin: 1px 0 0; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
.pdp-offer.is-save .pdp-offer__v { color: #a8342f; }
/* SO NATURAL 任揀 2 支（oujiMultiBuyBandHTML）：顏色同 is-save 一樣，獨立 class，免得俾 Halloween 活動 CSS 隱藏 */
.pdp-offer.is-multibuy { background: linear-gradient(120deg, #fdf3f1 0%, #f8e1dd 100%); box-shadow: inset 0 0 0 1px rgb(196 100 92 / .16); }
.pdp-offer.is-multibuy .pdp-offer__icon { fill: #f8d3ce; stroke: #c4645c; }
.pdp-offer.is-multibuy .pdp-offer__v { color: #a8342f; }
.pdp-offer.is-gift .pdp-offer__v { color: #284b5c; }
.pdp-offer__s { min-width: 0; margin: 0; color: var(--bag-muted); font-size: 11px; line-height: 1.35; }
.pdp-offer.is-gift .pdp-offer__s { grid-column: 1 / -1; margin-top: 3px; word-break: keep-all; overflow-wrap: anywhere; } /* 贈品名長：自己一行，唔好斷開「價／值」 */
.pdp-deals__shima { position: absolute; z-index: 1; right: 8px; bottom: 6px; width: 78px; height: auto; filter: drop-shadow(0 3px 6px rgb(46 58 64 / .16)); pointer-events: none; }
.pdp-offer.is-gift { padding-right: 92px; } /* 字唔好俾芝麻遮住 */
.pdp-deals__terms { margin: 0; color: var(--bag-muted); font-size: 11px; line-height: 1.5; }

/* 7 · 下半：影片、詳細資料、評價、推薦。標題跟購物袋（粗黑字＋青藍線 icon，冇小標） */
.pdp-section { margin-top: 56px; }
.pdp-h2 { display: block; margin: 0 0 18px; color: var(--bag-ink); font: 600 20px/1.35 var(--font-body); letter-spacing: .01em; }
.pdp-h2 svg { display: none; } /* 段落標題靠字，唔加裝飾 icon */
.product-videos__row { display: grid; gap: 12px; }
.product-videos__card { margin: 0; }
.product-videos__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #10191e; }
.product-videos__frame iframe, .product-videos__frame video { display: block; width: 100%; height: 100%; border: 0; }
.product-videos__link { position: relative; display: grid; place-items: center; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.product-videos__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-videos__play { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; background: var(--bag-brand); color: #fff; font-size: 14px; font-weight: 700; }
.product-videos__card p { margin: 6px 2px 0; color: var(--bag-muted); font-size: 12.5px; }

.pdp-story__body { display: grid; gap: 12px; }
.pdp-story__sub { margin: 4px 2px 10px; color: var(--bag-ink); font: 700 15px/1.4 var(--font-body); letter-spacing: 0; }
.pdp-details__text { padding: 0; }
.product-description { color: var(--bag-ink); font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.product-description > :first-child { margin-top: 0; }
.product-description p { margin: 0 0 10px; }
.product-description h3, .product-description h4 { margin: 18px 0 6px; color: var(--bag-ink); font: 700 15px/1.45 var(--font-body); letter-spacing: 0; }
.product-description ul, .product-description ol { margin: 0 0 12px; padding-left: 1.25em; list-style: disc; }
.product-description ol { list-style: decimal; }
.product-description li { margin: 3px 0; }
.product-description li::marker { color: var(--bag-teal); }
.product-description strong { font-weight: 700; }
.product-description a { color: var(--bag-teal); }
.product-description img { max-width: 100%; height: auto; }
.product-description .ouji-alt-names { margin: 14px 0 0; color: var(--bag-muted); font-size: 12px; line-height: 1.6; }
.pdp-details__media { margin: 8px -16px 0; overflow: hidden; background: var(--bag-surface); } /* 手機長圖左右頂邊，唔框住 */
.product-detail-images { display: block; }
.product-detail-images img { display: block; width: 100%; height: auto; }
.product-detail-images.is-collapsed { max-height: 1100px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.detail-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 32px); min-height: 46px; margin: 4px 16px 16px; border: 1px solid var(--bag-control); border-radius: 999px; background: #fff; color: var(--bag-ink); font: 600 14px var(--font-body); cursor: pointer; }
.detail-more em { color: var(--bag-muted); font-size: 12.5px; font-style: normal; font-weight: 400; }
.detail-more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.detail-more.is-open svg { transform: rotate(180deg); }
/* 攤開長圖之後浮喺畫面底嘅「收起產品圖」：白底青字（唯一實色留畀加入購物袋） */
.detail-cuff { position: fixed; z-index: 1400; left: 50%; bottom: 24px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgb(28 60 74 / .2), 0 0 0 1px var(--bag-line); color: var(--bag-teal); font: 600 13.5px var(--font-body); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease; cursor: pointer; }
.detail-cuff.is-shown { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.detail-cuff svg { width: 16px; height: 16px; stroke-width: 2; }
html.pdp-dock-on .detail-cuff { bottom: 104px; }

/* 產品資料：「重點」卡（product-guide.js）＋產品介紹。每件貨同一個樣（2026-10-17 Winston：唔同產品頁面唔統一、好割裂）：
   卡入面係固定次序嘅資料行（左標籤右內容、幼線分隔），冇料嗰行唔出，但張卡同位置唔變；介紹固定係文字 → 影片 → 長圖。 */
/* 一律細字標籤喺上、內容喺下（中英文一樣）；短資料排做小格，長資料一行一樣，幼線分隔 */
/* 產品重點：摺疊清單（2026-10-18，跟 Rare Beauty／Glossier）：冇卡冇陰影，靠幼線同留白分段；「重點」預設打開 */
.pdp-acc { margin-top: 0; }
.pdp-acc__list { border-top: 1px solid var(--bag-line); }
.pdp-acc__note { margin: 10px 2px 0; color: var(--bag-muted); font-size: 11.5px; line-height: 1.6; }
/* ── 預覽：一張視覺化重點卡（?facts=card，2026-10-19 Winston：重點／適合膚質／質地／點樣用可唔可以一張卡表示晒）──
   白卡；適合膚質五粒（啱用淺青＋剔、可以白底、唔建議淺紅＋交叉）；三格（質地 icon、膚感／刺激度三點）；點樣用＝早夜＋步驟條；
   針對、主打成分一行；最底基本資料＋「詳細」（品牌用法、要留意）。 */
.pdp-acc.is-card { margin-top: 18px; }
.pdp-acc.is-card .pdp-acc__list { border-top: 0; }
.pdp-pf { display: grid; gap: 16px; padding: 16px 16px 14px; border-radius: 14px; background: var(--bag-surface); box-shadow: inset 0 0 0 1px var(--bag-line); }
.pdp-pf svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pdp-pf__hook { margin: 0; color: var(--bag-ink); font: 700 16px/1.45 var(--font-body); text-wrap: pretty; }
.pdp-pf__points { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.pdp-pf__points li { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 7px; color: var(--bag-ink); font-size: 14px; font-weight: 500; line-height: 1.5; text-wrap: pretty; }
.pdp-pf__points svg { width: 16px; height: 16px; margin-top: 3px; color: var(--bag-teal); stroke-width: 2.4; }
.pdp-pf__inci-for { margin: 8px 0 2px; color: var(--bag-ink); font-size: 12.5px; font-weight: 700; }
.pdp-pf__inci { margin: 0; color: var(--bag-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.pdp-pf__note { margin: 8px 0 0; color: var(--bag-muted); font-size: 12.5px; line-height: 1.55; }
.pdp-pf__how { margin: 0 0 10px; }
.pdp-pf__label { margin: 0 0 7px; color: var(--bag-muted); font-size: 11.5px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.pdp-pf__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pdp-pf__skins { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pdp-pf__skins li { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 11px 0 8px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pdp-pf__skins svg { flex: none; width: 15px; height: 15px; stroke-width: 2.4; }
.pdp-pf__skins .is-good { background: var(--bag-tint); box-shadow: inset 0 0 0 1px #bcd6df; color: var(--bag-teal-ink); }
.pdp-pf__skins .is-ok { background: #fff; box-shadow: inset 0 0 0 1px var(--bag-line); color: var(--bag-muted); }
.pdp-pf__skins .is-ok svg { fill: #9fb3ba; stroke: none; width: 9px; height: 9px; margin: 0 2px; }
.pdp-pf__skins .is-avoid { background: #f6eceb; color: #9a4f49; }
.pdp-pf__tiles { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 8px; }
.pdp-pf__tile { min-width: 0; padding: 10px 10px 9px; border-radius: 10px; background: var(--bag-tint); }
.pdp-pf__tile .pdp-pf__label { margin-bottom: 5px; }
.pdp-pf__val { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; color: var(--bag-ink); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.pdp-pf__val svg { flex: none; width: 20px; height: 20px; color: var(--bag-teal); }
.pdp-pf__meter { display: inline-flex; gap: 3px; }
.pdp-pf__meter i { width: 12px; height: 6px; border-radius: 999px; background: #c9dce3; }
.pdp-pf__meter i.is-on { background: var(--bag-teal); }
.pdp-pf__when { display: flex; align-items: center; gap: 4px; margin: 0 0 10px; color: var(--bag-ink); font-size: 13.5px; font-weight: 600; }
.pdp-pf__when svg { flex: none; width: 18px; height: 18px; color: var(--bag-teal); }
.pdp-pf__beg { margin-left: auto; padding: 1px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--bag-line); color: var(--bag-muted); font-size: 11.5px; font-weight: 600; line-height: 1.6; }
.pdp-pf__track { margin-bottom: 0; }
.pdp-pf__sec--inline { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; column-gap: 8px; }
.pdp-pf__sec--inline .pdp-pf__label { margin: 0; }
html[lang="en"] .pdp-pf__sec--inline { grid-template-columns: 100px minmax(0, 1fr); } /* 「Key ingredients」一行擺得落 */
.pdp-pf__text { margin: 0; color: var(--bag-ink); font-size: 13.5px; line-height: 1.6; }
.pdp-pf__foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; padding-top: 12px; border-top: 1px solid var(--bag-line); }
.pdp-pf__basics { margin: 0; color: var(--bag-muted); font-size: 12.5px; line-height: 1.6; }
/* 基本資料最上面一行：貨源（香港授權行貨）。整行闊，擺喺「基本」一行之上 */
.pdp-pf__source { flex: 1 1 100%; margin: 0; color: var(--bag-ink); font-size: 13px; line-height: 1.5; }
.pdp-pf__source b { color: var(--bag-teal-ink); font-weight: 700; }
.pdp-pf__more { flex: 1 1 100%; min-width: 0; order: 2; }
/* 整行都可展開／收起，手機唔使對準文字或加號。 */
.pdp-pf__more summary { display: flex; box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 0; align-items: center; gap: 4px; color: var(--bag-teal); font-size: 13px; font-weight: 700; list-style: none; cursor: pointer; }
.pdp-pf__more summary::-webkit-details-marker { display: none; }
.pdp-pf__more summary i { position: relative; flex: none; width: 10px; height: 10px; }
.pdp-pf__more summary i::before, .pdp-pf__more summary i::after { content: ""; position: absolute; top: 4.25px; left: 0; width: 10px; height: 1.5px; border-radius: 1px; background: currentColor; }
.pdp-pf__more summary i::after { transform: rotate(90deg); transition: transform .2s ease; }
.pdp-pf__more[open] summary i::after { transform: rotate(0deg); }
.pdp-pf__more-body { display: grid; gap: 12px; padding-top: 10px; }
.pdp-acc .ing-chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* 項目標題已經講咗嘅，入面唔使再寫一次 */ /* 件件一樣三欄，欄線對齊 */
.pdp-guide__label { margin: 0 0 8px; color: var(--bag-muted); font: 700 12px/1.4 var(--font-body); letter-spacing: .04em; }
.pdp-guide__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 2px 0 10px; padding: 0; list-style: none; }
.pdp-guide__track li { position: relative; display: grid; justify-items: center; gap: 5px; color: var(--bag-muted); font-size: 11.5px; line-height: 1.3; text-align: center; }
.pdp-guide__track li::before { content: ""; position: relative; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--bag-track); }
.pdp-guide__track li::after { content: ""; position: absolute; top: 4px; right: 50%; width: 100%; height: 2px; background: var(--bag-track); }
.pdp-guide__track li:first-child::after { display: none; }
.pdp-guide__track li.is-before::before { background: var(--bag-track); }
.pdp-guide__track li.is-here { color: var(--bag-teal); font-weight: 700; }
.pdp-guide__track li.is-here::before { width: 14px; height: 14px; margin-top: -2px; background: var(--bag-teal); box-shadow: 0 0 0 3px #d2e3e9; }
.pdp-guide__tips { display: grid; gap: 6px; margin: 0; padding: 0; color: var(--bag-ink); font-size: 13.5px; line-height: 1.65; list-style: none; }
.pdp-guide__tips li { position: relative; padding-left: 14px; }
.pdp-guide__tips li::before { content: ""; position: absolute; top: .72em; left: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--bag-teal); }
/* AI 幫你睇評價（renderReviewAI）：擺喺評價區總結下面，淺青底 */
.pdp-guide__voice { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--bag-tint); } /* 評價區唯一一個色塊 */
.pdp-guide__voice .pdp-guide__label { margin-bottom: 8px; }
.pdp-guide__label--ai { display: flex; align-items: center; gap: 5px; color: var(--bag-teal-ink); }
.pdp-guide__label--ai svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--bag-teal); stroke-width: 1.7; stroke-linejoin: round; }
.pdp-guide__pros, .pdp-guide__cons { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.pdp-guide__cons { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--bag-tint-line); }
.pdp-guide__pros li, .pdp-guide__cons li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--bag-ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.pdp-guide__pros svg, .pdp-guide__cons svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.pdp-guide__pros svg { background: var(--bag-teal); color: #fff; }
.pdp-guide__cons svg { background: #fff; color: #9a4f49; box-shadow: inset 0 0 0 1px #e6cfcc; }
.pdp-guide__pros small, .pdp-guide__cons small { color: var(--bag-muted); font-size: 11.5px; font-weight: 400; white-space: nowrap; }
.pdp-guide__fitline { margin: 10px 0 0; color: var(--bag-ink); font-size: 13.5px; line-height: 1.6; }
.pdp-guide__fitline b { color: var(--bag-teal-ink); }
.pdp-guide__basis { margin: 10px 0 0; color: var(--bag-muted); font-size: 11.5px; line-height: 1.5; }

/* 評價：標題同出處一行；總結淺青卡（大分數＋星級分佈＋屬性）；評語白卡，先出 4 則 */
.reviews { scroll-margin-top: 110px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 12px; }
.rv-head .pdp-h2 { margin: 0; }
.rv-head__src { color: var(--bag-muted); font-size: 12px; }
.rv-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 22px; padding: 2px 0 20px; border-bottom: 1px solid var(--bag-line); }
.rv-score { display: grid; align-content: center; justify-items: center; gap: 3px; min-width: 88px; }
.rv-score__num { color: var(--bag-ink); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.rv-score__num .rating-max { margin-left: 2px; color: var(--bag-muted); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.rv-score .stars { font-size: 14px; letter-spacing: 1px; }
.rv-score__meta { color: var(--bag-muted); font-size: 11px; line-height: 1.4; text-align: center; }
.rv-dist { display: grid; align-content: center; gap: 4px; }
.rv-dist__row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 34px; align-items: center; gap: 8px; color: var(--bag-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rv-dist__track, .rv-attr__track { height: 4px; overflow: hidden; border-radius: 999px; background: var(--bag-line); }
.rv-dist__bar, .rv-attr__bar { display: block; height: 100%; border-radius: inherit; background: var(--bag-brand); }
.rv-dist__pct { text-align: right; }
.rv-attrs { display: grid; grid-column: 1 / -1; gap: 6px; padding-top: 14px; border-top: 1px solid var(--bag-line); }
.rv-attr { display: grid; grid-template-columns: 56px minmax(0, 1fr) 30px; align-items: center; gap: 8px; color: var(--bag-ink); font-size: 12.5px; }
html[lang="en"] .rv-attr { grid-template-columns: 104px minmax(0, 1fr) 30px; line-height: 1.3; }
.rv-attr__bar { background: var(--bag-teal); }
.rv-attr__num { color: var(--bag-teal); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rv-note { margin: 10px 2px 0; color: var(--bag-muted); font-size: 11.5px; line-height: 1.6; }
.rv-main { margin-top: 14px; }
.rv-list { display: grid; gap: 0; }
.rv-list.is-capped .rv-card:nth-child(n+5) { display: none; }
.rv-card { padding: 18px 0; border-bottom: 1px solid var(--bag-line); }
.rv-card__head { display: flex; align-items: center; gap: 8px; }
.rv-card__head .stars { font-size: 12px; letter-spacing: 1px; }
.rv-card__who { overflow: hidden; color: var(--bag-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.rv-card__date { flex: 0 0 auto; margin-left: auto; color: var(--bag-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.rv-card__shade { display: inline-block; margin-top: 8px; padding: 1px 9px; border-radius: 999px; background: var(--bag-tint); color: var(--bag-teal-ink); font-size: 11.5px; font-weight: 600; line-height: 1.7; }
.rv-card__text { margin: 8px 0 0; color: var(--bag-ink); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.rv-card__attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rv-card__attr { padding: 1px 8px; border: 1px solid var(--bag-line); border-radius: 999px; color: var(--bag-muted); font-size: 11.5px; line-height: 1.6; }
.rv-card__attr b { color: var(--bag-teal); }
.rv-card__src { margin-top: 8px; font-size: 12.5px; }
.rv-card__src summary { width: fit-content; color: var(--bag-teal); list-style: none; cursor: pointer; }
.rv-card__src summary::-webkit-details-marker { display: none; }
.rv-card__src summary::before { content: "＋ "; }
.rv-card__src[open] summary::before { content: "－ "; }
.rv-card__src p { margin: 6px 0 0; color: var(--bag-muted); line-height: 1.7; overflow-wrap: anywhere; }
.rv-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 12px; border: 1px solid var(--bag-control); border-radius: 999px; background: #fff; color: var(--bag-ink); font: 600 14px var(--font-body); cursor: pointer; }

/* 你可能也喜歡：用全站產品頁新卡（product-card-lc），手機一行兩張、桌面一行四張 */
.pdp-related__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.pdp-related__grid::-webkit-scrollbar { display: none; }
.pdp-related__grid > * { scroll-snap-align: start; } /* 手機一行左右滑，慳位 */

/* 放大鏡 */
.pdp-lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 60px 12px 52px; background: rgb(14 24 29 / .92); cursor: zoom-out; animation: pdp-fade .18s ease-out; }
.pdp-lightbox__img { max-width: min(100%, 1100px); max-height: 100%; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / .35); object-fit: contain; }
.pdp-lightbox__close, .pdp-lightbox__nav { position: absolute; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; }
.pdp-lightbox__close { top: max(12px, env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; }
.pdp-lightbox__close svg, .pdp-lightbox__nav svg { width: 22px; height: 22px; stroke-width: 2; }
.pdp-lightbox__nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.pdp-lightbox__nav--prev { left: 16px; }
.pdp-lightbox__nav--next { right: 16px; }
.pdp-lightbox__cap { position: absolute; right: 0; bottom: max(14px, env(safe-area-inset-bottom, 0px)); left: 0; margin: 0; color: rgb(255 255 255 / .86); font-size: 13px; text-align: center; }
html.pdp-lb-open, html.pdp-lb-open body { overflow: hidden; }
@keyframes pdp-fade { from { opacity: 0; } }

/* 搵唔到產品／載入失敗 */
.product-state { max-width: 460px; margin: 32px auto 24px; padding: 32px 22px; border-radius: 12px; background: var(--bag-surface); box-shadow: var(--bag-shadow); text-align: center; }
.product-state__icon { margin-bottom: 10px; color: var(--bag-teal); }
.product-state__title { margin: 0 0 6px; color: var(--bag-ink); font: 700 20px/1.4 var(--font-body); }
.product-state__text { margin: 0 0 18px; color: var(--bag-muted); font-size: 14px; line-height: 1.7; }
.product-state__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--bag-brand); color: #fff; font: 700 16px var(--font-body); letter-spacing: .04em; text-decoration: none; }

/* 購物條：手機一直浮喺底部導航上面（左價錢、右加入購物袋，同購物袋合計條一樣）；桌面購買欄捲走先喺底部浮起 */
.pdp-dock { position: fixed; z-index: 1400; right: 0; bottom: 18px; left: 0; display: flex; justify-content: center; pointer-events: none; animation: pdp-dock-in .35s cubic-bezier(.16, 1, .3, 1); }
.pdp-dock__in { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; width: min(880px, calc(100% - 64px)); padding: 10px 10px 10px 12px; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgb(28 60 74 / .18), 0 1px 3px rgb(28 60 74 / .08); pointer-events: auto; }
.pdp-dock__img { width: 48px; height: 48px; border: 1px solid var(--bag-line); border-radius: 8px; background: #fff; object-fit: contain; }
.pdp-dock__name { display: -webkit-box; margin: 0; overflow: hidden; color: var(--bag-ink); font-size: 15px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pdp-dock__sum { display: grid; justify-items: end; gap: 1px; min-width: 0; }
.pdp-dock__meta { max-width: 240px; margin: 0; overflow: hidden; color: var(--bag-muted); font-size: 12px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.pdp-dock__meta:empty { display: none; }
.pdp-dock__price { color: var(--bag-teal); font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.pdp-dock__price :is(.pp__now, .sd-price__now) { font-size: 20px; letter-spacing: -.01em; }
.pdp-dock__price :is(.pp__was, .sd-price__was) { font-size: 12px; }
.pdp-dock__price :is(.pp__side, .sd-price__tier) { display: none; }
.pdp-dock__price .pp { gap: 0 6px; }
.pdp-dock__out { color: var(--bag-muted); font-size: 14px; font-weight: 600; }
.pdp-dock__add { min-height: 50px; padding: 4px 30px; border: 0; border-radius: 999px; background: var(--bag-brand); color: #fff; font: 700 17px/1.15 var(--font-body); letter-spacing: .04em; text-wrap: balance; cursor: pointer; transition: background-color .2s ease; }
.pdp-dock__add.is-blocked { background: var(--bag-tint); box-shadow: inset 0 0 0 1px #b9cfd7; color: var(--bag-teal-ink); }
.pdp-dock__add.is-restock { background: #fff; box-shadow: inset 0 0 0 1.5px var(--bag-teal); color: var(--bag-teal); }
.pdp-dock__add.is-done { background: var(--bag-teal); }
.pdp-dock__add:disabled { opacity: .6; cursor: default; }
.pdp-dock__add.is-variant-out { background: #e6ecee; color: var(--bag-muted); opacity: 1; }
@keyframes pdp-dock-in { from { opacity: 0; transform: translateY(16px); } }

/* ---- 手機（≤768px）：購物條浮喺底部導航上面（同購物袋合計條同一個位、同一張白卡）；購買欄入面留數量＋心願 ---- */
@media (max-width: 768px) {
  .pdp-actions { gap: 10px; margin-top: 16px; }
  .pdp-actions :is(.pdp-add, .pdp-restock) { display: none; }
  .pdp-wish { display: inline-flex; order: 2; align-items: center; gap: 6px; width: auto; padding: 0 16px 0 14px; border-radius: 999px; }
  .pdp-wish__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--bag-teal); font: 600 14px/1 var(--font-body); }
  .pdp-wish.is-active .pdp-wish__label { color: #bd3a27; }
  .pdp-dock { right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(56px + var(--tabbar-gap, 16px) + 8px); left: max(12px, env(safe-area-inset-left, 0px)); z-index: 1500; display: block; animation: none; }
  /* 條條同底部導航之間嘅空隙鋪返底色，唔好見到內容喺隙入面穿過（漸變只喺最頂 12px） */
  .pdp-dock::before { content: ""; position: absolute; z-index: -1; top: -12px; right: calc(-1 * max(12px, env(safe-area-inset-right, 0px))); bottom: calc(-1 * (56px + var(--tabbar-gap, 16px) + 8px)); left: calc(-1 * max(12px, env(safe-area-inset-left, 0px))); background: linear-gradient(rgb(247 250 252 / 0), var(--bag-ground) 12px); pointer-events: none; }
  .pdp-dock__in { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 14px; width: 100%; padding: 8px 8px 8px 16px; box-shadow: 0 10px 28px rgb(28 60 74 / .16), 0 1px 3px rgb(28 60 74 / .08); }
  .pdp-dock__img, .pdp-dock__name { display: none; }
  .pdp-dock__sum { justify-items: start; max-width: 46vw; padding-right: 14px; border-right: 1px solid var(--bag-line); }
  .pdp-dock__meta { max-width: 100%; font-size: 11.5px; }
  .pdp-dock__price, .pdp-dock__price :is(.pp__now, .sd-price__now) { font-size: 21px; }
  .pdp-dock__add { padding: 0 14px; }
  /* footer 自己留底部導航嘅位（見 Mobile bottom nav 段）；呢頁再加多條購物條嘅高度 */
  body.page-pdp:has(> .footer) > .footer { padding-bottom: calc(56px + var(--tabbar-gap, 16px) + 10px + 74px); }
  .detail-cuff { bottom: calc(56px + var(--tabbar-gap, 16px) + 8px + 78px); }
  .pdp-lightbox__nav { display: none; }
  /* 加入購物袋後嘅芝麻提示（cart-drawer.js .ocd-sesame）本來貼住底部導航；呢頁有購物條，抬高佢唔好遮住加入掣 */
  body.has-pdp-bar .ocd-sesame { bottom: calc(56px + var(--tabbar-gap, 16px) + 8px + 74px); }
}
@media (max-width: 360px) {
  .pdp-dock__add { padding: 0 10px; font-size: 16px; letter-spacing: .02em; }
  /* 細手機：三格好窄，字細半號 */
  .pdp-ship__name, .pdp-ship__fee, .pdp-ship__deal { font-size: 10.5px; }
  .pdp-ship__way.is-key .pdp-ship__deal b { font-size: 13px; }
  .pdp-dock__sum { padding-right: 10px; }
}

/* ---- 桌面（≥769px）：兩欄 ---- */
@media (min-width: 769px) {
  .pdp__wrap { padding: 0 32px 72px; }
  .pdp-details__media { margin-right: -32px; margin-left: -32px; }
  .pdp-crumbs { display: flex; padding: 18px 0 20px; font-size: 12.5px; }
  /* 平板：相＋購買欄（連重點）兩欄，產品介紹喺下面橫跨兩欄（左欄得 300 幾 px，放唔落）。≥1024 先搬去左欄（見下面）。 */
  .pdp-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); grid-template-areas: "gallery buy" "story story"; align-items: start; column-gap: 36px; }
  .pdp-gallery { grid-area: gallery; margin: 0; }
  .pdp-buy { grid-area: buy; }
  .pdp-hero > .pdp-story { grid-area: story; }
  .pdp-stage { border-radius: 12px; box-shadow: var(--bag-shadow); }
  .pdp-thumbs { padding: 12px 0 0; }
  .pdp-thumb { flex-basis: 64px; width: 64px; height: 64px; }
  .pdp-buy { padding-top: 2px; }
  /* 購買區（平板）：原型 ≤1100 嗰套 */
  .pdp-brandline { margin-bottom: 8px; }
  .pdp-id .product-info__brand { font-size: 12px; }
  .pdp-id .product-info__name { font-size: 26px; line-height: 1.4; }
  .product-info__subtitle { margin-top: 6px; font-size: 13px; }
  .pdp-specs { --spec-gap: 12px; margin-top: 15px; font-size: 11.5px; }
  .product-info__rating { margin-top: 17px; }
  .pdp-price { margin-top: 18px; }
  .pp__now, .sd-price__now { font-size: 30px; }
  .pp__was, .sd-price__was { font-size: 15px; }
  .pp__side { padding-left: 16px; font-size: 11.5px; }
  .pdp-actions { margin-top: 18px; }
  .pdp-wish { width: 51px; height: 51px; }
  .pdp-qty { height: 51px; }
  .pdp-qty .qty-btn { width: 33px; }
  .pdp-qty .qty-input { width: 30px; }
  .pdp-add { min-height: 51px; font-size: 14px; }
  .pdp-restock { min-height: 51px; }
  .product-info__short-desc { margin-top: 14px; font-size: 13.5px; }
  /* 桌面：同參考圖一樣 icon 喺左、兩行字喺右 */
  .pdp-perks { gap: 16px; margin-top: 24px; }
  .pdp-ship__ways { padding: 12px 4px; }
  .pdp-ship__way { grid-template-columns: auto minmax(0, auto); justify-content: center; justify-items: start; align-items: center; column-gap: 8px; text-align: left; }
  .pdp-ship__mark { height: auto; }
  .pdp-ship__mark svg { width: 22px; height: 22px; }
  .pdp-ship__mark img { width: 17px; height: 23px; }
  .pdp-ship__name, .pdp-ship__fee, .pdp-ship__deal, .pdp-ship__foot { font-size: 12px; }
  .pdp-section { margin-top: 88px; }
  .pdp-h2 { margin-bottom: 24px; font-size: 26px; }
  .product-videos__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .product-description { font-size: 15px; }
  .pdp-related__grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; margin: 0; padding: 0; overflow: visible; }
  .detail-more { width: auto; min-width: 240px; margin: 8px auto 20px; padding: 0 24px; }
}

/* ---- 桌面完整版（≥1024px）：細相直排、購買欄 440、詳細資料左字右圖、評價左總結右評語 ---- */
@media (min-width: 1024px) {
  /* 2026-10-19 Winston：「右邊好長，左邊空咗一大片，產品簡介擺咗喺下面偏左……我只係叫你將產品簡介擺喺左邊」——
     左欄：相 → 產品介紹（連長圖）；右欄：購買欄（連重點卡）跨兩行、跟住捲（product.html pdpStick；高過視窗就貼住視窗底）。 */
  .pdp-hero { grid-template-columns: minmax(0, 1fr) 440px; grid-template-areas: "gallery buy" "story buy"; grid-template-rows: auto 1fr; column-gap: 56px; }
  .pdp-gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 14px; }
  .pdp-stage { grid-row: 1; grid-column: 2; }
  /* 細相欄高度跟大相（height:0 + min-height:100% 唔會反過嚟撐高嗰行） */
  .pdp-thumbs { grid-row: 1; grid-column: 1; flex-direction: column; height: 0; min-height: 100%; padding: 0; overflow-x: hidden; overflow-y: auto; }
  .pdp-thumb { flex: 0 0 72px; width: 72px; height: 72px; }
  .pdp-stage__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .94); box-shadow: 0 2px 10px rgb(46 58 64 / .14); color: var(--bag-ink); opacity: 0; transition: opacity .2s ease; cursor: pointer; }
  .pdp-stage__nav svg { width: 20px; height: 20px; stroke-width: 2; }
  .pdp-stage__nav--prev { left: 14px; }
  .pdp-stage__nav--next { right: 14px; }
  .pdp-stage:hover .pdp-stage__nav:not(:disabled), .pdp-stage__nav:focus-visible { opacity: 1; }
  .pdp-stage__nav:disabled { opacity: 0 !important; pointer-events: none; }
  /* 購買區（桌面）：原型嗰套 —— 品牌 13px、名 32px／600、英文名 14px、規格 12px、評分 11px 金星、簡介 14px、價錢 32px */
  .pdp-id .product-info__brand { font-size: 13px; }
  .pdp-id .product-info__name { font-size: 32px; line-height: 1.38; }
  .product-info__subtitle { margin-top: 8px; font-size: 14px; }
  .pdp-specs { --spec-gap: 13px; margin-top: 17px; font-size: 12px; }
  .product-info__rating { gap: 2px 9px; margin-top: 19px; }
  .product-info__rating .stars { font-size: 14px; }
  .product-info__rating-num { font-size: 13px; }
  .product-info__short-desc { margin-top: 16px; font-size: 14px; }
  .pdp-price { margin-top: 20px; }
  .pp__now, .sd-price__now { font-size: 32px; }
  /* 評價同上面兩段一樣欄位：評語喺左（1fr）、分數總結＋AI 重點喺右（440，跟住捲）——成版由頂到底同一條線 */
  /* 產品介紹喺左欄相下面（2026-10-19）：文字閱讀闊度最多 680、16px；長圖跟左欄闊 */
  .pdp-hero > .pdp-story { margin-top: 64px; }
  .pdp-story .pdp-h2 { margin-bottom: 20px; }
  .pdp-story .product-description { max-width: 680px; font-size: 16px; line-height: 1.85; }
  /* 購買欄頂同大相頂對齊；右欄跟住捲（product.html pdpStick） */
  .pdp-buy { padding-top: 0; }
  .pdp-options { margin-top: 22px; }
  .pdp-perks { margin-top: 28px; }
  /* 桌面色號 36px，一行十粒 */
  .product-info__variants--swatch { gap: 8px; }
  .variant-btn--image { width: 36px; height: 36px; }
  .pdp-story__body { gap: 16px; }
  .pdp-details__media { margin: 16px 0 0; border-radius: 12px; }
  .rv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; align-items: start; column-gap: 56px; }
  .rv-aside { grid-row: 1; grid-column: 2; }
  .rv-main { grid-row: 1; grid-column: 1; margin-top: 0; }
  .rv-list { display: block; columns: 2; column-gap: 48px; }
  .rv-list .rv-card { break-inside: avoid; }
  .rv-more { width: auto; min-width: 240px; margin: 4px auto 0; padding: 0 24px; }
}

@media (min-width: 1450px) {
  .pdp-id .product-info__name { font-size: 34px; } /* 原型 ≥1450 */
}

/* 桌面右欄（購買欄＋重點卡、評價總結）跟住捲：原生 sticky（2026-10-19 Winston：之前 JS 推嘅「窒下窒下」）。
   同購物袋頁一樣，body 由 overflow hidden 改 clip —— 照樣唔准 body 自己捲，但唔再係捲動盒，sticky 先郁得。
   top 由 product.html pdpStick() 喺闊度／高度變嗰陣寫入 --pdp-stick-top，碌嗰陣唔使 JS。唔識 clip 嘅舊瀏覽器行返 JS 後備。 */
@supports (overflow: clip) {
  @media (min-width: 769px) {
    body.page-pdp { overflow-x: clip; overflow-y: clip; }
  }
  @media (min-width: 1024px) {
    .pdp-sticky { position: sticky; top: var(--pdp-stick-top, 126px); }
  }
}

@media (hover: hover) {
  .pdp-add:not(:disabled):not(.is-blocked):hover, .pdp-dock__add:not(:disabled):not(.is-blocked):not(.is-restock):hover, .product-state__btn:hover { background: var(--bag-brand-hover); }
  .pdp-wish:hover, .pdp-qty .qty-btn:hover { color: var(--bag-teal-ink); }
  .pdp-wish:hover { border-color: #b9cfd7; }
  .pdp-thumb:not(.is-active):hover { border-color: #b9cfd7; }
  .pdp-ship__more:hover { color: var(--bag-teal-ink); }
  .variant-btn:not(:disabled):not(.is-selected):not(.variant-btn--image):hover { border-color: #b9cfd7; }
  .variant-btn--image:not(:disabled):not(.is-selected):hover .variant-btn__pic { box-shadow: 0 0 0 2px var(--bag-ground), 0 0 0 3.5px #b9cfd7; }
  .detail-more:hover, .rv-more:hover { border-color: #b9cfd7; color: var(--bag-teal); }
  .pdp-crumbs a:hover, .sd-notice__more:hover { color: var(--bag-teal-ink); }
  .pdp-offer.is-gift:hover { box-shadow: inset 0 0 0 1px rgb(79 134 163 / .5); }
  .product-info__rating:hover .product-info__rating-n { color: var(--bag-teal); text-decoration-color: currentColor; }
  .pdp-lightbox__close:hover, .pdp-lightbox__nav:hover { background: rgb(255 255 255 / .24); }
}
@media (prefers-reduced-motion: reduce) {
  .pdp-stage.is-loading, .pdp-options.is-nudge .product-info__variants, .pdp-dock, .pdp-lightbox { animation: none; }
  .detail-cuff, .detail-more svg, .pdp-stage__nav { transition: none; }
}

/* ----- Cart（購物袋）----- */
/* 2026-10-17 新版，Winston 睇完預覽（ouji-cart-drawer-review）話「live」；手機同桌面一齊換。
   成頁一套表面規則，唔逐件執：
   · 底色：冷調灰白 #F7FAFC（佢貼嘅配色筆記：唔用米白，跟 OUJI 藍灰行冷調）。
   · 淺青 #ECF3F6 只標三樣最重要嘅嘢：湊單目標卡、順手加購帶、（加深做實色嘅）合計。
   · 白卡只用喺要成組讀嘅位：加購卡、配送方式、滿額贈禮、訂單摘要；貨品直接擺喺底色上面。
   · 錢同連結用青藍字；唯一實色係結帳掣同「＋」嘅藍 #5289A2；暖色只畀 7-11「推薦自取」。
   · 一套無襯線字，粗幼分層級。圓角：控件 8、卡 8–12，掣同膠囊全圓。
   次序同結構見 cart.html 頂嘅註釋；舊版散喺成份檔嘅購物袋規則已經全部拎走。 */
.page-bag, .page-pdp {
  --bag-ground: #f7fafc; --bag-surface: #fff; --bag-ink: #2e3a40; --bag-muted: #5a6a70; --bag-line: #e3eaed; --bag-control: #d6e0e4;
  --bag-teal: #36728a; --bag-teal-ink: #2b6977; --bag-brand: #5289a2; --bag-brand-hover: #477c94; --bag-tint: #ecf3f6; --bag-tint-line: #d3e3e9; --bag-track: #d2e3e9;
  --bag-warm: #fff5eb; --bag-warm-line: #f2c79c; --bag-warm-ink: #b8560b; --bag-chip: #fbe8d6; --bag-chip-ink: #9c5a1a;
  --bag-shadow: 0 1px 2px rgb(46 58 64 / .04), 0 6px 18px rgb(46 58 64 / .05);
}
body.page-bag { background: var(--bag-ground); background-image: none; }
/* 呢頁有好多元素用 hidden 開關，下面又會幫佢哋設 display —— 統一以 hidden 為準。 */
:is(.bag-page, .bag-bar) [hidden], .bag-bar[hidden] { display: none !important; }
/* icon 一律線條；用 :where() 唔加權重，會員皇冠、付款鎖頭嗰啲自己嘅規則照贏。 */
:where(.bag-page, .bag-bar) svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bag-page { width: 100%; max-width: 1180px; margin: 0 auto; padding-bottom: 28px; color: var(--bag-ink); accent-color: var(--bag-teal); }
.bag-page ::selection { background: #cfe4eb; color: var(--bag-ink); }

/* 頁頭：返回、購物袋＋件數 */
.bag-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; min-height: 54px; }
.bag-head__back { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -10px; border-radius: 50%; color: var(--bag-ink); }
.bag-head__back svg { width: 22px; height: 22px; stroke-width: 1.6; }
.bag-head__title { margin: 0; color: var(--bag-ink); font-family: var(--font-body); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-align: center; }
.bag-head__count { margin-left: 6px; color: var(--bag-muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }

/* 載入中／讀取失敗／空袋 */
.cart-empty { margin-top: 8px; padding: 28px 18px; border-radius: 12px; background: var(--bag-surface); box-shadow: var(--bag-shadow); text-align: center; }
.cart-empty > p { margin: 0 0 16px; color: var(--bag-muted); font-size: 14px; line-height: 1.8; }
.cart-empty > p:last-child { margin-bottom: 0; }
.cart-empty .shima--empty { width: 160px; height: auto; margin-bottom: 12px; }
.cart-empty .btn { min-height: 50px; padding: 0 28px; border-radius: 999px; background: var(--bag-brand); box-shadow: none; font: 700 17px var(--font-body); letter-spacing: .04em; text-transform: none; }
.cart-empty .btn::before { display: none; }
/* 載入框預留同「空購物袋」一樣高（實量 325px），空狀態出現時 footer 唔會被推低（桌面 CLS 0.107）。display 靠 JS 設 inline none 收埋。 */
#cart-loading { box-sizing: border-box; min-height: 325px; display: flex; flex-direction: column; justify-content: center; }
#cart-loading > p { margin: 0; }

/* 1 · 湊單目標卡：成頁第一個顏色 */
.bag-goal { position: relative; overflow: hidden; margin-top: 2px; padding: 14px 16px 12px; border-radius: 12px; background: var(--bag-tint); }
.bag-goal__title { display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; gap: 0 6px; min-height: 56px; margin: 0; padding-right: 100px; color: var(--bag-teal); font-size: 17px; font-weight: 700; line-height: 1.35; }
.bag-goal__title strong { font-size: 23px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
/* 右上角（Winston 2026-10-17）：芝麻貼圖（白剪紙邊、唔准鏡像）＋今個目標攞到咩嘅圖 ——
   送面霜就係面霜相、即減就係「減$20」券、免運就係所選方式嘅標誌。 */
.bag-goal__art { position: absolute; top: 6px; right: 10px; width: 100px; height: 64px; pointer-events: none; }
.bag-goal__badge { position: absolute; left: 0; top: 9px; display: grid; place-items: center; width: 50px; height: 50px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgb(46 58 64 / .1); color: var(--bag-teal); transform: rotate(-6deg); }
.bag-goal__badge.is-photo img { width: 100%; height: 100%; object-fit: cover; }
.bag-goal__badge:not(.is-photo) img { width: 22px; height: 30px; object-fit: contain; }
.bag-goal__badge svg { width: 24px; height: 24px; }
.bag-goal__coupon { display: grid; justify-items: center; color: var(--bag-teal); font-size: 10px; font-weight: 700; line-height: 1.1; }
.bag-goal__coupon strong { font-size: 15px; letter-spacing: -.01em; }
.bag-goal__sticker { position: absolute; right: 0; bottom: -2px; width: 62px; height: auto; filter: drop-shadow(0 3px 6px rgb(46 58 64 / .12)); }
.bag-goal__meter { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.bag-goal__bar { flex: 1; height: 7px; overflow: hidden; border-radius: 999px; background: var(--bag-track); }
.bag-goal__bar span { display: block; height: 100%; border-radius: inherit; background: var(--bag-brand); }
.bag-goal__count { flex: 0 0 auto; color: var(--bag-muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bag-goal__sub { margin: 6px 0 0; color: var(--bag-muted); font-size: 12px; line-height: 1.5; text-wrap: pretty; }
.bag-goal__perks { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.bag-goal__perks li { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 4px; border: 1px dashed #b9cfd7; border-radius: 999px; color: var(--bag-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.bag-goal__perks i { display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid #b9cfd7; border-radius: 50%; }
.bag-goal__perks i svg { width: 12px; height: 12px; stroke-width: 3; }
.bag-goal__perks li.is-won { border: 0; background: #fff; color: var(--bag-teal); box-shadow: 0 1px 2px rgb(46 58 64 / .06); }
.bag-goal__perks li.is-won i { border: 0; background: var(--bag-teal); color: #fff; }
.bag-goal__perks li.is-next { border-color: var(--bag-teal); color: var(--bag-teal-ink); }
.bag-goal__perks li.is-next i { border-color: var(--bag-teal); }
.bag-goal.is-done .bag-goal__title { align-items: center; font-size: 16px; }
.bag-goal.is-done .bag-goal__title svg { flex: 0 0 18px; width: 18px; height: 18px; stroke-width: 2.4; }
.bag-goal.is-done .bag-goal__sub { margin-top: 2px; }

/* 2 · 貨品：直接擺喺底色，幼線分隔；垃圾桶右上角 */
.bag-goods { margin-top: 4px; }
.bag-line { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.bag-line + .bag-line { border-top: 1px solid var(--bag-line); }
.bag-line__image { display: block; width: 84px; height: 84px; overflow: hidden; border-radius: 8px; background: #fff; }
.bag-line__image img { width: 100%; height: 100%; object-fit: contain; }
.bag-line__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bag-line__title { margin: 0; padding-right: 30px; font-family: var(--font-body); font-size: 14.5px; font-weight: 400; line-height: 1.38; }
.bag-line__title a { display: -webkit-box; overflow: hidden; color: var(--bag-ink); text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bag-line__variant { margin: 0; color: var(--bag-muted); font-size: 13px; line-height: 1.4; }
.bag-line__unit { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--bag-line); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bag-line__unit:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
.bag-line__note { margin: 1px 0 0; color: #9a4f49; font-size: 11.5px; line-height: 1.5; }
.bag-line__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.bag-line__price { color: var(--bag-teal); font-size: 20px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.bag-line__gift { color: var(--bag-teal-ink); font-size: 12.5px; font-weight: 600; }
.bag-qty { display: flex; align-items: center; height: 36px; border: 1px solid var(--bag-control); border-radius: 8px; background: #fff; }
.bag-qty button { display: grid; place-items: center; width: 38px; height: 34px; padding: 0; border: 0; background: none; color: var(--bag-ink); cursor: pointer; }
.bag-qty button svg { width: 16px; height: 16px; }
.bag-qty button:disabled { color: #b4c2c7; cursor: default; }
/* 16px：iPhone 撳入細過 16px 嘅輸入格會自動放大成頁。 */
.bag-qty__input { width: 32px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--bag-ink); font: 600 16px/1 var(--font-body); font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.bag-qty__input::-webkit-outer-spin-button, .bag-qty__input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.bag-line__remove { position: absolute; top: 10px; right: -8px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #74858b; cursor: pointer; }
.bag-line__remove svg { width: 18px; height: 18px; stroke-width: 1.6; }

/* 3 · 順手加購／短效期：全闊淺青帶，一屏三張半白卡（嗰半張話畀人知仲有得掃），圓形「＋」。
   375–390px 擺足四張，三位數價錢同 28px「＋」就擠唔落。 */
.bag-band { margin: 18px -16px 0; padding: 18px 0; background: var(--bag-tint); }
.bag-band__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0 16px; }
.bag-band__title { margin: 0; color: var(--bag-teal); font-family: var(--font-body); font-size: 19px; font-weight: 700; line-height: 1.3; }
.bag-band__more { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 4px 0; border: 0; background: none; color: var(--bag-muted); font: 500 13px var(--font-body); text-decoration: none; cursor: pointer; }
.bag-band__more svg { width: 16px; height: 16px; }
.bag-band__sub { flex: 1 1 100%; margin: 0; color: var(--bag-muted); font-size: 13px; line-height: 1.5; text-wrap: balance; }
.bag-band__gap { color: var(--bag-teal); font-weight: 700; }
.bag-band__goal { white-space: nowrap; }
.bag-band__row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((min(100vw, 560px) - 40px) / 3.5); gap: 8px; margin-top: 12px; padding: 0 16px 2px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.bag-band__row::-webkit-scrollbar { display: none; }
/* 「睇多啲」：唔跳去 shop 頁，喺度攤開做格仔 */
.bag-band.is-expanded .bag-band__row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
.bag-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 7px 7px 8px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgb(46 58 64 / .05); scroll-snap-align: start; }
.bag-card__image { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; background: #fff; }
.bag-card__image img { width: 100%; height: 100%; object-fit: contain; }
/* 到期日寫喺相下面一行，唔貼相角（產品卡規矩：相上面唔加標籤）。 */
.bag-card__expiry { margin: 7px 0 -5px; color: #9a4f49; font-size: 10.5px; font-weight: 700; }
.bag-card__vendor { margin: 7px 0 1px; overflow: hidden; color: #3d4a50; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.bag-card__name { margin: 0; font-family: var(--font-body); font-size: 12px; font-weight: 400; line-height: 1.35; }
.bag-card__name a { display: -webkit-box; min-height: calc(1em * 1.35 * 2); overflow: hidden; color: var(--bag-muted); text-decoration: none; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bag-card__hit { margin: 2px 0 0; overflow: hidden; color: var(--bag-teal); font-size: 10.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.bag-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; padding-top: 6px; }
.bag-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; min-width: 0; color: var(--bag-teal); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bag-card__price s { color: var(--bag-muted); font-size: 10.5px; font-weight: 400; }
.bag-card__add { position: relative; display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--bag-brand); color: #fff; cursor: pointer; }
.bag-card__add::after { content: ""; position: absolute; inset: -8px; }
.bag-card__add svg { width: 16px; height: 16px; stroke-width: 2.4; }
.bag-card__add.is-busy svg { opacity: 0; }
.bag-card__add.is-busy::before { content: ""; position: absolute; inset: 7px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: btn-spin 600ms linear infinite; }
.bag-card__add.is-done { background: var(--bag-teal); }
/* 撳落先知賣晒（庫存即時核對，見 shopify.js addCartLine）：圓掣變一粒「缺貨」字膠囊。 */
.bag-card__add.is-out { flex: 0 0 auto; width: auto; height: 24px; padding: 0 9px; background: var(--bag-line); color: var(--bag-muted); font-size: 11px; font-weight: 600; cursor: default; }
.bag-card__add.is-out::after { display: none; }

/* 4 · 滿額贈禮（＋活動期內嘅中秋卡同「今單已攞到」） */
.bag-reward { margin-top: 18px; }
.bag-perks { display: grid; gap: 6px; margin-bottom: 10px; }
.bag-perks__row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bag-surface); box-shadow: var(--bag-shadow); font-size: 13px; }
.bag-perks__row svg { flex: 0 0 20px; width: 20px; height: 20px; fill: var(--bag-teal); stroke: none; }
.bag-perks__row p { flex: 1; margin: 0; }
.bag-perks__row strong { color: var(--bag-teal); }
.bag-perks__row span { color: var(--bag-muted); font-size: 12px; }
/* 滿額贈品卡（2026-10-17 A 方案）：貨名做標題、條件＋價值一行、細進度條（同湊單卡同一款）、仲差幾多。 */
.bag-gift { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--bag-surface); box-shadow: var(--bag-shadow); }
.bag-gift.is-won { box-shadow: inset 0 0 0 1.5px var(--bag-teal), var(--bag-shadow); }
.bag-gift__image { position: relative; display: block; width: 76px; height: 76px; overflow: hidden; border-radius: 12px; background: var(--bag-tint); }
.bag-gift__image img { width: 100%; height: 100%; object-fit: cover; }
.bag-gift__tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: var(--bag-teal); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; }
.bag-gift__copy { min-width: 0; }
.bag-gift__name { display: block; color: var(--bag-ink); font-size: 15px; font-weight: 700; line-height: 1.35; text-decoration: none; }
/* 中文唔好喺「白樺樹補水面霜」中間斷；英文照空格斷，唔好撐出卡外 */
.bag-gift__name span { word-break: keep-all; }
.bag-gift__name span:first-child { white-space: nowrap; }
.bag-gift__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.bag-gift__meta { margin: 3px 0 0; color: var(--bag-muted); font-size: 12.5px; line-height: 1.45; }
.bag-gift__meta b, .bag-gift__status b { color: var(--bag-teal); font-weight: 700; font-variant-numeric: tabular-nums; }
.bag-gift__bar { height: 6px; margin: 10px 0 0; overflow: hidden; border-radius: 999px; background: var(--bag-track); }
.bag-gift__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--bag-brand); transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.bag-gift.is-won .bag-gift__bar span { background: var(--bag-teal); }
.bag-gift__status { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 7px 0 0; color: var(--bag-ink); font-size: 13px; line-height: 1.4; }
.bag-gift__status:empty { display: none; }
.bag-gift__status small { color: var(--bag-muted); font-size: 11.5px; white-space: nowrap; }
.bag-gift__ok { display: inline-flex; align-items: center; gap: 5px; color: var(--bag-teal-ink); font-weight: 700; }
.bag-gift__ok svg { flex: none; width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--bag-teal); color: #fff; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .bag-gift__bar span { transition: none; } }

/* 標題連 icon，右邊細字 */
.bag-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 26px 0 10px; }
.bag-h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--bag-ink); font-family: var(--font-body); font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.bag-h2 svg { width: 22px; height: 22px; color: var(--bag-teal); stroke-width: 1.6; }
.bag-section-head small { color: var(--bag-muted); font-size: 12px; text-align: right; }
.bag-surface { border-radius: 12px; background: var(--bag-surface); box-shadow: var(--bag-shadow); }

/* 5 · 配送方式：四格一行，下面講所選方式，再落去揀取件點 */
.bag-choose { padding: 14px 12px; }
/* 所選運送方式嘅免運進度。湊單目標卡冇出（活動橫額頂替咗佢）嗰陣先喺度補一行，兩個同時出會講兩次同一件事（見 cart.html paintShipBar）。 */
.bag-shipbar { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; margin-bottom: 4px; padding: 10px 12px; border-radius: 10px; background: var(--bag-tint); }
.bag-shipbar__name { white-space: nowrap; }
.bag-shipbar__mark { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--bag-teal); }
.bag-shipbar__mark svg { width: 16px; height: 16px; }
.bag-shipbar.is-done .bag-shipbar__mark { grid-row: 1; background: var(--bag-teal); color: #fff; }
.bag-shipbar.is-done .bag-shipbar__mark svg { stroke-width: 2.6; }
.bag-shipbar__text { grid-column: 2 / -1; margin: 0; color: var(--bag-teal-ink); font-size: 14px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.bag-shipbar__text b { color: var(--bag-teal); font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.bag-shipbar__count { grid-column: 3; grid-row: 2; color: var(--bag-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bag-shipbar__bar { grid-column: 2; grid-row: 2; height: 6px; overflow: hidden; border-radius: 999px; background: var(--bag-track); }
.bag-shipbar__bar span { display: block; height: 100%; border-radius: inherit; background: var(--bag-brand); }
.bag-ship-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 10px; }
.bag-ship { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 12px 7px 10px; border: 1px solid var(--bag-line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.bag-ship input { position: absolute; opacity: 0; pointer-events: none; }
.bag-ship.is-on { border-color: var(--bag-teal); background: var(--bag-tint); box-shadow: inset 0 0 0 1px var(--bag-teal); }
/* 淨係鍵盤先有框：手指撳中嗰格已經有 2px 青藍邊，唔好再多一圈。 */
.bag-ship:has(input:focus-visible) { outline: 2px solid var(--bag-teal); outline-offset: 2px; }
.bag-ship__top { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 34px; margin-bottom: 8px; }
.bag-ship__icon { display: grid; place-items: center; width: 34px; height: 34px; color: var(--bag-teal); }
.bag-ship__icon svg { width: 23px; height: 23px; stroke-width: 1.6; }
.bag-ship__check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bag-teal); color: #fff; }
.bag-ship__check svg { width: 11px; height: 11px; stroke-width: 3; }
/* 推薦自取（7-11）：暖色邊同絲帶跟佢個標誌嘅橙；揀中照用青藍邊加剔。 */
.bag-ship.is-pick { border-color: var(--bag-warm-line); background: #fffaf4; }
.bag-ship.is-pick.is-on { border-color: var(--bag-teal); background: var(--bag-warm); box-shadow: inset 0 0 0 1px var(--bag-teal), 0 4px 12px rgb(184 86 11 / .12); }
.bag-ship__ribbon { position: absolute; top: -9px; left: 50%; z-index: 1; padding: 2px 8px; border-radius: 999px; background: var(--bag-warm-ink); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; white-space: nowrap; transform: translateX(-50%); }
.bag-ship__logo { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #f0dcc6; border-radius: 9px; background: #fff; }
.bag-ship__logo img { display: block; width: 21px; height: 28px; object-fit: contain; }
.bag-ship__name { color: var(--bag-ink); font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.bag-ship__sub { margin-top: 2px; color: var(--bag-muted); font-size: 12px; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.bag-ship__fee { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; margin-top: auto; padding-top: 10px; color: var(--bag-ink); font-size: 14px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bag-ship__free { color: var(--bag-teal); }
.bag-ship__fee s { color: var(--bag-muted); font-size: 11px; font-weight: 400; }
.bag-ship__note { margin-top: 3px; color: var(--bag-muted); font-size: 12px; line-height: 1.35; word-break: keep-all; }
.bag-ship.is-on .bag-ship__note { color: var(--bag-teal-ink); font-weight: 600; }
/* 四格嘅各部分共用同一排（subgrid）：邊格細字斷咗兩行，運費都唔會高高低低。
   唔支援 subgrid 嘅舊機就照用 flex，窄螢幕預留兩行。 */
@supports (grid-template-rows: subgrid) {
  .bag-ship-tiles { grid-template-rows: repeat(5, auto); row-gap: 0; }
  .bag-ship { display: grid; grid-row: span 5; grid-template-rows: subgrid; justify-items: start; }
  .bag-ship__fee { margin-top: 0; }
}
@supports not (grid-template-rows: subgrid) {
  @media (max-width: 399px) { .bag-ship__note { min-height: calc(12px * 1.35 * 2); } }
}
.bag-ship-detail { display: flex; align-items: flex-start; gap: 6px; margin: 12px 2px 0; color: var(--bag-muted); font-size: 12px; line-height: 1.55; }
.bag-ship-detail svg { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 3px; color: var(--bag-teal); stroke-width: 2; }

/* 取件點：一次一步；揀好就摺成一張卡（標誌、網點、推薦自取、地址、更改） */
.sfp { margin: 14px 0 0; padding: 14px 2px 0; border-top: 1px solid var(--bag-line); }
.sfp.is-shake { animation: sfpShake 420ms var(--ease-out); }
.sfp__err { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #a4302a; font-size: 13px; font-weight: 700; line-height: 1.5; }
.sfp__steps { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--bag-muted); font-size: 12px; }
.sfp__steps span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bag-tint); color: var(--bag-teal); font-size: 11px; font-weight: 700; }
.sfp__steps span:first-child { background: var(--bag-teal); color: #fff; }
.sfp__steps i { flex: 0 0 18px; height: 1px; background: var(--bag-control); }
.sfp--info .sfp__steps, .sfp--chosen:not(.is-editing) .sfp__steps { display: none; }
.sfp__card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.sfp__logo { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--bag-line); border-radius: 10px; background: #fff; color: var(--bag-teal); }
.sfp__logo.is-seven { border-color: #f0dcc6; }
.sfp__logo img { display: block; width: 22px; height: 30px; object-fit: contain; }
.sfp__logo svg { width: 24px; height: 24px; stroke-width: 1.6; }
.sfp__text { min-width: 0; }
.sfp__heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--bag-ink); font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.35; }
.sfp__chip { padding: 2px 8px; border-radius: 999px; background: var(--bag-chip); color: var(--bag-chip-ink); font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.sfp__detail { margin: 3px 0 0; color: var(--bag-muted); font-size: 13px; line-height: 1.45; }
.sfp__hours { margin: 2px 0 0; color: var(--bag-muted); font-size: 12.5px; }
.sfp__change { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 2px 0 8px; border: 0; background: none; color: var(--bag-teal); font: 600 14px var(--font-body); white-space: nowrap; cursor: pointer; }
.sfp__change svg { width: 16px; height: 16px; }
.sfp__pickers { margin-top: 12px; }
.sfp--info .sfp__pickers, .sfp--chosen:not(.is-editing) .sfp__pickers { display: none; }
.sfp__start, .sfp__filters select, .sfp__q { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--bag-control); border-radius: 8px; background-color: #fff; color: var(--bag-ink); font: 16px var(--font-body); }
.sfp__q::placeholder { color: #66767c; }
.sfp__retry { margin-top: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--bag-control); border-radius: 8px; background: #fff; color: var(--bag-teal); font: 600 14px var(--font-body); cursor: pointer; }
.sfp__status { margin: 8px 0 0; color: var(--bag-muted); font-size: 12px; }
.sfp__panel { margin-top: 10px; }
.sfp__filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.sfp__count { margin: 8px 0 0; color: var(--bag-muted); font-size: 12px; }
.sfp__list { display: grid; gap: 6px; max-height: 260px; margin: 8px 0 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; scrollbar-color: #c4d4d9 transparent; }
.sfp__item { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid var(--bag-line); border-radius: 8px; background: #fff; color: var(--bag-ink); font: 12.5px/1.45 var(--font-body); text-align: left; cursor: pointer; }
.sfp__item b { font-size: 13px; }
.sfp__item em { color: var(--bag-muted); font-size: 12px; font-style: normal; }
.sfp__item.is-on { border-color: var(--bag-teal); background: var(--bag-tint); }
.sfp__more { padding: 6px 2px; color: var(--bag-muted); font-size: 12px; }
/* 揀好點（未撳更改）：成張卡淨係得已揀網點＋兩格事實，四格同細字收起（參考圖）；撳「更改」先再攤開。 */
.bag-choose:has(.sfp--chosen:not(.is-editing)) :is(.bag-ship-tiles, .bag-ship-detail) { display: none; }
.bag-choose:has(.sfp--chosen:not(.is-editing)) .sfp { margin-top: 0; padding-top: 2px; border-top: 0; }
.sfp.is-editing .sfp__facts { display: none; }
.sfp__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--bag-line); list-style: none; }
.sfp__facts li { display: flex; align-items: flex-start; gap: 7px; min-width: 0; padding: 0 8px; }
.sfp__facts li:first-child { padding-left: 0; }
.sfp__facts li + li { border-left: 1px solid var(--bag-line); }
.sfp__facts svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; color: var(--bag-teal); stroke-width: 1.6; }
.sfp__facts span { display: grid; gap: 2px; min-width: 0; }
.sfp__facts strong { color: var(--bag-ink); font-size: 13px; font-weight: 700; line-height: 1.35; }
.sfp__facts small { color: var(--bag-muted); font-size: 11.5px; line-height: 1.4; }

/* 手機配送區用淺藍底（Winston 2026-10-17 揀 B）：白卡喺灰白底上面唔夠明顯，淺藍同湊單卡同色；
   入面四格、網點卡、列表保持白色，揀中嗰格用白底加青藍框（唔再用淺藍，費事同底色溝埋）。桌面照舊白卡。 */
@media (max-width: 768px) {
  .bag-choose { background: var(--bag-tint); box-shadow: none; }
  .bag-ship { border-color: var(--bag-tint-line); background: #fff; }
  .bag-ship.is-on { background: #fff; box-shadow: inset 0 0 0 1px var(--bag-teal), 0 4px 12px rgb(54 114 138 / .14); }
  .bag-ship.is-pick { background: #fffaf4; }
  .bag-ship.is-pick.is-on { background: var(--bag-warm); }
  .sfp, .sfp__facts { border-top-color: var(--bag-tint-line); }
  .sfp__facts li + li { border-left-color: var(--bag-tint-line); }
  .sfp__logo, .sfp__item { border-color: var(--bag-tint-line); }
  .sfp__steps span { background: #fff; }
  .sfp__start, .sfp__filters select, .sfp__q { border-color: #c5d9e0; }
  .sfp__item.is-on { background: #fff; box-shadow: inset 0 0 0 1px var(--bag-teal); }
}

/* 6 · 訂單摘要：白卡；合計要一眼見到（Winston 2026-10-17）：實色青藍（白字 5.34:1），已慳用白膠囊 */
.bag-side { margin-top: 22px; }
.bag-summary { overflow: hidden; container-type: inline-size; padding: 16px 16px 0; border-radius: 12px; background: var(--bag-surface); box-shadow: var(--bag-shadow); }
/* 會員積分嗰行（皇冠、今單積分、詳情）：卡內闊度窄過 300px（例如 1024 桌面右欄）就用手機短版，唔好擠埋一齊。 */
@container (max-width: 300px) {
  .bag-summary .cart-member-points__summary { gap: 6px; padding-inline: 9px; }
  .bag-summary .cart-member-points__brand { gap: 5px; font-size: .58rem; letter-spacing: .06em; }
  .bag-summary .cart-member-points__toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .bag-summary .cart-member-points__toggle-label-mobile { display: inline; font-size: .65rem; }
}
.bag-summary__title { scroll-margin-top: 120px; }
.bag-summary__title:focus { outline: none; }
.bag-summary__rows { margin: 0; padding: 10px 0 12px; }
.bag-summary__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--bag-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bag-summary__rows dt { min-width: 0; }
.bag-summary__rows dd { flex: 0 0 auto; margin: 0; color: var(--bag-ink); }
.bag-summary__rows .is-saving dd { color: var(--bag-teal); font-weight: 600; }
.bag-summary__rows s { margin-right: 6px; color: var(--bag-muted); font-weight: 400; }
.bag-summary__total { display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 16px 16px 8px; background: var(--bag-teal); color: #fff; }
.bag-summary__total > span { font-size: 16px; font-weight: 700; }
.bag-summary__total em { padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--bag-teal); font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap; }
.bag-summary__total strong { margin-left: auto; color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.bag-summary__secure { display: flex; align-items: flex-start; gap: 5px; margin: 0 -16px; padding: 0 16px 14px; background: var(--bag-teal); color: rgb(255 255 255 / .88); font-size: 11.5px; line-height: 1.5; }
.bag-summary__secure svg { flex: 0 0 13px; width: 13px; height: 13px; margin-top: 2px; stroke-width: 2; }
.bag-promo { margin: 0 -16px; padding: 0 16px; border-bottom: 1px solid var(--bag-line); }
.bag-promo summary { display: flex; align-items: center; gap: 8px; min-height: 46px; color: var(--bag-ink); font-size: 14px; list-style: none; cursor: pointer; }
.bag-promo summary::-webkit-details-marker { display: none; }
.bag-promo summary svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--bag-brand); }
.bag-promo summary svg:last-child { margin-left: auto; color: var(--bag-muted); transition: rotate .2s ease; }
.bag-promo[open] summary svg:last-child { rotate: 180deg; }
.bag-promo__field { display: flex; height: 46px; margin-bottom: 12px; padding: 3px; border: 1px solid var(--bag-control); border-radius: 8px; background: #f8fafb; }
.bag-promo__field input { flex: 1; min-width: 0; padding: 0 10px; border: 0; background: transparent; color: var(--bag-ink); font: 16px var(--font-body); }
.bag-promo__field input::placeholder { color: #66767c; }
.bag-promo__field button { flex: 0 0 auto; padding: 0 18px; border: 0; border-radius: 6px; background: var(--bag-tint); color: var(--bag-teal); font: 600 14px var(--font-body); cursor: pointer; }
.bag-promo__field button:disabled { opacity: .6; cursor: progress; }
.bag-promo__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.bag-promo__list li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--bag-tint); color: var(--bag-teal); font-size: 12.5px; font-weight: 700; }
.bag-promo__list button { min-height: 28px; padding: 0 6px; border: 0; background: none; color: var(--bag-muted); font: 12px var(--font-body); text-decoration: underline; cursor: pointer; }
.bag-promo__status { margin: -4px 0 12px; color: var(--bag-muted); font-size: 12px; line-height: 1.5; }
.bag-promo__status:empty { display: none; }
.cart-summary__checkout { padding: 14px 0 16px; }
/* 19px 粗字屬「大字」，白字喺 #5289A2（3.85:1）過到 WCAG AA。 */
.bag-page .bag-go { gap: 8px; width: 100%; min-height: 54px; padding: 0 18px; border-radius: 999px; background: var(--bag-brand); box-shadow: none; color: #fff; font: 700 19px var(--font-body); letter-spacing: .04em; text-transform: none; }
.bag-page .bag-go::before { display: none; }
.bag-go__perks { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; color: var(--bag-teal); font-size: 13px; font-weight: 600; text-align: center; }
.bag-go__perks svg { flex: 0 0 16px; width: 16px; height: 16px; stroke-width: 2.4; }


/* 手機底部合計條（參考圖）：跟底部導航一樣浮起嘅圓角卡，擺喺膠囊上面。
   左：合計（青藍）＋已攞到嘅優惠；右：唯一實色掣。 */
.bag-bar { display: none; }
@media (max-width: 768px) {
  .bag-bar { position: fixed; z-index: 1500; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(56px + var(--tabbar-gap, 16px) + 8px); left: max(12px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 14px; padding: 9px 9px 9px 16px; }
  /* 合計條同底部導航之間嘅空隙鋪返底色，唔好見到內容喺隙入面穿過（漸變只喺最頂 12px）；
     白卡畫喺 ::after —— 負 z-index 嘅層會蓋過條條自己個背景，所以卡唔可以用 .bag-bar 本身嘅 background。 */
  .bag-bar::before { content: ""; position: absolute; z-index: -2; top: -12px; right: calc(-1 * max(12px, env(safe-area-inset-right, 0px))); bottom: calc(-1 * (56px + var(--tabbar-gap, 16px) + 8px)); left: calc(-1 * max(12px, env(safe-area-inset-left, 0px))); background: linear-gradient(rgb(247 250 252 / 0), var(--bag-ground) 12px); pointer-events: none; }
  .bag-bar::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgb(28 60 74 / .16), 0 1px 3px rgb(28 60 74 / .08); pointer-events: none; }
  .bag-bar__total { display: grid; flex: 0 1 auto; gap: 1px; min-width: 0; max-width: 46%; padding: 0 14px 0 0; border: 0; border-right: 1px solid var(--bag-line); background: none; color: var(--bag-ink); text-align: left; cursor: pointer; }
  .bag-bar__total small { color: var(--bag-muted); font-size: 12px; }
  .bag-bar__total strong { color: var(--bag-teal); font-size: 22px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
  .bag-bar__total span { overflow: hidden; color: var(--bag-muted); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
  .bag-bar__total span:empty { display: none; }
  .bag-bar__go { position: relative; display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 50px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bag-brand); color: #fff; font: 700 19px var(--font-body); letter-spacing: .04em; cursor: pointer; }
  .bag-bar__go span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .bag-bar__go svg { flex: 0 0 20px; width: 20px; height: 20px; stroke-width: 2.2; }
  .bag-bar__go.is-pick svg { display: none; }
  .bag-bar__go.is-busy { cursor: progress; }
  .bag-bar__go.is-busy svg { opacity: 0; }
  .bag-bar__go.is-busy::after { content: ""; position: absolute; right: 18px; width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: btn-spin 600ms linear infinite; }
  /* 合計條代替咗摘要入面粒掣（條出咗先收，萬一 script 出錯都仲有掣撳）。footer 底要讓多條條嘅位。 */
  .page-bag.has-bag-bar .cart-summary__checkout .bag-go, .page-bag.has-bag-bar .bag-go__perks { display: none; }
  .page-bag.has-bag-bar .cart-summary__checkout { padding: 0 0 2px; }
  /* 手機購物袋要似 app（Winston 2026-10-15「唔使做 footer」、10-17 再講）：唔出 footer；
     body 自己留返導航（＋合計條）嘅位。「繼續選購」同「完成你嘅護膚程序」10-17 手機桌面都已拎走。 */
  body.page-bag > .footer { display: none; }
  html body.page-bag { padding-bottom: calc(56px + var(--tabbar-gap, 16px) + 16px); }
  html body.page-bag.has-bag-bar { padding-bottom: calc(56px + var(--tabbar-gap, 16px) + 8px + 84px); }
}

/* 桌面 ≥769px（Winston 2026-10-17「同做埋桌面版」）：按闊螢幕重新排，唔係將手機拉闊。
   左欄：目標 → 貨品 → 配送方式 → 順手加購 → 短效期（Winston 2026-10-17：兩個加購唔好夾住配送，擺埋一齊；
   揀咗「配送擺上面」）。只用 order 改桌面次序，HTML 次序（手機）冇郁。
   右欄贈禮＋摘要＋結帳掣跟住捲，所以唔使手機嗰條合計條。 */
@media (min-width: 769px) {
  .bag-page { padding-bottom: 72px; }
  .bag-head { min-height: 76px; }
  .bag-shipbar { padding: 12px 16px; }
  .bag-head__title { font-size: 26px; }
  .bag-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 31vw, 360px); column-gap: 28px; align-items: start; }
  .bag-layout > * { grid-column: 1; min-width: 0; }
  /* 右欄：滿額贈禮擺喺訂單摘要上面（Winston 2026-10-17「視覺冇咁割裂」），摘要跟住捲。 */
  /* 湊單卡佔左欄頭兩行，令右欄嘅摘要可以緊貼贈禮卡下面開始（唔使等湊單卡完先開始，中間唔會穿窿）。 */
  .bag-layout > .bag-goal { grid-row: 1 / span 2; }
  .bag-layout > .bag-reward { grid-column: 2; grid-row: 1; margin-top: 0; }
  .bag-layout > .bag-side { grid-column: 2; grid-row: 2 / span 12; margin-top: 16px; }
  .bag-layout > .bag-delivery { order: 1; }
  .bag-layout > [data-addon], .bag-layout > [data-sd-addon] { order: 2; }
  .bag-goal { padding: 18px 24px 16px; }
  .bag-goal__title { min-height: 70px; padding-right: 160px; font-size: 19px; }
  .bag-goal__title strong { font-size: 28px; }
  .bag-goal__art { top: 6px; right: 20px; width: 150px; height: 88px; }
  .bag-goal__badge { top: 12px; width: 66px; height: 66px; }
  .bag-goal__badge:not(.is-photo) img { width: 28px; height: 38px; }
  .bag-goal__coupon { font-size: 12px; }
  .bag-goal__coupon strong { font-size: 20px; }
  .bag-goal__sticker { width: 88px; }
  .bag-goal__sub { font-size: 13px; }
  .bag-goods { margin-top: 8px; }
  .bag-line { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 18px 0; }
  .bag-line__image { width: 104px; height: 104px; }
  .bag-line__title { font-size: 16px; }
  .bag-band { margin: 22px 0 0; padding: 20px 0; border-radius: 12px; }
  .bag-band__head { padding: 0 20px; }
  .bag-band__row { grid-auto-columns: 140px; gap: 12px; margin-top: 14px; padding: 0 20px 2px; scroll-padding-inline: 20px; }
  .bag-band.is-expanded .bag-band__row { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .bag-card__name { font-size: 12.5px; }
  .bag-section-head { margin-top: 30px; }
  .bag-choose { padding: 18px 16px; }
  .bag-ship-tiles { gap: 10px; }
  .bag-ship { padding: 14px 12px 12px; }
  .bag-ship__name { font-size: 14px; }
  .sfp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 340px; }
  .bag-summary { padding: 20px 20px 0; }
  .bag-summary__total { margin: 0 -20px; padding: 18px 20px 8px; }
  .bag-summary__secure { margin: 0 -20px; padding: 0 20px 16px; }
  .bag-summary__total strong { font-size: 32px; }
  .bag-promo { margin: 0 -20px; padding: 0 20px; }
  .cart-empty { max-width: 520px; margin: 24px auto 0; }
}

/* 桌面右欄原生 sticky：全站 body 有 overflow-x／y hidden（變咗捲動盒，sticky 唔郁）。購物袋頁改用
   overflow: clip —— 一樣唔准 body 自己捲（擴充功能凸出嗰 18px 照切走），但唔再係捲動盒。 */
@supports (overflow: clip) {
  @media (min-width: 769px) {
    body.page-bag { overflow-x: clip; overflow-y: clip; }
    .bag-layout > .bag-side { position: sticky; top: 126px; }
  }
}

/* 動態只有一下，只畀「變咗」嘅嘢（見 paintBagGoal()）：條 bar 由上次嘅位置推前；
   啱啱升咗一級，標題升起、芝麻跳一下；新揀嗰格配送方式個剔彈出嚟。 */
.bag-goal__bar span.is-moving { animation: bag-fill .8s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes bag-fill { from { width: var(--from); } }
.bag-goal[data-moment="reached"] .bag-goal__title { animation: bag-rise .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes bag-rise { from { opacity: .35; transform: translateY(6px); } }
.bag-goal[data-moment="reached"] .bag-goal__sticker { transform-origin: 50% 100%; animation: bag-hop .9s cubic-bezier(.3, 1.2, .5, 1) .15s both; }
@keyframes bag-hop { 0% { transform: none; } 35% { transform: translateY(-12px) rotate(-4deg); } 62% { transform: translateY(0) rotate(1deg); } 80% { transform: translateY(-3px); } 100% { transform: none; } }
.bag-ship.is-fresh .bag-ship__check, .bag-goal__perks li.is-fresh i { animation: bag-pop .4s cubic-bezier(.3, 1.5, .5, 1) .2s both; }
@keyframes bag-pop { from { opacity: .3; transform: scale(.4); } }

:is(.bag-page, .bag-bar) :is(a, button, summary, select, input):focus-visible { outline: 2px solid var(--bag-teal); outline-offset: 2px; }
@media (hover: hover) {
  .bag-page .bag-go:hover, .bag-bar__go:hover { background: var(--bag-brand-hover); transform: none; box-shadow: none; }
  .bag-card__add:hover { background: var(--bag-teal); }
  .bag-ship:not(.is-on):hover { border-color: #c4d4d9; }
  .bag-line__remove:hover { background: var(--bag-tint); color: var(--bag-ink); }
  .bag-band__more:hover, .bag-head__back:hover { color: var(--bag-teal); }
}
@media (prefers-reduced-motion: reduce) {
  .bag-ship { transition: none; }
  :is(.bag-goal__bar span, .bag-goal__sticker, .bag-goal__title, .bag-ship__check, .bag-goal__perks i) { animation: none !important; }
  .sfp.is-shake { animation: none; }
}

/* ----- Animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.08s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.32s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.44s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.56s; opacity: 1; transform: translateY(0); }

.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ----- Pagination ----- */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: var(--space-3xl) 0 var(--space-xl); }

/* ----- Mobile Nav ----- */
.mobile-nav {
  position: fixed; top: 0; left: 0;
  width: min(85%, 340px);
  height: 100vh;
  background: linear-gradient(165deg,
    rgba(72, 115, 131, 0.62) 0%,
    rgba(89, 139, 156, 0.7) 50%,
    rgba(72, 115, 131, 0.65) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    8px 0 32px rgba(40, 80, 110, 0.25),
    inset -1px 0 0 rgba(255, 255, 255, 0.08);
  z-index: 3000;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              visibility 0s linear var(--duration-normal);
  overflow-y: auto;
  padding: var(--space-xl);
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}
.mobile-nav__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2xl); }
.mobile-nav__header .header__logo { color: white; }
.mobile-nav__close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); }
.mobile-nav__close:hover { color: white; }
.mobile-nav__close svg { width: 18px; height: 18px; }
.mobile-nav__links { display: flex; flex-direction: column; gap: var(--space-lg); }
.mobile-nav__links > a { font-size: 1.125rem; font-family: var(--font-display); letter-spacing: 0.06em; color: rgba(255,255,255,0.85); padding: var(--space-sm) 0; border-bottom: 1px solid rgba(255,255,255,0.15); display: block; }
.mobile-nav__links > a:hover { color: white; }

.mobile-nav__group { display: flex; flex-direction: column; }
.mobile-nav__group-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-sm) 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: none;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  text-align: left;
  transition: color var(--duration-fast);
}
.mobile-nav__group-row:hover { color: white; }
.mobile-nav__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.6);
  transition: transform var(--duration-normal) var(--ease-out), color var(--duration-fast);
}
.mobile-nav__group-row[aria-expanded="true"] { color: white; }
.mobile-nav__group-row[aria-expanded="true"] .mobile-nav__chevron { transform: rotate(-180deg); color: white; }

.mobile-nav__sublinks {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}
.mobile-nav__group.is-open .mobile-nav__sublinks { max-height: 1200px; }
.mobile-nav__sublinks > a,
.mobile-nav__sublinks > .mobile-nav__subheading,
.mobile-nav__sublinks > .mobile-nav__subitem {
  display: block;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  padding: 10px var(--space-md);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav__sublinks .mobile-nav__subheading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.mobile-nav__sublinks .mobile-nav__subitem {
  padding-left: var(--space-xl);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.mobile-nav__sublinks > a:hover { color: white; }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(20, 50, 65, 0.18); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 2999; opacity: 0; visibility: hidden; transition: all var(--duration-normal); cursor: pointer; }
.mobile-nav-overlay.is-visible { opacity: 1; visibility: visible; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .container { padding: 0 var(--space-xl); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .footer__visit { grid-column: 1 / -1; }
  .brand-story__content { padding: var(--space-2xl); }
}

@media (max-width: 768px) {
  :root { --header-height: 56px; }
  .container { padding: 0 var(--space-md); }
  .section { padding: var(--space-3xl) 0; }
  .header__nav { display: none; }
  .header__inner { padding: 0 var(--space-md); }

  /* Mobile header: [☰ left] [OUJI center] [🔍 right] */
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .header__left {
    display: contents;
  }
  .header__menu-toggle {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
  }
  .header__logo {
    padding-top: 4px;
  }
  .header__actions {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
  }
  /* Show only hamburger in left, only search in actions */
  .header__menu-toggle { display: flex; }
  .header__action-btn { display: none !important; }
  .header__action-btn[aria-label="搜尋"] { display: flex !important; }
  .hero { aspect-ratio: 56 / 75; height: auto; min-height: unset; margin-top: calc(-1 * var(--hdr-h, var(--header-height))); }
  .brand-story { grid-template-columns: 1fr; }
  .brand-story__visual { min-height: 280px; }
  .brand-story__content { padding: var(--space-2xl) var(--space-md); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg) var(--space-md); }
  .grid-host { gap: var(--space-lg); }

  
  
  .brand-rail { gap: 3px; padding: 9px 10px; }
  .brand-rail__item { width: 5px; }
  .footer { padding-top: 50px; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 15px; padding-bottom: 30px; }
  .footer__logo { font-size: 36px; }
  .footer__giant { margin-top: 28px; }
  .footer__giant-word { font-size: clamp(70px, 21vw, 290px); color: #ffffffc2; }
  .newsletter__submit { border-radius: 0 0 14px 14px; }
  .section-header--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .product-grid { gap: var(--space-md) var(--space-sm); }
  .grid-host { gap: var(--space-md); }
  .product-card__brand { font-size: 0.5625rem; }
  .product-card__name { font-size: 0.8125rem; }
  .brand-logo-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ============================================
   v4.0 ENHANCEMENTS
   ============================================ */

/* ----- Scroll Progress Bar ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(109,163,181,0.4);
}

/* ----- Hero Cursor Glow ----- */
.hero__cursor-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,163,181,0.15) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: left, top;
}

/* ----- Button Ripple ----- */
.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* ----- Stats Section ----- */

/* ----- Brand Logo Grid ----- */
/* No `.brand-section { padding: 5xl 0 }` here: the class was reused by the
   category page's per-brand sections, where 128px top and bottom put an
   empty screen between one brand and the next. Nothing renders this
   block's own section any more. */

.brand-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.brand-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.brand-logo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109,163,181,0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.brand-logo-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(109,163,181,0.15);
  border-color: var(--primary-lighter);
}

.brand-logo-card:hover::before {
  opacity: 1;
}

.brand-logo-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--duration-normal);
  position: relative;
  z-index: 1;
}

.brand-logo-card:hover .brand-logo-card__name {
  color: var(--primary-dark);
}

/* Special typography for specific brands */
.brand-logo-card--serif .brand-logo-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.brand-logo-card--light .brand-logo-card__name {
  font-weight: 300;
  letter-spacing: 0.2em;
}

.brand-logo-card--italic .brand-logo-card__name {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* Brand card active glow */
.brand-logo-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transition: width var(--duration-normal) var(--ease-out);
}

.brand-logo-card:hover::after {
  width: 60%;
}

/* ----- Full-width Image Gallery ----- */

/* Overlay text on image strip */

/* ----- Stagger with more children ----- */
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.36s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.43s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.50s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.57s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 0.64s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 0.71s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 0.78s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(13) { transition-delay: 0.85s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(14) { transition-delay: 0.92s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(15) { transition-delay: 0.99s; opacity: 1; transform: translateY(0); }

/* ----- Product card 3D tilt ----- */
.product-card__image-wrap {
  transition: transform 0.5s var(--ease-out), box-shadow var(--duration-normal);
}

/* ----- Responsive additions ----- */
@media (max-width: 1024px) {
  .brand-logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .brand-logo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   WOW FACTOR ENHANCEMENTS v5.0
   ============================================ */

/* ----- Page Load Curtain ----- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  /* 新藍色水彩圖未 paint 到之前，用接近原圖嘅底色避免白閃。 */
  background: rgb(118, 166, 198);
  display: flex;
  align-items: center;
  justify-content: center;
  --loader-hold: 0.1s;   /* 圖到齊後停 0.1 秒，再用 0.4 秒淡走 */
  pointer-events: none;
}

/* 2026-09-20：唔再用死 timer 淡出。圖一 load 到，inline script 就會加
   .is-ready，跟住先開始淡。慢網絡就個幕等多陣，寧願睇住幅畫都好過見藍底。

   老闆同日跟手：「張圖可以留多一陣……現在係一閃即逝」，跟住補一句
   「都唔應該留咁耐……總共 0.5 秒咁樣囉」——所以 .is-ready 之後 hold
   0.1 秒（--loader-hold），再用 0.4 秒淡走，合共約 0.5 秒。
   ⚠️ 要改「留幾久」淨係改 --loader-hold 一個數就得；hold 係由 .is-ready
   開始計（即係圖到齊先計），唔係由頁面開始載入計。 */
.page-loader.is-ready {
  animation: loaderFade 0.4s var(--ease-out) var(--loader-hold, 0.1s) forwards;
}

@keyframes loaderFade {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* 靜態首幀同影片都包含芝麻，確保影片未解碼或失敗時都唔會淨係得 logo。 */
.page-loader__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* OUJI logo 獨立於畫面素材，確保各比例都保持清晰同精準定位。 */
.page-loader__brand-logo {
  position: absolute;
  top: 39.5%;
  left: 48%;
  z-index: 2;
  width: min(64.6vw, 608px);
  transform: translate(-50%, -50%);
}

.page-loader__brand-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Responsive video is progressive enhancement: each viewport first paints a
   matching static frame, so decoding or autoplay failure never blocks the page. */
.page-loader__motion-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
}

.page-loader__motion-video.is-playing {
  opacity: 1;
}

/* 桌面以右下角為錨點 cover 全屏：裁背景留白，唔裁芝麻，亦唔留上下色帶。 */
@media (min-width: 769px) {
  .page-loader__brand-logo {
    top: 50%;
    left: 50%;
    width: clamp(280px, 22vw, 360px);
  }

  .page-loader__art {
    object-fit: cover;
    object-position: right bottom;
  }

  .page-loader__motion-video {
    object-fit: cover;
    object-position: right bottom;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__motion-video { display: none; }
}

/* ----- Hero Text Clip Reveal ----- */

/* ----- Animated Gradient Border ----- */

/* ----- Product Card Shine Sweep ----- */
.product-card__image-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-15deg);
  transition: none;
  z-index: 2;
  pointer-events: none;
}

.product-card:hover .product-card__image-wrap::after {
  animation: shineSweep 0.8s ease forwards;
}

@keyframes shineSweep {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* ----- Horizontal Scroll Showcase ----- */

.hscroll-showcase__track {
  display: flex;
  gap: var(--space-xl);
  padding: 0 var(--space-2xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.hscroll-showcase__track::-webkit-scrollbar { display: none; }
.hscroll-showcase__track:active { cursor: grabbing; }

.hscroll-showcase__card {
  flex: 0 0 clamp(280px, 30vw, 400px);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out);
}

.hscroll-showcase__card:hover {
  transform: scale(1.03);
}

.hscroll-showcase__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.hscroll-showcase__card:hover img {
  transform: scale(1.08);
}

/* Scroll progress dots */

/* ----- Floating Particles ----- */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ----- Video-like Ken Burns on Hero ----- */

/* ----- Testimonial / Pull Quote ----- */

/* ----- Mood Board Grid ----- */
.mood-board {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(3, 200px);
  gap: var(--space-sm);
  padding: var(--space-4xl) var(--space-2xl);
}

/* Mood board label */

@media (max-width: 768px) {
  .mood-board {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .hscroll-showcase__card { flex: 0 0 80vw; }
}

/* ----- Reveal from Blur ----- */
.reveal-blur {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-blur.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ----- Parallax Zoom Image ----- */

/* ----- Brand logo card name variants via class ----- */
.brand-logo-card__name--serif {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.brand-logo-card__name--light {
  font-weight: 300;
  letter-spacing: 0.2em;
}

.brand-logo-card__name--italic {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* ----- Dual Brand Marquees (skincare + makeup) — Dark Smoke Theme ----- */
.brand-marquees {
  padding: clamp(40px, 4.5vw, 64px) 0;
  position: relative;
  /* 由 #161f24（灰墨綠）改成 footer 同一隻藍。老闆指名要呢隻。 */
  background: var(--dark-base);
  overflow: hidden;
}

/* Smoke video bg (absolute within section) */
.brand-marquees__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.brand-marquees__video video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.4) brightness(0.65);
  pointer-events: none;
}
.brand-marquees__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%,
      rgba(43,76,88,0.0) 0%,
      rgba(43,76,88,0.55) 70%,
      rgba(43,76,88,0.85) 100%),
    linear-gradient(180deg,
      rgba(43,76,88,0.65) 0%,
      rgba(43,76,88,0.35) 50%,
      rgba(43,76,88,0.75) 100%);
  pointer-events: none;
}

/* Lift all content above video */

.brand-marquees > .container,
.brand-marquees > .brand-marquees__section,
.brand-marquees__section {
  position: relative;
  z-index: 1;
}

/* Section header text — white on dark */
.brand-marquees .section-header {
  text-align: center;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.brand-marquees .section-header__label {
  color: rgba(140,180,195,0.7);
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.brand-marquees .section-header__title {
  color: #ffffff;
  font-weight: 300;
  letter-spacing: -0.005em;
}
.brand-marquees .section-header__desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.brand-marquees__section {
  margin-bottom: var(--space-lg);
}

.brand-marquees__section:last-child {
  margin-bottom: 0;
}

.brand-marquees__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  margin: 0;
  text-transform: uppercase;
}

.brand-marquee {
  overflow: hidden;
  position: relative;
  /* 下面留位畀品牌名浮出嚟，唔留就會畀 overflow:hidden 剪走 */
  padding: var(--space-sm) 0 26px;
}

.brand-marquee::before,
.brand-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.brand-marquee::before {
  left: 0;
  width: 160px;
  background: linear-gradient(90deg, rgba(43,76,88,1) 0%, rgba(43,76,88,0.85) 40%, transparent 100%);
}

.brand-marquee::after {
  right: 0;
  width: 160px;
  background: linear-gradient(270deg, rgba(43,76,88,1) 0%, rgba(43,76,88,0.85) 40%, transparent 100%);
}

.brand-marquee__track {
  display: flex;
  gap: var(--space-md);
  animation: brandMarquee 60s linear infinite;
  width: max-content;
  /* 明確叫顯示卡開一層畀佢，唔好每 frame 喺 CPU 度重畫成行 logo */
  will-change: transform;
  backface-visibility: hidden;
}

.brand-marquee--reverse .brand-marquee__track {
  animation-direction: reverse;
}

.brand-marquee--fast .brand-marquee__track {
  animation-duration: 45s;
}

.brand-marquee__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 64px;
  flex-shrink: 0;
  padding: 0 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  opacity: 0.6;
}

.brand-marquee__item:hover,
.brand-marquee__item.is-armed {
  background: transparent;
  border: none;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: none;
  opacity: 1;
}

/* 停低嗰陣成行都亮返啲，唔淨係滑鼠指住嗰個 */
.brand-marquees.is-paused .brand-marquee__item {
  opacity: 0.82;
}

/* 手機撳咗第一下：框住佢，話畀客知「再撳一次先入去」 */
.brand-marquee__item.is-armed::after {
  content: '';
  position: absolute;
  inset: -6px -2px -18px;
  border: 1px solid rgba(109, 163, 181, 0.6);
  border-radius: 10px;
  pointer-events: none;
}

.brand-marquee__logo {
  width: 100%;
  height: 100%;
  max-height: 36px;
  max-width: 120px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 1;
  transition: filter 0.3s ease;
}

.brand-marquee__item:hover .brand-marquee__logo {
  opacity: 1;
}

@keyframes brandMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ----- Blue frosted section backgrounds ----- */

/* Blue-frosted product card image wrap */
.product-card__image-wrap {
  border: 1px solid rgba(109,163,181,0.10);
}

/* Blue tinted glass on stat cards */

/* Blue frosted pull quote */

/* Blue-tint on hscroll */

/* ============================================
   WARM BEIGE + MORE WOW v6.0
   ============================================ */

/* ----- Warm Section Backgrounds ----- */

/* ----- Warm featured collection ----- */

/* ----- Warm brand story ----- */
.brand-story {
  background: linear-gradient(135deg, rgba(109,163,181,0.04), var(--warm-50));
  border: 1px solid rgba(228,201,168,0.15);
}

/* ----- Category tile warm overlay on hover ----- */

/* ----- Warm-accent editorial card ----- */

/* ----- Pull quote with warm gradient ----- */

/* ----- Mood board warm border radius enhancement ----- */

/* ----- Newsletter — dark smoke bg ----- */

/* ----- Animated floating badge on hero ----- */

/* ----- Horizontal scroll card warm overlays ----- */

/* ----- Stats with alternating warm/blue ----- */

/* ----- Product price warm accent ----- */
.product-card__price {
  color: var(--primary-dark);
}

.product-card__brand {
  color: var(--warm-600);
}

/* ----- Big decorative circle behind sections ----- */

/* ----- Warm accent on hscroll header ----- */

/* ----- Brand marquee section: removed warm/cool alternation
   for a cohesive, restrained look. Logos are uniform across sections. ----- */
.brand-marquees__section:nth-child(odd) .brand-marquee__item,
.brand-marquees__section:nth-child(even) .brand-marquee__item {
  border: none;
  background: transparent;
}
.brand-marquees__section:nth-child(even) .brand-marquee__item:hover {
  background: transparent;
  border: none;
  color: #ffffff;
}

/* ----- Brand Section Header (centered divider style) ----- */
.brand-marquees__section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--space-md) 0 var(--space-sm);
}

/* Flanking-line divider wrapper */
.brand-section-title {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 540px;
}

.brand-section-title::before,
.brand-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18));
}

.brand-section-title::after {
  background: linear-gradient(270deg, transparent, rgba(255,255,255,0.18));
}

/* Toggle button — centred text link below the title */
.brand-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s, background 0.2s;
}

.brand-section-toggle:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}

.brand-section-toggle.active {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

.brand-section-toggle__icon {
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
}

.brand-section-toggle.active .brand-section-toggle__icon {
  transform: rotate(90deg);
}

/* ----- Marquee rows collapse when grid opens ----- */
.brand-marquees__rows {
  overflow: hidden;
  max-height: 400px;
  opacity: 1;
  transition: max-height 0.45s var(--ease-out), opacity 0.3s var(--ease-out);
}

.brand-marquees__section--grid-open .brand-marquees__rows {
  max-height: 0;
  opacity: 0;
}

/* When a section's grid is open, pause its marquees */
.brand-marquees__section--grid-open .brand-marquee__track {
  animation-play-state: paused;
}

.brand-marquees__grid-view {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out) 0.1s;
  padding: 0;
}

.brand-marquees__grid-view.open {
  max-height: 9999px;
  opacity: 1;
  padding: var(--space-xl) 0 var(--space-2xl);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
}

.brand-grid__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(36,56,64,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
  cursor: pointer;
  animation: fadeUp 0.5s var(--ease-out) both;
  overflow: hidden;
  position: relative;
}

.brand-grid__card:nth-child(1)  { animation-delay: 0.02s; }
.brand-grid__card:nth-child(2)  { animation-delay: 0.04s; }
.brand-grid__card:nth-child(3)  { animation-delay: 0.06s; }
.brand-grid__card:nth-child(4)  { animation-delay: 0.08s; }
.brand-grid__card:nth-child(5)  { animation-delay: 0.10s; }
.brand-grid__card:nth-child(6)  { animation-delay: 0.12s; }
.brand-grid__card:nth-child(7)  { animation-delay: 0.14s; }
.brand-grid__card:nth-child(8)  { animation-delay: 0.16s; }
.brand-grid__card:nth-child(9)  { animation-delay: 0.18s; }
.brand-grid__card:nth-child(10) { animation-delay: 0.20s; }
.brand-grid__card:nth-child(11) { animation-delay: 0.22s; }
.brand-grid__card:nth-child(12) { animation-delay: 0.24s; }

.brand-grid__card:hover {
  background: rgba(50,75,85,0.85);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.2);
}

.brand-grid__card[data-hidden] {
  display: none;
}

/* 之前係死實 120px 闊。好多韓國牌子個 logo 係一條好長好幼嘅字（haruharu
   wonder 係 10:1），塞入 120px 就得 10px 高，再打 85% 透明度，喺手機
   幾乎睇唔到。改成食盡張卡嘅闊度、唔再打透明度 —— 幼字先企得住。 */
.brand-grid__logo {
  width: 100%;
  max-width: 148px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* 同品牌牆一樣：hover 唔再彈個英文名出嚟。個 logo 本身就係嗰個名。
   留喺 DOM 度淨係畀讀屏軟件同搜尋器用。 */
.brand-grid__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .brand-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-sm);
  }
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */

.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {

  /* 手機主要操作已經全部落到底欄；頂部只留 OUJI logo 同搜尋。 */
  .header__menu-toggle { display: none !important; }

  /* 底欄：Codex 圓角版改做浮起膠囊（Winston 2026-10-15 批）。
     貼住螢幕底嘅話，iPhone 螢幕圓角會切走左右下角，返主畫面條橫條仲會壓住啲字；
     所以膠囊左右留 12px、離底 --tabbar-gap，四角都圓，高 56px。
     揀中嗰格（所在頁，或者打開咗嗰張選單）icon 底填一粒淡白膠囊；
     「幫我揀」平時唔加底，免得同揀中嗰格一齊亮，客分唔到自己喺邊。
     nav 本身透明、高度包埋膠囊下面嘅空位（/match 嘅 React 會量佢高度去扣返畫面），
     玻璃膠囊畫喺 ::before；透明位唔食撳，後面啲嘢照撳得到。 */
  :root {
    --tabbar-gap: max(16px, calc(env(safe-area-inset-bottom, 0px) - 10px));
    /* Same mist blue as the index drawer, with more coverage over busy pages. */
    --mobile-mist: linear-gradient(160deg, #ffffff42, #ffffff21), rgba(109, 163, 181, .94);
    --mobile-mist-ink: #fff;
  }
  .mobile-bottom-nav {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: calc(56px + var(--tabbar-gap));
    padding: 0 calc(max(12px, env(safe-area-inset-right, 0px)) + 6px) var(--tabbar-gap) calc(max(12px, env(safe-area-inset-left, 0px)) + 6px);
    pointer-events: none;
  }
  .mobile-bottom-nav::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: var(--tabbar-gap);
    height: 56px;
    border-radius: 28px;
    background: var(--mobile-mist);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
                0 10px 28px rgba(28, 60, 74, 0.24),
                0 2px 6px rgba(28, 60, 74, 0.12);
  }

  .mobile-bottom-nav__item {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--mobile-mist-ink);
    font-family: var(--font-body);
    font-size: 10px;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    transition: color 120ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav__item:hover,
  .mobile-bottom-nav__item.active { color: var(--mobile-mist-ink); }
  .mobile-bottom-nav__item:focus-visible { outline: 2px solid var(--mobile-mist-ink); outline-offset: -5px; }

  /* icon 位 44×28：揀中先填淡白膠囊，撳落再深少少 */
  .mobile-bottom-nav__symbol {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 28px;
    border-radius: 14px;
    transition: background-color 120ms ease;
  }
  .mobile-bottom-nav__item.active .mobile-bottom-nav__symbol { background: rgba(255, 255, 255, 0.45); }
  .mobile-bottom-nav__item:active .mobile-bottom-nav__symbol { background: rgba(255, 255, 255, 0.55); }

  .mobile-bottom-nav__item svg {
    width: 21px;
    height: 21px;
  }

  .mobile-bottom-nav__label {
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0.015em;
    text-shadow: 0 1px 2px rgba(31, 68, 82, .55);
    white-space: nowrap;
  }
  .mobile-bottom-nav__item.active .mobile-bottom-nav__label { font-weight: 650; }

  /* 打開咗分類／精選／幫我揀其中一張：膠囊跟住打開嗰格，所在頁嗰格暫時熄 */
  .mobile-bottom-nav:has([aria-expanded="true"]) .mobile-bottom-nav__item.active:not([aria-expanded="true"]) { color: var(--mobile-mist-ink); }
  .mobile-bottom-nav:has([aria-expanded="true"]) .mobile-bottom-nav__item.active:not([aria-expanded="true"]) .mobile-bottom-nav__symbol { background: none; }
  .mobile-bottom-nav:has([aria-expanded="true"]) .mobile-bottom-nav__item.active:not([aria-expanded="true"]) .mobile-bottom-nav__label { font-weight: 500; }

  /* 「幫我揀」：icon 同放大 sample 讀同一個 SVG（Option A），唔准用 CSS 重砌。
     字色同其他格一樣，揀中先變白 —— 平時亮住會似一直揀中咗。 */
  .mobile-bottom-nav__assist-icon { animation: assistSettle 520ms var(--ease-out) both; }
  .ouji-shade-match-mark {
    display: block;
    width: 30px;
    height: 26px;
    object-fit: contain;
  }

  @keyframes assistSettle {
    from { opacity: 0; transform: translateY(5px) scale(.9); }
    to { opacity: 1; transform: none; }
  }

  /* 舊 markup（JS 未行時嘅 fallback）用嚟包 icon 同數字 */
  .mobile-bottom-nav__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 數字貼 icon 右上角；購物袋 icon 本身唔變色 */
  .mobile-bottom-nav__badge,
  .mobile-bottom-nav__wishlist-badge {
    box-sizing: border-box;
    position: absolute;
    top: -3px;
    left: 27px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 8px;
    color: white;
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .mobile-bottom-nav__badge { background: #e8637a; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.18); }
  .mobile-bottom-nav__wishlist-badge { background: var(--primary); }

  /* Body clearance so content isn't hidden behind the bar（膠囊＋下面空位＋10px 透氣）。
     有 footer 嘅頁，呢段預留位改放喺 footer 入面：footer 嘅藍色一路去到螢幕底，
     唔會喺膠囊兩邊同下面露出一段米白（膠囊浮起之後先見到，Winston 2026-10-15 指出白線）。 */
  body {
    padding-bottom: calc(56px + var(--tabbar-gap) + 10px);
  }
  body:has(> .footer) { padding-bottom: 0; }
  body:has(> .footer) > .footer { padding-bottom: calc(56px + var(--tabbar-gap) + 10px); }
}

/* /match（明星妝感配對）：配對畫面計到膠囊頂為止，跟住就係 footer。
   膠囊浮起之後，footer 個青色頂會喺膠囊後面同兩邊露出嚟，似多咗一層殼貼住螢幕角；
   所以喺配對畫面下面補返一段同畫面底一樣嘅深色，footer 要碌落先見到。 */
@media (max-width: 760px) {
  #main-content > #root[data-embedded] {
    padding-bottom: calc(56px + var(--tabbar-gap));
    background: #241a15;
  }
}

/* 手機分類選單（I 全藍）：一張 E1 藍玻璃卡，頂部標誌＋四粒捷徑，左欄 8 個大分類線條圖示，右邊細分類相格／品牌卡。
   .mobile-nav--cat 由 script.js prepareMobileShopNav 加上；JS 未行時保留舊抽屜樣式。
   細分類相格資料 data/menu-thumbs.json，開選單先載。 */
.mobile-nav.mobile-nav--cat {
  --mn-ink: #fff;
  --mn-tint: rgba(86, 140, 160, 0.84);
  --mn-text-shadow: 0 1px 2px rgba(20, 48, 60, 0.34), 0 0 9px rgba(20, 48, 60, 0.18);
  --mn-icon-shadow: drop-shadow(0 1px 2px rgba(20, 48, 60, 0.32));
  --mn-bubble-shadow: 0 4px 12px rgba(20, 48, 60, 0.17), 0 1px 2px rgba(20, 48, 60, 0.11);
  --mn-circ-shadow: 0 2px 6px rgba(20, 48, 60, 0.11);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  top: 8px; left: 8px; bottom: 8px;
  width: min(calc(100vw - 52px), 420px);
  height: auto; max-height: none;
  padding: 0; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 28px;
  transform: translateX(calc(-100% - 16px));
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
    var(--mn-tint);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 10px 0 44px rgba(34, 70, 84, 0.22);
  color: var(--mn-ink); font-family: var(--font-body); line-height: 1.5;
}
.mobile-nav.mobile-nav--cat.is-open { transform: translateX(0); }
.mobile-nav--cat a { color: inherit; text-decoration: none; }
.mobile-nav--cat a:focus-visible,
.mobile-nav--cat button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.mobile-nav--cat :is(.mobile-nav__logo, .mobile-nav__rail-label, .mobile-nav__title, .mobile-nav__tab, .mobile-nav__hall, .mobile-nav__seeall,
  .mobile-nav__tlabel, .mobile-nav__sc-label, .mobile-nav__chips a, .mobile-nav__foot-txt) { text-shadow: var(--mn-text-shadow); }
.mobile-nav--cat :is(.mobile-nav__sc-ic, .mobile-nav__close, .mobile-nav__logo, .mobile-nav__seeall) svg { filter: var(--mn-icon-shadow); }

.mobile-nav__top { padding: 12px 16px 16px; }
.mobile-nav__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.mobile-nav__logo { display: flex; align-items: center; gap: 8px; min-height: 40px; color: #fff; font: 700 25.6px/1.4 var(--font-brand); letter-spacing: 0.22em; }
.mobile-nav__logo:hover { opacity: 0.8; }
.mobile-nav__home-icon { width: 13px; height: 13px; margin-left: -2px; opacity: 0.65; flex: 0 0 auto; }
.mobile-nav--cat .mobile-nav__close { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: var(--mn-circ-shadow); }
.mobile-nav__sc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mobile-nav__sc a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; }
.mobile-nav__sc-ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.34); box-shadow: var(--mn-circ-shadow); }
.mobile-nav__sc-ic svg { width: 19px; height: 19px; }
.mobile-nav__sc-label { font: 500 12px/1.4 var(--font-body); white-space: nowrap; }
.mobile-nav__pill { position: absolute; top: 0; right: calc(50% - 27px); padding: 0 8px; border-radius: 999px; background: #fff; color: #2b4c58; font: 700 10px/16px var(--font-body); white-space: nowrap; }

/* 下半：左欄 80px 線條圖示＋右邊透明藍玻璃內容，中間只有一條細線；冇白底，只有產品圓圈同品牌卡係白色 */
.mobile-nav__body { display: grid; grid-template-columns: 80px minmax(0, 1fr); min-height: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.mobile-nav__rail { display: flex; flex-direction: column; min-height: 0; padding: 0 0 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.mobile-nav__rail::-webkit-scrollbar,
.mobile-nav__pane::-webkit-scrollbar { display: none; }
.mobile-nav__rail-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; min-height: 72px; padding: 10px 4px; text-align: center; color: rgba(255, 255, 255, 0.94); }
.mobile-nav__rail-item svg { width: 22px; height: 22px; filter: var(--mn-icon-shadow); }
.mobile-nav__rail-label { font: 500 13px/1.3 var(--font-body); white-space: nowrap; }
.mobile-nav__rail-item[aria-selected="true"] { background: rgba(255, 255, 255, 0.16); color: #fff; }
.mobile-nav__rail-item[aria-selected="true"] .mobile-nav__rail-label { font-weight: 600; }
.mobile-nav__rail-item[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: #fff; }

.mobile-nav__pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.mobile-nav__in { display: flex; flex-direction: column; min-height: 100%; padding: 16px 12px; }
.mobile-nav__in.is-in { animation: mobile-nav-in 0.16s ease-out; }
@keyframes mobile-nav-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
/* 標題行：左＝「睇全部○○ ›」玻璃藥丸（連去該大分類頁），右＝「類別　品牌」頁籤，下面一條細線 */
.mobile-nav__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.mobile-nav__hall { display: inline-flex; align-items: center; gap: 2px; flex: none; height: 32px; margin-bottom: 6px; padding: 0 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.34); color: #fff; font: 600 13px/1 var(--font-body); white-space: nowrap; }
.mobile-nav__hall .mobile-nav__bchev { width: auto; margin-top: -1px; color: #fff; font-size: 17px; filter: var(--mn-icon-shadow); }
.mobile-nav__tabs { display: flex; gap: 12px; margin-left: auto; }
.mobile-nav__tab { position: relative; padding: 0 0 10px; color: rgba(255, 255, 255, 0.9); font: 500 14px/22px var(--font-body); white-space: nowrap; }
.mobile-nav__tab[aria-pressed="true"] { color: #fff; font-weight: 600; }
.mobile-nav__tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 16px; height: 2px; margin-left: -8px; background: #fff; }
.mobile-nav__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; padding-top: 16px; }
.mobile-nav__tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-nav__tile { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.mobile-nav__thumb { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 72px; aspect-ratio: 1; padding: 12%; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: var(--mn-bubble-shadow); }
.mobile-nav__thumb img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.mobile-nav__tlabel { max-width: 100%; font: 400 13px/1.4 var(--font-body); white-space: nowrap; text-align: center; }
/* 按膚質揀：小標題行＋玻璃標籤 */
.mobile-nav__sec { margin-top: 16px; }
.mobile-nav__title { margin: 0; padding-bottom: 10px; color: rgba(255, 255, 255, 0.9); font: 600 15px/22px var(--font-body); white-space: nowrap; }
.mobile-nav__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.mobile-nav__chips a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 20px; background: rgba(255, 255, 255, 0.14); font: 400 14px/1.4 var(--font-body); white-space: nowrap; box-shadow: var(--mn-circ-shadow); }
/* 品牌視圖：2 欄白色圓角卡，成張卡可撳；資料 data/menu-brands.json（scripts/build_menu_brands.js 每日生成），logo 同品牌圖鑑共用 /logos/ */
.mobile-nav__bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 16px 0 0; list-style: none; }
.mobile-nav__bcard { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 56px; padding: 12px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--mn-bubble-shadow); }
/* 外框按裁切後比例縮放：最高 32px（卡高扣 padding），最闊唔超過卡內寬；img 用百分比放大返去原圖，再由外框裁走留白 */
.mobile-nav__blogo { position: relative; display: block; flex: none; width: min(100%, calc(32px * var(--r))); aspect-ratio: var(--r); overflow: hidden; }
.mobile-nav__blogo img { position: absolute; display: block; max-width: none; }
.mobile-nav__bfall { display: -webkit-box; max-width: 100%; overflow: hidden; color: #2b4c58; font: 600 13px/1.25 var(--font-body); text-align: center; overflow-wrap: anywhere; text-shadow: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.mobile-nav__seeall { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font: 500 14px/1.4 var(--font-body); }
.mobile-nav__bchev { flex: 0 0 auto; width: 10px; color: rgba(255, 255, 255, 0.7); font: 400 16px/1 var(--font-body); text-align: right; }
.mobile-nav__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; }
.mobile-nav__shima { flex: 0 0 auto; width: 48px; height: auto; display: block; }
.mobile-nav__foot-txt { display: grid; min-width: 0; color: rgba(255, 255, 255, 0.85); font: 400 11px/1.5 var(--font-body); }
.mobile-nav__foot-txt span { white-space: nowrap; }
.mobile-nav__foot-txt span:first-child { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav.mobile-nav--cat { transition: none; }
  .mobile-nav__in.is-in { animation: none; }
}

/* 護膚、彩妝、美妝工具保留原本分類間距，不加額外底框或粉色裝飾。 */
@media (max-width: 768px) {
  .mobile-nav {
    /* 100vh 喺手機 Chrome 可能包括網址列後面嗰段；dvh 跟實際可見高度。
       額外底距俾固定網站導覽同系統 safe area，令最後一項可以捲上嚟。 */
    height: 100dvh;
    padding-bottom: calc(var(--space-xl) + 88px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
  }
}

/* ============================================
   Mobile Discover Sheet
   ============================================ */
.discover-sheet { display: none; }

@media (max-width: 768px) {
  .discover-sheet {
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: rgba(20, 32, 38, 0.23);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .discover-sheet.is-open { display: block; }

  .discover-sheet__panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(56px + var(--tabbar-gap) + 9px);
    max-height: calc(100dvh - 56px - var(--tabbar-gap) - 34px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 10px 12px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 22px;
    color: #fff;
    background: var(--mobile-mist);
    text-shadow: 0 1px 2px rgba(31,68,82,.65);
    box-shadow: 0 22px 60px rgba(20,48,60,.23), inset 0 1px 0 rgba(255,255,255,.12);
    animation: discoverIn 260ms var(--ease-out) both;
  }

  .discover-sheet__grip {
    display: block;
    width: 38px;
    height: 4px;
    margin: 3px auto 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.3);
  }

  .discover-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 8px 15px;
  }
  .discover-sheet__head p {
    margin: 0 0 4px;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .18em;
    color: rgba(255,255,255,.94);
  }
  .discover-sheet__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: #fff;
  }
  .discover-sheet__close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.18);
  }
  .discover-sheet__close svg { width: 18px; height: 18px; }

  .discover-sheet__cards { display: grid; gap: 8px; }
  .discover-card {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    background: rgba(35,81,99,.15);
    transform-origin: 50% 100%;
    animation: discoverCardIn 320ms var(--ease-out) both;
  }
  .discover-card:nth-child(2) { animation-delay: 45ms; }
  .discover-card:nth-child(3) { animation-delay: 90ms; }
  .discover-card:nth-child(4) { animation-delay: 135ms; }
  .discover-card:active { background: rgba(35,81,99,.25); }
  .discover-card__no { font-family: var(--font-body); font-size: .625rem; letter-spacing: .1em; color: rgba(255,255,255,.9); }
  .discover-card > span:nth-child(2) { display: grid; gap: 4px; }
  .discover-card strong { font-family: var(--font-display); font-size: .9875rem; font-weight: 500; }
  .discover-card small { font-size: .6875rem; line-height: 1.4; color: #fff; }
  .discover-card b { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,.94); }
  .discover-card--award {
    background: linear-gradient(120deg, rgba(35,81,99,.24), rgba(35,81,99,.15));
  }

  @keyframes discoverIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
  @keyframes discoverCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-bottom-nav__assist-icon,
  .discover-sheet__panel,
  .discover-card { animation: none !important; transition: none !important; }
}

/* ============================================
   Mobile "幫我揀" Sheet
   ============================================ */
.assist-sheet { display: none; }

@media (max-width: 768px) {
  .assist-sheet {
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: rgba(20, 32, 38, 0.23);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .assist-sheet.is-open { display: block; }
  .assist-sheet__panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(56px + var(--tabbar-gap) + 9px);
    max-height: calc(100dvh - 73px - var(--tabbar-gap));
    overflow-y: auto;
    padding: 8px 10px 12px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 22px;
    color: var(--mobile-mist-ink);
    background: var(--mobile-mist);
    box-shadow: 0 22px 60px rgba(20,48,60,.23), inset 0 1px 0 rgba(255,255,255,.12);
    animation: discoverIn 260ms var(--ease-out) both;
  }
  .assist-sheet__grip {
    display: block;
    width: 38px;
    height: 4px;
    margin: 3px auto 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.46);
  }
  .assist-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    text-shadow: 0 1px 2px rgba(31, 68, 82, .48);
    gap: 16px;
    padding: 5px 8px 15px;
  }
  .assist-sheet__head p {
    margin: 0 0 4px;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .15em;
    color: var(--mobile-mist-ink);
  }
  .assist-sheet__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--mobile-mist-ink);
  }
  .assist-sheet__close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: var(--mobile-mist-ink);
    background: rgba(255,255,255,.18);
  }
  .assist-sheet__close svg { width: 18px; height: 18px; }
  .assist-sheet__choices { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .assist-choice {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 160px;
    padding: 13px;
    overflow: hidden;
    border: 1px solid #c4d6d6;
    border-radius: 16px;
    color: #2b4c58;
    background: linear-gradient(120deg, #eaf2f2 50%, #d9e7e6);
    text-decoration: none;
    animation: discoverCardIn 320ms var(--ease-out) both;
  }
  .assist-choice:focus-visible { outline: 2px solid #fffdf6; outline-offset: 2px; }
  .assist-choice--skin {
    background: linear-gradient(180deg, #dbe8df, #eeebdc 64%, #e7d4b4);
    border-color: #c5d3c3;
    animation-delay: 55ms;
  }
  .assist-choice__content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
    width: 58%;
    gap: 5px;
  }
  .assist-choice__kicker {
    color: #456b6d;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .09em;
  }
  .assist-choice strong {
    font: 500 clamp(16px, 4.6vw, 21px)/1.25 var(--font-display);
  }
  .assist-choice small {
    color: #45616a;
    font-size: .6875rem;
    line-height: 1.45;
  }
  .assist-choice__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #fffaf5;
    background: #2b4c58;
    font-size: .6875rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .assist-choice__art {
    position: absolute;
    right: 5px;
    bottom: 9px;
    width: min(43%, 213px);
    height: calc(100% - 18px);
    pointer-events: none;
  }
  .assist-choice__photo {
    position: absolute;
    top: 20%;
    left: 2%;
    width: 53%;
    padding: 3px 3px 4px;
    border: 1px solid #d9dfd8;
    border-radius: 4px;
    background: #fffdf6;
    box-shadow: 0 4px 12px #3c5d5726;
    transform: rotate(-10deg);
  }
  .assist-choice__photo:nth-child(2) { top: 6%; left: 43%; transform: rotate(8deg); }
  .assist-choice__photo img { display: block; width: 100%; height: clamp(52px, 17vw, 88px); object-fit: cover; object-position: 50% 35%; }
  .assist-choice__photo > span { display: block; margin-top: 3px; color: #5e746f; font-size: .5rem; white-space: nowrap; }
  .assist-choice__mascot { position: absolute; bottom: -2px; right: -3px; width: 56%; height: auto; }
  .assist-choice__scene {
    position: absolute;
    inset: 0 0 0 auto;
    width: 52%;
    height: 100%;
    object-fit: cover;
    object-position: 63% center;
    mask-image: linear-gradient(90deg, transparent, #000 34%);
  }
  .assist-choice__sign {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border: 1px solid #a7c1c2;
    border-radius: 7px;
    background: #fffdf6;
    box-shadow: 0 2px 0 #d3e2df;
    transform: rotate(-1.5deg);
    font-weight: 700;
    font-size: .75rem;
    white-space: nowrap;
  }
  .assist-choice__tiles { display: flex; gap: 2px; }
  .assist-choice__tiles > span { display: grid; place-items: center; width: 13px; height: 15px; border-radius: 3px; background: #dbe9e2; }
  .assist-choice__tiles > span:nth-child(2) { background: #e9deeb; }
  .assist-choice__tiles > span:nth-child(3) { background: #f2e4c9; }
  .assist-choice__tiles > span:nth-child(4) { background: #dce8ef; }
  .assist-sheet__actions { display: flex; align-items: center; gap: 2px; }
  .assist-sheet__photo-info { display: grid; place-items: center; width: 30px; height: 38px; color: var(--mobile-mist-ink); text-decoration: none; }
}

@media (max-width: 768px) and (max-height: 650px) {
  .assist-sheet__head { padding-bottom: 8px; }
  .assist-sheet__grip { margin-bottom: 5px; }
  .assist-sheet__choices { gap: 7px; }
  .assist-choice { min-height: 136px; padding: 9px 10px; }
  .assist-choice__content { gap: 4px; }
  .assist-choice small { line-height: 1.35; }
  .assist-choice__photo img { height: clamp(48px, 15vw, 73px); }
}

@media (prefers-reduced-motion: reduce) {
  .assist-sheet__panel,
  .assist-choice { animation: none !important; transition: none !important; }
}

/* 「我的」第一層就見到心願清單；唔使登入先搵得返本機收藏。 */
.account-wishlist-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-radius: 15px;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(255,255,255,.58);
  box-shadow: 0 8px 26px rgba(43,76,88,.06);
  transition: border-color var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}
.account-wishlist-link:hover { border-color: rgba(109,163,181,.52); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(43,76,88,.1); }
.account-wishlist-link__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--primary-deep);
  background: rgba(109,163,181,.1);
}
.account-wishlist-link__icon svg { width: 18px; height: 18px; }
.account-wishlist-link > span:nth-child(2) { display: grid; gap: 3px; }
.account-wishlist-link strong { font-size: .9375rem; font-weight: 600; }
.account-wishlist-link small { font-size: .75rem; color: var(--text-tertiary); }
.account-wishlist-link b { font-size: 1.35rem; font-weight: 400; color: var(--primary); }

/* Member account dashboard */
.account-dashboard {
  padding-top: clamp(38px, 5vw, 72px);
  background:
    radial-gradient(circle at 88% 4%, rgba(242,217,165,.2), transparent 29%),
    linear-gradient(180deg, rgba(232,242,244,.58) 0, rgba(255,255,255,0) 410px);
}
.account-dashboard__container { max-width: 1120px; }
.account-dashboard__hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}
.account-dashboard__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(109,163,181,.24);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #6da3b5, #315d6a);
  box-shadow: 0 10px 26px rgba(49,93,106,.2);
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.account-dashboard__eyebrow { margin: 0 0 3px; color: var(--primary-deep); font-size: .64rem; font-weight: 700; letter-spacing: .15em; }
.account-dashboard__welcome h1 { margin: 0; color: var(--text-primary); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.18; }
.account-dashboard__welcome > p:last-child { margin: 7px 0 0; color: var(--text-tertiary); font-size: .84rem; }
.account-dashboard__logout {
  padding: 9px 15px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255,255,255,.72);
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
  transition: border-color var(--duration-fast), color var(--duration-fast), background var(--duration-fast);
}
.account-dashboard__logout:hover { border-color: rgba(109,163,181,.52); color: var(--primary-deep); background: #fff; }
.account-dashboard__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr); gap: 24px; align-items: start; }
.account-dashboard__main, .account-dashboard__side { display: grid; gap: 24px; }
.account-dashboard__side { position: sticky; top: 104px; }
.account-dashboard .member-points { margin: 0; }
.account-panel {
  padding: 26px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 34px rgba(43,76,88,.065);
}
.account-panel__heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.account-panel__heading p { margin: 0 0 4px; color: var(--primary); font-size: .6rem; font-weight: 700; letter-spacing: .14em; }
.account-panel__heading h2 { margin: 0; color: var(--text-primary); font-size: 1.12rem; font-weight: 600; }
.account-panel__heading > span { color: var(--text-tertiary); font-size: .68rem; text-align: right; }
.account-profile { display: grid; }
.account-profile__row { display: grid; gap: 5px; padding: 14px 0; border-top: 1px solid var(--border-light); }
.account-profile__row:first-child { padding-top: 0; border-top: 0; }
.account-profile__row:last-child { padding-bottom: 0; }
.account-profile__row span { color: var(--text-tertiary); font-size: .67rem; }
.account-profile__row strong { overflow-wrap: anywhere; color: var(--text-primary); font-size: .82rem; font-weight: 500; line-height: 1.5; }
.account-help { display: grid; grid-template-columns: auto 1fr; gap: 13px; padding: 20px; border-radius: 18px; color: #294b58; background: linear-gradient(145deg, #eef6f7, #e3eff1); }
.account-help__icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(49,93,106,.2); border-radius: 50%; font-size: .8rem; font-weight: 700; }
.account-help h2 { margin: 1px 0 5px; font-size: .88rem; font-weight: 650; }
.account-help p { margin: 0 0 10px; color: rgba(41,75,88,.72); font-size: .7rem; line-height: 1.55; }
.account-help a { color: #294b58; font-size: .72rem; font-weight: 650; text-decoration: none; }
.account-dashboard__privacy { margin: -10px 4px 0; color: var(--text-tertiary); font-size: .64rem; line-height: 1.55; }
.account-empty { display: grid; justify-items: center; padding: 38px 20px 30px; text-align: center; }
.account-empty__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; color: var(--primary-deep); background: rgba(109,163,181,.1); }
.account-empty__icon svg { width: 23px; height: 23px; }
.account-empty h3 { margin: 0 0 7px; color: var(--text-primary); font-size: 1rem; font-weight: 600; }
.account-empty p { max-width: 390px; margin: 0 0 18px; color: var(--text-tertiary); font-size: .76rem; line-height: 1.6; }
.account-empty .btn { min-width: 132px; justify-content: center; }

.member-points { margin:0 0 32px; padding:28px; overflow:hidden; border:1px solid rgba(255,255,255,.14); border-radius:22px; color:#fff; background:linear-gradient(145deg,#203f4a 0%,#315d6a 58%,#416f7e 100%); box-shadow:0 18px 44px rgba(34,66,76,.22); }
.member-points__heading { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.member-points__member-tag { display:inline-block; margin-bottom:8px; padding:4px 8px; border:1px solid rgba(242,217,165,.48); border-radius:999px; color:#f2d9a5; font-size:.58rem; font-weight:650; letter-spacing:.15em; }
.member-points__eyebrow { margin:0 0 4px; color:rgba(255,255,255,.72); font-size:.68rem; letter-spacing:.12em; }
.member-points h2 { margin:0; color:#fff; font-size:1.22rem; font-weight:550; }
.member-points__rate { flex:none; padding-top:5px; color:rgba(255,255,255,.66); font-size:.68rem; letter-spacing:.06em; }
.member-points__balances { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; }
.member-points__balance { display:grid; gap:2px; padding:16px 18px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.07); }
.member-points__balance--available { background:rgba(255,255,255,.13); }
.member-points__balance span { color:rgba(255,255,255,.72); font-size:.66rem; letter-spacing:.06em; text-transform:uppercase; }
.member-points__balance strong { color:#fff; font-size:1.9rem; line-height:1.15; }
.member-points__balance small { color:rgba(255,255,255,.58); font-size:.66rem; }
.member-points__section-label { display:block; margin-bottom:7px; color:inherit; opacity:.68; font-size:.64rem; font-weight:650; letter-spacing:.11em; text-transform:uppercase; }
.member-points__progress { height:8px; margin:15px 0 6px; overflow:hidden; border-radius:999px; background:rgba(41,75,88,.16); }
.member-points__progress span { display:block; width:0; height:100%; border-radius:inherit; background:#d4a85f; transition:width .5s ease; }
.member-points__progress-labels { display:flex; justify-content:space-between; gap:12px; color:rgba(41,75,88,.65); font-size:.61rem; }
.member-points__shima { position:relative; align-self:end; width:100%; height:118px; filter:drop-shadow(0 8px 12px rgba(41,75,88,.18)); }
.member-points__shima > img { display:block; width:100%; height:100%; object-fit:contain; object-position:50% 100%; }
.member-points__retry { margin-left:8px; padding:0; border:0; border-bottom:1px solid currentColor; color:#8b642e; background:transparent; font:inherit; cursor:pointer; }
.member-points__expiry { margin:10px 0 0; color:#f2d9a5; font-size:.7rem; }
.member-points__details { display:grid; grid-template-columns:1fr 1fr; gap:0; margin-top:18px; padding-top:15px; border-top:1px solid rgba(255,255,255,.16); }
.member-points__details details + details { border-left:1px solid rgba(255,255,255,.16); padding-left:18px; }
.member-reward { margin-top:12px; }
.member-reward__ticket { position:relative; display:grid; grid-template-columns:104px minmax(0,1fr) 92px; align-items:center; overflow:hidden; border-radius:18px; background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); }
.member-reward[data-reward-state="unlocked"] .member-reward__ticket { background:linear-gradient(135deg,#fffaf0,#f4e3bd); box-shadow:inset 0 0 0 1px rgba(212,168,95,.55),0 16px 32px rgba(12,30,36,.3); }
.member-reward__stub { display:grid; gap:6px; place-items:center; align-self:stretch; padding:18px 8px; border-right:2px dashed rgba(255,255,255,.22); text-align:center; }
.member-reward[data-reward-state="unlocked"] .member-reward__stub { border-right-color:rgba(200,149,47,.5); }
.member-reward__amount { color:#fff; font-size:1.3rem; font-weight:700; }
.member-reward[data-reward-state="unlocked"] .member-reward__amount { color:#7a5523; }
.member-reward__status { padding:3px 8px; border-radius:999px; color:rgba(255,255,255,.82); background:rgba(255,255,255,.13); font-size:.54rem; font-weight:700; letter-spacing:.06em; white-space:nowrap; }
.member-reward[data-reward-state="unlocked"] .member-reward__status { color:#fff; background:#c8952f; }
.member-reward__copy { display:grid; gap:6px; padding:16px 14px; }
.member-reward__copy strong { color:#fff; font-size:.94rem; line-height:1.4; }
.member-reward[data-reward-state="unlocked"] .member-reward__copy strong { color:#2b4a55; }
.member-reward__copy .member-points__section-label { margin-bottom:0; }
.member-reward__note { color:rgba(255,255,255,.66); font-size:.67rem; line-height:1.5; }
.member-reward[data-reward-state="unlocked"] .member-reward__note { color:rgba(43,74,85,.74); }
.member-reward__cta { justify-self:start; margin-top:2px; padding:8px 15px; border-radius:999px; color:#2b4a55; background:#f2d9a5; font-size:.72rem; font-weight:700; text-decoration:none; }
.member-reward__cta:hover { background:#f9ead0; }
.member-reward__ticket .member-points__shima { height:94px; filter:drop-shadow(0 6px 10px rgba(20,45,52,.22)); }
.member-reward__next { margin-top:14px; padding:14px 16px 12px; border-radius:14px; background:rgba(13,37,44,.22); }
.member-reward__next-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.member-reward__next-head span { color:rgba(255,255,255,.72); font-size:.68rem; }
.member-reward__next-head strong { color:#f2d9a5; font-size:.76rem; }
.member-reward__next .member-points__progress { margin-top:12px; background:rgba(255,255,255,.16); }
.member-reward__next .member-points__progress span { background:#f2d9a5; }
.member-reward__next .member-points__progress-labels { color:rgba(255,255,255,.62); }
.member-reward__error { margin:12px 0 0; color:#f2d9a5; font-size:.72rem; }
.member-points__details summary { cursor:pointer; color:rgba(255,255,255,.86); font-size:.74rem; }
.member-points__rules ul { grid-column:1 / -1; margin:14px 0 0; padding:0 0 0 17px; color:rgba(255,255,255,.72); font-size:.7rem; line-height:1.65; }
.member-points__rules li + li { margin-top:6px; }
.member-points__rules strong { color:#fff; font-weight:600; }
.member-points__history { margin:0; }
.member-points__history-row { display:flex; justify-content:space-between; gap:18px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.12); }
.member-points__history-row span { display:grid; gap:2px; }
.member-points__history-row strong { font-size:.8rem; font-weight:550; }
.member-points__history-row small { color:rgba(255,255,255,.6); font-size:.68rem; }
.member-points__history-row b { color:#f2d9a5; font-size:.82rem; }
.member-points__history-row b.is-negative { color:#ffd0ca; }
.account-order { border-top: 1px solid var(--border-light); }
.account-order:last-child { border-bottom: 1px solid var(--border-light); }
.account-order__summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.account-order__summary::-webkit-details-marker { display: none; }
.account-order__summary > span:first-child, .account-order__summary-right { display: grid; gap: 3px; }
.account-order__summary small { color: var(--text-tertiary); font-size: .75rem; font-weight: 400; }
.account-order__summary-right { text-align: right; }
.account-order__chevron { color: var(--primary); transition: transform .2s ease; }
.account-order[open] .account-order__chevron { transform: rotate(180deg); }
.account-order__items { padding: 0 0 8px; }
.account-order-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; }
.account-order-item__image { width: 64px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--surface-alt, #f6f4f1); color: var(--text-tertiary); font-family: var(--font-brand); font-size: .6rem; letter-spacing: .12em; }
.account-order-item__image img { width: 100%; height: 100%; object-fit: cover; }
.account-order-item__info { display: grid; gap: 3px; min-width: 0; }
.account-order-item__name { color: var(--text-primary); font-size: .875rem; font-weight: 500; line-height: 1.45; }
.account-order-item__variant, .account-order-item__quantity { color: var(--text-tertiary); font-size: .75rem; }
.account-order-item__price { color: var(--text-secondary); font-size: .8125rem; white-space: nowrap; }
.account-order__empty { padding: 0 0 16px; color: var(--text-tertiary); font-size: .8rem; }
.account-order__details { padding: 14px 0 22px; border-top: 1px solid var(--border-light); }
.account-order__totals { display: grid; gap: 8px; margin-left: auto; max-width: 290px; }
.account-order-total { display: flex; justify-content: space-between; gap: 24px; color: var(--text-secondary); font-size: .8125rem; }
.account-order-total strong { font-weight: 500; color: var(--text-primary); }
.account-order-total--refund strong { color: #527a66; }
.account-order-total--grand { margin-top: 3px; padding-top: 11px; border-top: 1px solid var(--border-light); font-size: .9rem; }
.account-order-total--grand strong { font-weight: 650; }
.account-order-total--due strong { color: #a45b54; }
.account-order__detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.account-order__detail-block { padding: 15px; border-radius: 12px; background: rgba(109,163,181,.07); }
.account-order__detail-block--wide { grid-column: 1 / -1; }
.account-order__detail-block h3 { margin: 0 0 9px; color: var(--text-tertiary); font-size: .68rem; font-weight: 600; letter-spacing: .08em; }
.account-order__detail-block p { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0; color: var(--text-secondary); font-size: .78rem; }
.account-order__detail-block p strong { color: var(--text-primary); font-weight: 500; text-align: right; }
.account-order__detail-block address { color: var(--text-secondary); font-size: .78rem; font-style: normal; line-height: 1.65; }
.account-order__tracking { display: block; color: var(--primary-deep); font-size: .78rem; text-decoration: none; }
.account-order__tracking + .account-order__tracking { margin-top: 6px; }
.account-order__tracking:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .account-dashboard { padding-top: 28px; }
  .account-dashboard__hero { grid-template-columns: auto minmax(0,1fr); gap: 13px; margin-bottom: 18px; }
  .account-dashboard__avatar { width: 52px; height: 52px; font-size: .85rem; }
  .account-dashboard__welcome h1 { font-size: 1.45rem; }
  .account-dashboard__welcome > p:last-child { font-size: .72rem; }
  .account-dashboard__logout { grid-column: 1 / -1; justify-self: stretch; padding: 8px; }
  .account-dashboard__grid { grid-template-columns: 1fr; gap: 18px; }
  .account-dashboard__main, .account-dashboard__side { gap: 18px; }
  .account-dashboard__side { position: static; }
  .account-panel { padding: 21px 17px; border-radius: 18px; }
  .account-panel__heading { align-items: start; margin-bottom: 16px; }
  .account-panel__heading > span { max-width: 124px; }
  .member-points { padding:22px 18px; }
  .member-points__heading { display:block; }
  .member-points__rate { display:block; margin-top:8px; padding:0; }
  .member-points__balances { grid-template-columns:1fr 1fr; gap:8px; }
  .member-points__balance { padding:13px 12px; }
  .member-points__balance strong { font-size:1.55rem; }
  .member-points__balance small { line-height:1.35; }
  .member-points__shima { height:92px; }
  .member-points__details { grid-template-columns:1fr; gap:13px; }
  .member-points__details details + details { padding:13px 0 0; border-top:1px solid rgba(255,255,255,.12); border-left:0; }
  .account-order__summary { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 9px; }
  .account-order-item { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; }
  .account-order-item__image { width: 54px; }
  .account-order__detail-grid { grid-template-columns: 1fr; }
  .account-order__detail-block--wide { grid-column: auto; }
}

/* Member account visual redesign v2 */
.account-dashboard {
  padding-top: clamp(30px,4vw,56px);
  background:
    radial-gradient(circle at 92% 3%,rgba(249,213,220,.42),transparent 25%),
    radial-gradient(circle at 4% 32%,rgba(196,225,229,.46),transparent 24%),
    linear-gradient(180deg,#fbfdfd 0,#f7fbfb 430px,#fff 100%);
}
.account-dashboard__container { max-width:1160px; }
.account-dashboard__hero {
  position:relative;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:26px;
  min-height:182px;
  margin-bottom:24px;
  padding:28px 32px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.72);
  border-radius:30px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 16%,rgba(255,255,255,.18),transparent 25%),
    linear-gradient(125deg,#244d59 0%,#3e7380 58%,#78a9b2 100%);
  box-shadow:0 22px 55px rgba(37,80,91,.2);
}
.account-dashboard__hero::after {
  content:'';
  position:absolute;
  right:-72px;
  bottom:-150px;
  width:220px;
  height:220px;
  border:34px solid rgba(255,255,255,.1);
  border-radius:50%;
}
.account-dashboard__sparkle { position:absolute; z-index:0; color:rgba(255,239,194,.78); line-height:1; }
.account-dashboard__sparkle--one { top:22px; right:32%; font-size:1rem; transform:rotate(14deg); }
.account-dashboard__sparkle--two { right:25%; bottom:21px; font-size:1.4rem; transform:rotate(-9deg); }
.account-dashboard__avatar {
  position:relative;
  z-index:1;
  width:114px;
  height:114px;
  border:6px solid rgba(255,255,255,.9);
  border-radius:36px;
  background:linear-gradient(145deg,#fffaf0,#f3dfb4);
  box-shadow:0 14px 31px rgba(20,57,66,.26),inset 0 0 0 1px rgba(89,116,122,.08);
  transform:rotate(-2deg);
}
.account-dashboard__avatar img { width:93%; height:93%; object-fit:contain; transform:rotate(2deg); }
.account-dashboard__avatar span { position:absolute; right:-4px; bottom:-4px; width:25px; height:25px; border:4px solid #fff; border-radius:50%; background:#f1c46f; }
.account-dashboard__welcome { position:relative; z-index:1; }
.account-dashboard__eyebrow { margin-bottom:8px; color:#f8dfaa; font-size:.61rem; font-weight:750; letter-spacing:.18em; }
.account-dashboard__welcome h1 { color:#fff; font-size:clamp(1.9rem,3vw,2.7rem); letter-spacing:-.035em; }
.account-dashboard__welcome > p:last-child { max-width:480px; margin-top:10px; color:rgba(255,255,255,.74); font-size:.8rem; line-height:1.6; }
.account-dashboard__hero-actions { position:relative; z-index:1; display:grid; justify-items:end; gap:8px; min-width:150px; }
.account-dashboard__member-badge { padding:7px 11px; border:1px solid rgba(248,223,170,.5); border-radius:999px; color:#f8dfaa; background:rgba(19,52,61,.18); font-size:.58rem; font-weight:750; letter-spacing:.12em; }
.account-dashboard__member-badge i { margin-right:4px; font-style:normal; }
.account-dashboard__hero-points { color:rgba(255,255,255,.68); font-size:.67rem; }
.account-dashboard__hero-points strong { margin-right:4px; color:#fff; font-family:var(--font-brand); font-size:1.45rem; font-weight:650; }
.account-dashboard__wishlist { padding:9px 13px; border-radius:999px; color:#294b58; background:#fff7e7; box-shadow:0 7px 18px rgba(24,59,67,.15); font-size:.67rem; font-weight:650; text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; }
.account-dashboard__wishlist:hover { transform:translateY(-2px); box-shadow:0 10px 22px rgba(24,59,67,.22); }
.account-dashboard__logout { padding:4px 1px 2px; border:0; border-bottom:1px solid rgba(255,255,255,.3); border-radius:0; color:rgba(255,255,255,.64); background:transparent; font-size:.64rem; }
.account-dashboard__logout:hover { border-color:#fff; color:#fff; background:transparent; }
.account-dashboard__grid { grid-template-columns:minmax(0,1.68fr) minmax(270px,.72fr); gap:22px; }
.account-dashboard__main,.account-dashboard__side { gap:22px; }
.account-dashboard .member-points {
  position:relative;
  border-color:rgba(255,255,255,.18);
  border-radius:28px;
  background:
    radial-gradient(circle at 94% 7%,rgba(242,217,165,.15),transparent 24%),
    linear-gradient(145deg,#244b57 0%,#315f6c 58%,#3f7480 100%);
  box-shadow:0 20px 48px rgba(33,72,82,.2);
}
.member-points__balance { border-color:rgba(255,255,255,.17); border-radius:18px; background:rgba(255,255,255,.08); }
.member-points__balance--available { background:linear-gradient(135deg,rgba(255,255,255,.17),rgba(255,255,255,.1)); }
.account-panel { border-color:rgba(49,93,106,.1); border-radius:24px; background:rgba(255,255,255,.92); box-shadow:0 16px 42px rgba(43,76,88,.09); }
.account-panel--profile { background:linear-gradient(160deg,#fff 45%,#f7fbfb 100%); }
.account-panel--orders { padding:30px; }
.account-panel__heading h2 { font-size:1.28rem; letter-spacing:-.01em; }
.account-help { border:1px solid rgba(49,93,106,.08); border-radius:22px; background:linear-gradient(145deg,#eef8f8,#deeff1); box-shadow:0 12px 30px rgba(43,76,88,.08); }
@media (max-width:560px) {
  .account-dashboard { padding-top:20px; }
  .account-dashboard__hero { grid-template-columns:82px minmax(0,1fr); gap:14px; min-height:0; padding:20px 17px; border-radius:24px; }
  .account-dashboard__avatar { width:78px; height:78px; border-width:4px; border-radius:25px; }
  .account-dashboard__avatar span { width:19px; height:19px; border-width:3px; }
  .account-dashboard__welcome h1 { font-size:1.42rem; }
  .account-dashboard__eyebrow { margin-bottom:4px; font-size:.5rem; }
  .account-dashboard__welcome > p:last-child { margin-top:6px; font-size:.67rem; line-height:1.45; }
  .account-dashboard__hero-actions { grid-column:1 / -1; grid-template-columns:auto 1fr auto; justify-items:start; align-items:center; width:100%; min-width:0; padding-top:12px; border-top:1px solid rgba(255,255,255,.14); }
  .account-dashboard__hero-points { justify-self:center; }
  .account-dashboard__hero-points strong { font-size:1.1rem; }
  .account-dashboard__wishlist { justify-self:end; padding:8px 11px; }
  .account-dashboard__logout { grid-column:1 / -1; justify-self:end; width:auto; padding:2px 0; }
  .account-dashboard__sparkle--one { right:15px; }
  .account-dashboard__sparkle--two { display:none; }
  .account-dashboard__grid { grid-template-columns:minmax(0,1fr); gap:18px; }
  .account-dashboard .member-points { border-radius:24px; }
  .account-panel--orders { padding:22px 17px; }
}

/* ============================================
   PREMIUM SCROLL EXPERIENCE v6.0
   ============================================ */

/* ----- Horizontal Slide Reveals ----- */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* ----- Image Clip Reveal (wipe effect) ----- */
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}
.reveal-clip.is-visible { clip-path: inset(0 0 0 0); }

.reveal-clip--right {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}
.reveal-clip--right.is-visible { clip-path: inset(0 0 0 0); }

.reveal-clip--up {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}
.reveal-clip--up.is-visible { clip-path: inset(0 0 0 0); }

/* ----- Split Text Characters ----- */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) rotateX(-80deg);
  transform-origin: bottom center;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.split-text.is-visible .char {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* Whitespace chars should not be zero-width */
.split-text .char--space { width: 0.3em; }

/* ----- Word-by-Word Reveal (Pull Quote) ----- */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.word-reveal.is-visible .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ----- Parallax Image Container ----- */
.parallax-img {
  overflow: hidden;
  position: relative;
}

.parallax-img img {
  transform: scale(1.18);
  will-change: transform;
  transition: none;
}

/* ----- Hero Scroll Shrink ----- */
.hero {
  will-change: transform, opacity;
}

/* ----- Section Divider (Wave) ----- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  pointer-events: none;
}

/* ----- Stat Counter Glow ----- */

/* ----- Ambient Bokeh Orbs ----- */
.bokeh {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,163,181,0.25) 0%, rgba(109,163,181,0.06) 50%, transparent 70%);
  pointer-events: none;
  animation: bokehFloat ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bokehFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(var(--bx, 20px), var(--by, -30px)) scale(var(--bs, 1.1)); }
}

/* ----- Scroll Progress Glow Tip ----- */
.scroll-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 60px;
  height: 7px;
  border-radius: 50%;
  background: rgba(109,163,181,0.6);
  filter: blur(4px);
}

/* ----- Enhanced Product Card Hover ----- */
.product-card {
  perspective: 1000px;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card:hover .product-card__image-wrap {
  box-shadow: 0 20px 50px rgba(109,163,181,0.20), 0 0 0 1px rgba(109,163,181,0.08);
}

/* ----- Category Tile Enhanced ----- */

/* ----- Lookbook Cards In-View ----- */
.hscroll-showcase__card {
  opacity: 0.5;
  transform: scale(0.92);
  filter: saturate(0.7);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s;
}

.hscroll-showcase__card.is-in-view {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
}

.hscroll-showcase__card:hover {
  transform: scale(1.04);
}

/* ----- Mood Board Stagger Reveal ----- */

/* ----- Section Float (Apple-style card entrance) ----- */
.section-float {
  opacity: 0;
  transform: translateY(80px) scale(0.97);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), box-shadow 1.2s var(--ease-out);
  will-change: transform, opacity;
}

.section-float.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----- Brand Marquee Logo Hover Glow ----- */
.brand-marquee__item {
  transition: transform 0.35s var(--ease-out);
}

.brand-marquee__item:hover {
  transform: scale(1.15);
}

.brand-marquee__item:hover .brand-marquee__logo {
  filter: drop-shadow(0 0 10px rgba(109,163,181,0.4));
}

/* ----- Smooth Line Grow ----- */

/* ----- Pull Quote Big Mark Animation ----- */

/* ----- Enhanced Stagger with more motion ----- */
.reveal-stagger > * {
  transform: translateY(50px) scale(0.96);
}

/* The nth-child rules above only reach the 15th child, so a category page
   with more brand sections than that left the last few at opacity 0 —
   BRAYE, Coralhaze and Glint rendered as blank space. Reveal every child;
   the enumerated rules just stagger the ones they name. */
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----- Newsletter Glow Focus ----- */

/* ----- Floating Badge Enhanced ----- */

/* ----- Marquee hover slow-down effect ----- */
.brand-marquee:hover .brand-marquee__track {
  animation-play-state: paused;
}

/* ============================================
   Accessibility — focus visibility + reduced motion
   (appended; later rules intentionally win)
   ============================================ */

/* Visible keyboard focus (mouse clicks stay clean via :focus-visible) */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
/* Skip-to-content link (hidden until focused) */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--dark-base, #335866);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 10px 10px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* Respect users who prefer reduced motion: neutralise animation globally */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Ensure scroll-reveal content is always shown, never stuck hidden */
  .reveal, .reveal-blur, .reveal-stagger, .reveal-scale,
  .reveal-left, .reveal-right, .reveal-clip, .reveal-clip--right,
  .reveal-clip--up, .section-float, .section-divider, .split-text,
  .word-reveal, .mood-board {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
  /* Stop the brand marquees from auto-scrolling */
  .marquee__inner { animation: none !important; }
}


/* ----- Category empty state ----- */
.category-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px 100px;
}
.category-empty__icon { color: var(--primary); opacity: 0.5; margin-bottom: 18px; }
.category-empty__title {
  font-family: var(--font-serif, 'Noto Serif TC', serif);
  font-size: 1.35rem; margin-bottom: 10px; color: var(--text-primary, #1e3038);
}
.category-empty__text { color: var(--text-secondary, #6b7a80); margin-bottom: 26px; }

/* ----- 品牌段落「展開全部」 -----
   一粒細掣喺一版產品下面，客根本唔會留意（老闆 2026-09-02 彈過）。
   所以：真貨繼續喺後面，矇住淡出做「下面仲有嘢」嘅訊號，
   掣係實色深藍浮喺上面，撳一撳就地展開 —— 唔跳頁。 */
.brand-more {
  position: relative;
  margin-top: var(--space-md, 16px);
  /* 只露一行嘅上半截。露太多就唔似「仲有」，似排版爛咗。 */
  /* 露到偷望嗰行嘅產品相中間 —— 太少就淨係見到一片灰，
     客睇唔出「後面係貨」。 */
  max-height: 210px;
  overflow: hidden;
}
.brand-more__peek {
  filter: blur(2px);
  opacity: 0.8;
  pointer-events: none;
  /* blur 會令邊緣透明，放大少少遮返 */
  transform: scale(1.03);
  transform-origin: top center;
}
/* 由下而上收埋，令截斷位冇一條硬邊。用 --bg-primary 唔用白色 ——
   分類頁個底本身係 #f7f9f9，用白會見到一條淺色邊。 */
.brand-more::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(247, 249, 249, 0) 0%,
    rgba(247, 249, 249, 0.18) 34%,
    rgba(247, 249, 249, 0.78) 68%,
    var(--bg-primary, #f7f9f9) 100%);
  pointer-events: none;
}
.brand-more__btn {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--dark-base, #2b4c58); color: #fff;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.01em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 20px rgba(43, 76, 88, 0.28);
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-more__btn:hover { background: #24414c; box-shadow: 0 8px 24px rgba(43,76,88,0.34); }
.brand-more__btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.brand-more__btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* 展開嗰下：由收埋嗰個高度長開，新一批貨淡入 —— 一個動作，唔係一堆效果。 */
@keyframes brand-more-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.product-card.is-just-added { animation: brand-more-in 340ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@media (min-width: 769px) { .brand-more { max-height: 250px; } }
@media (prefers-reduced-motion: reduce) {
  .brand-more__peek { filter: none; }
  .product-card.is-just-added { animation: none; }
}


/* 載入失敗（唔係「冇貨」）。同一個殼、換個語氣：圖示由購物袋轉做重試箭嘴，
   標題唔提「未有產品」，個掣係即場重載而唔係叫客行去第二版。
   ⚠️ 唔准寫 `.category-empty button { }` —— 呢個殼將來會有第二個掣
   （「睇其他系列」），一刀切選擇器會連佢一齊改埋。 */
.category-empty--retry .category-empty__icon { opacity: 0.62; }
.category-empty__retry { min-width: 148px; }














.product-copy__hook {
  font-family: var(--font-serif, 'Noto Serif TC', serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.6;
  text-align: center;
  margin-bottom: var(--space-lg, 24px);
}
.product-copy__closer {
  text-align: center;
  color: var(--text-secondary, #6b7a80);
  margin-top: var(--space-xl, 32px);
}

/* ============================================================
   BRAND SECTIONS + LIVE FILTERS
   Category pages group by brand so a Coralhaze lip does not sit
   next to a Glint highlighter with nothing marking the change.
   ============================================================ */
/* Tight enough that the next brand reads as the next section rather than
   a different page — 96px plus a 2xl pad left a screenful of nothing, and
   the sparser the gap the thinner the range looks. */
.brand-section { margin-bottom: var(--space-lg, 24px); }

.brand-section__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 140px;
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: var(--warm-gradient);
  border: 1px solid var(--border-subtle);
}
.brand-section__head--art { min-height: 220px; align-items: flex-end; }
.brand-section__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Slightly above centre: the key visuals put their subject mid-frame,
     the square campaign fallbacks put a face in the upper half, and a
     dead-centre crop lands on a chin for the latter. */
  object-position: center 42%;
}
/* Scrim from the label corner outward — a bottom-only gradient leaves the
   eyebrow and count sitting on whatever the photo happens to put there. */
.brand-section__head--art::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(20,34,40,0.80) 0%, rgba(20,34,40,0.42) 38%, rgba(20,34,40,0.04) 66%),
    linear-gradient(180deg, rgba(20,34,40,0) 45%, rgba(20,34,40,0.45) 100%);
}
.brand-section__label { position: relative; z-index: 2; }
.brand-section__head--art .brand-section__label { color: #fff; }

.brand-section__eyebrow {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.brand-section__head--art .brand-section__eyebrow { color: rgba(255,255,255,0.72); }

.brand-section__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.brand-section__count {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.brand-section__head--art .brand-section__count { color: rgba(255,255,255,0.78); }

.filter-option { justify-content: space-between; }
.filter-option span:first-of-type { flex: 1; }
.filter-option__count { font-size: 0.6875rem; color: var(--text-tertiary); }
.filter-sidebar__actions { flex: 0 0 auto; z-index: 2; display: grid; gap: 8px; padding: var(--space-md) var(--space-xl) max(var(--space-xl), env(safe-area-inset-bottom)); background: rgba(242,248,250,0.97); border-top: 1px solid var(--border-light); backdrop-filter: blur(24px); }

@media (max-width: 720px) {
  .filter-sidebar {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: min(86vh, 760px);
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
    transition: transform var(--duration-normal) var(--ease-out);
    box-shadow: 0 -16px 50px rgba(32, 69, 82, 0.18);
    z-index: 2101;
  }
  .filter-overlay { z-index: 2100; }
  .filter-sidebar.is-open { left: 0; transform: translateY(0); }
  .filter-sidebar__header { padding: 18px 20px 14px; }
  .filter-sidebar__header::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(43,76,88,.24);
    transform: translateX(-50%);
  }
  .filter-group { padding: 16px 20px; }
  .filter-option { min-height: 40px; padding: 7px 0; font-size: .875rem; }
  .filter-option input[type="checkbox"] { width: 20px; height: 20px; }
  .filter-sidebar__actions { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); padding-inline: 20px; }
}

.catalog-empty {
  padding: var(--space-4xl, 96px) 0;
  text-align: center;
  color: var(--text-secondary);
}
.link-btn {
  margin-left: 8px;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .brand-section__head { min-height: 110px; padding: var(--space-lg); }
  .brand-section__head--art { min-height: 160px; }
  .brand-section { margin-bottom: var(--space-lg, 24px); }
}

/* ============================================================
   BRAND RAIL
   A swell in the water rather than a list with one item bolded:
   each tick's length falls off with its distance from the current
   brand, and a soft crest rides along behind them.
   ============================================================ */
.brand-rail {
  position: fixed;
  /* Pinned near the left edge rather than centred in the margin — on a
     wide screen the margin is hundreds of pixels and the rail drifted
     out to float in the middle of nothing. Capped so it still clears the
     grid on the narrowest screen that shows it at all. */
  left: clamp(18px, calc((100vw - 1280px) / 2 - 150px), 56px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 7px;
  /* Horizontal padding widens the hit area so the wave answers a mouse
     passing near the rail, not only one exactly on a 2px tick. */
  padding: var(--space-md) 12px;
  /* 浪頭伸出幾多。原本 44px，喺而家較密嘅行距下面睇落太粗太長，
     收返一半有多。 */
  --wave: 18px;
  /* 只圈 layout —— 圈埋 paint 會剪走凸出條 rail 外面嘅品牌名同光暈 */
  contain: layout;
}

/* 浪頭嘅光暈 —— 位置由 catalog.js 用 px 寫落 --crest-x / --crest-y，
   唔再靠「第幾個品牌 × 每格幾多 px」估，橫豎兩個方向都啱。 */
.brand-rail__crest {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 26px;
  margin: -13px 0 0 -22px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(109,163,181,0.32), rgba(109,163,181,0.10) 62%, transparent 100%);
  filter: blur(7px);
  transform: translate3d(var(--crest-x, 0px), var(--crest-y, 0px), 0);
  transition: transform 420ms cubic-bezier(.22,.9,.28,1);
}

.brand-rail__item {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  height: 15px;
  /* --fall：1 = 正正喺浪頭，0 = 遠離。由 catalog.js 逐個寫，
     但只寫浪頭附近嗰幾個，唔會五十幾個一齊改。 */
}

.brand-rail__tick {
  height: 2px;
  border-radius: 2px;
  flex: none;
  width: calc(8px + var(--wave) * var(--fall, 0));
  background: color-mix(in srgb, var(--primary)
              calc(24% + 76% * var(--fall, 0)), transparent);
  transition: width 420ms cubic-bezier(.22,.9,.28,1),
              background 320ms var(--ease-out);
}

.brand-rail__item:focus-visible {
  outline: 1px solid var(--primary, #6da3b5);
  outline-offset: 2px;
  border-radius: 3px;
}

/* 冇掂到條 rail 嗰陣，用一個標籤講你而家喺邊個品牌。
   一掂到就交畀成排品牌名，呢個就收埋。 */
.brand-rail__label {
  position: absolute;
  white-space: nowrap;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--primary-deep, #3c6b7d);
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
}

/* Desktop: the rail is vertical, so the label sits beside the crest and
   slides with it. top 由 JS 用 px 寫，唔再靠索引數乘固定行高。 */
@media (min-width: 1501px) {
  .brand-rail__label {
    left: calc(100% + 10px);
    top: 0;
    transform: translateY(-50%);
  }
  /* 57 個品牌 × 固定行高 = 1200 幾 px，比屏幕仲高，頭尾各有十幾個
     品牌跌咗出畫面外，撳都撳唔到。改成大家夾份分屏幕高度。 */
  /* 57 個品牌 × 固定行高 = 1200 幾 px，比屏幕仲高，頭尾十幾個
     跌咗出畫面外撳唔到。改成大家夾份分同一段高度。
     420px 封頂 —— 貼住成條屏幕高會好似一條長長嘅欄杆，
     縮短返做一嚿細嘢擺喺左邊，冇咁搶。 */
  .brand-rail {
    gap: 0;
    height: min(calc(100vh - 200px), 420px);
  }
  .brand-rail__item {
    flex: 1 1 0;
    height: auto;
    min-height: 3px;
  }
}

/* Below 1500px the left margin is too narrow for a vertical rail — it
   would sit on the first column of cards — so it lies down as a tide
   line above the bottom nav instead. */
@media (max-width: 1500px) {
  /* No pill, no border, no shadow — the merchant asked for a wave, and a
     wave in a glass capsule is a control panel. Just the water and the
     name of where you are. */
  .brand-rail {
    right: 0; left: 0; top: auto;
    bottom: calc(var(--mobile-nav-height, 62px) + 6px);
    transform: none;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    padding: 22px 14px 6px;
    width: max-content;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 auto;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    --wave: 22px;
  }
  .brand-rail::-webkit-scrollbar { display: none; }
  /* The label sits above the crest; left is set from JS so it follows the
     brand you are in rather than the middle of the rail. */
  .brand-rail__label {
    left: 0;
    bottom: calc(100% - 22px);
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--glass-bg-strong, rgba(255,255,255,0.86));
    box-shadow: 0 2px 10px rgba(109,163,181,0.18);
    font-size: 0.6875rem;
  }
  .brand-rail__crest { display: none; }
  .brand-rail__item {
    width: 9px;
    height: 28px;
    align-items: flex-end;
  }
  .brand-rail__tick {
    width: 4px;
    height: calc(6px + var(--wave) * var(--fall, 0));
    transition: height 420ms cubic-bezier(.22,.9,.28,1), background 320ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-rail__label,
  .brand-rail__crest,
  .brand-rail__tick { transition: none; }
}

html.is-lite .brand-rail__crest { filter: none; }

/* ============================================================
   CLEARLINE BRAND RAIL — 2026-08-31
   保留原有按品牌分段同 scroll spy，只將舊刻度／浪頭換成原色 Logo
   嘅薄身水玻璃列。呢段用 variant class 精準覆蓋舊 rail，唔影響產品卡、
   篩選、品牌焦點輪播或其他頁面組件。
   ============================================================ */
.brand-rail-dock {
  position: relative;
  z-index: 900;
  width: 100%;
  height: 66px;
  margin: 0 0 var(--space-sm);
}

.brand-rail-dock[hidden] { display: none; }

.brand-rail.brand-rail--clearline {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 900;
  width: 100%;
  max-width: none;
  height: 66px;
  margin: 0;
  padding: 7px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  contain: layout paint;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 11px;
  background:
    radial-gradient(90% 120% at 8% -20%, rgba(255,255,255,.7), transparent 52%),
    radial-gradient(70% 130% at 88% 140%, rgba(109,163,181,.3), transparent 64%),
    rgba(174,203,216,.84);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 -1px 0 rgba(74,132,148,.08) inset,
    0 7px 24px rgba(42,86,99,.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
  backdrop-filter: blur(20px) saturate(1.28);
  transform: none;
  transition: box-shadow 180ms var(--ease-out);
}

.brand-rail.brand-rail--clearline.is-stuck {
  position: fixed;
  top: calc(var(--ann-h, 36px) + var(--hdr-h, var(--header-height, 64px)));
  left: var(--rail-fixed-left, 12px);
  width: var(--rail-fixed-width, calc(100vw - 24px));
}

.brand-rail.brand-rail--clearline::-webkit-scrollbar { display: none; }

.brand-rail--clearline .brand-rail__item {
  position: relative;
  isolation: isolate;
  /* ⚠️ `width` 一定要寫死。舊嗰個浪頭 rail 留低咗幾條低優先度嘅
     `.brand-rail__item { width: 9px }`（≤1500px）同 `width: 5px`（手機）——
     只要呢度唔寫 width，嗰啲就會贏，格仔縮到 9px，而 logo 有 84px 闊，
     即刻疊晒喺一齊（老闆 2026-09-03 影相捉到）。 */
  flex: 0 0 112px;
  width: 112px;
  height: 50px;
  min-height: 44px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  align-items: center;
  scroll-snap-align: center;
  border: 0;
  border-radius: 9px;
  color: var(--primary-deep, #3c6b7d);
  text-decoration: none;
}

.brand-rail--clearline .brand-rail__item::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 0 0 1px transparent inset;
  opacity: 0;
  transform: scale(.94);
  transition: opacity 180ms ease-out, transform 180ms cubic-bezier(.22,1,.36,1);
}

.brand-rail--clearline .brand-rail__item.is-current::before {
  opacity: 1;
  transform: scale(1);
  background: linear-gradient(135deg, rgba(255,255,255,.74), rgba(207,235,240,.28));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.85) inset,
    0 3px 12px rgba(60,116,130,.1);
}

/* 老闆 2026-09-02：「品牌條啲 logo 大細不一，應該視覺上統一返，
   用返品牌頁面嗰個做法。」

   以前每個 logo 用一個按「墨水面積」校準嘅獨立高度（14–34px），
   原意係令每個 mark 睇落一樣重 —— 但實際效果係一行大細唔一嘅招牌，
   客第一眼見到嘅係「亂」，唔係「平衡」。

   而家跟 `/brands` 嗰套：一個統一嘅框，logo 用 max-height ＋ max-width
   自己 fit 入去（`.brands-page .brand-card img` 係 max-height:52px）。
   一條尺，冇例外。 */
.brand-rail--clearline .brand-rail__logo {
  display: block;
  width: auto;
  height: auto;
  /* 每個 logo 一個**一模一樣嘅框**（84×20），`object-fit: contain`
     令佢自己 fit 入去。呢個就係 `/brands` 品牌頁齊人嘅原因 ——
     唔係啲 mark 一樣大，係啲格一樣大。
     試過「固定高度、格仔跟住招牌大細變」，結果係格仔被舊 CSS 縮細
     而 logo 冇縮，疊晒喺一齊。框寫死就唔會有呢件事。 */
  width: 84px;
  height: 20px;
  object-fit: contain;
  filter: none;
  opacity: .9;
  transform: scale(1);
  transition: opacity 180ms ease-out, transform 180ms cubic-bezier(.22,1,.36,1);
}

.brand-rail--clearline .brand-rail__item.is-current .brand-rail__logo {
  opacity: 1;
  transform: scale(1.04);
}

.brand-rail--clearline .brand-rail__fallback {
  max-width: 88px;
  overflow: hidden;
  color: var(--primary-deep, #3c6b7d);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .9;
}

.brand-rail--clearline .brand-rail__item.is-current .brand-rail__fallback { opacity: 1; }

.brand-rail--clearline .brand-rail__item:focus-visible {
  outline: 1px solid rgba(49,93,108,.62);
  outline-offset: -3px;
  border-radius: 9px;
}

body.has-brand-rail .brand-section {
  scroll-margin-top: calc(var(--ann-h, 36px) + var(--hdr-h, var(--header-height, 64px)) + 78px);
}

@media (max-width: 768px) {
  .brand-rail-dock { height: 56px; }
  .brand-rail.brand-rail--clearline {
    width: 100%;
    height: 56px;
    gap: 2px;
    padding: 5px 6px;
    border-radius: 9px;
  }
  .brand-rail--clearline .brand-rail__item {
    flex-basis: 100px;
    width: 100px;
    height: 44px;
    padding-inline: 8px;
    border-radius: 8px;
  }
  .brand-rail--clearline .brand-rail__item::before { border-radius: 8px; }
  .brand-rail--clearline .brand-rail__logo { width: 76px; height: 18px; }
  .brand-rail--clearline .brand-rail__fallback { max-width: 80px; }
  body.is-nav-tucked .brand-rail.brand-rail--clearline.is-stuck {
    top: 0;
  }
  body.has-brand-rail .brand-section {
    scroll-margin-top: calc(var(--ann-h, 36px) + var(--hdr-h, var(--header-height, 56px)) + 68px);
  }
  body.has-brand-rail.is-nav-tucked .brand-section { scroll-margin-top: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-rail.brand-rail--clearline,
  .brand-rail--clearline .brand-rail__item::before,
  .brand-rail--clearline .brand-rail__logo { transition: none; }
}





















/* ----- Mobile bottom nav: the shop sheet -----
   Anchored to the bottom bar rather than centred, so the tab you tapped
   stays visible and the sheet reads as belonging to it. */
.shop-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  background: rgba(20,32,38,0.28);
  backdrop-filter: blur(2px);
}
.shop-sheet.is-open { display: block; }

.shop-sheet__panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(var(--mobile-nav-height, 62px) + 10px);
  padding: 6px;
  border-radius: 18px;
  /* 同側邊抽屜、下拉選單、底部導覽一模一樣嗰隻半透明藍玻璃 */
  background: linear-gradient(165deg,
    rgba(72, 115, 131, 0.62) 0%,
    rgba(89, 139, 156, 0.7) 50%,
    rgba(72, 115, 131, 0.65) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 40px rgba(40, 80, 110, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: shopSheetIn 220ms var(--ease-out, cubic-bezier(.22,.9,.28,1));
  /* 八個類別喺 iPhone SE 高度會爆出屏幕頂 —— 頂到就自己捲。 */
  max-height: calc(100dvh - var(--mobile-nav-height, 62px) - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@keyframes shopSheetIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.shop-sheet__item {
  display: block;
  padding: 15px 18px;
  /* 唔要圓角。之前 border-radius: 13px 撞上 border-top，
     條分隔線兩頭會跟住彎，成排睇落似一格格圓角卡片 ——
     desktop 下拉選單係乾淨嘅直線，兩邊統一。 */
  border-radius: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  text-decoration: none;
}
.shop-sheet__item + .shop-sheet__item { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.shop-sheet__item:active { background: rgba(255, 255, 255, 0.14); }

/* 第一同最後一格要跟返面板嘅圓角，否則撳落去嗰浸底色會爆角 */
.shop-sheet__item:first-of-type { border-radius: 13px 13px 0 0; }
.shop-sheet__item:last-child { border-radius: 0 0 13px 13px; }

@media (min-width: 769px) { .shop-sheet { display: none !important; } }

/* ============================================================
   QUICK TABS, ACTIVE FILTER CHIPS, AWARD RIBBON
   Filtering used to live entirely behind one 篩選 button, so you
   could not see what was applied without reopening the drawer.
   ============================================================ */

.quick-tab {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface, #fff);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast), color var(--duration-fast),
              border-color var(--duration-fast);
}
.quick-tab:hover { border-color: var(--primary); color: var(--primary-deep); }
.quick-tab.is-active {
  background: var(--primary-deep, #2e505c);
  border-color: var(--primary-deep, #2e505c);
  color: #fff;
}
.quick-tab__count { font-size: 0.75rem; opacity: 0.6; }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-lg);
}
.active-filters:empty { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary-pale, rgba(109,163,181,0.12));
  color: var(--primary-deep);
  font-size: 0.8125rem;
  cursor: pointer;
}
.filter-chip span { opacity: 0.6; font-size: 0.9375rem; line-height: 1; }
.filter-chip:hover { background: var(--primary); color: #fff; }
.filter-chip:hover span { opacity: 0.9; }
.filter-chip--clear {
  border-style: dashed;
  background: transparent;
  color: var(--text-tertiary);
}

/* 得獎章：黑底金線，直度嘅小印章（闊 : 高 = 3 : 5）。
   兩個極端都試過 —— 上下三行嗰個太大嚿，遮住成張產品相；壓成一條橫帶
   又太扁，睇落似個標籤多過似個獎。呢個係中間落墨：夠位讀到 NO.1 同邊個
   機構頒，但淨係佔張相一個角。黑金係獎項本身嘅語言，擺喺任何產品相上面
   都唔會搶色。位置同心心相反，兩個唔會撞。 */
.award-ribbon {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 62px;
  min-height: 103px;
  padding: 10px 6px;
  border-radius: 9px;
  background: linear-gradient(165deg, #14110d 0%, #241d14 58%, #14110d 100%);
  border: 1px solid rgba(203, 168, 106, 0.5);
  box-shadow: 0 8px 22px rgba(15, 12, 8, 0.4);
  line-height: 1.15;
  text-align: center;
  pointer-events: none;
}
/* 促銷卡相底有黃色優惠帶（28px 高），得獎章升返上帶面，唔好蓋住條帶 */
.product-card__image-wrap:has(.product-card__bundle-band) .award-ribbon { bottom: 38px; }
.award-ribbon__crown { width: 20px; height: 9px; color: #cba86a; }
.award-ribbon__crown svg { width: 100%; height: 100%; display: block; }
/* 實色，唔用漸變字 —— 漸變字細過 12px 會糊，而且係一望就知係「生成」嘅招 */
.award-ribbon__rank {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f6ecd8;
}
.award-ribbon__body {
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  color: rgba(232, 207, 154, 0.78);
}
.award-ribbon__count {
  margin-top: 2px;
  padding-top: 3px;
  width: 100%;
  border-top: 1px solid rgba(203, 168, 106, 0.26);
  font-size: 0.4375rem;
  letter-spacing: 0.06em;
  color: rgba(232, 207, 154, 0.62);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .award-ribbon {
    left: 7px; bottom: 7px;
    width: 46px; min-height: 77px;
    padding: 7px 4px; border-radius: 7px;
  }
  .product-card__image-wrap:has(.product-card__bundle-band) .award-ribbon { bottom: 35px; }
  .award-ribbon__rank { font-size: 0.75rem; }
  .award-ribbon__crown { width: 17px; height: 7px; }
  .award-ribbon__body { font-size: 0.4375rem; }
  .award-ribbon__count { display: none; }
}

/* ============================================================
   AWARDS PAGE
   Black-and-gold, and grouped by product: one lipstick that won
   five times is one card with five lines, not five rows. Ranked
   by how many firsts it holds.
   ============================================================ */
.awards-page {
  --gold: #cba86a;
  --gold-bright: #e8cf9a;
  --gold-deep: #7a5c2e;
  --ink: #12100d;
  padding-top: 0;
  background: var(--bg, #f5f3ee);
}

/* ----- hero ----- */
.awards-hero {
  position: relative;
  overflow: hidden;
  padding: calc(96px + var(--space-4xl, 96px)) 0 0;
  background:
    radial-gradient(120% 90% at 50% -10%, #2a241a 0%, transparent 60%),
    linear-gradient(180deg, #12100d 0%, #1b1712 62%, #221c14 100%);
  color: #f2ece0;
}
.awards-hero__glow {
  position: absolute;
  left: 50%; top: -30%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side,
    rgba(203,168,106,0.26), rgba(203,168,106,0.06) 55%, transparent 72%);
  pointer-events: none;
}
.awards-hero__inner { position: relative; text-align: center; }

.awards-hero__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}
.awards-hero__title {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  margin: 0 0 var(--space-md);
  background: linear-gradient(120deg, #f3e6c8, var(--gold) 42%, #f6ecd6 72%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.awards-hero__desc {
  max-width: 40rem;
  margin: 0 auto var(--space-2xl);
  color: rgba(242,236,224,0.66);
  font-size: 0.9375rem;
  line-height: 1.9;
}

.awards-hero__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(24px, 6vw, 72px);
  padding-bottom: var(--space-3xl, 64px);
}
.awards-stat { display: flex; flex-direction: column; gap: 4px; }
.awards-stat__n {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 300;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
}
.awards-stat__label { font-size: 0.75rem; letter-spacing: 0.2em; color: rgba(242,236,224,0.5); }

/* the row of seals sits on the seam between hero and page */
.awards-hero__crests {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 52px);
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  border-top: 1px solid rgba(203,168,106,0.22);
  background: rgba(0,0,0,0.22);
}
.awards-crest { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 108px; }
.awards-crest .crest { width: 54px; height: 54px; }
.awards-crest__name {
  font-size: 0.6875rem;
  text-align: center;
  color: rgba(242,236,224,0.82);
  line-height: 1.4;
}
.awards-crest__region { font-size: 0.625rem; letter-spacing: 0.14em; color: rgba(203,168,106,0.7); }

.breadcrumb--onlight { margin-top: var(--space-xl); }

/* ----- filters ----- */
.awards-filters {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-lg) 0 var(--space-2xl);
}
.awards-filter-group {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  width: 100%;
  max-width: 100%;
}
.awards-filter-group__label {
  flex: 0 0 4.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.awards-filter-group__options {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.awards-filter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface, #fff);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.8125rem;
  max-width: 100%;
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast),
              color var(--duration-fast);
}
.awards-filter span { font-size: 0.6875rem; opacity: 0.55; }
.awards-filter:hover { border-color: var(--gold); color: var(--gold-deep); }
.awards-filter.is-active {
  background: linear-gradient(120deg, #1b1712, #2a241a);
  border-color: var(--gold-deep);
  color: var(--gold-bright);
}
.awards-filter.is-active span { opacity: 0.75; }

/* ----- section titles ----- */
.awards-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 0 0 var(--space-lg);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-deep);
}
.awards-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(203,168,106,0.5), transparent);
}

/* ----- cards ----- */
.awards-podium { margin-bottom: var(--space-3xl, 64px); }
.awards-podium__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.awards-grid__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.awards-grid { margin-bottom: var(--space-2xl); }

.award-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: var(--surface, #fff);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal), border-color var(--duration-normal);
}
.award-card:hover {
  transform: translateY(-3px);
  border-color: rgba(203,168,106,0.6);
  box-shadow: 0 18px 44px rgba(40,30,10,0.16);
}

/* the podium three get the gold treatment */
.award-card--featured {
  background: linear-gradient(180deg, #17130f 0%, #1f1a13 100%);
  border-color: rgba(203,168,106,0.42);
}
.award-card--featured .award-card__title { color: #f4ecdc; }
.award-card--featured .award-card__brand { color: rgba(203,168,106,0.85); }
.award-card--featured .award-card__price { color: rgba(242,236,224,0.72); }
.award-card--featured .award-line { border-color: rgba(203,168,106,0.16); }
.award-card--featured .award-line__year { color: rgba(242,236,224,0.5); }
.award-card--featured .award-line__text b { color: #efe3ca; }
.award-card--featured .award-line__text span { color: rgba(242,236,224,0.55); }

.award-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-alt, #f4f2ec);
}
.award-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.award-card__seal {
  position: absolute;
  right: 12px; top: 12px;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold) 48%, var(--gold-deep));
  color: #17130f;
  box-shadow: 0 6px 18px rgba(40,30,10,0.3);
  line-height: 1;
}
.award-card__seal-n { font-size: 1.125rem; font-weight: 600; }
.award-card__seal-label { font-size: 0.5rem; letter-spacing: 0.1em; }

.award-card__first {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(23,19,15,0.86);
  border: 1px solid rgba(203,168,106,0.55);
  color: var(--gold-bright);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
}

.award-card__body { display: flex; flex-direction: column; gap: 8px; padding: var(--space-lg); }
.award-card__brand {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.award-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
}
.award-card__price { margin-top: auto; padding-top: 4px; color: var(--text-secondary); font-size: 0.875rem; }

.award-card__lines { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.award-line {
  display: grid;
  grid-template-columns: 22px 38px 1fr;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
}
.award-line:first-child { border-top: 0; }
.award-line__medal {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.6875rem;
  background: rgba(203,168,106,0.16);
  color: var(--gold-deep);
}
.award-line__year { font-size: 0.75rem; color: var(--text-tertiary); letter-spacing: 0.04em; }
.award-line__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.award-line__text b { font-size: 0.75rem; font-weight: 500; color: var(--text-primary); }
.award-line__text span { font-size: 0.6875rem; color: var(--text-tertiary); }

.awards-note {
  margin: var(--space-xl) 0 var(--space-4xl);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.9;
}

@media (max-width: 900px) {
  .awards-podium__row { grid-template-columns: 1fr; }
  .awards-grid__row { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 600px) {
  .awards-hero { padding-top: calc(72px + var(--space-2xl)); }
  .awards-hero__stats { gap: 20px 34px; }
  .awards-crest { width: 84px; }
  .awards-crest .crest { width: 44px; height: 44px; }
  .awards-grid__row { grid-template-columns: 1fr; }
  .awards-filter-group { align-items: flex-start; flex-direction: column; gap: 6px; }
  .awards-filter-group__label { flex-basis: auto; }
  .awards-filter-group__options { width: 100%; }
}

/* ============================================================
   MAKEUP MATCHER
   One question at a time — a seven-field form gets abandoned,
   and the answers only matter if people finish.
   ============================================================ */
.match-page { padding-top: 0; }

.match-progress { display: flex; gap: 6px; margin-bottom: var(--space-xl); }
.match-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border-subtle);
  transition: background var(--duration-normal);
}
.match-progress span.is-done { background: var(--primary); }

.match-step { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--text-tertiary); margin: 0; }
.match-q {
  margin: 6px 0 4px;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 400;
  color: var(--text-primary);
}
.match-hint { margin: 0 0 var(--space-xl); font-size: 0.8125rem; color: var(--text-tertiary); }

.match-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.match-options--coverage,
.match-options--wear { grid-template-columns: repeat(3, 1fr); }

.match-option {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  text-align: left;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-subtle);
  background: var(--surface, #fff);
  font: inherit;
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast),
              transform var(--duration-fast);
}
.match-option:hover { border-color: var(--primary); transform: translateY(-1px); }
.match-option.is-on {
  border-color: var(--primary-deep);
  background: var(--primary-pale, rgba(109,163,181,0.10));
  box-shadow: inset 0 0 0 1px var(--primary-deep);
}
.match-option__label { font-size: 0.9375rem; color: var(--text-primary); }
.match-option__desc { font-size: 0.75rem; color: var(--text-tertiary); line-height: 1.7; }

.match-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* ----- the face ----- */
.face-head { text-align: center; margin-bottom: var(--space-2xl); }
.face-head__eyebrow {
  font-size: 0.6875rem; letter-spacing: 0.28em; color: var(--primary);
}
.face-head__title {
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.face-head__desc { margin: 0 auto; max-width: 30rem; color: var(--text-secondary); font-size: 0.875rem; line-height: 1.9; }
.face-head__tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: var(--space-md); }
.face-head__tags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-pale, rgba(109,163,181,0.12));
  color: var(--primary-deep);
  font-size: 0.75rem;
}

.face-list { display: flex; flex-direction: column; gap: 10px; }

.face-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--space-md);
  padding: 12px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-subtle);
  background: var(--surface, #fff);
}
.face-item__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  background: var(--surface-alt, #f4f2ec);
  display: block;
}
.face-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.face-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.face-item__slot {
  font-size: 0.625rem; letter-spacing: 0.18em; color: var(--primary);
}
.face-item__title { color: var(--text-primary); font-size: 0.9375rem; text-decoration: none; }
.face-item__title:hover { color: var(--primary-deep); }
.face-item__brand { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }

.face-item__why { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 4px 0 0; padding: 0; }
.face-item__why li {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-alt, #f4f2ec);
  color: var(--text-secondary);
  font-size: 0.6875rem;
}

.face-item__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm); margin-top: auto; padding-top: 8px;
}
.face-item__price { color: var(--text-primary); font-size: 0.9375rem; }
.face-item__swap {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font: inherit; font-size: 0.75rem; cursor: pointer;
}
.face-item__swap span { opacity: 0.55; font-size: 0.6875rem; }
.face-item__swap:hover { border-color: var(--primary); color: var(--primary-deep); }

.face-total {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md);
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(120deg, var(--primary-pale, rgba(109,163,181,0.12)), transparent);
  border: 1px solid var(--border-subtle);
}
.face-total__label { display: block; font-size: 0.75rem; color: var(--text-tertiary); }
.face-total__price { font-size: 1.5rem; font-weight: 300; color: var(--text-primary); }
.face-total__actions { display: flex; gap: 10px; }

.face-note {
  margin: var(--space-lg) 0 0;
  font-size: 0.75rem;
  line-height: 1.9;
  color: var(--text-tertiary);
}

@media (max-width: 600px) {
  .match-options, .match-options--coverage, .match-options--wear { grid-template-columns: 1fr; }
  .face-item { grid-template-columns: 84px 1fr; }
  .face-total { flex-direction: column; align-items: stretch; }
  .face-total__actions { justify-content: stretch; }
  .face-total__actions .btn { flex: 1; }
}

.face-warning {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md, 12px);
  border: 1px solid rgba(198,124,78,0.35);
  background: rgba(198,124,78,0.07);
}
.face-warning p { margin: 0; font-size: 0.8125rem; line-height: 1.95; color: var(--text-secondary); }
.face-warning b { color: var(--text-primary); }
.face-strict { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; cursor: pointer; }
.face-strict span { font-size: 0.8125rem; color: var(--text-primary); }

/* The brand's own logo, knocked out white on the scrim. Most of the marks
   we hold are single-colour SVGs, so a brightness/invert filter gives a
   clean white version without keeping a second file per brand. */
.brand-section__logo {
  display: block;
  height: clamp(26px, 3.4vw, 40px);
  width: auto;
  max-width: min(320px, 52vw);
  object-fit: contain;
  object-position: left center;
  margin-bottom: 10px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}
.brand-section__head:not(.brand-section__head--art) .brand-section__logo {
  filter: none;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 768px) {
  .brand-section__head--art { min-height: 190px; }
  .brand-section__logo { height: 24px; margin-bottom: 8px; }
}

/* ============================================================
   HOMEPAGE — awards strip and matcher entry
   These replaced a hard-coded "Best Sellers" grid of brands we
   do not carry, and three sections of manifesto copy.
   ============================================================ */

/* ----- matcher entry ----- */
/* 妝感配對格 —— 直接攞 /match 個 stage 拉矮，唔另外設計一套。
   三格由左到右填滿：文字＋色板疊喺左、模特兒中、揀明星右 —— 冇空位。
   色值全部跟返 match 頁：暖啡近黑底、象牙白襯線標題（#f1e5da）、
   玫瑰標籤 #d6aaa4、相簿卡 rgba(22,18,17,.58)、揀中邊 #e08b98、
   主掣 #b9606e 配 #df959f 邊。
   成個 section 全寬、冇圓角、冇外邊 —— 喺米色頁上面浮一張深色卡會似廣告 banner。
   遮幕喺模特兒嗰段係完全透明：張相要保持清，唔可以焗一層黑落去。 */
/* 容器唔准設 z-index —— 一設就開咗新 stacking context，
   模特兒（z-index 1）會爬到 scrim（2）同啲字上面。改成逐件內容自己抬高。 */
/* 模特兒佔中間格，上下衝出格線、左右溢出去貼實隔籬兩格，所以唔會留空位。 */
/* 遮幕：左邊壓黑俾字企，模特兒嗰段（48–72%）完全唔壓，右邊再壓返俾相簿卡企。
   之前 46–74% 有 .16–.62 黑，令張相灰晒 —— 唔可以咁。 */
/* Face chart 擺喺文字下面，四塊橫排。色板顏色係真數據（推薦產品嘅實際色號
   計出嚟）；四段描述唔擺 —— 嗰啲係入去嘅理由。 */
/* 塗抹圖案唔准裁：遮罩原檔係 546×395，所以個格要跟返嗰個比例，
   再用 mask-size: contain 完整放晒。之前寫死 height:46px ＋ 116% auto，
   等於將 77px 高嘅圖案塞入 46px 格，上下切走咗 —— 睇落好似個四方框。 */
/* 相簿只露頭幾行，底部淡出 —— 首頁唔 show 晒，入去先見到全部 27 個 */
@media (max-width: 600px) {
  /* 手機：相簿卡收埋 —— 44px 頭像喺 375px 闊度認唔出邊個，擺出嚟等於白佔位。
     排版由「左字右相」轉做海報式：上半留返俾張相，字壓喺下半。
     唔咁做嘅話啲字會蓋住成塊面，剩返一個黑盒（實測）。 */
  /* 手機：三欄變海報 —— 上半留返俾張相，字壓下半，相簿卡收埋
     （44px 頭像喺 375px 認唔出邊個）。色板轉橫排。 */
  /* 手機：三格變海報 —— 上面擺成張相（唔准裁到剩返半塊面），字排喺下面，
     相簿卡收埋（46px 頭像喺 375px 認唔出邊個）。色板照樣橫排四塊。
     張相 92% 闊、高度自動 → 375px 機約 437px 高，塊面喺 87–253px，
     文字由 340px 先開始，所以成個樣貌都見到，唔會被字斬開。 */
  /* 遮幕：塊面嗰段（0–46%）唔壓，落到肩膊先開始壓黑俾字企 */
}

/* ============================================================
   BRAND BANNER — split plate
   The logo used to be laid over the campaign photo, so it sat on
   whatever the crop left and half the brands read as unlabelled.
   It gets its own panel now, in the brand's own colour.
   ============================================================ */
/* ============================================================
   BRAND PLATE
   A colour field, the brand's own logo, and its name. Photography
   was tried twice: nineteen brands shoot nineteen ways, half burn
   their own wordmark into the frame, and nine publish nothing
   wider than a square. A plate cannot crop and cannot clash.
   ============================================================ */
.brand-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 172px;
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg, 16px);
  background: var(--plate, #eeeae3);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Height is set per brand from measured ink area — see BRAND_LOGO_H. */
.brand-plate__logo {
  display: block;
  width: auto;
  /* No width cap: the height is what carries the optical sizing, and the
     SVG boxes are mostly padding — capping width clamped six of them and
     undid the equalisation. */
  max-width: min(520px, 86vw);
  object-fit: contain;
}
.brand-plate.is-dark .brand-plate__logo { filter: brightness(0) invert(1); }

.brand-plate__wordmark {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}
.brand-plate.is-dark .brand-plate__wordmark { color: #fff; }

/* 角色橫幅：插畫 3:1，右邊角色、左邊淨色位。高度加高（240／150）等角色睇得清楚，
   圖按高度等比靠右，左邊由 --plate 底色接上，牌名靠左放喺淨色位。 */
.brand-plate.has-banner {
  align-items: flex-start;
  height: 240px;
  --banner-w: 720px; /* 圖 3:1，按高度鋪 → 闊 = 3 × 高 */
  /* 圖左邊 160px 用底色漸變蓋住，令圖同純色底接駁無縫（唔留色差線）。 */
  background-image:
    linear-gradient(90deg, var(--plate) calc(100% - var(--banner-w)),
                    transparent calc(100% - var(--banner-w) + 160px)),
    var(--plate-banner);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  padding-left: clamp(24px, 6vw, 72px);
}
/* 牌名／logo 直接融入橫幅：logo 已處理成透明底（Chiikawa 粉紅字、Sanrio 去白邊），
   冇底板，只加一層好淡嘅白色光暈保證喺插畫邊緣仍然睇得清。
   闊度封頂橫幅 44%，唔會蓋住右邊嘅角色。行內 height 由 JS 按牌子寫入，呢度要壓住。 */
.brand-plate.has-banner .brand-plate__logo,
.brand-plate.has-banner .brand-plate__wordmark {
  box-sizing: border-box;
  max-width: min(340px, 44%);
}
.brand-plate.has-banner .brand-plate__logo {
  height: auto !important;
  width: auto;
  max-height: 80px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}
.brand-plate.has-banner .brand-plate__wordmark {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .brand-plate.has-banner { height: 150px; --banner-w: 450px; padding-left: 20px; }
  .brand-plate.has-banner .brand-plate__logo { max-height: 52px; }
  .brand-plate.has-banner .brand-plate__wordmark { font-size: 1.05rem; letter-spacing: 0.04em; }
}

/* `.brand-plate__name`（logo 下面嗰行細英文字）2026-09-02 拆咗 ——
   老闆：「有個 logo，你又有個英文名，其實唔需要咁多，全部就係得 logo。」
   Logo 本身已經寫住個牌子名，多一行等於講兩次，而且喺矮嘅牌上面會撞埋。
   冇 logo 嘅牌子行 `.brand-plate__wordmark`，一個名，唔會重複。 */

@media (max-width: 768px) {
  .brand-plate { height: 128px; gap: 10px; margin-bottom: var(--space-lg); }
  /* Scale every mark by the same factor so they stay equal to each other. */
  .brand-plate__logo { transform: scale(0.74); }
}

/* Sold-out cards occupy the same grid cells as available products. */
.product-card--sold-out .product-card__image { opacity: .58; filter: saturate(.35); }
.product-card--sold-out .lc__body { opacity: .66; }
.product-card--sold-out .lc__pick--restock { color: #607985; }
.product-card--sold-out .product-card__badge--sold-out { opacity: 1; }

/* ─────────────────────────────────────────────
   成分同單價標籤
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   成分說明
   ───────────────────────────────────────────── */

/* Small enough to stay out of the way of the chip it sits in, with a tap
   target that reaches past the dot so a thumb can hit it. */
.ing-what {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-left: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: currentColor;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  -webkit-text-fill-color: #fff;
  color: inherit;
}
.ing-what::before {
  content: '';
  position: absolute;
  inset: -9px;
}

.ing-sheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20,17,15,0.34);
  backdrop-filter: blur(2px);
  animation: ingFade 180ms ease-out;
}
.ing-sheet__box {
  position: relative;
  width: min(460px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-xl, 28px);
  border-radius: 22px 22px 0 0;
  background: var(--surface, #fff);
  animation: ingRise 240ms cubic-bezier(.22,.9,.28,1);
}
@media (min-width: 768px) {
  .ing-sheet { align-items: center; }
  .ing-sheet__box { border-radius: 22px; }
}
.ing-sheet__box h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 12px;
}
.ing-sheet__box p {
  font-size: 0.875rem;
  line-height: 1.75;
  margin: 0 0 14px;
  color: var(--text-secondary, #6f6a63);
}
.ing-sheet__box p strong { color: var(--text-primary, #2c2926); }
.ing-sheet__box small {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--border-light, #eee);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--text-tertiary, #9a9a9a);
}
.ing-sheet__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--text-tertiary, #9a9a9a);
  cursor: pointer;
}

@keyframes ingFade { from { opacity: 0; } }
@keyframes ingRise { from { transform: translateY(24px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ing-sheet, .ing-sheet__box { animation: none; }
}

/* ─────────────────────────────────────────────
   隱形眼鏡度數
   ───────────────────────────────────────────── */




















/* ─────────────────────────────────────────────
   首頁：分類圓圈 + 逐類捲軸
   ───────────────────────────────────────────── */

/* Circles rather than tiles. The tiles were four big cards carrying stock
   photography and invented brand counts; they ate most of a screen to say
   less than a line of text. A circle each, scrolled sideways, fits eleven
   categories in the space two cards used. */
/* The section wrapping this keeps a full section's padding, which left a
   screen of nothing under a 130px-tall row. */
/* 分類卡：一行可以橫掃嘅卡牌。
   本來係 78px 嘅細圓形 —— 張相入面睇到嘅嘢太細，十一個細圓排埋
   一齊似一串頭像多過似入口。卡有相有名有件數，撳落去有反應。
   上下嘅留白亦都收窄咗：一行 200px 高嘅卡，上下各留成個 section
   嘅 padding，變咗成屏都係白位。 */
.section--sm:has(.cat-cards) {
  padding-top: var(--space-lg, 20px);
  padding-bottom: var(--space-md, 16px);
}
/* 標題行：標題、韓文小字、件數靠右，一行搞掂。
   本來係居中一個「產品分類」—— 一條淨係向右掃嘅 rail 上面放個居中標題，
   同下面第一張卡永遠對唔上。左對齊之後兩者同一條垂直線起。 */

.cat-cards {
  display: flex;
  gap: var(--space-md, 16px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--space-md, 16px);
  padding: 6px var(--space-md, 16px) var(--space-md, 16px);
  /* 本來仲有 margin-inline: -16px，令第一張卡貼實螢幕邊，
     當時嘅理由係「貼到邊睇落仲有得掃」。陶瓷相框有 24px 圓角同
     一道外影，貼邊就會俾螢幕切走半隻角，似崩咗多過似掃得。
     右邊嗰張卡照樣露一截，「仲有得掃」呢個訊號一樣收到。 */
}
.cat-cards::-webkit-scrollbar { display: none; }

/* 由頭到尾都係一行、向右掃。
   之前為咗解決「唔置中」試過摺兩行 —— 錯咗，摺行就唔再係滾輪。
   真正嘅問題係成條 rail 本身唔置中：佢由容器左邊開始，然後一路
   衝出螢幕右邊。而家用 fit-content ＋ margin auto，成條 rail
   當作一嚿嘢擺喺正中；塞唔落就喺 rail 入面掃，唔係摺落去。 */
@media (min-width: 1024px) {
  .cat-cards {
    flex-wrap: nowrap;
    width: fit-content;
    max-width: min(100%, var(--max-width));
    margin-inline: auto;
    padding-inline: var(--space-2xl);
    scroll-padding-inline-start: var(--space-2xl);
  }
}

/* 陶瓷（세라믹）：張卡本身冇底冇框，質感全部落喺相框上 ——
   大圓角、外面一道柔影、對面一道白光、入面再收一收。
   韓國 2026 嘅質感做法，同我哋本身嘅灰藍夾得返，
   亦都避返「白色圓角卡 ＋ 一層陰影」嗰種到處都係嘅樣。 */
.cat-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
  display: block;
  width: 158px;
  background: none;
  text-decoration: none;
  color: inherit;
  transition: transform 260ms var(--ease-out, ease);
  will-change: transform;
}

.cat-card__shot {
  display: block;
  aspect-ratio: 4 / 5;
  background: #dbe3e4;
  overflow: hidden;
  border-radius: 24px;
  /* 一道影就夠。原本仲有一道白光打對面同兩道 inset ——
     嗰套 neumorphism 喺實色方塊上面先成立，貼住一張相就變咗
     相邊浮出一圈白霧，似 render 錯咗多過似有質感。 */
  box-shadow: 0 12px 24px -8px rgba(58, 74, 80, 0.28);
  transition: box-shadow 300ms var(--ease-out, ease);
}
.cat-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 420ms var(--ease-out, ease);
}

/* 相框已經夠圓夠柔，下面再包一個白色 body 就會變返「普通卡」。 */
.cat-card__body {
  display: block;
  padding: 11px 4px 0;
}
.cat-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.cat-card:hover,
.cat-card:focus-visible { transform: translateY(-3px); }
.cat-card:hover .cat-card__shot,
.cat-card:focus-visible .cat-card__shot {
  box-shadow: 0 18px 32px -10px rgba(58, 74, 80, 0.34);
}
.cat-card:hover .cat-card__shot img,
.cat-card:focus-visible .cat-card__shot img { transform: scale(1.06); }
.cat-card:active { transform: translateY(-1px); }

@media (max-width: 480px) {
  .cat-card { width: 136px; }
  .cat-card__shot { border-radius: 19px; }
  .cat-card__name { font-size: 1.0625rem; }
}

/* 慢機唔好逐張卡做位移同放大 —— 呢啲係一路掃一路做，最食效能 */
html.is-lite .cat-card,
html.is-lite .cat-card__shot,
html.is-lite .cat-card__shot img { transition: none; }
html.is-lite .cat-card:hover { transform: none; }
html.is-lite .cat-card:hover .cat-card__shot img { transform: none; }
/* 慢機唔好一路掃一路重畫陰影 */
html.is-lite .cat-card:hover .cat-card__shot {
  box-shadow: 0 12px 24px -8px rgba(58, 74, 80, 0.28);
}

/* One row per category, swiped sideways. */

.home-rail__track {
  display: flex;
  gap: var(--space-md, 16px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--space-md, 16px);
  padding: 2px var(--space-md, 16px) var(--space-sm, 10px);
  margin-inline: calc(var(--space-md, 16px) * -1);
}
.home-rail__track::-webkit-scrollbar { display: none; }
/* 同 .cat-cards 一樣嘅毛病：舊寫法用 padding-inline: max(…100vw…)，
   令一行貨由 container 左邊起、一路衝出螢幕右邊 —— 標題喺正中，貨行右飄。
   但呢行有十幾件貨，摺行會變成好幾行，所以保持橫掃，
   改為將捲軸本身收返 container 闊度再置中：左右邊界同標題對齊，入面照掃。 */
@media (min-width: 1024px) {
  .home-rail__track {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-2xl);
    scroll-padding-inline-start: var(--space-2xl);
  }
}
.home-rail__track .product-card {
  flex: 0 0 auto;
  width: 172px;
  scroll-snap-align: start;
}
@media (min-width: 768px) { .home-rail__track .product-card { width: 210px; } }

/* The end of the row is a door, not a dead stop. */

/* The sheet grew from three lines to five, so it needs a handle and a
   little more room to read as a sheet rather than a dropdown. */
.shop-sheet__grip {
  display: block;
  width: 38px;
  height: 4px;
  margin: 10px auto 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}
.shop-sheet__item {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 2px;
  padding: 13px 18px;
}
.shop-sheet__label { font-size: 0.9375rem; }
.shop-sheet__note {
  grid-column: 1;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
}
.shop-sheet__chev {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
}
.shop-sheet__item--all .shop-sheet__label { font-weight: 600; }











/* 非 5 分制來源（@cosme 7 分制）喺分數後面細細隻字寫「/7」 */
.rating-max { margin-left: 1px; font-size: 0.72em; font-weight: 400; color: var(--text-secondary, inherit); letter-spacing: 0; }


/* 星 —— 一行灰底，一行金色裁到百分比，半星就唔使另外整圖 */
.stars { position: relative; display: inline-block; white-space: nowrap;
  letter-spacing: 2px; line-height: 1; font-size: 0.95rem; }
.stars__row--bg { color: var(--gray-300); }
.stars__fill { position: absolute; inset: 0; overflow: hidden; }
.stars__row--fg { color: #e8a13a; }










































/* 產品卡上面嗰行細星 */
.card-rating { display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.card-rating .stars { font-size: 0.7rem; letter-spacing: 1px; }
.card-rating b { font-size: 0.75rem; font-weight: 500; color: var(--text-primary); }
.card-rating span { font-size: 0.6875rem; color: var(--text-tertiary); }



/* ----- 全部產品 mega menu -----
 *
 * 頂欄本來排住十二條連結，喺一般手提電腦闊度會斷行，而且係喺字中間
 * 斷（「隱形眼／鏡」）。分類全部收埋入呢一格，頂欄淨返五條。
 */
.header__nav-item--mega { position: relative; }

/* 面板本身。
   第一版係淺色半透明（rgba(210,230,240,0.62)）加大量 blur。喺深色首頁
   幾靚，但面板一蓋落產品格上面就散晒 —— 後面啲產品相透上嚟，「潔面」
   兩隻字疊住一舊眼影盤。所以而家跟返手機抽屜嗰套：同一個藍綠色系，
   但**幾乎全不透明**（0.97），無論背後係咩都讀得到。 */
.header__mega {
  position: absolute;
  top: 100%;
  /* 靠左對齊觸發嗰個連結，唔好置中 —— 「全部產品」係頂欄最左，
     置中會令面板一半跌出螢幕外。 */
  left: 0;
  transform: translateY(4px);
  display: flex;
  flex-direction: column;
  width: min(944px, 90vw);
  /* 展開晒全部分類會長過螢幕，畀佢自己捲。桌面雙欄約 630px 高。 */
  max-height: min(86vh, 700px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 32px 16px;
  margin-top: 10px;
  border-radius: 24px;
  /* 藍玻璃，但**冇**手機抽屜咁通透。本來同抽屜一樣 0.62–0.7，換咗花花
     貼紙 hero 之後「OUJI STICKER CLUB」嗰堆大字透晒上嚟同選單啲字爭，
     讀唔到。老闆 2026-08-19：淨係調桌面呢個，唔好做實色，手機抽屜維持
     原樣。所以呢度收到 0.92 —— 仲見到後面嘅顏色同 blur，但唔會再撈亂。 */
  /* 2026-10-15 Winston：跟手機 OUJI / INDEX 選單嘅淺藍玻璃、無襯線字同編號行。
     手機用 0.74；桌面背後係產品格同 hero 大字，0.9 都仲透到黑字，收到 0.95。 */
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
    rgba(109, 163, 181, 0.95);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 18px 50px rgba(34, 70, 84, 0.22);
  counter-reset: mega-row;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal);
  z-index: 100;
}

/* 連結同面板之間有 10px 空白，唔補住就係滑鼠一行落去就收埋。
   條橋本來做喺 .header__mega::before（面板自己上面），但面板加咗
   `overflow-y: auto` 之後，任何伸出面板範圍嘅嘢都會被剪走 —— 包括條橋。
   所以搬去父層做，父層冇 overflow，剪唔到。

   平時 pointer-events: none，唔好無端擋住下面啲嘢；淨係喺選單開住
   嗰陣先接管滑鼠。 */
.header__nav-item--mega::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: min(944px, 90vw);
  height: 16px;
  pointer-events: none;
}
.header__nav-item--mega:hover::after,
.header__nav-item--mega:focus-within::after { pointer-events: auto; }

.header__nav-item--mega:hover .header__mega,
.header__nav-item--mega:focus-within .header__mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 雜誌目錄排版（Winston 2026-10-16：「簡單、簡潔嘅選單，但要有雜誌嘅品牌感」，唔要任何圖）：
   刊頭細字 → 一條細線 → 斜體襯線編號嘅分類 → 底部品牌口號。
   （2026-10-17 Winston 叫拎走「Index 全部產品」大標題，雙線改返一條。）
   刊頭同底部由 script.js initMegaMenu 加；芝麻已拎走（擺喺選單「好奇怪」）。
   面板係直向 flex，展開彩妝超高時會壓扁呢幾行，所以全部 flex: none。 */
.header__mega-masthead {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
  font: 500 11px/1 var(--font-body);
  letter-spacing: 0.18em;
}
.header__mega-rule {
  flex: none;
  margin: 14px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
}
.header__mega-colophon {
  flex: none;
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
  font: 500 11px/1 var(--font-body);
  letter-spacing: 0.18em;
}
/* 2026-11-16 Winston 批：桌面「全部產品」改雜誌目錄雙欄（左索引 11 行、右邊細類）。
   設計真源：ouji-desktop-mega-preview/desktop-mega.html。面板 944px，.header__mega-body 288px + 1fr。
   .header__nav a 嗰組全域規則（細字、大寫、底線條）用 .header__nav .header__mega 提高優先度蓋過去。
   下面 .header__mega-row／-group／-sub 舊規則只留畀 JS 未行時嘅 HTML 後備。 */
.header__nav .header__mega a {
  display: block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  text-decoration: none;
  transition: color 0.15s;
}
.header__nav .header__mega a::after { display: none; }
.header__nav .header__mega a:hover { color: #fff; }
.header__mega-body {
  flex: none;
  display: grid;
  grid-template-columns: 288px 1fr;
  min-height: 552px;
}
.header__mega-index { list-style: none; margin: 0; padding: 0 24px 0 0; border-right: 1px solid rgba(255, 255, 255, 0.28); }
.header__nav .header__mega-index a {
  display: grid;
  grid-template-columns: 48px 1fr 16px;
  align-items: center;
  height: 48px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.header__mega-index li:last-child a { border-bottom: 0; }
.header__mega-idx-n { font: italic 400 18px/1 var(--font-display); color: rgba(255, 255, 255, 0.6); }
.header__mega-idx-arr { opacity: 0; transform: translateX(-4px); transition: opacity 0.15s, transform 0.15s; }
.header__nav .header__mega-index a:hover,
.header__nav .header__mega-index a.is-active { color: #fff; }
.header__nav .header__mega-index a:hover .header__mega-idx-arr,
.header__nav .header__mega-index a.is-active .header__mega-idx-arr { opacity: 1; transform: none; }
.header__nav .header__mega-index a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 6px; }
.header__mega-pane { position: relative; display: grid; align-content: start; gap: 24px; padding: 24px 0 0 48px; }
.header__mega-pane-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.header__mega-pane-title { display: flex; align-items: baseline; gap: 16px; }
.header__mega-pane-title b { font-size: 24px; font-weight: 700; letter-spacing: 0.06em; color: #fff; }
.header__mega-pane-title i { font: italic 400 24px/1 var(--font-display); color: rgba(255, 255, 255, 0.72); }
.header__nav .header__mega .header__mega-all {
  padding: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.header__mega-cols { display: grid; gap: 8px 32px; }
.header__mega-cols--flat { grid-template-columns: repeat(3, 1fr); }
.header__mega-cols--group { grid-template-columns: repeat(4, 1fr); align-items: start; }
.header__mega-cols--two { grid-template-columns: repeat(2, 1fr); }
.header__mega-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.header__mega-split .header__mega-cols { gap: 0 32px; }
.header__mega-grp { display: grid; gap: 4px; align-content: start; }
.header__mega-grp--concern { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.header__mega-grp h4 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.72);
}
.header__nav .header__mega h4 a { padding: 0; font: inherit; letter-spacing: inherit; color: inherit; }
.header__nav .header__mega h4 a:hover { color: inherit; text-decoration: none; }
.header__nav .header__mega-cols a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.header__mega-direct { display: grid; gap: 16px; justify-items: start; padding-top: 48px; }
.header__mega-big-n { font: italic 400 96px/0.9 var(--font-display); color: rgba(255, 255, 255, 0.4); }
.header__mega-direct h3 { margin: 0; font-size: 36px; font-weight: 700; letter-spacing: 0.08em; color: #fff; }
.header__mega-en { font: italic 400 24px/1.2 var(--font-display); color: rgba(255, 255, 255, 0.72); }
.header__nav .header__mega .header__mega-go { margin-top: 16px; }
/* 芝麻貼圖：右下角 168px；護膚／沐浴季節嗰版放「按類別」下面靠右，128px */
.header__mega-shima { position: absolute; right: 0; bottom: 0; width: 168px; height: auto; pointer-events: none; animation: header-mega-shima-in 0.35s ease-out both; }
.header__mega-shima--inline { position: static; justify-self: end; width: 128px; margin-top: 16px; }
@keyframes header-mega-shima-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .header__mega-shima { animation: none; } }

.header__mega-group { display: flex; flex-direction: column; counter-increment: mega-row; }

.header__mega-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  min-height: 41px;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: none;
  font: 500 16px/1.35 var(--font-body);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
  transition: color var(--duration-fast);
}
.header__mega-row:hover { color: white; }
.header__mega-row::after { display: none !important; }
/* 編號：01、02… 用斜體襯線，似雜誌目錄頁碼；指住嗰行編號變白、分類名向右移少少 */
.header__mega-row::before {
  content: counter(mega-row, decimal-leading-zero);
  flex: none;
  width: 30px;
  color: rgba(255, 255, 255, 0.62);
  font: italic 400 15px/1 var(--font-display);
  letter-spacing: 0;
  transition: color var(--duration-fast);
}
.header__mega-row:hover::before { color: #fff; }
.header__mega-row > span { flex: 1 1 auto; min-width: 0; transition: transform 0.22s var(--ease-out); }
.header__mega-row:hover > span,
.header__mega-row[aria-expanded="true"] > span { transform: translateX(6px); }

/* 隱形眼鏡、K-pop 周邊 —— 項目太少，摺埋淨係多一下手續。成行就係連結。
   要一堆 !important 係因為 .header__nav a 嗰組規則（頂欄用嘅細字、
   大寫、深色）會蓋過嚟。 */
a.header__mega-row--link {
  display: flex !important;
  text-decoration: none;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  padding: 8px 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
}
a.header__mega-row--link:hover { color: white !important; }

.header__mega-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
  transition: transform var(--duration-normal) var(--ease-out),
              color var(--duration-fast);
}
.header__mega-row[aria-expanded="true"] { color: white; }
.header__mega-row[aria-expanded="true"] .header__mega-chevron {
  transform: rotate(-180deg);
  color: white;
}

.header__mega-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-out);
}
.header__mega-group.is-open .header__mega-sub { max-height: 1200px; }

.header__mega-sub > a {
  display: block !important;
  font-family: var(--font-body) !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  padding: 8px 0 8px 36px !important; /* 對齊分類名（編號 30px＋間距 6px） */
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  border-bottom: 0;
}
.header__mega-sub > a::after { display: none !important; }
.header__mega-sub > a:hover { color: white !important; }

.header__mega-sub > a.header__mega-subheading {
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #fff !important;
  padding-top: 12px !important;
  padding-bottom: 6px !important;
  border-bottom: 0;
}
.header__mega-sub > a.header__mega-subitem {
  padding-left: 48px !important;
  font-size: 0.8125rem !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

/* ============================================
   慢機模式 (html.is-lite)

   由 script.js 開：核心數／記憶體偏低，或者開頭兩秒實測
   畫面唔夠 40fps，就會加呢個 class。目標係碌版順，
   唔係好睇 —— 所以熄嘅係「郁緊嘅嘢」同「毛玻璃」，
   排版、顏色、字體一律唔動。
   ============================================ */

/* backdrop-filter 係最貴嗰樣：每次碌版都要將背後嗰浸嘢
   重新模糊一次。全站熄咗，再逐個補返夠深嘅底色。 */
html.is-lite *,
html.is-lite *::before,
html.is-lite *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.is-lite .header.is-scrolled { background: var(--bg-primary); }
html.is-lite .mobile-nav { background: rgba(78, 122, 138, 0.94); }
/* 手機選單（OUJI / INDEX）慢機都保留玻璃：打開時背後頁面鎖住唔碌，
   模糊只計一次，唔會卡。所以唔跟上面全站熄 backdrop-filter。 */
html.is-lite .mobile-nav.mobile-nav--cat {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
    rgba(86, 140, 160, 0.84);
  backdrop-filter: blur(22px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.25) !important;
}
/* 之前呢度寫住深色，所以同一個選單喺慢機上面會變深 —— 老闆見到嘅
   「有時深色有時淺色」就係呢個。三個玻璃面板而家用同一隻藍，
   慢機淨係唔模糊，唔會轉色。 */
html.is-lite .header__mega { background: rgba(109, 163, 181, 0.96); }
html.is-lite .filter-sidebar { background: #ffffff; }
html.is-lite .shop-sheet__panel { background: rgba(78, 122, 138, 0.94); }

/* 一路喺度轉／飄嘅裝飾。慢機上面佢哋唔會靚，只會卡。 */
html.is-lite .brand-marquees__video,
html.is-lite .particles { display: none !important; }

/* 大範圍模糊光暈 —— 呢啲最貴：成塊區域每 frame 重新模糊一次。
   品牌簡介嗰兩浸極光加埋 22 秒同 28 秒動畫，係碌版卡嘅主因之一。 */
html.is-lite .section--brand-intro::before,
html.is-lite .section--brand-intro::after {
  animation: none !important;
  filter: none !important;
  opacity: 0.5;
}

/* 慢機唔好再加一層跑馬燈動畫落去 */
@media (prefers-reduced-motion: reduce) {
  .brand-marquee__track { animation: none !important; }
}

/* ============================================
   產品字體：英文 Manrope × 中文系統字（蘋方／正黑體）

   一度試過將產品名同價錢都轉襯線，老闆覺得唔啱，改用呢套。
   襯線淨係留返畀大標題（--font-display）。

   產品名／品牌 = Regular 400、Medium 500
   價錢         = SemiBold 600（數字要跳出嚟，但唔好粗到似特價牌）
   ============================================ */
.product-card__brand {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.product-card__name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
}

.product-card__price {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}











/* ----- 2026 開業 88 折：產品價格層級 -----
   暖磚紅只用喺優惠價，原價保持安靜；唔用斜線，避免睇落似停售。
   折後價係整數約價，真正收費仍由 Shopify 結帳計算。 */
.ouji-promo-price {
  font-variant-numeric: tabular-nums;
}

.ouji-promo-price--detail {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}

.ouji-promo-price__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(151, 51, 33, 0.18);
  border-radius: 5px;
  background: rgba(200, 69, 47, 0.09);
  color: #8f301f;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.ouji-promo-price__badge b {
  font-size: 0.8125rem;
  font-weight: 750;
}

.ouji-promo-price__row {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.ouji-promo-price--detail .ouji-promo-price__sale {
  color: var(--primary-dark);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.ouji-promo-price__original {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration-color: #9d3d2c;
  text-decoration-thickness: 1.5px;
}

.ouji-promo-price--detail .ouji-promo-price__original {
  font-size: 0.9375rem;
}

.ouji-promo-price__note {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
}

.ouji-promo-price--card {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  line-height: 1.25;
}

.ouji-promo-price--card .ouji-promo-price__sale {
  color: var(--primary-dark);
  font-size: 0.9375rem;
  font-weight: 700;
}

.ouji-promo-price--card .ouji-promo-price__sale small {
  margin-right: 4px;
  color: #8f301f;
  font-size: 0.625rem;
  font-weight: 650;
}

.ouji-promo-price--detail .ouji-promo-price__sale--discounted { color: var(--sale, #c8452f); }

.ouji-promo-price--search {
  display: inline-flex;
  align-items: flex-end;
  flex-direction: column;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.2;
}

.ouji-promo-price--search small {
  color: #8f301f;
  font-size: 0.5625rem;
  font-weight: 650;
}

@media (max-width: 480px) {
  .ouji-promo-price--detail .ouji-promo-price__sale {
    font-size: 1.75rem;
  }

  .ouji-promo-price--card {
    column-gap: 5px;
  }

  .ouji-promo-price--card .ouji-promo-price__sale {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .product-card__brand { font-size: 0.5625rem; }
  .product-card__name { font-size: 0.8125rem; }
  .product-card__price { font-size: 0.875rem; }
}

/* 缺貨產品頁：主掣熄咗，補貨掣頂上 */
.btn--sold-out {
  background: var(--border-light, #ddd) !important;
  color: var(--text-tertiary, #9a9a9a) !important;
  cursor: default;
  box-shadow: none !important;
}


/* 心心加咗之後要睇得出。而且唔可以再淨係 hover 先出現 ——
   加咗入願望清單但個心心平時隱形，等於冇加過。 */
.product-card__wishlist.is-active {
  opacity: 1;
  transform: scale(1);
}
.product-card__wishlist.is-active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

/* ============================================
   品牌 logo 一行（產品列表頁）

   客好多時係認住個牌子入嚟 —— 「我要買 TIRTIR」。以前喺搵緊貨
   嗰版反而冇入口，要行返首頁品牌牆或者品牌頁。
   ============================================ */
.brand-strip {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 10px;
  margin-bottom: var(--space-sm);
  /* 兩邊淡出，示意仲有得掃 */
  mask-image: linear-gradient(90deg, transparent 0, #000 18px,
              #000 calc(100% - 26px), transparent 100%);
}
.brand-strip::-webkit-scrollbar { display: none; }
.brand-strip:empty { display: none; }

.brand-strip__item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, rgba(30,48,56,0.08));
  background: #fff;
  opacity: 0.72;
  transition: opacity var(--duration-fast), border-color var(--duration-fast),
              transform var(--duration-fast);
}
.brand-strip__item img {
  max-width: 100%;
  max-height: 20px;
  object-fit: contain;
  /* logo 原色五花八門，統一壓做深藍綠，一行睇落先似一組嘢 */
  filter: grayscale(1) brightness(0.35);
}
.brand-strip__item:hover,
.brand-strip__item:focus-visible,
.brand-strip__item.is-active {
  opacity: 1;
  border-color: var(--primary, #6da3b5);
  transform: translateY(-1px);
}
.brand-strip__item:hover img,
.brand-strip__item.is-active img { filter: none; }

/* ============================================
   產品列表頁：品牌焦點輪播（第 3 款 exact artwork）

   每版直接沿用獲選樣板嘅產品構圖、logo、字款同卡面質感；桌面以
   上一版／下一版加圓點翻頁，手機保留原生 swipe。品牌卡本身唔放
   圓形箭嘴，成張卡都係連結。
   ============================================ */

[data-spotlight-section="makeup"] {
  --spotlight-hover-rgb: 205, 86, 126;
}

[data-spotlight-section="skincare"] {
  --spotlight-hover-rgb: 54, 151, 164;
}

.shop-brand-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shop-brand-carousel__viewport::-webkit-scrollbar { display: none; }

.shop-brand-carousel__track {
  display: flex;
}

.shop-brand-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.shop-brand-spotlight__board {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2152 / 731;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.shop-brand-spotlight__visual {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-brand-spotlight__board::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 14%;
  height: 14%;
  pointer-events: none;
  background-image: var(--spotlight-art);
  background-size: 714.3% 714.3%;
  background-position: 84% 0;
  background-repeat: no-repeat;
}

.shop-brand-carousel__mobile-board { display: none; }

.shop-brand-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.shop-brand-carousel__page {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid rgba(23, 76, 96, .16);
  border-radius: 999px;
  background: #fff;
  color: #25556a;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--duration-fast), color var(--duration-fast),
              background var(--duration-fast), transform var(--duration-fast);
}
.shop-brand-carousel__page:hover,
.shop-brand-carousel__page:focus-visible {
  border-color: #2784c8;
  color: #116fbd;
  background: #f1f9ff;
}
.shop-brand-carousel__page:active { transform: translateY(1px); }
.shop-brand-carousel__page:disabled { opacity: .38; cursor: default; }

.shop-brand-carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-brand-carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8d8df;
  cursor: pointer;
  transition: width var(--duration-fast), background var(--duration-fast);
}
.shop-brand-carousel__dots button[aria-current="true"] {
  width: 28px;
  background: #237fbd;
}
.shop-brand-carousel__dots button:focus-visible {
  outline: 3px solid var(--boot-pink, #ff63b4);
  outline-offset: 3px;
}

@media (max-width: 840px) {
  .shop-brand-spotlight__board { display: none; }
  .shop-brand-carousel__mobile-board {
    display: grid;
    gap: 12px;
  }
  .shop-brand-carousel__mobile-feature,
  .shop-brand-carousel__mobile-grid {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
  }
  .shop-brand-carousel__mobile-crop {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
  }
  .shop-brand-carousel__mobile-crop--feature { aspect-ratio: 861 / 731; }
  .shop-brand-carousel__mobile-crop--grid { aspect-ratio: 1291 / 731; }
  .shop-brand-carousel__mobile-crop img {
    position: absolute;
    top: 0;
    height: 100%;
    max-width: none;
    object-fit: contain;
  }
  .shop-brand-carousel__mobile-crop--feature img {
    left: 0;
    width: auto;
  }
  .shop-brand-carousel__mobile-crop--grid img {
    left: auto;
    right: 0;
    top: -2%;
    height: 104%;
    width: auto;
  }
  .shop-brand-carousel__mobile-feature:focus-visible {
    outline: 3px solid var(--boot-pink, #ff63b4);
    outline-offset: 3px;
  }
  .shop-brand-carousel__mobile-grid::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 23%;
    height: 15%;
    pointer-events: none;
    background-image: var(--spotlight-art);
    background-size: 725% 693%;
    background-position: 84% 0;
    background-repeat: no-repeat;
  }
  .shop-brand-carousel__controls {
    gap: 10px;
    margin-top: 10px;
  }
  .shop-brand-carousel__page {
    min-height: 40px;
    padding-inline: 13px;
    font-size: .8125rem;
  }
}

@media (max-width: 520px) {
  .shop-brand-carousel__controls { gap: 8px; }
  .shop-brand-carousel__dots { gap: 6px; }
  .shop-brand-carousel__dots button { width: 8px; height: 8px; }
  .shop-brand-carousel__dots button[aria-current="true"] { width: 22px; }
}

@media (max-width: 768px) {
  .brand-strip__item { width: 72px; height: 36px; }
  .brand-strip__item img { max-height: 17px; }
}

/* ============================================
   護膚頁：今週焦點／熱門品牌分開

   焦點卡暫時由 skincare-slide artwork 嘅左側 crop 供圖；圖片來源喺
   catalog.js 每張 slide 自己嘅 focusArt，日後可以逐張換獨立焦點圖。
   品牌列係另一個 carousel，每版只保留一行水平品牌卡。
   ============================================ */

.skincare-focus__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.skincare-focus__viewport::-webkit-scrollbar { display: none; }

.skincare-focus__grid {
  display: flex;
  gap: 14px;
}

:is([data-skincare-focus-carousel], [data-makeup-focus-carousel], [data-all-focus-carousel]) { position: relative; }

.skincare-brand-row::-webkit-scrollbar { display: none; }

/* Breadcrumb 收入篩選工具列，唔再獨佔一整行垂直空間。 */
.breadcrumb--inline {
  padding: 0;
  margin: 0 4px 0 0;
  font-size: .75rem;
}

.skincare-focus__slide {
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.skincare-focus__slide {
  flex: 0 0 calc((100% - 14px) / 2);
  min-width: 0;
}

.skincare-focus__card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2.12 / 1;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30, 48, 56, .08);
  isolation: isolate;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast),
              border-color var(--duration-fast);
}

.skincare-focus__visual {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.all-focus__copy {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 42%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #111;
  pointer-events: none;
}

.all-focus__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(30px, 3.5vw, 44px);
  padding: 0 clamp(14px, 2vw, 24px);
  border-radius: 0 12px 12px 0;
  background: #0755b6;
  color: #fff;
  font-size: clamp(.68rem, 1.15vw, 1.1rem);
  font-weight: 700;
}

.all-focus__logo {
  margin: 10% 0 0 8%;
  font-family: Arial, sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 2.65rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.035em;
}

.all-focus__logo--round-lab,
.all-focus__logo--some-by-mi {
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .035em;
}
.all-focus__logo--skinfood {
  font-family: Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 2.45rem);
  letter-spacing: -.045em;
}
.all-focus__logo--romand {
  font-family: Arial, sans-serif;
  font-weight: 300;
  letter-spacing: -.07em;
}
.all-focus__name {
  margin: 5% 0 0 8%;
  font-size: clamp(.75rem, 1.4vw, 1.4rem);
  line-height: 1.15;
}

.all-focus__cta {
  display: inline-flex;
  align-items: center;
  margin: auto 0 3% 6%;
  padding: clamp(5px, .65vw, 10px) clamp(7px, .85vw, 14px);
  border-radius: 7px;
  background: #fff;
  font-size: clamp(.7rem, 1vw, 1.05rem);
  line-height: 1.1;
  white-space: nowrap;
}

.skincare-focus__card:focus-visible,
.skincare-brand-card:focus-visible {
  outline: 3px solid var(--boot-pink, #ff63b4);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .skincare-focus__card:hover {
    border-color: rgba(var(--category-accent-rgb), .3);
    box-shadow: 0 14px 28px rgba(var(--category-accent-rgb), .16);
    transform: translateY(-2px);
  }
}

.skincare-brand-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  max-width: 100%;
  margin: 0;
  padding: 2px 2px 10px;
  list-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
}

.skincare-brand-row > li {
  --brand-card-size: clamp(92px, 7.8vw, 122px);
  flex: 0 0 var(--brand-card-size);
  min-width: 0;
  scroll-snap-align: start;
  transition: flex-basis 260ms cubic-bezier(.2,.7,.2,1);
}

.skincare-brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--brand-card-size);
  padding: 0;
  border: 1px solid rgba(45, 70, 80, .11);
  border-radius: 12px;
  background-color: rgba(250, 252, 251, .96);
  background-image: var(--brand-art);
  background-size: var(--brand-size-x) var(--brand-size-y);
  background-position: var(--brand-pos-x) var(--brand-pos-y);
  background-repeat: no-repeat;
  color: var(--text, #1e3038);
  text-align: center;
  text-decoration: none;
  transition: height 260ms cubic-bezier(.2,.7,.2,1),
              padding 260ms cubic-bezier(.2,.7,.2,1),
              border-radius 260ms cubic-bezier(.2,.7,.2,1),
              border-color var(--duration-fast), box-shadow var(--duration-fast),
              background-color 260ms ease, transform var(--duration-fast);
}

.skincare-brand-card--logo {
  padding: 7px;
  background-image: none;
}

.skincare-brand-card--logo img {
  width: 78%;
  height: 42%;
  object-fit: contain;
  transition: width 260ms ease, height 260ms ease, opacity 180ms ease;
}

.skincare-brand-card--logo span {
  overflow: hidden;
  font-size: .72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Artwork cards keep their original imagery; logo/text-only cards get a
   brand plate in the full-size rail as well as the sticky rail. */

.skincare-brand-card__sticky-logo { display: none; }

.skincare-brand-card__sticky-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skincare-brand-card__sticky-logo span {
  overflow: hidden;
  font-size: .67rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skincare-brand-card.is-current {
  border-color: var(--category-accent);
  box-shadow: inset 0 -3px 0 var(--category-accent), 0 5px 14px rgba(var(--category-accent-rgb), .14);
}

.skincare-brand-dock { width: 100%; }

.skincare-brand-progress {
  width: min(180px, 35vw);
  height: 3px;
  margin: 4px 2px 0 auto;
}

.skincare-brand-progress__bar {
  display: block;
  position: relative;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8ed;
}

.skincare-brand-progress__bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8%;
  border-radius: inherit;
  background: var(--category-accent);
  transition: left 120ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .skincare-brand-card:hover {
    border-color: rgba(var(--category-accent-rgb), .34);
    box-shadow: 0 10px 20px rgba(var(--category-accent-rgb), .12);
    transform: translateY(-2px);
  }
}

.skincare-spotlight__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  margin-top: 5px;
}

.skincare-spotlight__page {
  position: absolute;
  top: 0;
  bottom: 23px;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 68px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #25556a;
  cursor: pointer;
  transform: none;
  transition: color var(--duration-fast), background var(--duration-fast),
              transform var(--duration-fast);
}

/* 同首頁產品分類 rail 一樣：整條淡出帶跟焦點 card 同高。
   外側直接用頁面底色，跨入 card 後先慢慢變透明，唔會再有一截白色方塊。 */
.skincare-spotlight__page--prev {
  left: -20px;
  justify-content: flex-start;
  padding-left: 10px;
  background: linear-gradient(to right,
    var(--bg-primary, #f7f9f9) 0%, var(--bg-primary, #f7f9f9) 28%,
    rgba(247,249,249,.78) 52%, rgba(247,249,249,.28) 76%,
    rgba(247,249,249,0) 100%);
}
.skincare-spotlight__page--next {
  right: -20px;
  justify-content: flex-end;
  padding-right: 10px;
  background: linear-gradient(to left,
    var(--bg-primary, #f7f9f9) 0%, var(--bg-primary, #f7f9f9) 28%,
    rgba(247,249,249,.78) 52%, rgba(247,249,249,.28) 76%,
    rgba(247,249,249,0) 100%);
}
.skincare-spotlight__page svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(255,255,255,.98));
}

.skincare-spotlight__page:hover,
.skincare-spotlight__page:focus-visible {
  color: #116fbd;
}
.skincare-spotlight__page--prev:hover { transform: translateX(-3px); }
.skincare-spotlight__page--next:hover { transform: translateX(3px); }

.skincare-spotlight__page:active { transform: scale(.98); }
.skincare-spotlight__page:disabled { opacity: .28; cursor: default; }

.skincare-spotlight__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skincare-spotlight__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8d8df;
  cursor: pointer;
  transition: width var(--duration-fast), background var(--duration-fast);
}

.skincare-spotlight__dot[aria-current="true"] {
  width: 28px;
  background: var(--category-accent);
}

.skincare-spotlight__dot:focus-visible {
  outline: 3px solid var(--boot-pink, #ff63b4);
  outline-offset: 3px;
}

@media (max-width: 840px) {
  .all-focus__logo { font-size: clamp(1.05rem, 4.1vw, 2rem); }
  .all-focus__logo--skinfood { font-size: clamp(.85rem, 3.7vw, 1.8rem); }
  .all-focus__name { font-size: clamp(.66rem, 2.5vw, 1.1rem); }
  .all-focus__cta { font-size: clamp(.59rem, 2.3vw, .95rem); }
  .skincare-focus__grid {
    gap: 12px;
  }
  .skincare-focus__slide { flex: 0 0 88%; scroll-snap-align: start; }
  .skincare-brand-row {
    display: flex;
    gap: 10px;
    scroll-snap-type: x proximity;
  }
  .skincare-brand-row > li { --brand-card-size: 88px; flex: 0 0 88px; }
  .skincare-brand-progress { width: min(180px, 45vw); }
  .breadcrumb--inline { gap: 5px; font-size: .7rem; }
  .skincare-spotlight__controls { margin-top: 5px; }
  /* Mobile is swipe-first. Keep the dots as position feedback; arrows only
     belong to desktop pointer navigation. */
  .skincare-spotlight__page { display: none; }
}

@media (max-width: 520px) {
  .skincare-spotlight__dots { gap: 6px; }
  .skincare-spotlight__dot { width: 8px; height: 8px; }
  .skincare-spotlight__dot[aria-current="true"] { width: 22px; }
}

/* 冇 logo 檔嘅品牌用文字卡。呢五個（April Skin、KSECRET、
   Haruharu Wonder、Dr. Melaxin、ILSO）一直有貨但一直冇喺品牌牆
   出現過 —— 個標籤仲要寫住「29 品牌」，實際個 grid 得 16 個。 */
.brand-grid__card--text {
  justify-content: center;
  min-height: 88px;
}
.brand-grid__card--text .brand-grid__name {
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

/* ============================================
   分類標頭 —— 用排版做質感，唔用相

   本來係一張 Unsplash 圖庫相（一支 ORIGINS，我哋唔賣嘅美國牌子）
   八版共用。冇自己嘅分類相就唔應該夾硬揾張相頂住 —— 一張唔屬於
   自己嘅相，係全版最快穿煲嗰樣嘢。

   大牌子（COS、Jil Sander、Aesop）分類頁都係得字：細楷英文引子、
   一個夠大夠定嘅標題、一條幼線、右邊擺實用資料。質感嚟自留白同
   字距，唔係嚟自相。
   ============================================ */
.cat-head {
  position: relative;
  padding: clamp(28px, 4vw, 56px) 0 clamp(18px, 2.4vw, 28px);
  background: var(--bg, #f7f9f9);
  overflow: hidden;
}

/* 一浸好淡嘅品牌色，斜住由右上角散開。呢個係唯一嘅「圖像」——
   夠淡到唔會同字爭，但唔會令成塊嘢死實實。 */
.cat-head::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(109, 163, 181, 0.16), rgba(109, 163, 181, 0.05) 55%, transparent 100%);
  pointer-events: none;
}
.cat-head > .container { position: relative; z-index: 1; }

.cat-head__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--primary, #6da3b5);
}

.cat-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(43, 76, 88, 0.14);
}

.cat-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--text-primary);
}

/* 件數用襯線嘅舊體數字，同標題同一套字，唔會似後補上去 */
.cat-head__meta {
  margin: 0;
  flex: none;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--text-tertiary, #9a9a9a);
  white-space: nowrap;
  font-variant-numeric: oldstyle-nums;
}
.cat-head__meta:empty { display: none; }

.cat-head__desc {
  margin: 12px 0 0;
  max-width: 46em;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .cat-head__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cat-head__meta { font-size: 0.875rem; }
  .cat-head::before { width: 380px; height: 380px; }
}

/* ── 分類標頭：單一主角出血（老闆揀咗嘅款）──────────────
   一件當造嘅真貨放大做背景，標題壓喺左邊，中間用漸變化開。
   張相由 catalog.js 喺該分類自己啲貨度抽 —— 即係永遠係我哋
   賣緊嘅嘢，而且入新貨會自己換，唔使人手維護。 */
.cat-head--shot {
  min-height: 300px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

/* 標頭嗰塊淺藍虛化玻璃。
   本來呢度係喺分類自己啲貨度抽一張產品相放大做背景 —— 一件貨霸住成個
   標頭，同下面成格產品相撞，而且抽邊件都似偏心。老闆話「唔好睇」。
   而家係純 CSS：兩三嚿品牌藍散開、糊到冇邊界，再蓋一浸半透明白，
   同側欄抽屜、mega menu 嗰種玻璃係同一味。零圖片、零 request。 */
.cat-head__shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(58% 90% at 82% 18%, rgba(109, 163, 181, 0.55) 0%, rgba(109, 163, 181, 0) 62%),
    radial-gradient(46% 80% at 64% 96%, rgba(43, 76, 88, 0.34) 0%, rgba(43, 76, 88, 0) 66%),
    radial-gradient(40% 70% at 98% 74%, rgba(168, 208, 219, 0.6) 0%, rgba(168, 208, 219, 0) 70%);
  filter: blur(26px);
  /* blur 會令邊位透出底色，撐大少少推走條邊 */
  transform: scale(1.12);
}

/* 玻璃面：一浸薄白加一條高光邊，先似塊嘢而唔係一舊色 */
.cat-head--shot::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0 0 0 34%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.14) 46%,
    rgba(255, 255, 255, 0.3) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.34);
}

/* 由左邊嘅底色化開去塊玻璃，等標題永遠讀得清楚 */
.cat-head--shot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--bg, #f7f9f9) 0%,
    var(--bg, #f7f9f9) 30%,
    rgba(246, 245, 240, 0.82) 44%,
    rgba(246, 245, 240, 0) 66%);
}

.cat-head--shot > .container {
  position: relative;
  z-index: 2;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.cat-head--shot .cat-head__title { margin: 4px 0 8px; }
.cat-head--shot .cat-head__row { border: 0; padding-bottom: 0; display: block; }
.cat-head--shot .cat-head__desc { max-width: 22em; margin: 0 0 8px; }
.cat-head--shot .cat-head__meta { display: block; margin: 0; }

/* 抽唔到相就當普通標頭，唔好留住一忽空白 */
.cat-head--shot:not(:has(.cat-head__shot img)) { min-height: 0; display: block; }
.cat-head--shot:not(:has(.cat-head__shot img))::after { display: none; }

@media (max-width: 860px) {
  .cat-head--shot { min-height: 230px; }
  .cat-head__shot { inset: 0 0 0 46%; }
  .cat-head--shot::after {
    background: linear-gradient(90deg,
      var(--bg, #f7f9f9) 0%,
      var(--bg, #f7f9f9) 42%,
      rgba(246, 245, 240, 0.88) 54%,
      rgba(246, 245, 240, 0) 76%);
  }
}

@media (max-width: 560px) {
  /* 窄到呢度，左邊淨返半個螢幕擺唔落標題。改為張相坐喺低，
     文字喺上面，兩者唔再爭同一忽位。 */
  .cat-head--shot { min-height: 0; display: block; }
  .cat-head__shot { position: relative; inset: auto; height: 132px; margin-top: 4px; }
  .cat-head--shot::after {
    background: linear-gradient(180deg, rgba(246,245,240,0.9) 0%, rgba(246,245,240,0) 30%);
    top: auto; height: 132px; bottom: 0;
  }
  .cat-head--shot > .container { padding-bottom: var(--space-md); }
}

/* ── 公仔總頁：手繪玩具世界（2026-10-03 老闆）──────────────
   插畫 3:1，右邊角色貨架、左邊奶油黃淨色位放標題。圖左邊緣色 #fdfae2
   同 --bg 接駁，所以標頭同頁面底色連成一體。公仔頁自己換一套暖色：
   只喺 main 內覆寫，頂部導覽同其他品類頁唔受影響。 */
.page-toys .quick-tab { align-items: center; }
.page-toys .quick-tab__icon {
  width: 28px; height: 28px; margin: -4px 0 -4px -6px;
  /* 圖底係奶油黃 #fffbea，multiply 令佢喺白色按鈕上面溶入去 */
  mix-blend-mode: multiply;
}
@media (max-width: 560px) {
  /* 窄機：文字喺上，插畫成條坐喺下面（3:1 → 375 寬 = 125 高）。 */
}

/* ============================================================
   首頁商品格（2026-10-02 老闆）：TIRTIR 本月主打、換季大特賣、防曬清貨、Torriden、短效期
   標題沿用首頁 label＋heading-lg；每格一張日韓官方海報＋一條橫掃貨架（桌面箭嘴、手機手指掃）。
   節奏：優惠格用好淡嘅暖色底、防曬用淡天藍底，形象格保持白，令連續幾格唔會溝埋一嚿。
   紅色只落喺優惠格眉題同「全場低至 N 折」。
   ============================================================ */
.home-block--sky { background: #eef5fa; }

/* 風扇格：貨少，左邊海報右邊貨並排（桌面），貨架喺右欄入面一行三件 */ /* 風扇三款，右欄一行三件 */
.home-block--fan { background: #eef6f3; } /* 得兩三件，唔使箭嘴 */ /* 防曬格係淡天藍，緊接住佢用淡薄荷，兩格分得開 */

/* 「OUJI 仲有呢啲」：分類 tab 用返首頁雜誌式 home-tabs，同貨架之間留返呼吸 */

/* 橫掃貨架：同海報、標題一樣闊（喺 .container 入面），唔再伸出右邊。
   老闆 2026-10-02：「啲貨向右破壞咗個結構，應該同上面嗰個闊度一樣」。
   桌面啱啱好五件，其餘用箭嘴掃；手機露出少少下一件提示可以掃。 */
@media (max-width: 768px) {
  /* 手機一屏見 2.8 件（Olive Young 約 2.5、YesStyle／Shopee 約 3）。老闆 2026-10-02：
     「啲產品可以儘量縮返細，等人喺同一頁睇更加多嘢」。 */
  /* 貨架入面嘅卡收細：名最多兩行；評分、存貨提示、快速加入、心心喺手機貨架收起 */
}

/* ============================================================
   首頁主推 tab（熱門口碑／新品／優惠／現貨）

   雜誌內頁嘅做法：一行細字 tab、一條幼線、下面一句講明點揀貨。
   唔用膠囊掣 —— 膠囊係 app 嘅語言，呢度要似一本嘢嘅目錄。
   ============================================================ */
.home-tabs {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  align-items: baseline;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(43, 76, 88, 0.14);
  padding-bottom: 10px;
}
.home-tabs::-webkit-scrollbar { display: none; }

.home-tabs__btn {
  flex: none;
  position: relative;
  padding: 2px 0 10px;
  margin-bottom: -11px;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-tertiary, #9a9a9a);
  cursor: pointer;
  transition: color 200ms var(--ease-out);
}
.home-tabs__btn::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--primary-deep, #2b4c58);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease-out);
}
.home-tabs__btn:hover { color: var(--text-secondary); }
.home-tabs__btn.is-on { color: var(--primary-deep, #2b4c58); }
.home-tabs__btn.is-on::after { transform: scaleX(1); }
.home-tabs__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* 講明點揀貨。呢句唔係裝飾 —— 客要知「熱門」係邊度嚟嘅先信。 */
.home-tabs__note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-tertiary, #9a9a9a);
}
.home-tabs__note:empty { display: none; }

html.is-lite .home-tabs__btn,
html.is-lite .home-tabs__btn::after { transition: none; }

/* 橫向捲軸嘅左右箭嘴。本來加咗條睇得見嘅滾動條，但老闆話「唔係咁
   好睇」—— 一條灰槓成日擺喺度，未掃之前已經佔咗個位。改成一對細箭嘴，
   平時透明，滑鼠掂到成個區先浮出嚟；掃到盡頭嗰邊自動收埋。
   手機一律唔出（手指本身就掃得，箭嘴淨係阻住睇貨）。 */
.h-scroll {
  position: relative;
}
/* 兩個掣騎喺第一／最後一張卡條邊上面（--hs-inset-* 由 script.js 度返，
   見 initHScrollArrows）。之前寫死 left/right:4px，喺闊螢幕度就變咗
   貼住螢幕邊 —— 離最後一張卡成三百幾 px，撳嗰陣要飛個鼠標過去。

   樣式亦都執過：本來有一圈 1px 硬邊 ＋ 一道平均嘅影，白圈壓喺淺藍底
   上面自成一嚿。而家去咗個邊，靠兩層影分遠近，同分類格嗰道影同一套。 */
/* 唔再係一粒白色圓掣浮喺卡上面。改做一條同張相一樣高嘅直立淡出帶：
   貼近邊界嗰邊實色，向行入面散開到全透明，箭嘴企喺中間。
   咁樣佢唔係「一個蓋住張相嘅掣」，而係「行嘅盡頭自己散開」——
   同時做埋兩件事：講畀人知仲有嘢喺後面，同埋畀個位撳。

   --hs-mid / --hs-media-h 係第一張卡張相嘅中心同高度（script.js 度返），
   --hs-inset-* 係內容區邊界。度唔到先用 50% / 68% 頂住。 */
.h-scroll__arrow {
  position: absolute;
  top: var(--hs-mid, 50%);
  transform: translateY(-50%);
  z-index: 3;
  width: 58px;
  height: var(--hs-media-h, 68%);
  display: none;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: #2b4c58;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.24s var(--ease-out, ease),
              background 0.24s ease;
}
/* 幼線箭嘴。原本 2.5 嘅筆劃睇落好粗，似 app icon 多過似指示。
   支箭嘴會壓喺產品相上面，相嘅深淺唔定 —— 加一圈同底色一樣嘅光暈
   （淺底白、深底黑）撐住，唔使靠一嚿實色底板都讀得到。 */
.h-scroll__arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95));
}
.h-scroll--dark .h-scroll__arrow svg {
  filter: drop-shadow(0 0 3px rgba(10, 20, 26, 0.9));
}

.h-scroll__arrow--next {
  right: var(--hs-inset-end, 4px);
  justify-content: flex-end;
  padding-right: 9px;
  background: linear-gradient(to left,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.82) 38%,
    rgba(255, 255, 255, 0.34) 72%,
    rgba(255, 255, 255, 0) 100%);
}
.h-scroll__arrow--prev {
  left: var(--hs-inset-start, 4px);
  justify-content: flex-start;
  padding-left: 9px;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.82) 38%,
    rgba(255, 255, 255, 0.34) 72%,
    rgba(255, 255, 255, 0) 100%);
}
.h-scroll:hover .h-scroll__arrow:not([hidden]),
.h-scroll:focus-within .h-scroll__arrow:not([hidden]) { opacity: 1; }

/* hover 唔放大 —— 條帶放大會扯到成張相都糊。改為向住佢指嗰邊推兩格。 */
.h-scroll__arrow--next:hover {
  transform: translate(3px, -50%);
  background: linear-gradient(to left,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.92) 42%,
    rgba(255, 255, 255, 0.46) 76%,
    rgba(255, 255, 255, 0) 100%);
}
.h-scroll__arrow--prev:hover {
  transform: translate(-3px, -50%);
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.92) 42%,
    rgba(255, 255, 255, 0.46) 76%,
    rgba(255, 255, 255, 0) 100%);
}
.h-scroll__arrow:active { transform: translate(0, -50%); }
.h-scroll__arrow:focus-visible { opacity: 1; outline: 2px solid var(--primary, #6da3b5); outline-offset: -2px; }
.h-scroll__arrow[hidden] { opacity: 0; pointer-events: none; }

@media (hover: hover) and (min-width: 768px) {
  .h-scroll__arrow { display: flex; }
}

/* 深色底（品牌牆嗰啲）嘅箭嘴 */
/* 深色底（品牌牆嗰啲）：同一條淡出帶，換成向深藍散開 */
.h-scroll--dark .h-scroll__arrow { color: #fff; }
.h-scroll--dark .h-scroll__arrow--next {
  background: linear-gradient(to left,
    rgba(26, 44, 53, 0.95) 0%, rgba(26, 44, 53, 0.8) 38%,
    rgba(26, 44, 53, 0.32) 72%, rgba(26, 44, 53, 0) 100%);
}
.h-scroll--dark .h-scroll__arrow--prev {
  background: linear-gradient(to right,
    rgba(26, 44, 53, 0.95) 0%, rgba(26, 44, 53, 0.8) 38%,
    rgba(26, 44, 53, 0.32) 72%, rgba(26, 44, 53, 0) 100%);
}
.h-scroll--dark .h-scroll__arrow--next:hover {
  background: linear-gradient(to left,
    rgba(20, 36, 44, 1) 0%, rgba(20, 36, 44, 0.9) 42%,
    rgba(20, 36, 44, 0.42) 76%, rgba(20, 36, 44, 0) 100%);
}
.h-scroll--dark .h-scroll__arrow--prev:hover {
  background: linear-gradient(to right,
    rgba(20, 36, 44, 1) 0%, rgba(20, 36, 44, 0.9) 42%,
    rgba(20, 36, 44, 0.42) 76%, rgba(20, 36, 44, 0) 100%);
}

/* 滾動條收返埋 —— 而家靠箭嘴示意 */
.cat-cards,
.home-rail__track {
  scrollbar-width: none;
}
.cat-cards::-webkit-scrollbar,
.home-rail__track::-webkit-scrollbar { display: none; }

/* ============================================
   新品速遞 —— 品牌係橫相，產品係直卡，一眼分得開
   ============================================ */
.new-brands {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: var(--space-lg);
}
.new-brands::-webkit-scrollbar { display: none; }

/* 16:9 橫相。之前品牌卡同產品卡 desktop 同係 210px、同一套圓角，上下
   相隔 16px —— 兩條行讀落似一個爛咗嘅兩行 grid，一掃就走位。
   字反白喺相上面，同「想搵咩？」嗰批卡同一套語言。 */
.new-brands__card {
  position: relative;
  flex: none;
  width: 300px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #24424e;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 2px 6px rgba(30,48,56,0.10), 0 18px 32px -22px rgba(30,48,56,0.55);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.new-brands__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s var(--ease-out);
}
.new-brands__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(20,41,50,0) 44%,
    rgba(20,41,50,0.58) 70%,
    rgba(20,41,50,0.93) 100%);
}
.new-brands__name {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 30px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.15;
  color: #fdf8f3;
  text-wrap: balance;
}
.new-brands__n {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  /* 由罩嘅藍調出嚟，唔用灰 —— 之前 #6da3b5 踩白底得 2.78:1 */
  color: rgba(190, 220, 231, 0.92);
}
.new-brands__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(30,48,56,0.12), 0 28px 44px -24px rgba(30,48,56,0.6);
}
.new-brands__card:hover .new-brands__shot { transform: scale(1.05); }
.new-brands__card:focus-visible {
  outline: 2px solid var(--primary, #6da3b5);
  outline-offset: 3px;
}

/* 產品行縮窄，同上面嘅橫相拉開距離 */
.home-rail__track--new .product-card { width: 168px; }

@media (max-width: 640px) {
  .new-brands__card { width: 252px; }
  .new-brands__name { font-size: 1.125rem; left: 13px; right: 13px; bottom: 27px; }
  .new-brands__n { left: 13px; bottom: 10px; font-size: 0.6875rem; }
  .home-rail__track--new .product-card { width: 148px; }
}
@media (prefers-reduced-motion: reduce) {
  .new-brands__card, .new-brands__shot { transition: none; }
  .new-brands__card:hover { transform: none; }
  .new-brands__card:hover .new-brands__shot { transform: none; }
}

/* ============================================
   由煩惱搵起 —— 雜誌開版：滿版相、一行大字、冇多餘嘢
   ============================================ */
/* 說明句跟返標題嘅對齊，唔好一個置中一個靠左 */

/* 「想搵咩？」呢格嘅 CSS 已經搬咗去下面 .home-skin-cat（Y2K 芝麻貓）。
   之前三版（封面卡／淺色枱面卡／面部線稿）嘅 rule 全部剷咗 ——
   確認過成個 repo 冇任何 html／js 仲用緊 .concern-card、.concern-tile、
   .concern-grid、.face-map、.face-row。 */

/* ============================================
   分類頁頂：入口 tile
   量過 Olive Young 個護膚分類頁 —— 第一件貨喺 219px，佢個頂得分類名
   （16px）加一條「3797 items · filter · sort」。冇大標題、冇說明句、
   冇 hero。我哋本來係大襯線標題 ＋ 件數 ＋ 兩行說明 ＋ 一塊淺藍玻璃，
   手機第一件貨喺 900px。呢格嘅目標唔係「好睇啲」，係「唔好阻住」。
   ============================================ */
.cat-gate__tile {
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--border-subtle, rgba(30,48,56,0.1));
  border-radius: 10px;
  padding: 9px 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 160ms ease-out, border-color 200ms var(--ease-out);
}
.cat-gate__tile:active { transform: scale(0.98); }
.cat-gate__tile:hover { border-color: var(--primary, #6da3b5); }
.cat-gate__tile.is-on {
  border-color: var(--primary-deep, #2b4c58);
  box-shadow: 0 0 0 1px var(--primary-deep, #2b4c58) inset;
}
.cat-gate__tile:focus-visible {
  outline: 2px solid var(--primary, #6da3b5);
  outline-offset: 2px;
}
.cat-gate__shot {
  display: block;
  aspect-ratio: 1;
  border-radius: 7px;
  overflow: hidden;
  background: #f4f5f6;
  margin-bottom: 7px;
}
.cat-gate__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-gate__label { font-size: 0.875rem; font-weight: 600; color: #1e3038; }
.cat-gate__c {
  font-family: 'Manrope', var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted, rgba(30,48,56,0.55));
}

/* 標題條。<h1> 由 40px 襯線縮到 17px —— Google 照樣讀得到，
   但唔再食成屏嘅高度。 */

/* 手機唔用格仔，用一條掃得郁嘅行。
   七格喺 390px 度排三欄＝三行，成個入口區 568px —— 比原本個大標題塊
   仲要高，即係慳返嘅嘢又還返晒畀你。一行橫掃得 194px。
   OY 手機都係咁做。 */
@media (max-width: 900px) {
  .cat-gate__tile { flex: none; width: 104px; padding: 7px 7px 9px; }
  .cat-gate__label { font-size: 0.8125rem; }
  .cat-gate__c { font-size: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-gate__tile { transition: none; }
}

/* ============================================================
   彩妝頁頂：貼紙相機（makeup.html 專用）

   護膚頁用嘅入口 tile 喺彩妝版換成一幅由首爾貼紙相機吐出嚟嘅貼紙牆。
   全部 selector 都收喺 .makeup-booth 下面，唔會影響其他分類頁。
   Hero 硬上限 350px —— 呢版嘅重點係啲貨快啲出現，唔係頁頂夠唔夠大。
   ============================================================ */

/* ----- 主標 ----- */

/* ----- 四格相紙 ----- */
.makeup-booth__frames { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.makeup-booth__frames img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eceef1;   /* 圖未到都撐住格位，唔會跳版 */
}

/* ----- 中間啲塗鴉。純裝飾，唔可以擋住啲掣 ----- */

/* ----- 五張分類貼紙。歪嘅係外形，唔係次序 —— DOM 同 tab 次序照舊
   底妝 → 眼妝 → 唇妝 → 頰彩 → 修容 ----- */
/* 五粒掣本來係彩色橢圓包住一個細 icon。而家換成老闆畫嘅剪紙貼紙
   （PNG 本身已經印咗白色剪紙邊），所以橢圓底、邊框、圓角全部剷走 ——
   張圖自己就係貼紙，掣淨係負責位置、角度同可撳範圍。 */
/* 名牌貼喺貼紙腳下面，唔係包住成粒公仔 */

/* 選中：名牌反白，貼紙本身放大少少。一定要排喺上面五條 nth-child 之後 ——
   兩邊 specificity 一樣，後寫嗰個先贏。 */

/* ----- 閃光。只喺第一次載入播一次；換分類唔會再閃 ----- */

/* 平板闊度：相紙同 FLASH!／色掃／K-BEAUTY! 會撞埋一齊。照 handoff 講嘅
   次序處理 —— 先郁非必要嘅塗鴉，唔郁五粒掣嘅可撳範圍。 */

@media (max-width: 720px) {
  /* 貼紙換咗做剪紙之後嗰行高咗，FLASH! 本來喺 213px 會同「底妝」個
     件數牌撞，抬高佢。 */
  /* 手機收窄之後，隔籬張貼紙會壓住呢張嘅右邊角（修容 z-index 高過頰彩），
     件數要向內移少少先讀得晒。 */
}

/* 窄機。先縮字同 icon，唔可以縮到啲掣撳唔到，亦都唔可以迫到出橫向捲軸。 */

/* 2026-09 watercolor direction: the selected visual is one authored illustration.
   Keep it intact and layer the five real category controls over its painted labels. */

/* 手機跟 2026-09-21 選定稿。主圖保留原設計、比例、分類圖及名稱，
   圖片素材只移除輪播點、分類件數、箭嘴及其多餘分隔線。
   分類帶移除舊箭嘴留白後拉滿全寬；五粒透明按鈕按分類帶實際比例對位。 */

/* ============================================================
   護膚頁頂：水光房貼紙相機（category.html 專用）

   同彩妝嗰邊嘅貼紙相機係一家人，但係另一個世界：銀藍水光機身、
   透明精華水珠、凝膠泡泡，八張按產品輪廓剪出嚟嘅分類貼紙。
   全部 selector 收喺 .skincare-booth 下面。Hero 硬上限 350px。
   ============================================================ */

/* ----- 主標 ----- */

/* ----- 四格相紙 ----- */
.skincare-booth__frames { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.skincare-booth__frames img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eef1f2;   /* 圖未到都撐住格位，唔會跳版 */
}

/* ----- 中央水光藝術。純裝飾，唔可以擋住啲掣 ----- */
.skincare-booth__bubble {
  position: absolute;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.55), 2px 3px 0 rgba(17,19,26,.22);
}
.skincare-booth__bubble--a { left: 71%; top: 55px; width: 32px; height: 32px; }
.skincare-booth__bubble--b { left: 39%; top: 31px; width: 21px; height: 21px; }

/* ----- 八張分類貼紙。散落式絕對定位 —— 大細、高低、角度都要唔同，
   但 DOM 同 tab 次序照舊 潔面 → 爽膚水 → 棉片 → 精華液 → 乳液 →
   面膜 → 眼部護理 → 防曬 ----- */
/* 白色剪紙外沿由 drop-shadow 疊出嚟，唔用圓形容器包住個 icon。 */

/* 桌面收細一級（老闆 2026-08-23：「桌面版而家太大個，要細返啲」）。
   全部 icon ×0.82，格仔高度跟住收，條帶由 152 → 128px。相對高低同傾側唔郁，
   個貼紙牆嘅節奏保住，淨係冇咁霸。手機版係相反方向，見下面 720px 嗰段。 */

/* ----- 閃光。只喺第一次載入播一次 ----- */

@media (max-width: 720px) {
  .skincare-booth__frames { gap: 3px; }
  .skincare-booth__bubble--a,
  .skincare-booth__bubble--b { display: none; }
}

/* 2026-09-19 水彩護膚店主視覺。手機用原本直向構圖；桌面載入獨立
   16:9 延伸圖。舊貼紙相機 DOM 保留畀真實件數與無障礙狀態使用，視覺
   改成覆蓋喺插畫分類上面嘅透明 hotspot。 */

/* ============================================================
   頁頂搜尋浮層（search.js 砌 DOM，呢度只負責樣）
   ============================================================ */
.site-search { position: fixed; inset: 0; z-index: 1200; }
.site-search[hidden] { display: none; }
.site-search__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 38, .42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.site-search__panel {
  position: relative;
  width: min(640px, calc(100% - 32px));
  max-height: min(72vh, 620px);
  margin: clamp(40px, 9vh, 110px) auto 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 32, 38, .28);
}
.site-search__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line, #e6e9ea);
}
.site-search__bar svg { width: 19px; height: 19px; flex: none; color: var(--dark-base, #2b4c58); }
.site-search__bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;   /* 細過 16px iOS 會自動放大成版 */
}
.site-search__bar input::-webkit-search-cancel-button { display: none; }
.site-search__x {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #687578);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.site-search__x:hover { background: rgba(43, 76, 88, .07); }
.site-search__results { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.site-search__hint { margin: 0; padding: 22px 18px; color: var(--muted, #687578); font-size: 13px; }
.site-search__hint a { color: var(--dark-base, #2b4c58); }
.site-search__hint--slim { padding: 12px 16px 8px; }
.search-guidance { margin: 16px 0; padding: 14px 16px; border: 1px solid #d1e1e4; border-radius: 10px; background: #eaf2f3; color: #31586b; font-size: 13px; line-height: 1.7; }
.search-guidance p { margin: 0; overflow-wrap: anywhere; }
.search-guidance__links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.search-guidance__links a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 10px; border: 1px solid #c5d8e0; border-radius: 6px; background: #f8fbfc; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.search-guidance__links a:hover { border-color: #6f96a7; }
.search-guidance__links a:focus-visible { outline: 2px solid #31586b; outline-offset: 2px; }

.site-search__hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  color: inherit;
  text-decoration: none;
}
.site-search__hit:hover,
.site-search__hit.is-on { background: rgba(109, 163, 181, .12); }
.site-search__thumb {
  flex: none;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f5f4;
}
.site-search__thumb img { width: 100%; height: 100%; object-fit: cover; }
.site-search__thumb--brand {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-base, #2b4c58);
  background: rgba(109, 163, 181, .16);
}
.site-search__thumb--brand svg { width: 20px; height: 20px; }
.site-search__hit--brand {
  background: rgba(109, 163, 181, .07);
  border-bottom: 1px solid var(--line, #e6e9ea);
}
.site-search__text { flex: 1; min-width: 0; }
.site-search__brand {
  display: block;
  color: var(--muted, #687578);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-search__name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.site-search__price { flex: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.site-search__more {
  display: block;
  padding: 13px 16px;
  border-top: 1px solid var(--line, #e6e9ea);
  color: var(--dark-base, #2b4c58);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}
.site-search__more:hover,
.site-search__more.is-on { background: rgba(109, 163, 181, .12); }

@media (max-width: 600px) {
  .site-search__panel { width: calc(100% - 20px); margin-top: 20px; max-height: 82vh; }
}

/* ============================================================
   細分類（撳咗大分類先出）

   本來試過將 12 粒細貼紙圍喺 hero 五張大貼紙隔籬 —— 太逼：hero 得 350px
   高，手機一格得 75px 闊，塞得落嘅話粒粒細到撳唔到。改成兩層：喺 hero
   揀大分類，揀咗先喺呢度出返嗰個分類自己嘅細分類，一次最多四個。
   ============================================================ */
.cat-subs__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border: 2px solid var(--booth-ink, #11131a);
  border-radius: 999px;
  background: #fff;
  color: var(--booth-ink, #11131a);
  font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(17,19,26,.16);
  transition: transform 160ms ease-out, background 160ms ease-out, color 160ms ease-out;
}
.cat-subs__item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.cat-subs__item small {
  display: none;
}
@media (hover: hover) {
  .cat-subs__item:hover { transform: translateY(-2px); }
}
.cat-subs__item:active { transform: scale(.98); }
.cat-subs__item:focus-visible { outline: 3px solid #e75d4e; outline-offset: 3px; }
.cat-subs__item.is-on {
  background: var(--booth-ink, #11131a);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(17,19,26,.28);
}
.cat-subs__item.is-on small { color: rgba(255,255,255,.75); }

/* 桌面細分類跟視窗比例收放：大螢幕保留原尺寸，畫面縮窄時圖示、文字、
   膠囊 padding 同間距一齊縮，避免主圖已縮細但分類 logo 仍然一樣大。 */
@media (min-width: 960px) {
  .cat-subs__item {
    gap: clamp(6px, .47vw, 9px);
    padding:
      clamp(5px, .37vw, 7px)
      clamp(10px, .73vw, 14px)
      clamp(5px, .37vw, 7px)
      clamp(6px, .42vw, 8px);
    border-width: clamp(1.5px, .105vw, 2px);
    font-size: clamp(10px, .78vw, 13px);
    box-shadow: clamp(2px, .16vw, 3px) clamp(2px, .16vw, 3px) 0 rgba(17,19,26,.16);
  }
  .cat-subs__item img {
    width: clamp(26px, 2.27vw, 38px);
    height: clamp(26px, 2.27vw, 38px);
  }
}

@media (max-width: 720px) {
  /* 一行擺唔晒就打橫掃，唔好逼到粒粒細過手指 */
  .cat-subs__item { flex: none; padding: 6px 12px 6px 7px; font-size: 12px; }
  .cat-subs__item img { width: 40px; height: 40px; }
}

/* 得一個細分類嘅大分類（頰彩、修容）—— 冇咗下面嗰行，個標題就唔應該
   再撐到咁大（標題本來係帶頭嗰批細分類用嘅）。收返做同細分類一樣嘅
   字級，但保留標題嘅粗度，等人分得出佢係一個分類唔係一件貨。 */
.header__mega-sub > a.header__mega-subheading--solo {
  padding-left: var(--space-lg) !important;
  font-size: 0.9375rem !important;
}

/* ============================================================
   全站配色：藍色微光（prototypes/homepage-redesign 第 4 款）

   原本行米白／奶油色系（--warm-* 一族係啡黃）。老闆 2026-08-19 揀咗
   第 4 款並且要求全站一齊轉：同一組 token 換成偏冷嘅藍灰，
   **品牌藍本身一個字都冇郁**（--primary #6da3b5、--primary-deep #2b4c58
   原封不動），所以係「同一套色收得更統一」，唔係換咗個牌子。

   上面 :root 已經改咗 token 值；下面呢批係逐個組件嘅顏色修正，
   由 prototypes/homepage-redesign/original-refined.css 抄過嚟，
   只取顏色，動效一律唔郁。
   ============================================================ */
::selection { color: #fff; background: var(--primary-deep); }
body { background: var(--bg-primary); background-image: none; }
body::before { opacity: 0.18; }

/* 美妝工具分類封面：同彩妝／護膚一樣用獨立桌面及手機構圖，滿版顯示。 */

.announcement-bar {
  background: linear-gradient(110deg, #356f83 0%, #397f93 48%, #356f83 100%);
}
.marquee { background: var(--primary-deep); }
.header.is-scrolled {
  background: rgba(247, 249, 249, 0.96);
  border-bottom-color: rgba(43, 76, 88, 0.11);
}
.header.is-scrolled .header__logo { color: var(--primary-dark); }
.header__submenu,
.header__subsubmenu {
  background: rgba(247, 249, 249, 0.96);
  border-color: rgba(43, 76, 88, 0.13);
}

/* 陶瓷分類格：底要夠實先托得起相框嗰兩道光，
   純白同太淺嘅藍都會令個立體感消失。 */
.section--sm:has(.cat-cards) {
  background: linear-gradient(180deg, #eaf1f3 0%, var(--warm-100) 100%);
}
.cat-card__name { color: var(--primary-deep); }
.product-card__image-wrap { background: var(--surface-alt); }
.product-card__brand { color: var(--primary-darker); }
.btn--ghost,
.btn--ghost::after { color: var(--primary-darker); }

/* 得獎章冇跟全站轉藍 —— 藍底章擺喺藍灰嘅站入面就唔似「獎」，
   黑金先係一望就知。 */

/* 得獎產品區：由暖啡深底改成藍墨深底 */

/* ============================================================
   首頁：品牌牆瘦身轉淺 ＋ 得獎產品區立返個獎章
   （impeccable / bolder，2026-08-19）

   問題一：品牌牆 858px 高，而且同下面「得獎產品」一樣係深藍
   —— 兩個深色區貼住，得獎區就冇咗「呢度唔同」嘅感覺。
   做法：**縮到一半，再搬上去「而家買咩好」下面**。轉淺色同拆兩條
   都試過，老闆兩樣都否決（淺色冇咁靚、兩截散）。真正解決撞色嘅
   係距離唔係顏色：中間隔住新品同煩惱兩格，兩幅深色唔再貼住。

   問題二：得獎區之前每張卡右上角得粒數字（5、4）。「5」係得獎
   次數，對客嚟講唔代表任何嘢；真正有力嗰句「2025 올리브영 唇釉
   第一位」反而擺喺最底、最細、半透明。
   做法：**唔另外發明新語言** —— 網站本身喺產品卡已經有一套得獎章
   （皇冠＋NO.1＋頒獎機構年份＋共幾多項），得獎區反而冇用。而家
   將同一個得獎章搬入嚟，喺深底上面反白做「蓋喺相上面嘅印章」。
   ============================================================ */

/* ---------- 品牌牆：瘦身（858 → ~430，即係一半）＋ 留返深藍底 ----------
   兩行 logo 兩個分類都要留 —— 「同場 56 個品牌」係 OUJI 唯一嘅真優勢，
   剪走一行等於自己收埋個賣點。所以縮嘅係空隙唔係內容：外框 padding、
   分類標題行、每行預留畀 hover 標籤嗰段位、同埋 logo 格本身。 */
.brand-marquees { padding: clamp(12px, 1.4vw, 18px) 0; }
.brand-marquees .section-header { margin-bottom: 6px; }
.brand-marquees .section-header__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.brand-marquees__section-header { padding: 2px 0 0; gap: 2px; }
.brand-marquees__rows { max-height: 240px; }
.brand-marquees .brand-marquee { padding: 4px 0 11px; }
.brand-marquees .brand-marquee__item { height: 38px; padding: 0 12px; width: 126px; }
.brand-marquees__section { padding-bottom: 4px; }

/* ---------- 得獎產品：立返個獎章 ---------- */

/* 得獎區用返同一個得獎章，唔另外發明一個。「共 N 項獎」喺呢度已經寫咗
   落卡片下面嘅文字行，所以章上面唔再重複。 */

/* ---------- 得獎產品：放大 ＋ 向右碌 ---------- */
/* 右邊淡出：唔淡出嘅話最後嗰張卡係硬生生喺容器邊界切一刀，
   睇落似壞咗多過似「右邊仲有」。碌到尾就冇咗個淡出。 */

/* 得獎嗰句先係重點，唔應該係最細最暗嗰行 */

/* ============================================================
   而家買咩好：左邊一幅大相，右邊產品格（2026-08-19）

   本來係一行十四件細卡橫掃。問題係每件一樣大 —— 標題問「而家買咩好」，
   下面十四個答案冇一個係答案。而家頭位嗰件出成幅大相，右邊六件做選擇；
   大相下面嗰句係嗰個 tab 本身嘅準則（評價數／減幾多），唔係形容詞。

   同下面嘅分類行分開咗兩格：呢格有底色有邊框，係「一格」；
   分類行係一行行橫掃，兩種睇法唔應該擠埋一齊。
   ============================================================ */

.home-feat {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.5fr);
  gap: clamp(14px, 1.8vw, 26px);
  align-items: start;
  margin-top: clamp(14px, 2vw, 22px);
}

/* ---------- 左邊：大相 ---------- */
.home-feat__hero {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.home-feat__hero:hover {
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-2px);
}
.home-feat__shot {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--warm-100);
}
.home-feat__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 方形白底 packshot：撐滿會切走支樽，改成留白擺中間，襯返站內嘅淺藍 */
.home-feat__shot.is-pack {
  background: linear-gradient(160deg, var(--warm-50) 0%, var(--warm-200) 100%);
}
.home-feat__shot.is-pack img {
  object-fit: contain;
  padding: clamp(20px, 3.5vw, 48px);
}
.home-feat__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: clamp(14px, 1.6vw, 20px);
}
.home-feat__brand {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.home-feat__name {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.35;
  color: var(--text-primary);
}
.home-feat__fact {
  font-size: 0.8125rem;
  color: var(--primary-darker);
}
.home-feat__price {
  margin-top: 2px;
  font-size: 1.0625rem;
  color: var(--primary-dark);
}

.home-feat__price .ouji-promo-price--card .ouji-promo-price__sale {
  font-size: 1.0625rem;
}

.home-feat__price .ouji-promo-price--card .ouji-promo-price__sale small {
  font-size: 0.6875rem;
}

/* ---------- 右邊：產品格 ---------- */
.home-feat__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.home-feat__grid .product-card {
  width: auto;
  flex: initial;
}

@media (max-width: 1100px) {
  .home-feat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .home-feat { grid-template-columns: 1fr; }
  .home-feat__shot { aspect-ratio: 3 / 2; }
  .home-feat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   首頁 Journal：一疊雜誌卡（2026-08-20，impeccable / bolder）

   上一版失敗嘅原因唔係唔靚，係「認錯咗身份」—— 相鋪滿卡頂、下面一個
   標籤一行字，同全站產品卡一模一樣，客會當四篇文章係四件貨。

   文章卡同產品卡要分得出，靠三樣嘢：
   1. 張相係「貼」喺卡上面（四邊留白），唔係鋪滿 —— 產品卡永遠鋪滿。
   2. 標題用襯線體、大過產品名，佔卡嘅主要面積。
   3. 卡底有日期同「讀落去」—— 產品卡嗰個位係價錢。

   再加一個真效果：四張卡各自歪少少，似疊喺枱面嘅卡片；撳邊張，
   邊張扶返正、升起、箭嘴推出去。 */
/* 一疊卡：唔係每張都一樣角度，亦都唔係越排越斜 —— 中間兩張近乎企定，
   兩邊嗰兩張歪多啲，先似有人順手擺落枱面。 */

















/* ============================================================
   全部產品頁：分類入口與焦點內容（原 Y2K prototype）
   來源 prototype：/Volumes/core/Projects/OUJI/Website-and-Design/ouji-all-products-y2k/（commit 5443c33）

   全部 selector 都收喺 .shop-boot / .shop-page 底下，唔會污染其他分類頁。
   ============================================================ */

/* ---------- BOOT hero ---------- */

/* 對話框要讓開下面兩行貼紙。實測（getBoundingClientRect）160px 仲會同
   「季節性」疊 126×28、同「彩妝工具」疊 53×13，所以再提到 118px。 */

/* ---------- 五個分類貼紙 ---------- */
/* 有專屬版面嗰四張貼紙而家係 <a>，唔係 <button> —— 要拆走連結底線，
   同埋自己揸返個字色（<a> 唔會跟 button 嗰套繼承）。 */
/* 鍵盤 focus 一定要見得到，而且唔可以畀隔籬貼紙遮住 */

/* 公仔：毛絨熊仔頭 ＋ 掛環 —— 同其他貼紙一樣，粗墨邊＋白暈＋平色，
   唔加漸變同陰影，先至同成套 Y2K 貼紙夾得埋。 */

/* 沐浴洗護：泵頭樽 ＋ 泡泡 */

/* 季節性：太陽 ＋ 一支管裝 */

/* 彩妝工具：一支化妝掃 */

/* 保健品：一支條裝 ＋ 一粒膠囊 */

/* 護具及壓力襪：抽象護套圖案，不借用品牌產品圖。 */

/* 香水香氛：細樽 ＋ 蓋，保持同一套粗墨邊平色貼紙語言。 */

/* 全部產品頁下半部移除 Explorer 外框；主視覺沿用原有 Y2K Hero。 */

/* ---------- 手機（老闆實機睇過之後嘅修正版）---------- */

/* ============================================================
   首頁「想搵咩？」：Y2K 芝麻貓皮膚助手（2026-08-20）
   來源 prototype：/Volumes/core/AI-Workspace/Inbox/Legacy-Unattributed-20260909/ouji-home-section-prototypes/y2k-cat.html（第 1 款）

   全部 selector 收喺 .home-skin-cat 底下，token 亦都只落喺呢個 scope ——
   同全部產品頁嗰套 --boot-* 分開，唔會互相影響。
   ============================================================ */
/* JS 未行到之前嗰八條連結：唔靚但撳得入去。砌好個 hero 就唔會再喺度。 */

.home-skin-cat__wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(#62c9ff 0 62%, #aee765 62% 100%);
}
.home-skin-cat__wallpaper::after {
  content: '';
  position: absolute;
  left: -8%; right: -8%; bottom: 25px;
  height: 205px;
  border-radius: 50% 46% 0 0 / 100% 90% 0 0;
  background: linear-gradient(155deg, #78dc43, #2aa63f);
  transform: rotate(-2deg);
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, .36);
}
.home-skin-cat__cloud {
  position: absolute;
  z-index: 1;
  width: 95px; height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  filter: drop-shadow(22px -9px 0 rgba(255,255,255,.9)) drop-shadow(47px 2px 0 rgba(255,255,255,.9));
}
.home-skin-cat__cloud--a { left: 7%; top: 54px; }
.home-skin-cat__cloud--b { right: 18%; top: 80px; transform: scale(.62); }

.home-skin-cat__grid {
  position: relative;
  z-index: 3;
  min-height: 686px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 42px;
  align-items: center;
  padding-block: 54px 70px;
}
.home-skin-cat__assistant { position: relative; align-self: end; min-height: 560px; }
.home-skin-cat__label {
  position: absolute;
  z-index: 6;
  left: 5%; top: 0;
  padding: 6px 9px;
  border: 2px solid var(--skin-cat-ink);
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--skin-cat-ink);
  transform: rotate(-2deg);
}
.home-skin-cat__label b { display: block; font: 700 20px/.9 var(--skin-cat-pixel); }
.home-skin-cat__label span { font: 13px/1 var(--skin-cat-mono); }
.home-skin-cat__mascot {
  position: absolute;
  left: -4%; bottom: -14px;
  width: min(108%, 510px);
  height: 535px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(9px 13px 0 rgba(16, 19, 27, .16));
}

.home-skin-cat__window {
  align-self: center;
  border: 3px solid var(--skin-cat-blue-deep);
  border-radius: 7px 7px 0 0;
  background: var(--skin-cat-cream);
  box-shadow: 8px 9px 0 rgba(16, 19, 27, .28);
  transform: rotate(1deg);
}
.home-skin-cat__titlebar {
  min-height: 29px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 9px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #0754d7, #3d91f8);
  color: #ffffff;
  font: 600 13px/1 var(--skin-cat-pixel);
  text-shadow: 1px 1px #073a9a;
}
.home-skin-cat__titlebar span:first-child { margin-right: auto; }
.home-skin-cat__titlebar i {
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border: 1px solid #ffffff; border-radius: 3px;
  background: #2381ef;
  font-family: Arial, sans-serif; font-size: 11px; font-style: normal;
}
.home-skin-cat__titlebar i:last-child { background: #e85535; }
.home-skin-cat__menubar {
  padding: 4px 8px;
  border-bottom: 1px solid #aaa89e;
  background: #f7f5e9;
  font: 13px/1 var(--skin-cat-mono);
  word-spacing: 10px;
}
.home-skin-cat__body {
  min-height: 472px;
  padding: 18px;
  border: 2px solid #ffffff;
  background: #ffffff;
}
.home-skin-cat__head {
  display: flex; justify-content: space-between; align-items: start; gap: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid #c3c2b7;
}
.home-skin-cat__head h3 {
  margin: 0;
  color: var(--skin-cat-blue-deep);
  font: 700 clamp(26px, 3.5vw, 43px)/.9 var(--skin-cat-pixel);
}
.home-skin-cat__head p { margin: 7px 0 0; color: #4b5b60; font-size: 11px; }
.home-skin-cat__head span {
  min-width: max-content;
  padding: 4px 7px;
  border: 1px solid #8c8a80;
  background: var(--skin-cat-yellow);
  font: 13px/1 var(--skin-cat-mono);
}
.home-skin-cat__caption { margin: 13px 0 7px; color: #4b5b60; font: 11px/1 var(--skin-cat-mono); }

.home-skin-cat__concerns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.home-skin-cat__concern {
  min-width: 0;
  min-height: 52px;
  padding: 7px 8px;
  border: 2px outset #ffffff;
  background: #f4f1df;
  color: var(--skin-cat-blue-deep);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform 180ms var(--skin-cat-out);
}
.home-skin-cat__concern:hover { transform: translateY(-2px); background: #fffbd0; }
.home-skin-cat__concern[aria-pressed="true"] {
  border-style: inset;
  background: var(--skin-cat-yellow);
  box-shadow: 0 0 0 2px #f0ae00 inset;
}
.home-skin-cat__concern:focus-visible {
  outline: 3px solid var(--skin-cat-pink);
  outline-offset: 3px;
}
.home-skin-cat__concern:disabled { opacity: .55; cursor: default; transform: none; }
.home-skin-cat__concern b {
  display: block;
  overflow: hidden;
  font: 700 13px/1.1 var(--skin-cat-pixel);
  text-overflow: ellipsis;
}
.home-skin-cat__concern small { display: block; margin-top: 4px; color: #526066; font: 11px/1 var(--skin-cat-mono); }

.home-skin-cat__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.home-skin-cat__product {
  min-width: 0;
  padding: 7px;
  border: 1px solid #9c9a90;
  background: #ffffff;
  box-shadow: 1px 1px 0 #ffffff inset;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms var(--skin-cat-out);
}
.home-skin-cat__product:hover { transform: translateY(-3px); }
.home-skin-cat__product:focus-visible { outline: 3px solid var(--skin-cat-pink); outline-offset: 2px; }
/* 相位固定高度：慢圖唔會令成個視窗跳 */
.home-skin-cat__product i { display: block; aspect-ratio: .9; overflow: hidden; background: #eef3f4; }
.home-skin-cat__product img { width: 100%; height: 100%; object-fit: contain; }
.home-skin-cat__product b { display: block; margin-top: 6px; color: #5d6d72; font: 11px/1 var(--skin-cat-mono); }
.home-skin-cat__product span {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--skin-cat-ink);
  font-size: 10px;
  line-height: 1.35;
}
.home-skin-cat__product em {
  display: block;
  margin-top: 3px;
  color: var(--skin-cat-blue-deep);
  font: 12px/1 var(--skin-cat-mono);
  font-style: normal;
}

/* CTA 係成格嘅目的，所以視覺重量要大過上面八粒掣同三件貨 */
.home-skin-cat__cta {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 52px;
  margin-top: 12px;
  padding: 9px 10px 9px 15px;
  border: 2px outset #b8f0ae;
  background: linear-gradient(#68d45c, #238e33);
  color: #ffffff;
  font: 700 16px/1.15 var(--skin-cat-pixel);
  text-shadow: 1px 1px #176d24;
  text-decoration: none;
  box-shadow: 0 3px 0 #176d24;
  transition: transform 180ms var(--skin-cat-out);
}
.home-skin-cat__cta:hover { transform: translateY(-2px); }
.home-skin-cat__cta:active { transform: translateY(1px); box-shadow: 0 1px 0 #176d24; }
.home-skin-cat__cta:focus-visible { outline: 3px solid var(--skin-cat-pink); outline-offset: 3px; }
.home-skin-cat__cta span:last-child {
  width: 32px; height: 30px;
  display: grid; place-items: center;
  border: 2px outset #ffffff;
  background: var(--skin-cat-yellow);
  color: var(--skin-cat-blue-deep);
  font-size: 21px;
  text-shadow: none;
}

.home-skin-cat__status {
  min-height: 24px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 3px 7px;
  border-top: 1px solid #aaa89e;
  background: #f7f5e9;
  font: 13px/1 var(--skin-cat-mono);
}
.home-skin-cat__taskbar {
  position: absolute;
  z-index: 30;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  display: flex; align-items: center; gap: 7px;
  padding-right: 10px;
  background: linear-gradient(#2f79ed, #0753ca);
  color: #ffffff;
  font: 14px/1 var(--skin-cat-mono);
}
.home-skin-cat__start {
  align-self: stretch;
  display: flex; align-items: center;
  padding: 0 22px 0 13px;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(#65d159, #208d31);
  font: italic 600 13px/1 var(--skin-cat-pixel);
  text-shadow: 1px 1px #176d24;
}
.home-skin-cat__task { padding: 5px 28px 5px 9px; border: 1px solid rgba(255,255,255,.3); background: #1d63cf; }
.home-skin-cat__clock { margin-left: auto; }

@media (max-width: 900px) {
  .home-skin-cat__grid { grid-template-columns: 1fr; gap: 12px; padding-top: 34px; }
  .home-skin-cat__assistant { min-height: 500px; }
  .home-skin-cat__mascot {
    left: 50%;
    width: min(92%, 460px);
    transform: translateX(-50%);
    object-position: center bottom;
  }
  .home-skin-cat__window { margin-bottom: 35px; }
}

@media (max-width: 600px) {
  .home-skin-cat__assistant { min-height: 430px; }
  .home-skin-cat__label { left: 0; }
  .home-skin-cat__mascot { width: min(94%, 365px); height: 410px; }
  .home-skin-cat__body { min-height: 0; padding: 10px; }
  .home-skin-cat__head { display: block; }
  .home-skin-cat__head span { display: inline-block; margin-top: 8px; }
  .home-skin-cat__concerns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 手機掣至少 56px 高 —— 長 label（暗瘡・粉刺・閉口）准出兩行，
     唔准縮到 12px 以下 */
  .home-skin-cat__concern { min-height: 56px; padding: 8px 9px; }
  .home-skin-cat__concern b { font-size: 14px; white-space: normal; }
  .home-skin-cat__concern small { font-size: 12px; }
  .home-skin-cat__products { gap: 6px; }
  .home-skin-cat__product { padding: 4px; }
  .home-skin-cat__product span { display: none; }
  .home-skin-cat__cta { min-height: 56px; font-size: 15px; }
  .home-skin-cat__taskbar { height: 29px; }
  .home-skin-cat__start { padding-inline: 10px 14px; }
  .home-skin-cat__task { padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-skin-cat__concern,
  .home-skin-cat__product,
  .home-skin-cat__cta { transition: none; }
  .home-skin-cat__concern:hover,
  .home-skin-cat__product:hover,
  .home-skin-cat__cta:hover { transform: none; }
}

/* ── 手機貼紙帶：公仔放大、擺密啲（2026-08-21）───────────────────────
   老闆喺 iPhone 度睇，話有幾個 icon 細到睇唔清（爽膚水 31px、乳液 32px、
   防曬 34px）。最細嗰幾個拉上去同大嗰幾個睇齊，範圍由 31–49px 收窄到
   46–58px；貼紙帶向上長 14px 換返啲位，招牌本身 350px 高唔郁。 */
@media (max-width: 720px) {
  /* 第二次放大（老闆 2026-08-23：「手機版大間少少」）。範圍由 46–58px
     去到 51–65px，條帶 140 → 154px 換返啲位，招牌本身 350px 高唔郁。 */
  /* 上行：再抬高 6px，等大咗嘅公仔唔會壓落下行 */
  /* 下行：位置唔郁，淨係放大公仔 */
}




.gap { margin-top: var(--space-lg); }

/* 訂單摘要嗰條欄得 245–290px 闊，砌三張並排卡就每張得七十幾 px，
   相細過拇指、字要斬兩行。喺呢個闊度橫行 list 讀得快好多。 */
/* 掣要撳得中：44px 係手指嘅最低要求，視覺上細但撳區大 */

/* ============================================================
   品牌頁：XP Explorer 窗（2026-08-23 重做）
   ------------------------------------------------------------
   之前係深色玻璃卡疊喺煙霧片上面，logo 全部要 `brightness(0) invert(1)`
   先睇到 —— 即係將 56 個牌子嘅招牌色一次過揼晒，成版剩返白字。
   老闆嘅講法係「唔好睇」同「我想要返原色」。

   而家：Bliss 桌面 + 一個 Explorer 窗 + 白底磚，logo 用返自己嘅顏色。
   顏色跟返 skincare-modes.css 嗰套 XP token，全站一致。
   ============================================================ */
.brands-page {
  position: relative;
  overflow: hidden;
  /* 同開場動畫、護膚頁招牌一模一樣嗰個天空草地 */
  background: linear-gradient(#8fd5ff 0, #daf2ff 62%, #69bd65 62.2%, #3f9d48 100%);
  background-attachment: fixed;
}
/* 煙霧片唔再用 —— 留住個檔，但唔好再畫出嚟 */

/* 分類群組列 —— Explorer 嘅 "Arrange by" 分隔條 */

/* 窗入面唔要原本嗰啲深色 section 底同大 padding */

/* ---------- 品牌磚：白底、原色 logo ---------- */
.brands-page .brand-card {
  aspect-ratio: 5 / 3;
  padding: 10px 8px 6px;
  border: 1px solid #d4d0c4;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  transition: background-color .12s, border-color .12s;
}
.brands-page .brand-card:hover,
.brands-page .brand-card:focus-visible {
  transform: none;
  border-color: #316ac5;
  background: #eaf1fd;               /* XP 揀中嗰隻藍 */
  box-shadow: none;
}
/* 🔑 呢一行就係老闆要嘅嘢：唔好再抹白 */
.brands-page .brand-card img { filter: none; }

/* ⚠️ 一定要寫明 grid-template-columns。淨係寫 rows 嘅話，隱含嗰條 column
   係 auto（= max-content），而入面個 logo-wrap 係 width:100% —— 百分比
   要一條確定嘅 column 先解得到，兩邊互相等對方就一齊變 0，
   結果所有 SVG wordmark 消失（PNG 有 intrinsic size 所以淨係佢見到）。 */
.brands-page .brand-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* 個 <span> 品牌名係 visually-hidden（無障礙用），唔佔位，所以一行就夠 */
  align-items: center;
  justify-items: center;
}
 /* ⚠️ 唔可以用 height:100% —— 個 grid row 係 minmax(0,1fr)，高度唔確定，
    百分比會解成 0，啲 SVG wordmark 就一齊消失（淨返 PNG 見到）。
    畀個實數高度佢，SVG 先有得撐。 */
.brands-page .brand-card__logo-wrap {
  height: auto;
  min-height: 52px;
  width: 100%;
}
.brands-page .brand-card img {
  max-width: 88%;
  max-height: 52px;
}

/* 白底 logo 太淺就襯返個好淺嘅灰底，唔會消失 */
.brands-page .brand-card img[alt="AXIS-Y"] { background: #4a5b66; border-radius: 3px; padding: 4px 6px; }

/* ============================================================
   首頁「Our Brands」：跟品牌頁行 Archive 檔案室
   ------------------------------------------------------------
   兩格都係「我哋入嘅牌子」，用兩套樣客會覺得撳咗入去跳咗第二個網站。
   token 同 /brands 一模一樣（--ar-*），改一次兩處齊。

   走馬燈本身留住 —— 嗰個橫向流動就係呢格嘅性格。但係 Archive 唔用卡：
   磚全部拆走，剩返細線分隔，logo 就咁喺線之間流。

   護膚配方同全部產品**唔跟** —— 嗰啲係功能版面，XP 控制台喺嗰度
   反而幫到手（似真係喺度操作緊嘢）。
   ============================================================ */
.brand-marquees {
  --ar-ground: #e7f1f4;
  --ar-ink: #1e3a45;
  --ar-rule: #c5dae1;
  --ar-hair: #b6d0d9;
  --ar-soft: #6b8d99;
  --ar-hover: #dbeaf0;

  background: var(--ar-ground);
  color: var(--ar-ink);
}
.brand-marquees__video { display: none; }
.brand-marquees .section-header__title { color: var(--ar-ink); }

/* 個「窗」拆到剩返一條索引標題 */

/* 分區列：一行等寬細字，上面一條細線 */
.brand-marquees .brand-marquees__section { padding: 0; background: none; }
.brand-marquees .brand-marquees__section-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 0 7px;
  border: 0;
  border-top: 1px solid var(--ar-hair);
  background: none;
  text-align: left;
}
.brand-marquees .brand-marquees__section:first-child .brand-marquees__section-header { border-top: 0; }
.brand-marquees .brand-section-title { margin: 0; }
.brand-marquees .brand-marquees__label {
  margin: 0;
  color: var(--ar-soft);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.brand-marquees .brand-section-toggle {
  flex: none;
  margin: 0;
  padding: 0;
  color: var(--ar-ink);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  opacity: .75;
}
.brand-marquees .brand-section-toggle:hover { opacity: 1; }

/* 走馬燈 = 品牌頁嗰張表，剩係得一行識郁
   ------------------------------------------------------------
   老闆：「首頁嗰度要做到好似呢一個咁（品牌頁），只不過變咗一行
   可以移動嘅版本」。

   所以唔係一格格分開嘅白盒（我上一版做錯咗，加咗 gap、圓角、白底、
   陰影 —— 變成一串卡片）。品牌頁嗰個係**一張連住嘅表**：
     · 格與格之間淨係一條細線，冇罅隙
     · 底色透出嚟（淺藍），唔係白色
     · 冇圓角冇陰影
   一行走馬燈就係嗰張表嘅其中一行，橫住郁。
   ============================================================ */
.brand-marquees .brand-marquee {
  background: transparent;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ar-rule);
}
/* 每個分區第一行要補返上邊，先接得返個群組標題 */
.brand-marquees .brand-marquees__rows > .brand-marquee:first-child {
  border-top: 1px solid var(--ar-rule);
}
.brand-marquees .brand-marquee::before,
.brand-marquees .brand-marquee::after {
  background: linear-gradient(90deg, var(--ar-ground), rgba(231, 241, 244, 0));
}
.brand-marquees .brand-marquee::after { transform: scaleX(-1); }

/* ⚠️ 選擇器要夠力：3697 行有
   `.brand-marquees__section:nth-child(odd) .brand-marquee__item { border:none; background:transparent }`
   （0,3,0）—— 舊嗰個無邊框設計留低嘅。淨寫 .brand-marquees .item（0,2,0）
   打唔贏，徵狀係 radius 出到但 border 出唔到。 */
.brand-marquees .brand-marquees__section .brand-marquee__item {
  opacity: 1;
  width: 172px;
  height: 104px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-right: 1px solid var(--ar-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ar-ink);
  transition: background-color .12s;
}
.brand-marquees .brand-marquees__section .brand-marquee__item:hover,
.brand-marquees .brand-marquees__section .brand-marquee__item.is-armed {
  border-right: 1px solid var(--ar-rule);
  background: var(--ar-hover);
  box-shadow: none;
  transform: none;
  color: var(--ar-ink);
}
/* 🔑 唔好再抹白 */
.brand-marquees .brand-marquee__logo { filter: none; }

/* 分類標題 —— 同品牌頁一樣大細，唔好又變返註腳 */
.brand-marquees .brand-marquees__label {
  margin: 0;
  color: var(--ar-ink);
  font-family: inherit;
  font-size: clamp(15px, 2.1vw, 19px);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: none;
}
.brand-marquees .brand-marquees__section-header { padding: 22px 0 10px; border-top: 0; }

/* 展開嗰個 grid 一樣係細線格 */
.brand-marquees .brand-grid { gap: 8px; }
.brand-marquees .brand-grid__card {
  border: 1px solid var(--ar-rule);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
.brand-marquees .brand-grid__card:hover {
  border-color: #6da3b5;
  background: var(--ar-hover);
  box-shadow: none;
}
.brand-marquees .brand-grid__logo { filter: none; }
.brand-marquees .brand-grid__name {
  color: var(--ar-soft);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: .1em;
}

/* ============================================================
   品牌頁：Archive 檔案室（OUJI 淺藍）
   ------------------------------------------------------------
   老闆 2026-08-23 睇完四隻底色揀咗呢個。原版係米黃 #f1efe9，
   佢話「唔係好襯」—— 換咗 OUJI 自己嗰隻淺藍 #e7f1f4
   （--primary-lightest，同 loading 畫面一家人）之後就啱。

   要點：**唔係淨係換個底色**。線條、字色、hover 全部由同一組
   --ar-* token 出，底色改咗但線同字唔跟住改，對比就會散。
   ============================================================ */
/* ---------- Archive：底色用 token ---------- */
.brands-page[data-style="archive"] {
  /* OUJI 淺藍 —— --primary-lightest #e7f1f4 嗰一家 */
  --ar-ground: #e7f1f4;
  --ar-ink: #1e3a45;
  --ar-rule: #c5dae1;
  --ar-hair: #b6d0d9;
  --ar-soft: #6b8d99;
  --ar-hover: #dbeaf0;

  background: var(--ar-ground);
  color: var(--ar-ink);
}

/* 窗框收起，剩返一條索引標題 */

/* 分類標題 —— 老闆：「護膚品牌同彩妝品牌嗰兩隻字應該大啲，
   如果唔係啲人點睇？」原本 10.5px 等寬細字，掃過去根本睇唔到。
   而家用返正常字體、15–19px、深色，係一個真標題唔係一行註腳。 */
/* 細線格：唔要卡，要一張表 */
[data-style="archive"] .brand-card {
  border: 0;
  border-right: 1px solid var(--ar-rule);
  border-bottom: 1px solid var(--ar-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
[data-style="archive"] .brand-card:hover {
  background: var(--ar-hover);
  border-color: var(--ar-rule);
  box-shadow: none;
}
[data-style="archive"] .section-header__title { color: var(--ar-ink); }

/* ============================================================
   品牌 logo 大細統一
   ------------------------------------------------------------
   老闆講過兩次：「有啲偏大、有啲偏細，要用視覺睇返」。

   點解會唔齊：56 個檔嘅畫布留白各有各唔同 —— 有啲 SVG 個字得畫布
   一半高（rom&nd 51%），有啲頂晒（Torriden 100%）；PNG 更加亂。
   夾 `max-height` 係夾住個**畫布**唔係夾住個**字**，所以兩個都設 36px
   出嚟都會一大一細。

   做法：喺瀏覽器逐個量返真正嘅墨水框（SVG 用 getBBox，點陣圖用 canvas
   掃 alpha ＋ 亮度），再按**墨水面積**歸一到約 74×20，然後用
   30px 高 / 104px 闊做上限收住極端嘅。下面每一行都係量出嚟嘅數。

   🔴 2026-08-24：呢段畀我喺拆試款 CSS 嗰陣連累刪咗，老闆即刻發現
   「一大一細」。**呢段唔係裝飾，係量度結果 —— 改附近嘅 CSS 千祈唔好掃走。**
   加新牌子要重新量，唔好逐個手 tune。
   ============================================================ */
.brands-page { --logo-k: 1; }
.brand-marquees { --logo-k: .78; }
.brands-page .brand-card img,
.brand-marquees .brand-marquee__logo,
.brand-marquees .brand-grid__logo { max-width: 100%; max-height: none; }
.brands-page .brand-card img[src$="2an.svg"],
.brand-marquees .brand-marquee__logo[src$="2an.svg"],
.brand-marquees .brand-grid__logo[src$="2an.svg"] { width: calc(153px * var(--logo-k, 1)); height: calc(38.3px * var(--logo-k, 1)); }  /* 2aN */
.brands-page .brand-card img[src$="abib.svg"],
.brand-marquees .brand-marquee__logo[src$="abib.svg"],
.brand-marquees .brand-grid__logo[src$="abib.svg"] { width: calc(69px * var(--logo-k, 1)); height: calc(21.4px * var(--logo-k, 1)); }  /* Abib */
.brands-page .brand-card img[src$="amuse.svg"],
.brand-marquees .brand-marquee__logo[src$="amuse.svg"],
.brand-marquees .brand-grid__logo[src$="amuse.svg"] { width: calc(127.1px * var(--logo-k, 1)); height: calc(31.8px * var(--logo-k, 1)); }  /* AMUSE */
.brands-page .brand-card img[src$="anua.png"],
.brand-marquees .brand-marquee__logo[src$="anua.png"],
.brand-marquees .brand-grid__logo[src$="anua.png"] { width: calc(106.2px * var(--logo-k, 1)); height: calc(24.5px * var(--logo-k, 1)); }  /* ANUA */
.brands-page .brand-card img[src$="april-skin.svg"],
.brand-marquees .brand-marquee__logo[src$="april-skin.svg"],
.brand-marquees .brand-grid__logo[src$="april-skin.svg"] { width: calc(104px * var(--logo-k, 1)); height: calc(13.3px * var(--logo-k, 1)); }  /* April Skin */
.brands-page .brand-card img[src$="arencia.png"],
.brand-marquees .brand-marquee__logo[src$="arencia.png"],
.brand-marquees .brand-grid__logo[src$="arencia.png"] { width: calc(80.7px * var(--logo-k, 1)); height: calc(18.3px * var(--logo-k, 1)); }  /* Arencia */
.brands-page .brand-card img[src$="beauty-of-joseon.svg"],
.brand-marquees .brand-marquee__logo[src$="beauty-of-joseon.svg"],
.brand-marquees .brand-grid__logo[src$="beauty-of-joseon.svg"] { width: calc(135.1px * var(--logo-k, 1)); height: calc(33.8px * var(--logo-k, 1)); }  /* Beauty of Joseon */
.brands-page .brand-card img[src$="beplain.png"],
.brand-marquees .brand-marquee__logo[src$="beplain.png"],
.brand-marquees .brand-grid__logo[src$="beplain.png"] { width: calc(77.7px * var(--logo-k, 1)); height: calc(22.2px * var(--logo-k, 1)); }  /* beplain */
.brands-page .brand-card img[src$="boh.png"],
.brand-marquees .brand-marquee__logo[src$="boh.png"],
.brand-marquees .brand-grid__logo[src$="boh.png"] { width: calc(60.6px * var(--logo-k, 1)); height: calc(25.5px * var(--logo-k, 1)); }  /* BOH */
.brands-page .brand-card img[src$="braye.svg"],
.brand-marquees .brand-marquee__logo[src$="braye.svg"],
.brand-marquees .brand-grid__logo[src$="braye.svg"] { width: calc(147.8px * var(--logo-k, 1)); height: calc(36.9px * var(--logo-k, 1)); }  /* BRAYE */
.brands-page .brand-card img[src$="bring-green.svg"],
.brand-marquees .brand-marquee__logo[src$="bring-green.svg"],
.brand-marquees .brand-grid__logo[src$="bring-green.svg"] { width: calc(143.2px * var(--logo-k, 1)); height: calc(35.8px * var(--logo-k, 1)); }  /* Bring Green */
.brands-page .brand-card img[src$="clio.svg"],
.brand-marquees .brand-marquee__logo[src$="clio.svg"],
.brand-marquees .brand-grid__logo[src$="clio.svg"] { width: calc(117.6px * var(--logo-k, 1)); height: calc(29.4px * var(--logo-k, 1)); }  /* CLIO */
.brands-page .brand-card img[src$="coralhaze.svg"],
.brand-marquees .brand-marquee__logo[src$="coralhaze.svg"],
.brand-marquees .brand-grid__logo[src$="coralhaze.svg"] { width: calc(153.5px * var(--logo-k, 1)); height: calc(38.4px * var(--logo-k, 1)); }  /* Coralhaze */
.brands-page .brand-card img[src$="cosrx.png"],
.brand-marquees .brand-marquee__logo[src$="cosrx.png"],
.brand-marquees .brand-grid__logo[src$="cosrx.png"] { width: calc(84.7px * var(--logo-k, 1)); height: calc(17.7px * var(--logo-k, 1)); }  /* COSRX */
.brands-page .brand-card img[src$="dasique.png"],
.brand-marquees .brand-marquee__logo[src$="dasique.png"],
.brand-marquees .brand-grid__logo[src$="dasique.png"] { width: calc(80.3px * var(--logo-k, 1)); height: calc(26.5px * var(--logo-k, 1)); }  /* dasique */
.brands-page .brand-card img[src$="dr-melaxin.png"],
.brand-marquees .brand-marquee__logo[src$="dr-melaxin.png"],
.brand-marquees .brand-grid__logo[src$="dr-melaxin.png"] { width: calc(94.7px * var(--logo-k, 1)); height: calc(15.6px * var(--logo-k, 1)); }  /* Dr. Melaxin */
.brands-page .brand-card img[src$="dr-jart.svg"],
.brand-marquees .brand-marquee__logo[src$="dr-jart.svg"],
.brand-marquees .brand-grid__logo[src$="dr-jart.svg"] { width: calc(86.3px * var(--logo-k, 1)); height: calc(17.2px * var(--logo-k, 1)); }  /* Dr.Jart+ */
.brands-page .brand-card img[src$="feliamo.svg"],
.brand-marquees .brand-marquee__logo[src$="feliamo.svg"],
.brand-marquees .brand-grid__logo[src$="feliamo.svg"] { width: calc(70.2px * var(--logo-k, 1)); height: calc(21.1px * var(--logo-k, 1)); }  /* Feliamo */
.brands-page .brand-card img[src$="flower-knows.svg"],
.brand-marquees .brand-marquee__logo[src$="flower-knows.svg"],
.brand-marquees .brand-grid__logo[src$="flower-knows.svg"] { width: calc(159.5px * var(--logo-k, 1)); height: calc(39.9px * var(--logo-k, 1)); }  /* Flower Knows */
.brands-page .brand-card img[src$="fwee.svg"],
.brand-marquees .brand-marquee__logo[src$="fwee.svg"],
.brand-marquees .brand-grid__logo[src$="fwee.svg"] { width: calc(173px * var(--logo-k, 1)); height: calc(43.3px * var(--logo-k, 1)); }  /* fwee */
.brands-page .brand-card img[src$="glint.svg"],
.brand-marquees .brand-marquee__logo[src$="glint.svg"],
.brand-marquees .brand-grid__logo[src$="glint.svg"] { width: calc(138.1px * var(--logo-k, 1)); height: calc(34.5px * var(--logo-k, 1)); }  /* GLINT */
.brands-page .brand-card img[src$="goodal.svg"],
.brand-marquees .brand-marquee__logo[src$="goodal.svg"],
.brand-marquees .brand-grid__logo[src$="goodal.svg"] { width: calc(165.1px * var(--logo-k, 1)); height: calc(41.3px * var(--logo-k, 1)); }  /* Goodal */
.brands-page .brand-card img[src$="haruharu-wonder.png"],
.brand-marquees .brand-marquee__logo[src$="haruharu-wonder.png"],
.brand-marquees .brand-grid__logo[src$="haruharu-wonder.png"] { width: calc(104px * var(--logo-k, 1)); height: calc(10.4px * var(--logo-k, 1)); }  /* Haruharu Wonder */
.brands-page .brand-card img[src$="heart-percent.svg"],
.brand-marquees .brand-marquee__logo[src$="heart-percent.svg"],
.brand-marquees .brand-grid__logo[src$="heart-percent.svg"] { width: calc(148.2px * var(--logo-k, 1)); height: calc(37px * var(--logo-k, 1)); }  /* Heart Percent */
.brands-page .brand-card img[src$="heveblue.png"],
.brand-marquees .brand-marquee__logo[src$="heveblue.png"],
.brand-marquees .brand-grid__logo[src$="heveblue.png"] { width: calc(19.7px * var(--logo-k, 1)); height: calc(30px * var(--logo-k, 1)); }  /* HEVEBLUE */
.brands-page .brand-card img[src$="hince.svg"],
.brand-marquees .brand-marquee__logo[src$="hince.svg"],
.brand-marquees .brand-grid__logo[src$="hince.svg"] { width: calc(165.3px * var(--logo-k, 1)); height: calc(41.3px * var(--logo-k, 1)); }  /* hince */
.brands-page .brand-card img[src$="ilso.svg"],
.brand-marquees .brand-marquee__logo[src$="ilso.svg"],
.brand-marquees .brand-grid__logo[src$="ilso.svg"] { width: calc(55.5px * var(--logo-k, 1)); height: calc(26.7px * var(--logo-k, 1)); }  /* ILSO */
.brands-page .brand-card img[src$="ksecret.png"],
.brand-marquees .brand-marquee__logo[src$="ksecret.png"],
.brand-marquees .brand-grid__logo[src$="ksecret.png"] { width: calc(82.2px * var(--logo-k, 1)); height: calc(18px * var(--logo-k, 1)); }  /* KSECRET */
.brands-page .brand-card img[src$="laka.svg"],
.brand-marquees .brand-marquee__logo[src$="laka.svg"],
.brand-marquees .brand-grid__logo[src$="laka.svg"] { width: calc(150.5px * var(--logo-k, 1)); height: calc(37.6px * var(--logo-k, 1)); }  /* LAKA */
.brands-page .brand-card img[src$="lilmoon.svg"],
.brand-marquees .brand-marquee__logo[src$="lilmoon.svg"],
.brand-marquees .brand-grid__logo[src$="lilmoon.svg"] { width: calc(75.7px * var(--logo-k, 1)); height: calc(19.5px * var(--logo-k, 1)); }  /* Lilmoon */
.brands-page .brand-card img[src$="lilybyred.svg"],
.brand-marquees .brand-marquee__logo[src$="lilybyred.svg"],
.brand-marquees .brand-grid__logo[src$="lilybyred.svg"] { width: calc(181.9px * var(--logo-k, 1)); height: calc(45.5px * var(--logo-k, 1)); }  /* Lilybyred */
.brands-page .brand-card img[src$="lindsay.png"],
.brand-marquees .brand-marquee__logo[src$="lindsay.png"],
.brand-marquees .brand-grid__logo[src$="lindsay.png"] { width: calc(74.9px * var(--logo-k, 1)); height: calc(19.8px * var(--logo-k, 1)); }  /* LINDSAY */
.brands-page .brand-card img[src$="manyo.png"],
.brand-marquees .brand-marquee__logo[src$="manyo.png"],
.brand-marquees .brand-grid__logo[src$="manyo.png"] { width: calc(79.4px * var(--logo-k, 1)); height: calc(18.6px * var(--logo-k, 1)); }  /* ma:nyo */
.brands-page .brand-card img[src$="maybelline.svg"],
.brand-marquees .brand-marquee__logo[src$="maybelline.svg"],
.brand-marquees .brand-grid__logo[src$="maybelline.svg"] { width: calc(127.6px * var(--logo-k, 1)); height: calc(31.9px * var(--logo-k, 1)); }  /* Maybelline */
.brands-page .brand-card img[src$="mixsoon.svg"],
.brand-marquees .brand-marquee__logo[src$="mixsoon.svg"],
.brand-marquees .brand-grid__logo[src$="mixsoon.svg"] { width: calc(148px * var(--logo-k, 1)); height: calc(37px * var(--logo-k, 1)); }  /* MIXSOON */
.brands-page .brand-card img[src$="molak.svg"],
.brand-marquees .brand-marquee__logo[src$="molak.svg"],
.brand-marquees .brand-grid__logo[src$="molak.svg"] { width: calc(75.4px * var(--logo-k, 1)); height: calc(19.6px * var(--logo-k, 1)); }  /* Molak */
.brands-page .brand-card img[src$="ns-collection.svg"],
.brand-marquees .brand-marquee__logo[src$="ns-collection.svg"],
.brand-marquees .brand-grid__logo[src$="ns-collection.svg"] { width: calc(104.7px * var(--logo-k, 1)); height: calc(8.4px * var(--logo-k, 1)); }  /* N's Collection */
.brands-page .brand-card img[src$="needly.svg"],
.brand-marquees .brand-marquee__logo[src$="needly.svg"],
.brand-marquees .brand-grid__logo[src$="needly.svg"] { width: calc(140.6px * var(--logo-k, 1)); height: calc(35.2px * var(--logo-k, 1)); }  /* Needly */
.brands-page .brand-card img[src$="ootd.svg"],
.brand-marquees .brand-marquee__logo[src$="ootd.svg"],
.brand-marquees .brand-grid__logo[src$="ootd.svg"] { width: calc(132.3px * var(--logo-k, 1)); height: calc(33.1px * var(--logo-k, 1)); }  /* OOTD */
.brands-page .brand-card img[src$="peripera.svg"],
.brand-marquees .brand-marquee__logo[src$="peripera.svg"],
.brand-marquees .brand-grid__logo[src$="peripera.svg"] { width: calc(160.9px * var(--logo-k, 1)); height: calc(40.2px * var(--logo-k, 1)); }  /* peripera */
.brands-page .brand-card img[src$="purito.svg"],
.brand-marquees .brand-marquee__logo[src$="purito.svg"],
.brand-marquees .brand-grid__logo[src$="purito.svg"] { width: calc(130.9px * var(--logo-k, 1)); height: calc(32.7px * var(--logo-k, 1)); }  /* Purito */
.brands-page .brand-card img[src$="romand.svg"],
.brand-marquees .brand-marquee__logo[src$="romand.svg"],
.brand-marquees .brand-grid__logo[src$="romand.svg"] { width: calc(159.1px * var(--logo-k, 1)); height: calc(39.8px * var(--logo-k, 1)); }  /* rom&nd */
.brands-page .brand-card img[src$="round-lab.svg"],
.brand-marquees .brand-marquee__logo[src$="round-lab.svg"],
.brand-marquees .brand-grid__logo[src$="round-lab.svg"] { width: calc(147.1px * var(--logo-k, 1)); height: calc(36.8px * var(--logo-k, 1)); }  /* Round Lab */
.brands-page .brand-card img[src$="skin1004.png"],
.brand-marquees .brand-marquee__logo[src$="skin1004.png"],
.brand-marquees .brand-grid__logo[src$="skin1004.png"] { width: calc(104px * var(--logo-k, 1)); height: calc(15.9px * var(--logo-k, 1)); }  /* SKIN1004 */
.brands-page .brand-card img[src$="skinfood.svg"],
.brand-marquees .brand-marquee__logo[src$="skinfood.svg"],
.brand-marquees .brand-grid__logo[src$="skinfood.svg"] { width: calc(161.1px * var(--logo-k, 1)); height: calc(40.3px * var(--logo-k, 1)); }  /* Skinfood */
.brands-page .brand-card img[src$="so-natural.png"],
.brand-marquees .brand-marquee__logo[src$="so-natural.png"],
.brand-marquees .brand-grid__logo[src$="so-natural.png"] { width: calc(45.3px * var(--logo-k, 1)); height: calc(31.6px * var(--logo-k, 1)); }  /* SO Natural */
.brands-page .brand-card img[src$="solep.png"],
.brand-marquees .brand-marquee__logo[src$="solep.png"],
.brand-marquees .brand-grid__logo[src$="solep.png"] { width: calc(62.6px * var(--logo-k, 1)); height: calc(23.6px * var(--logo-k, 1)); }  /* SOLEP */
.brands-page .brand-card img[src$="some-by-mi.svg"],
.brand-marquees .brand-marquee__logo[src$="some-by-mi.svg"],
.brand-marquees .brand-grid__logo[src$="some-by-mi.svg"] { width: calc(157.3px * var(--logo-k, 1)); height: calc(39.3px * var(--logo-k, 1)); }  /* Some By Mi */
.brands-page .brand-card img[src$="sungboon-editor.png"],
.brand-marquees .brand-marquee__logo[src$="sungboon-editor.png"],
.brand-marquees .brand-grid__logo[src$="sungboon-editor.png"] { width: calc(107.1px * var(--logo-k, 1)); height: calc(30.6px * var(--logo-k, 1)); }  /* SUNGBOON EDITOR */
.brands-page .brand-card img[src$="tirtir.svg"],
.brand-marquees .brand-marquee__logo[src$="tirtir.svg"],
.brand-marquees .brand-grid__logo[src$="tirtir.svg"] { width: calc(151.6px * var(--logo-k, 1)); height: calc(37.9px * var(--logo-k, 1)); }  /* TIRTIR */
.brands-page .brand-card img[src$="tocobo.svg"],
.brand-marquees .brand-marquee__logo[src$="tocobo.svg"],
.brand-marquees .brand-grid__logo[src$="tocobo.svg"] { width: calc(90.7px * var(--logo-k, 1)); height: calc(16.4px * var(--logo-k, 1)); }  /* TOCOBO */
.brands-page .brand-card img[src$="topards.svg"],
.brand-marquees .brand-marquee__logo[src$="topards.svg"],
.brand-marquees .brand-grid__logo[src$="topards.svg"] { width: calc(79.6px * var(--logo-k, 1)); height: calc(18.6px * var(--logo-k, 1)); }  /* TOPARDS */
.brands-page .brand-card img[src$="torriden.svg"],
.brand-marquees .brand-marquee__logo[src$="torriden.svg"],
.brand-marquees .brand-grid__logo[src$="torriden.svg"] { width: calc(88.1px * var(--logo-k, 1)); height: calc(16.8px * var(--logo-k, 1)); }  /* Torriden */
.brands-page .brand-card img[src$="unleashia.svg"],
.brand-marquees .brand-marquee__logo[src$="unleashia.svg"],
.brand-marquees .brand-grid__logo[src$="unleashia.svg"] { width: calc(142.6px * var(--logo-k, 1)); height: calc(35.7px * var(--logo-k, 1)); }  /* UNLEASHIA */
.brands-page .brand-card img[src$="vt-cosmetics.png"],
.brand-marquees .brand-marquee__logo[src$="vt-cosmetics.png"],
.brand-marquees .brand-grid__logo[src$="vt-cosmetics.png"] { width: calc(96.9px * var(--logo-k, 1)); height: calc(15.3px * var(--logo-k, 1)); }  /* VT Cosmetics */
.brands-page .brand-card img[src$="wakemake.svg"],
.brand-marquees .brand-marquee__logo[src$="wakemake.svg"],
.brand-marquees .brand-grid__logo[src$="wakemake.svg"] { width: calc(129.5px * var(--logo-k, 1)); height: calc(32.4px * var(--logo-k, 1)); }  /* WAKEMAKE */

/* ============================================================
   首頁優惠 banner（老闆 2026-08-24 由 preview-promo 揀咗 E v3）
   ------------------------------------------------------------
   擺喺「產品分類」下面。用 container query 排版，所以夾窄真係會
   出手機排位，唔使靠 viewport media query。
   ⚠️ 「折實」兩個字唔准喺文案度剷走 —— Shopify 條免運規則真係睇
   折後價，寫「滿 $400」會令買 $420 嘅客以為免運。
   ============================================================ */
/* 🔴 呢格一定要通到兩邊，唔可以做一個浮喺白底上面嘅盒。
   第一版寫咗 width: min(1280px, ...) —— 淺藍色只鋪咗中間，
   左右兩條白邊同上下兩格完全接唔上，老闆一睇就捉到。
   上下兩格（產品分類、而家買咩好）都係白底通到邊，
   所以呢格嘅底色都要通到邊，靠入面嘅內容框做對齊。 */
.promo-wrap { container-type: inline-size; width: 100%; margin: 0; }
/* ---------- 共用圖示（畫出嚟，唔用 emoji） ---------- */
.ico { width: 1em; height: 1em; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* ============================================================
   方向 B —— 面霜做主角（獨立一套：淺藍攝影棚）
   ============================================================ */
.promo {
  position: relative; overflow: hidden;
  /* 老闆 2026-09-03：首頁呢格改用彈窗嗰套設計語言。
     深藍係全站同一隻（footer、抽屜、優惠彈窗都係 #2b4c58），
     唔另開一套 —— 金色 #ffd77a 淨係用嚟標金額同折扣，
     所以客一眼掃落去見到嘅金色，就係佢慳到嘅數。 */
  background: linear-gradient(158deg, #2b4c58 0%, #35606f 54%, #2b4c58 100%);
  padding: clamp(30px, 4.6cqw, 56px) 0;
  font-family: 'Manrope', 'PingFang TC', 'Microsoft JhengHei', sans-serif; color: #fff;
}
/* 內容跟返全站嘅框，同上下兩格對齊 */
/* 左相右字，兩邊等大。老闆：「你其實個大細要同嗰啲字，即係同嗰啲
   優惠資訊嗰個地方個大細要一樣」—— 所以係 1:1，唔係一大一細。
   align-items: stretch 令張相高度自動跟住右邊嗰疊資訊。 */

/* 🔴 闊機唔可以將內容困喺 1280 中間。
   上一版我淨係將底色拉到兩邊，內容照舊 1280 置中 —— 結果兩條白邊
   變咗兩大片吉淺藍，畫面反而更空。等於換咗個顏色，冇解決到。

   而家：張相由畫面左邊直接切入嚟（負 margin 食返左邊嗰段吉位），
   右邊文字欄仍然對齊全站 1280 內容線。相有嘢睇，右邊有留白透氣，
   兩邊都唔會吉。 */
/* 官方相本身就係水感藍底＋白樽，同 OUJI 隻藍係一家人，
   所以唔去背、唔加假陰影，就咁當一張相咁擺。 */
/* ── 右邊：芝麻 ＋ 贈品 ──
   芝麻大隻先撐得起半邊版，細細粒擺角落就會好似而家咁空。
   佢同支面霜疊住，讀落去就係「店長捧住份禮」，唔使多解釋。 */
/* 芝麻企喺右下角，所以下面兩件嘢要讓返條巷 —— 實測唔讓佢就會壓住
   「折實」嗰段細字。上面標題同兩級門檻唔使讓（芝麻夠唔到嗰度）。 */
.promo__shima {
  position: absolute;
  right: -3%;
  bottom: -8%;
  /* 佢係右邊嘅主角，唔係角落一粒 icon —— 要同支面霜差唔多高先撐得住 */
  width: clamp(190px, 24cqw, 340px);
  aspect-ratio: 294 / 360;
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(30, 60, 72, .18));
}
/* 四格疊住，一次只顯示一格 —— 換格靠 opacity，唔郁 layout */
.promo__frame {
  /* 同 .shima__f 一樣：六格原圖闊度唔同、高度一致，所以鎖高度貼底，
     唔好用 max-width/max-height 各自 fit，否則每格縮放比例都唔同。 */
  position: absolute;
  inset: auto 0 0 0;
  margin: 0 auto;
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 0;
  /* 連續分解圖要逐格硬切，唔可以淡入淡出 —— 260ms 一格再加 320ms 淡入，
     兩格會疊住，睇落係鬼影唔係動作。 */
}
.promo__frame.is-on { opacity: 1; }
/* 手機版：右欄由上到下都係字（標題→兩級門檻→掣＋細字），芝麻貼喺
   右下角一定會壓住嘢 —— 實測貓佔 y 636–798，正正蓋住「送完即止」同
   「HK$569 有面霜」。老闆：「你睇可能擺上啲嘅位置或者擺下啲嘅位置，
   但佢唔會遮住個位咯」。
   而家搬去騎住上面張面霜相嘅右下角：嗰忽係淨色面霜質感，冇字冇 badge
   （「送量有限」喺左下角、「免費送」緞帶喺左上角）。貓底部收喺標題
   上面 5px，唔會掂到任何一行字。 */
@container (max-width: 759px) {
  .promo__shima {
    width: 114px;
    right: 0;
    top: -145px;
    bottom: auto;
  }
}
/* 金色只標「88 折」同金額 —— 客掃落去見到嘅金色就係佢慳到嘅數 */
/* 由「上下分隔線」改成同彈窗一樣嘅半透明卡 —— 深底上面畫線會太搶，
   一格一格反而讀得快。 */
/* 白色掣喺深底上面 —— 同彈窗嗰粒「開始揀貨」一模一樣 */
/* 0.62 白喺 #2b4c58 上面啱啱好 4.5:1，冇餘地。校到 0.72（≈5.6:1）。 */
.pE__cta .ico { font-size: 1.1rem; transition: transform 320ms cubic-bezier(.22,1,.36,1); }
.pE__cta:hover .ico { transform: translateX(5px); }
/* ---------- 入場動作：一個，唔係四個 ---------- */
.rise { opacity: 0; transform: translateY(14px); }
.rise.is-in { opacity: 1; transform: none; transition: opacity 620ms cubic-bezier(.22,1,.36,1), transform 620ms cubic-bezier(.22,1,.36,1); }
/* 🔴 呢個 @media 開頭之前唔見咗，剩返一個孤兒 `}` 喺度。
   我由 preview-promo.html 抽 CSS 過嚟嗰陣，個 regex 攞咗入面啲規則
   但冇攞個 @media 開頭，個閂括號就孤零零留咗低。
   兩個後果：① 一個 top-level 嘅流浪 `}`；
   ② `.rise { opacity: 1 }` 由「淨係 reduced-motion 先用」變咗無條件，
      永遠蓋住上面條 opacity: 0，入場動畫等於冇咗。 */
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; }
}
/* ══════════════════════════════════════════════════════════
   E v3 —— B 嘅排位 ＋ 88 折做標題 ＋ 芝麻
   老闆原話：「本身你個排位係幾好嘅⋯⋯只不過你呢個標題呢就變咗做
   全單八折，跟住左邊嗰個呢就咁寫住免費送⋯⋯右邊可能加個芝麻貼圖
   咁就得㗎啦。」所以 v3 唔係再設計過，係喺 B 上面改三樣。
   ══════════════════════════════════════════════════════════ */
/* 芝麻企喺右下角，所以下面兩件嘢要讓返條巷 —— 實測唔讓佢就會壓住
   「折實」嗰段細字。上面標題同兩級門檻唔使讓（芝麻夠唔到嗰度）。 */
/* 一句就一句，唔好斬開兩橛。
   原本寫「9 月 15 日 23:59 前，成間店冇門檻。仲有 23 日。」——
   ① 23:59 冇人記，講日期就夠；② 太長，喺右欄會斷行斷喺「冇門
   ／檻」中間，好核突；③ 兩句句號變咗兩件事，其實係一句。
   而家縮短、balance 斷行、「冇門檻」三個字唔准拆。 */
/* 限量標示 —— 數字係即時由 Shopify 攞返嚟嘅真存貨，唔係寫死。
   ⚠️ 唔准寫假數，亦都冇「N 人正在瀏覽」嗰類嘢：嗰啲係編出嚟嘅，
   同我哋而家喺 Google 度處理緊嘅「錯誤陳述」係同一類。
   攞唔到數就淨係顯示「送完即止」，唔會亂噏一個數。 */
/* 🔴 兩個章唔可以疊：ribbon 喺左上，佢就要去左下。
   原本擺 top:62px，但 ribbon 本身高過 46px，兩個實撞。
   老闆手機同電腦都影到重疊。 */
/* 標題同下面 OUJI Member 用同一套 display 字體及比例。 */

/* ============================================================
   芝麻動畫（共用）
   ------------------------------------------------------------
   六格連續分解圖疊住，一次顯示一格，260ms 換一格。
   ⚠️ 唔可以加 transition —— 260ms 一格再淡入會兩格疊住，變鬼影。
   ⚠️ 一定要用「同一動作嘅連續分解」，唔可以攞幾個唔同動作快播。
   ============================================================ */
.shima { position: relative; pointer-events: none; }
.shima__f {
  /* ⚠️ 六格原圖闊度唔同（247–323px），高度全部 340。
     用 max-width/max-height 各自 fit 嘅話，每格縮放比例都唔同，
     播起上嚟隻貓會一格大一格細。所以鎖高度、闊度自由、貼底對齊 ——
     隻貓踩實同一條地面，得個手部動作喺度郁。 */
  position: absolute; inset: auto 0 0 0; margin: 0 auto;
  height: 100%; width: auto; max-width: none;
  opacity: 0;
}
.shima__f.is-on { opacity: 1; }
/* 2026-10-17 起新款白貓貼圖係單張（JS 砌嘅盒得一格）：塞滿個盒、按比例縮、貼底置中。 */
.shima > .shima__f:only-child { inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }

@keyframes sfpShake {
  0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}

/* 加購清單底下嘅「查看更多」。做成一條淺色橫掃嘅掣，唔搶「加入」
   同「揀色號」嗰兩個主要動作。 */

/* ============================================================
   每頁一隻芝麻 —— 貼圖企喺頁面標題上面
   老闆：「儘量每一頁都有芝麻嘅圖案喺度，總之所有頁面都要整一個
   符合嗰個頁面嘅芝麻貼圖」。所以唔係得首頁同購物袋，係全站。
   靜態貼圖 ＋ 輕微 idle 浮動就夠，唔使每頁都做六格分解圖（嗰個貴好多，
   而且會拖慢每一頁）。
   ============================================================ */
.shima-page { display: flex; justify-content: center; margin-bottom: 10px; }
/* ⚠️ 一定要 `> img` —— 六格動畫嘅 <img> 係 .shima-page 嘅孫，
   寫 `.shima-page img` 就會連格仔一齊食（specificity 0,1,1 贏
   .shima__f 嘅 0,1,0），格仔會縮到 104px 塞喺個盒中間。 */
.shima-page > img {
  display: block;
  width: clamp(104px, 12vw, 140px);
  height: auto;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 14px rgba(43, 76, 88, 0.16));
  animation: shima-idle 3.6s ease-in-out infinite;
}
@keyframes shima-idle {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-6px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .shima-page img { animation: none; }
}

/* 分類頁（.cat-head）唔可以用置中大貼圖 —— 呢啲頁面量過「第一件貨喺
   幾多 px」，加一舊嘢落標題上面等於將啲貨推低。所以貼喺標題帶右下角，
   絕對定位，唔佔垂直空間。.cat-head 本身係 position:relative ＋
   overflow:hidden，所以要開 min-height 保證隻貓唔會俾切到頭。 */
.cat-head { min-height: clamp(132px, 15vw, 180px); }
.shima-corner {
  position: absolute;
  right: clamp(10px, 3vw, 44px);
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}
.shima-corner > img {
  display: block;
  height: clamp(96px, 11vw, 138px);
  width: auto;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 14px rgba(43, 76, 88, 0.16));
  animation: shima-idle 3.6s ease-in-out infinite;
}
/* 手機淨低嘅闊度唔多，隻貓要細啲兼半透明啲，唔好壓住個標題同件數 */
@media (max-width: 640px) {
  .shima-corner > img, .shima-corner .shima { height: 84px; opacity: .92; }
}
@media (prefers-reduced-motion: reduce) {
  .shima-corner > img { animation: none; }
}

/* 呢幾個 hero 各有各風格（獲獎係深啡金、全部產品係 XP 開機畫面、彩妝
   係貼紙相機），芝麻貼落角落唔可以撐大佢哋，亦都要確保個容器係
   position:relative 先錨得住。 */
.awards-hero { position: relative; }
/* 深色 hero 上面要多少少光邊，唔係隻貓會黐住個底 */
.awards-hero .shima-corner > img { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
/* 新款白貓（2026-10-17）打橫闊啲：手機要細一級，唔好遮住最後一格獎項（@cosme）啲字 */
@media (max-width: 640px) { .awards-hero .shima-corner > img { height: 76px; } }
/* XP 開機畫面最底有條 46px 工具列 —— 芝麻要企喺工具列上面，唔可以
   俾佢切一半（實測貓底部 533px、工具列由 487px 開始，蓋咗 46px）。
   同時要避開右邊「其他」個資料夾貼紙，所以縮細少少兼貼實右邊。 */
/* 貼紙牆本身層層疊，芝麻要疊喺最面 —— 唔係會俾右邊嗰嚿粉紅爆炸形
   （.makeup-booth__burst，實測 x 1198–1418）遮咗半隻。 */
/* 品牌頁係一個 XP 視窗。⚠️ .bxp__menu 同 .bxp__crumb 喺闊機係
   display:none（實測 0×0），錨唔住 —— 要用 .bxp__body。個視窗成
   1883px 高，所以貼右上角，唔係右下角（右下角等於成頁最底）。 */
/* 手機版：分類頁隻貓企喺右下角，會壓住 .cat-head__desc 最後嗰兩行
   （實測 lens.html 手機版「現貨嘅度數一樣」俾隻貓遮咗）。讓返條巷。 */
@media (max-width: 640px) {
  .cat-head .shima-corner > img, .cat-head .shima-corner .shima { height: 76px; }
  .cat-head__desc { padding-right: 82px; }
}

/* 主要瀏覽頁（護膚／彩妝／全部產品）唔用靜態貼圖，用六格連續動作。
   老闆：「你唔需要每一個產品頁面都有嗰啲貼圖動畫，你只需要喺主畫面
   嗰度有就得㗎啦」—— 所以淨係呢三頁 ＋ 首頁 ＋ 購物袋。
   ⚠️ .shima 係 position:relative，.shima-corner 係 position:absolute，
   兩個唔可以撈埋喺同一個 element 度 —— 要 .shima-corner 包住 .shima。 */
.shima-corner .shima {
  height: clamp(96px, 11vw, 138px);
  aspect-ratio: 3 / 4;
  width: auto;
  filter: drop-shadow(0 8px 14px rgba(43, 76, 88, 0.16));
}
/* 水光貼紙相機一樣係層層疊：相紙 z=5、閃光罩 z=20。芝麻要企喺最面，
   唔係右邊嗰疊相紙會遮住佢（實測貓 x 1293–1397，相紙去到 1332）。 */
/* 推車嗰套係打橫（360×~290），唔同搽面霜／拍腮紅嗰兩套打戙，
   所以要單獨寫返個比例，唔係隻貓會俾壓扁。 */

/* ⚠️ 呢段一定要喺 .shima-corner .shima 個 clamp() 之後 —— 兩條規則
   specificity 一樣，後寫嗰條先贏。之前手機版嗰條寫咗喺前面，
   實測完全冇生效（護膚頁隻貓喺手機仲係 96px 高）。 */
@media (max-width: 640px) {
  .shima-corner .shima { height: 84px; opacity: .92; }
  /* 護膚頁手機版：個貼紙相機底部排晒八張分類 tile，右下角冇位 ——
     縮細都仲係壓住「防曬」個標籤（實測貓 366–446、tile 369–431）。
     而家索性收起：手機版嗰陣 Skin Control Panel 個藍色橫幅已經有一隻
     芝麻（.dl__cat-strip，桌面版反而係 display:none），一頁兩隻反而多餘。 */
  /* 彩妝頁：貓右邊本來留咗 16px，結果左邊撞正「修容」張貼紙 8px
     （實測貓 296–359、貼紙 224–304）。貼實右邊就讓開。 */
}

/* 「騎住條界」擺法 —— 老闆：「你唔係一定擺喺某一個 session 㗎嘛，
   你可以跨 session 㗎嘛。即係你可以擺下面嗰個位置，即係有少少立體
   感覺都得㗎。」
   貼紙牆／開機畫面入面已經逼滿貼紙，喺入面點擺都會撞。搬出嚟擺喺
   下面嗰個 section 嘅頂部，用負 top 騎返上去 —— 隻貓一半喺上面一半
   喺下面，睇落係企喺條界上面，有前後層次，而且下面條 breadcrumb 行
   右邊本來就係吉，撞唔到嘢。 */
.shima-corner--straddle {
  position: absolute;
  right: clamp(8px, 3vw, 40px);
  bottom: auto;
  z-index: 4;
  pointer-events: none;
}
.container:has(> .shima-corner--straddle) { position: relative; }
.shima-corner--straddle .shima {
  height: clamp(96px, 11vw, 138px);
  aspect-ratio: 3 / 4;
  width: auto;
  filter: drop-shadow(0 10px 16px rgba(43, 76, 88, 0.22));
}
/* ⚠️ 試過騎上去 42%，一樣撞 —— 貼紙牆最底嗰行分類貼紙去到 y=435，
   貼紙牆自己去到 446，即係中間得 11px 吉位，點騎都會壓住「修容」。
   所以 top:0，成隻貓企喺條界下面。層次靠 drop-shadow 做，唔靠疊。
   下面條 breadcrumb 行嘅字全部喺左邊，右邊本來就係吉。 */
.shima-corner--straddle { top: 0; }
@media (max-width: 640px) {
  .shima-corner--straddle .shima { height: 88px; }
  .shima-corner--straddle { right: 6px; }
}
/* 貼紙牆本身就係層層疊，芝麻做「最面嗰張貼紙」——佢自己有白色剪裁
   外框，疊住其他貼紙係呢個風格本身嘅樣，重點係佢一定要喺最面。
   老闆嗰張截圖入面隻貓係俾「修容」同粉紅爆炸形壓住咗，睇唔到。 */

/* 手機版：貼紙牆同開機畫面喺 375px 已經逼到冇位。實測用 72×90 嘅窗
   掃成塊貼紙牆，完全撞唔到嘅位置係 0 個 —— 即係點擺都會壓住一個
   分類掣（試過壓住「修容」，成個標籤唔見咗）。
   所以手機版收起，改為喺下面條導航列出芝麻（每一頁都見到，仲好）。 */
/* 貼紙牆／開機畫面本來擺過一隻，後來連 markup 都剷咗 ——
   兩版嘅芝麻而家統一喺幼優惠條入面（.promo-slim__cat）。 */

/* 會員：唔用線稿人像，用芝麻個頭（彩色）。老闆：「唯獨是會員嗰個，
   轉做彩色嘅 logo，嗰個頭像咯」。其餘四粒維持返原本嘅線稿。
   圓形裁切 ＋ 一圈半透明白邊，喺半透明藍玻璃上面先分得開。 */
@media (max-width: 768px) {
  .mobile-bottom-nav__face {
    box-sizing: border-box;
    display: block;
    width: 25px; height: 25px;
    padding: 1px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
  }
}

/* ══════════ 芝麻動畫盒喺各處嘅擺位 ══════════ */

/* 首頁「想搵咩？」隻貓：本來係一張 <img> 用 object-fit 貼左下角，
   而家變咗個六格盒。⚠️ .shima 係 position:relative，寫喺呢個檔後面，
   specificity 一樣就會贏咗上面 .home-skin-cat__mascot 嘅 absolute ——
   所以要用 .shima.home-skin-cat__mascot（0,2,0）搶返。
   六格要貼左下角，唔可以 margin:0 auto 置中（隻貓會飄去中間）。 */
.shima.home-skin-cat__mascot { position: absolute; }
/* 要學返原本 <img> 嗰個 object-fit:contain 嘅行為 —— 用 height:100%
   個盒係 322×410，隻貓就變 371 闊，爆出格兼大咗一大截（實測手機版
   隻貓大到食晒成個畫面）。呢套招手圖六格畫布一模一樣（297×360），
   所以用 max-width/max-height 唔會出現每格縮放唔同嘅問題。 */
.home-skin-cat__mascot .shima__f {
  inset: auto auto 0 0;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
/* 窄機個 mascot 係置中貼底（object-position: center bottom） */
@media (max-width: 900px) {
  .home-skin-cat__mascot .shima__f { inset: auto 0 0 0; margin: 0 auto; }
}

/* 空購物袋：芝麻喺空袋旁邊招手叫你入去揀嘢（2026-10-17 起係一張新款白貓貼圖，唔再係六格動畫盒） */
.shima--empty {
  display: block;
  width: 150px; height: auto;
  margin: 0 auto 20px;
}

/* 手機中段嘅芝麻窄帶 —— 老闆：「冇人話一定要擺喺 header 嘅位置⋯⋯
   下面啲位都有得擺㗎嘛」。彩妝同全部產品兩版嘅 hero 喺 375px 真係
   逼到零吉位（實測 86×104 嘅窗掃成版，0 個位唔撞），所以喺品牌條
   下面開返條自己嘅窄帶，隻貓有位企，撞唔到任何嘢。 */
/* 桌面版都用呢條帶 —— 老闆指住品牌條同「篩選／排序」之間嗰忽吉位：
   「可以擺喺呢個位置㗎嘛，你唔會遮住嗰啲嘢咯」。啱，塊 hero 逼到冇位
   就唔好死擠，呢度先係真係有位。 */
/* 推車嗰套打橫（360×290），比例唔同，唔寫返會俾壓扁 */

/* 老闆：「有部分頁面呢，太細個喇，芝麻嗰個動畫。」整大一級。
   ⚠️ 唔可以寫 `.shima-page img` —— 六格動畫嘅 <img> 全部係
   position:absolute，畀佢哋落 width 個盒就會塌（實測盒變 0×0）。
   要落喺個盒（.shima）度，格仔自己會用 height:100% 填滿。 */
.shima-page > img { width: clamp(140px, 16vw, 196px); }
.shima-page .shima { width: clamp(140px, 16vw, 196px); height: auto; }
.shima-corner > img, .shima-corner .shima { height: clamp(124px, 13vw, 170px); }

.shima--empty { width: 186px; }
@media (max-width: 640px) {
  .shima-page > img, .shima-page .shima { width: 148px; }
  .shima-corner > img, .shima-corner .shima { height: 104px; }
  /* 手機版最底嗰行係上下疊，中間唔再係吉位 —— 改為貼右下角，
     縮細到啱啱塞入 footer 嗰 48px padding 加少少，唔會撐高個 footer。 */
  /* 手機版最底嗰行係上下疊，中間唔再係吉位 —— 改為貼右下角。
     ⚠️ 版權嗰行去到 x=295，隻貓 92px 高嗰陣由 x=294 開始，啱啱掂到。
     縮到 84px（由 x≈307 開始）就讓開。 */
  /* 手機版四欄變上下疊，最後一欄就係「客戶服務」，右下角一樣係吉位。 */
  .shima--empty { width: 150px; }
}

/* 每套動作嘅畫布比例唔同（打橫定打戙），唔寫返就會俾壓扁。 */
.shima:has(img[src*="shima-about1.webp"]) { aspect-ratio: 0.806; }
.shima:has(img[src*="shima-awards1.webp"]) { aspect-ratio: 0.836; }
.shima:has(img[src*="shima-bodycare1.webp"]) { aspect-ratio: 1.44; }
.shima:has(img[src*="shima-bow1.webp"]) { aspect-ratio: 0.792; }
.shima:has(img[src*="shima-brands1.webp"]) { aspect-ratio: 1.132; }
.shima:has(img[src*="shima-column1.webp"]) { aspect-ratio: 1.208; }
.shima:has(img[src*="shima-contact1.webp"]) { aspect-ratio: 1.333; }
.shima:has(img[src*="shima-faq1.webp"]) { aspect-ratio: 0.772; }
.shima:has(img[src*="shima-fragrance1.webp"]) { aspect-ratio: 0.883; }
.shima:has(img[src*="shima-kpop1.webp"]) { aspect-ratio: 1.043; }
.shima:has(img[src*="shima-lens1.webp"]) { aspect-ratio: 0.844; }
.shima:has(img[src*="shima-lifestyle1.webp"]) { aspect-ratio: 1.139; }
.shima:has(img[src*="shima-match1.webp"]) { aspect-ratio: 0.897; }
.shima:has(img[src*="shima-mk1.webp"]) { aspect-ratio: 0.75; }
.shima:has(img[src*="shima-privacy1.webp"]) { aspect-ratio: 0.953; }
.shima:has(img[src*="shima-shipping1.webp"]) { aspect-ratio: 1.118; }
.shima:has(img[src*="shima-shop1.webp"]) { aspect-ratio: 1.237; }
.shima:has(img[src*="shima-skin1.webp"]) { aspect-ratio: 0.739; }
.shima:has(img[src*="shima-story1.webp"]) { aspect-ratio: 0.769; }
.shima:has(img[src*="shima-terms1.webp"]) { aspect-ratio: 0.966; }
.shima:has(img[src*="shima-wave1.webp"]) { aspect-ratio: 0.825; }
.shima:has(img[src*="shima-acct1.webp"]) { aspect-ratio: 0.722; }
.shima:has(img[src*="shima-wish1.webp"]) { aspect-ratio: 0.929; }

/* ============================================================
   幼優惠條 —— 首頁個大 banner 嘅縮水版，擺喺每一版產品列表
   嘅產品格上面。老闆：「如果啲人一入嚟就剷全部產品頁面，佢未必知
   有咩優惠。」重點係「一眼掃到三個優惠」，唔係再做多次主視覺，
   所以高度壓到 ~92px、唔用大圖、唔用動畫。
   ============================================================ */
/* 2026-09-12 老闆：「風格變成首頁彈窗嗰個款，但要保持個大細。」
   所以只換視覺語言，尺寸一律唔郁 —— 桌面 94px、手機 192px 同改之前一樣。
   語言跟返 .promo／優惠彈窗：深藍 #2b4c58 漸變底、金色 #ffd77a 淨係用嚟標
   金額同倒數（客一眼掃到嘅金色＝佢慳到嘅數）、標題用 Cormorant 襯線。 */
.promo-slim {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 28px);
  margin: var(--space-lg) 0 var(--space-md);
  padding: 12px clamp(14px, 2.4vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(158deg, #2b4c58 0%, #35606f 54%, #2b4c58 100%);
  box-shadow: 0 14px 30px -22px rgba(8, 26, 33, 0.75);
  color: #fff;
}
/* 同彈窗一樣：金色淨係落喺個折扣數字同金額度，其餘白色。 */
/* 0.62 喺漸變最淺嗰段（#35606f）只有 3.78:1，12px 細字唔夠 AA —— 升到
   0.75（4.69:1），深底嗰段 6.01:1。倒數細字同樣處理。 */
/* 中間兩級門檻 —— 呢度先係實質資訊，闊機一行、窄機兩行 */

/* 常設禮遇保留原本深藍幼條；每級字句分兩行，窄機自然換行。 */

@media (max-width: 760px) {
  /* 窄機：面霜 ＋ 標題一行，兩級門檻落第二行，倒數縮到標題隔籬 */
  .promo-slim { flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; }
}

/* 芝麻塞入幼優惠條入面本來就吉咗嗰忽（右邊、倒數隔籬）。
   老闆：「貓貓嘅貼圖動畫係應該跟嗰個畫面嘅，而唔係個畫面就佢。
   你唔好又浪費啲咁有限嘅空間俾佢用。」
   所以：絕對定位（唔撐高條 strip 一 px）＋ 條 strip 讓返條巷畀佢企。
   隻貓高過條 strip，會探出上面 —— 上面係麵包屑行嘅右邊吉位，撞唔到嘢。 */
.promo-slim { position: relative; }
/* 推車嗰套打橫，比例唔同，唔寫返會俾壓扁 */

/* ============================================================
   防曬頁換季優惠 banner（2026-10-01 老闆：「換季優惠、限時特價」＋「低至幾多折」）
   紅底同商品卡嘅換季優惠條一個色（--sale），金色只落喺折數；
   「低至 N 折」由 catalog.js mountSeasonSale() 按當頁貨價計，唔寫死。
   ============================================================ */
.season-sale {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(12px, 3vw, 36px);
  margin: var(--space-lg) 0 var(--space-md);
  padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 36px);
  border-radius: 14px;
  background: linear-gradient(118deg, #c8452f 0%, #b63a27 60%, #a23020 100%);
  box-shadow: 0 14px 30px -22px rgba(110, 28, 14, 0.8);
  color: #fff;
}
.season-sale__art { width: auto; height: clamp(72px, 9vw, 112px); filter: drop-shadow(0 6px 12px rgba(80, 16, 6, 0.45)); }
.season-sale__copy { min-width: 0; display: grid; gap: 4px; }
.season-sale__kicker { margin: 0; font-size: 0.75rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.85); }
.season-sale__title {
  margin: 0; font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.45rem, 3.4vw, 2.3rem); font-weight: 700; line-height: 1.15; text-wrap: balance;
}
.season-sale__title i { font-style: normal; opacity: 0.6; padding: 0 0.2em; }
.season-sale__fine { margin: 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.85); }
.season-sale__deal { margin: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.season-sale__deal span { font-size: clamp(0.9rem, 1.6vw, 1.1rem); font-weight: 600; }
.season-sale__deal strong {
  font-family: var(--font-body); font-weight: 800; line-height: 0.95; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.4vw, 4.2rem); color: #ffe08a; font-variant-numeric: lining-nums tabular-nums;
}
@media (max-width: 640px) {
  .season-sale { grid-template-columns: auto 1fr; row-gap: 8px; }
  .season-sale__deal { grid-column: 1 / -1; justify-content: flex-end; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
}

/* ============================================================
   優惠彈卡 —— 入嚟 12 秒之後喺右下角滑出，撳 ✕ 或者撳咗入去揀貨
   就當日唔再彈。整段由 script.js 生成（見 initPromoPop）。
   窄機唔用「右下角細卡」，改成貼底橫幅：手機右下角本身已經有條
   固定導航列，再擺張卡落去就會疊。
   ============================================================ */

@media (max-width: 560px) {
  /* 手機底部有條 fixed 導航列（62px＋安全區），要讓開佢 */
}

/* ============================================================
   向下滑收起頂部，向上滑彈返出嚟
   老闆 2026-08-27：「如果啲人向下滑嘅話，佢就會隱藏；向上滑就顯示返
   出嚟。咁樣更加可以喺比較細嘅屏幕睇到成個畫面，唔會浪費啲位置。」

   ⚠️ 條優惠 bar 同 header 要一齊收 —— 淨係收 header 嘅話，個 bar 仲
   霸住 36px，慳唔到幾多，而且個 header 縮上去會露出下面啲內容，好核突。
   ⚠️ header 嘅 top 係 var(--ann-h)，所以佢要多推自己嗰段距離先出得晒界。
   ⚠️ main 嘅 padding-top 唔郁 —— 郁咗成版內容會跳，收合變成「跳嚟跳去」。
      呢度淨係 transform，唔影響 layout。
   ============================================================ */
/* ⚠️ 淨係手機做。老闆 2026-08-28：「電腦版根本上就唔使，桌面版淨係
   手機版嘅啫嘛。」桌面高度夠，收個 header 慳嗰 92px 冇意義，反而
   滑一滑就閃走條 nav，返轉頭搵嘢要再滑上去。
   768px 係全站手機斷點（.mobile-bottom-nav、header 收圖示都係呢個數）。
   JS 照樣 toggle 個 class —— 佢好平，而且咁樣 resize 就自動跟，
   唔使再監聽 matchMedia。 */
@media (max-width: 768px) {
  .announcement-bar,
  .header {
    transition: transform 0.28s var(--ease-out), background 0.28s var(--ease-out),
                backdrop-filter 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
    will-change: transform;
  }
  body.is-nav-tucked .announcement-bar { transform: translateY(-100%); }
  body.is-nav-tucked .header { transform: translateY(calc(-100% - var(--ann-h, 36px))); }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar, .header { transition: none; }
}

/* ============================================================
   分類海報
   老闆 2026-08-28：「一個個產品擺喺度，其實對佢哋嚟講吸引力唔係咁大⋯⋯
   一係如果換一啲，好似熱點咁，即係變成可能一個海報，一個好靚嘅設計，
   再加可能幾件產品，跟住想睇更多先再撳入去。」

   構圖：一邊一幅高身情境相（分類入口），另一邊 2×2 四件精選。
   ⚠️ 幅相本身就係連結 —— 客望住幅相諗緊「入去睇晒」，唔應該要佢
      再搵一粒細掣。
   ⚠️ 左右輪流（.poster--flip）。四格全部大相喺左，落嚟就係同一個
      template 重複四次，正正係老闆話唔好睇嗰種。
   ============================================================ */
.poster {
  display: grid;
  gap: clamp(14px, 2vw, 28px);
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding-inline: var(--space-md);
}
/* 老闆 2026-08-28：「太大嚿啦，啲人滾動都有排滾動」——
   高度、間距、標題全部收細一級。 */
.poster + .poster { margin-top: clamp(24px, 3.2vw, 48px); }

@media (min-width: 861px) {
  .poster { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: stretch; }
  .poster--flip .poster__visual { order: 2; }
}

/* ---- 大相 ---- */
.poster__visual {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #e7eef1;
  text-decoration: none;
  aspect-ratio: 16 / 11;
  box-shadow: 0 14px 32px -20px rgba(28, 62, 76, 0.45);
  isolation: isolate;
}
@media (min-width: 861px) { .poster__visual { aspect-ratio: auto; min-height: 340px; } }

.poster__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.poster__visual:hover img { transform: scale(1.035); }

/* 文字踩喺相上面，一定要有夠深嘅遮罩先夠 4.5:1。
   由下而上兩段 —— 一段實色一段透明，唔用單一條線性漸變，
   相底部太光嗰陣單一漸變會頂唔住。 */
.poster__visual::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14, 34, 42, 0.82) 0%, rgba(14, 34, 42, 0.52) 26%,
                    rgba(14, 34, 42, 0.06) 58%, transparent 78%);
  z-index: 1;
}
.poster__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(14px, 2.4vw, 24px);
  color: #fff;
}
.poster__title {
  margin: 0;
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.375rem, 3.4vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.poster__line {
  margin: 8px 0 0;
  max-width: 26ch;
  /* 唔加呢句，「⋯彩妝牌子。」會斷到剩返一個「子」孤零零跌落第二行 */
  text-wrap: pretty;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.poster__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-deep);
  font-size: 0.8125rem; font-weight: 600;
  transition: background 0.22s var(--ease-out), gap 0.22s var(--ease-out);
}
.poster__cta svg { width: 15px; height: 15px; }
.poster__visual:hover .poster__cta { background: #fff; gap: 11px; }
.poster__visual:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---- 右邊四件 ---- */
.poster__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* 兩行等高 —— 唔寫嘅話產品名長短唔同，四格會參差不齊 */
  grid-auto-rows: 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  align-content: start;
}
@media (min-width: 861px) { .poster__grid { align-content: stretch; } }
.poster__grid > * { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  .poster__visual img, .poster__cta { transition: none; }
  .poster__visual:hover img { transform: none; }
}


/* ⚠️ 縮細海報改咗兩次都錯，記低兩次都錯喺邊：
   第一次：改幅相嘅 min-height —— 冇用。桌面版高度係由右邊四張產品卡
     撐起（正方形相＋牌子＋名＋評分＋價，兩行 1300px），幅相跟住拉高。
   第二次：鎖死成行高度、叫啲卡「自己縮」—— 高度係啱咗，但產品相由
     aspect-ratio: 1 改成 flex 填剩餘空間，object-fit: cover 之下啲相
     被壓成怪比例，防曬霜兩支迫埋、氣墊粉底切一半。老闆：「咁核突」。
     縮高度唔可以靠壓縮產品相。

   而家嘅做法：**唔壓相**。產品相固定 4:3（本來 1:1 太食高度），
   收埋首頁預覽用唔著嘅評分行，再將幅大相嗰欄比例調闊少少 ——
   四張卡自然變窄、行高自然變矮，比例仍然係正常嘅。 */
@media (min-width: 861px) {
  .poster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
  .poster__visual { min-height: 0; }
}
.poster__grid .product-card__image-wrap {
  aspect-ratio: 4 / 3;
  margin-bottom: 9px;
}
.poster__grid .product-card__name { font-size: 0.8125rem; line-height: 1.35; }
.poster__grid .product-card__brand { font-size: 0.625rem; }
.poster__grid .product-card__price { font-size: 0.875rem; }
/* 評分行喺首頁預覽度可有可無，收埋慳返兩行高 */
.poster__grid .card-rating { display: none; }

/* ============================================
   短效期特價（2026-09-12）
   快到期門市實貨：1–3 個月 5 折、3–6 個月 7 折，唔設退換，唔疊 88 折。
   視覺上只做一件事：到期日要一眼睇到，而且睇落似包裝上面蓋嘅日期印
   （虛線框 + 等寬數字），唔係另一粒「特價」貼紙。顏色沿用全站特價磚紅。
   ============================================ */
.product-card__badge--expiry {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-transform: none;
}

.product-card__badge--expiry {
  background: rgba(255, 255, 255, 0.94);
  color: #8f301f;
  border: 1px dashed rgba(143, 48, 31, 0.55);
  box-shadow: none;
  font-size: 0.6875rem;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 6px;
}

















/* 專區頁 */
.sd-hero { padding: var(--space-2xl) 0 var(--space-xl); }
.sd-hero__kicker {
  margin: 0 0 10px; color: #8f301f;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
}
.sd-hero__title {
  margin: 0; font-family: var(--font-brand); font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem); letter-spacing: 0.04em;
  color: var(--primary-deep); line-height: 1.15;
}
.sd-hero__lede {
  max-width: 34em; margin: 12px 0 0;
  color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.75;
}
.sd-rules {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin: var(--space-lg) 0 0; padding: 0; list-style: none;
}
.sd-rules li {
  padding: 12px 14px; border-radius: 12px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  font-size: 0.8125rem; line-height: 1.5; color: var(--text-secondary);
}
.sd-rules b { display: block; margin-bottom: 2px; font-size: 1rem; color: var(--primary-deep); }
.sd-rules .sd-rules__warn b { color: #8f301f; }

.sd-tier { padding: var(--space-lg) 0 var(--space-2xl); }
.sd-tier__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 var(--space-lg); padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border-strong);
}
.sd-tier__title { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--primary-deep); }
.sd-tier__title em { font-style: normal; color: #c8452f; margin-right: 6px; }
.sd-tier__count { font-size: 0.8125rem; color: var(--text-tertiary); }

.sd-empty { padding: var(--space-2xl) 0; text-align: center; color: var(--text-secondary); }

@media (max-width: 768px) {
  .sd-hero { padding: var(--space-xl) 0 var(--space-md); }
  .sd-rules { grid-template-columns: 1fr; gap: 8px; }
  .sd-rules li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; }
  .sd-rules b { display: inline; margin: 0; white-space: nowrap; font-size: 0.9375rem; }
}
/* 7-Eleven 字樣徽章：產品頁中秋優惠條（.midautumn-home__seven-logo）仲用緊；
   購物袋 2026-10-17 新版已改用 assets/images/brand/seven-eleven-2021.svg。 */
.ship-mode__seven-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid #e1e7e9; box-shadow: inset 0 -4px 0 #168447; }
.ship-mode__seven-logo b { margin-top: -3px; color: #f47b20; font: 900 1rem/1 Arial, sans-serif; text-shadow: 1px 0 0 #e5252a; }

/* 隱藏嘅限時活動唔可被原有 display 規則重新顯示。 */
.promo-wrap[hidden],
.promo-slim[hidden] {
  display: none !important;
}

/* 水彩護膚 hero 最終響應式鎖定。放喺檔尾，蓋過舊貼紙相機後段嘅
   300px／154px 歷史尺寸規則。 */
/* 2026-09-20 preview only: mobile keeps the approved muted watercolor scene,
   but every skincare category is now a separate, real button and image.
   Desktop temporarily returns to the original compact category gate. */

/* 2026-09-21 makeup responsive lock.
   Keep the existing makeup selectors and catalog hooks, but replace the old
   baked-image hit area with the same real-image category rail as skincare. */

/* Mobile makeup finish: match the approved 390px composition and keep both
   category levels compact, even and free of the old black sticker state. */
@media (max-width: 959px) {

  .cat-subs__item,
  .cat-subs__item.is-on {
    width: 100%;
    min-width: 0;
    height: 48px;
    justify-content: center;
    gap: 6px;
    padding: 4px 7px;
    border: 1px solid #79add0;
    background: transparent;
    color: #183b59;
    box-shadow: none;
    font-size: 13px;
    -webkit-tap-highlight-color: transparent;
  }

  .cat-subs__item img {
    width: 30px;
    height: 30px;
  }

  .cat-subs__item:hover,
  .cat-subs__item:active,
  .cat-subs__item.is-on {
    background: #f4f9fc;
    color: #183b59;
    box-shadow: none;
  }
}



























































.promo-slim--midautumn { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; gap: 12px; padding: 0; border: 0; background: none; box-shadow: none; }
.promo-slim__title { display: grid; align-content: center; gap: 3px; }
.promo-slim__title span { font-size: .68rem; letter-spacing: .06em; }
.promo-slim__title strong { font-size: 1.2rem; white-space: nowrap; }


@media (max-width: 720px) {
  
  
  
  
  
  .promo-slim--midautumn { grid-template-columns: 1fr; }
}


































.promo-slim--midautumn { display: block; border: 1px solid #dfbcbe; border-radius: 15px; background: #fcf4f2; overflow: hidden; }
.promo-slim__single-card { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px 22px; min-height: 91px; padding: 12px 22px; color: #5d3942; }
.promo-slim__single-card::before { content: ''; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 4px; background: #a74c56; }
.promo-slim__art { position: absolute; z-index: -1; width: 220px; height: auto; top: -35px; right: 185px; opacity: .44; pointer-events: none; }
.promo-slim__title { grid-row: 1 / 3; min-width: 140px; }
.promo-slim__title span { color: #a34750; font-weight: 700; }
.promo-slim__title strong { color: #693942; font-size: 1.22rem; }
.promo-slim__single-card ul { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 16px; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.promo-slim__single-card li b { color: #9a3d48; }
.promo-slim__gift { grid-column: 3; grid-row: 1 / 3; display: flex; align-items: center; gap: 8px; min-width: 230px; padding-left: 15px; border-left: 1px solid #e6cccb; }
.promo-slim__gift img { width: 49px; height: 53px; object-fit: contain; }
.promo-slim__gift > span { display: grid; gap: 2px; font-size: .82rem; line-height: 1.2; }
.promo-slim__gift b { color: #973d49; }
.promo-slim__gift small, .promo-slim__fine { color: #806c6e; font-size: .67rem; }
.promo-slim__fine { grid-column: 2; }

.has-ouji-opening-promo .announcement-bar { height: 42px; min-height: 42px; padding: 0 14px; gap: 0 15px; flex-wrap: nowrap; background: radial-gradient(circle at 11% 70%, rgba(255,255,255,.06) 0 11px, transparent 12px), linear-gradient(100deg,#0b1015,#1b2229 55%,#0c1117); border-bottom-color: rgba(224,197,144,.22); box-shadow: inset 0 -1px rgba(255,255,255,.06); }
.has-ouji-opening-promo .announcement-bar::before { opacity: .12; }
.has-ouji-opening-promo .announcement-bar__offers { gap: 0; }
.has-ouji-opening-promo .announcement-bar__offers > span { padding: 0 12px; border: 0; border-right: 1px solid rgba(255,255,255,.16); border-radius: 0; background: none; font-size: .74rem; }
.has-ouji-opening-promo .announcement-bar__offers > span:last-child { border-right: 0; }
.has-ouji-opening-promo .announcement-bar__offers b { color: #f4d99c; }
.announcement-bar__shipping { padding-left: 13px; border-left: 1px solid rgba(255,255,255,.16); color: #d9e8ed; font-size: .72rem; white-space: nowrap; }
.announcement-bar__shipping b { color: #f4d99c; }

@media (max-width: 900px) {
  
  
  
  .promo-slim__single-card { grid-template-columns: 1fr auto; }
  .promo-slim__title { grid-row: auto; }
  .promo-slim__single-card ul { grid-column: 1; }
  .promo-slim__gift { grid-column: 2; grid-row: 1 / 3; }
  .promo-slim__fine { grid-column: 1; }
}
@media (max-width: 720px) {
  
  
  
  
  
  
  
  
  
  .promo-slim__single-card { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .promo-slim__title, .promo-slim__single-card ul, .promo-slim__gift, .promo-slim__fine { grid-column: 1; grid-row: auto; }
  .promo-slim__single-card ul { gap: 6px 13px; }
  .promo-slim__gift { padding: 8px 0 0; border-left: 0; border-top: 1px solid #e6cccb; }
  .promo-slim__art { width: 150px; top: -18px; right: -34px; opacity: .3; }
  .has-ouji-opening-promo .announcement-bar { height: 56px; min-height: 56px; padding: 4px 8px; gap: 1px 6px; flex-wrap: wrap; line-height: 1.15; }
  .announcement-bar__shipping { margin-left: auto; padding-left: 0; border-left: 0; font-size: .62rem; }
  .has-ouji-opening-promo .announcement-bar__offers { order: 3; width: 100%; gap: 0; }
  .has-ouji-opening-promo .announcement-bar__offers > span { flex: 1; justify-content: center; padding: 1px 3px; font-size: .64rem; }
  .has-ouji-opening-promo .announcement-bar__offers small { font-size: .56rem; }
}














.promo-slim--midautumn { border-color: #b9d3df; background: linear-gradient(100deg, #f3f9fc 0%, #e6f3f9 75%, #f6fafc 100%); }
.promo-slim__single-card { color: #355565; }
.promo-slim__single-card::before { background: #4e849a; }
.promo-slim__title span { color: #5a8798; }
.promo-slim__title strong { color: #294d5d; }
.promo-slim__single-card li b, .promo-slim__gift b { color: #2d7189; }
.promo-slim__gift { border-left-color: #c9dce5; }
.promo-slim__gift small, .promo-slim__fine { color: #647e89; }
.promo-slim__art { width: 205px; top: -8px; right: 207px; opacity: .65; }
















@media (max-width: 720px) {
  .promo-slim__gift { border-top-color: #c9dce5; }
  .promo-slim__art { width: 150px; top: -14px; right: -24px; opacity: .34; }
}





















.promo-slim--midautumn { border: 1px solid #425762; border-radius: 17px; background: #111a20; box-shadow: 0 14px 28px rgba(29,56,68,.11); }
.promo-slim__single-card { display: grid; grid-template-columns: 195px minmax(0,1fr) 245px; grid-template-rows: auto auto; align-items: center; gap: 10px 19px; min-height: 142px; padding: 19px 27px; color: #f6f5f0; background: radial-gradient(circle at 86% 10%, rgba(89,124,140,.22), transparent 35%), radial-gradient(circle at 26% 120%, rgba(190,184,164,.09), transparent 42%); }
.promo-slim__single-card::before { z-index: 0; width: 4px; background: #d4bb88; }
.promo-slim__title { grid-column: 1; grid-row: 1 / 3; gap: 9px; align-content: center; }
.promo-slim__title span { color: #c9d9db; font-size: .68rem; letter-spacing: .13em; }
.promo-slim__title strong { color: #fff5dc; font: 600 clamp(1.27rem, 1.7vw, 1.65rem)/1.25 var(--font-display); white-space: normal; }
.promo-slim__single-card ul { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; width: 100%; }
.promo-slim__single-card li { display: grid; gap: 3px; padding: 0 12px; border-left: 1px solid rgba(218,231,232,.21); color: #d1dde0; font-size: .77rem; white-space: nowrap; }
.promo-slim__single-card li:first-child { border-left: 0; padding-left: 0; }
.promo-slim__single-card li b { color: #f3d69c; font-size: clamp(1.12rem, 1.7vw, 1.45rem); line-height: 1.1; }
.promo-slim__fine { grid-column: 2; grid-row: 2; color: #b8c9cc; font-size: .7rem; }
.promo-slim__gift { grid-column: 3; grid-row: 1 / 3; z-index: 1; min-width: 0; gap: 9px; align-self: stretch; padding-left: 18px; border-left-color: rgba(215,232,234,.23); }
.promo-slim__gift img { width: 54px; height: 63px; flex: 0 0 auto; }
.promo-slim__gift > span { color: #f0f4f2; font-size: .82rem; }
.promo-slim__gift b { color: #f2d69f; }
.promo-slim__gift small { color: #b9cbcf; }
.promo-slim__art { z-index: 0; width: 160px; top: -36px; right: -21px; opacity: .38; }













.has-ouji-opening-promo .announcement-bar {
  height: 46px; min-height: 46px; display: flex; justify-content: center; flex-wrap: nowrap; gap: 0;
  padding: 0 20px 0 136px; overflow: visible; isolation: auto;
  background: radial-gradient(circle at 23% 75%, rgba(124,153,163,.1), transparent 26%), #11191e;
  border-bottom: 1px solid rgba(235,221,190,.22); box-shadow: 0 3px 14px rgba(15,28,35,.13);
}
.has-ouji-opening-promo .announcement-bar::before { display: none; }
.announcement-bar__moon-badge { position: absolute; top: -12px; left: 23px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100px; height: 100px; border-radius: 50%; transform: rotate(-8deg); color: #28333b; border: 1px solid rgba(255,250,231,.9); background: radial-gradient(circle at 33% 30%, rgba(114,126,127,.22) 0 7px, transparent 9px), radial-gradient(circle at 70% 27%, rgba(121,125,120,.28) 0 5px, transparent 7px), radial-gradient(circle at 62% 70%, rgba(102,114,121,.26) 0 11px, transparent 13px), radial-gradient(circle at 30% 72%, rgba(151,156,145,.17) 0 4px, transparent 6px), linear-gradient(137deg,#fff9e4,#d1d5cf 64%,#9caeb5); box-shadow: 0 4px 17px rgba(236,224,187,.43), inset -12px -12px 19px rgba(67,86,99,.2); }
.announcement-bar__moon-badge { top: -18px; left: 12px; width: 132px; height: 132px; border: 0; background: url('assets/images/home/midautumn-moon-badge-v4.webp') center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 4px 11px rgba(235,220,185,.36)); }
.announcement-bar__moon-badge b { font-size: .83rem; line-height: 1.2; letter-spacing: .06em; white-space: nowrap; }
.announcement-bar__moon-badge small { margin-top: 3px; font-size: .67rem; font-weight: 700; white-space: nowrap; }
.has-ouji-opening-promo .announcement-bar__offers { display: flex; flex: 0 1 auto; gap: 0; width: auto; margin: 0; padding: 0; white-space: nowrap; }
.has-ouji-opening-promo .announcement-bar__offers > span { display: inline-flex; align-items: center; gap: 4px; padding: 0 clamp(11px,2vw,26px); border: 0; border-right: 1px solid rgba(231,237,236,.18); color: #e5eeec; font-size: clamp(.75rem,1vw,.91rem); }
.has-ouji-opening-promo .announcement-bar__offers b, .announcement-bar__shipping b { color: #f2d59a; }
.announcement-bar__shipping { margin: 0 0 0 clamp(12px,2vw,26px); padding: 0; border: 0; color: #dce9e8; font-size: clamp(.73rem,1vw,.86rem); }
.has-ouji-opening-promo .header__inner { padding-left: max(160px, var(--space-2xl)); }

@media (max-width: 1050px) {
  
  
  .promo-slim__single-card { grid-template-columns: 165px minmax(0,1fr) 200px; gap: 9px; padding: 16px 18px; }
  .promo-slim__gift { padding-left: 12px; }
  .promo-slim__art { width: 135px; }
}
@media (max-width: 800px) {
  
  
  .promo-slim__single-card { grid-template-columns: 1fr auto; gap: 11px; }
  .promo-slim__title { grid-column: 1; grid-row: 1; min-width: 0; width: 100%; }
  .promo-slim__single-card ul { grid-column: 1; grid-row: 2; }
  .promo-slim__fine { grid-column: 1; grid-row: 3; }
  .promo-slim__gift { grid-column: 2; grid-row: 1 / 4; }
  .has-ouji-opening-promo .announcement-bar { padding-left: 108px; padding-right: 7px; }
  .announcement-bar__moon-badge { left: 11px; width: 82px; height: 82px; top: -5px; }
  .announcement-bar__moon-badge b { font-size: .69rem; }
  .announcement-bar__moon-badge small { font-size: .57rem; }
  .has-ouji-opening-promo .header__inner { padding-left: 100px; }
}
@media (max-width: 720px) {
  
  
  
  
  
  
  
  
  .promo-slim__single-card { grid-template-columns: 1fr; padding: 16px; }
  .promo-slim__title, .promo-slim__single-card ul, .promo-slim__fine, .promo-slim__gift { grid-column: 1; grid-row: auto; }
  .promo-slim__title { gap: 3px; }
  .promo-slim__single-card ul { width: 100%; }
  .promo-slim__single-card li { padding: 0 6px; font-size: .67rem; }
  .promo-slim__single-card li b { font-size: 1.05rem; }
  .promo-slim__gift { padding: 10px 0 0; border-left: 0; border-top: 1px solid rgba(215,232,234,.23); }
  .promo-slim__art { width: 144px; top: -35px; right: -30px; opacity: .36; }
  .has-ouji-opening-promo .announcement-bar { height: 46px; min-height: 46px; padding: 0 4px 0 78px; gap: 0; flex-wrap: nowrap; }
  .announcement-bar__moon-badge { top: -14px; left: 5px; width: 70px; height: 70px; }
  .announcement-bar__moon-badge b { font-size: .58rem; }
  .announcement-bar__moon-badge small { font-size: .52rem; margin-top: 1px; }
  .has-ouji-opening-promo .announcement-bar__offers { display: contents; }
  .has-ouji-opening-promo .announcement-bar__offers > span { position: static; opacity: 1; animation: none; }
  .has-ouji-opening-promo .header__inner { padding-left: 80px; }
}

.promo-slim--midautumn { overflow: visible; }
.promo-slim__single-card { grid-template-columns: 185px minmax(0,1fr) 288px; grid-template-rows: 1fr; min-height: 108px; padding: 8px 24px; }
.promo-slim__title { grid-column: 1; grid-row: 1; }
.promo-slim__deal { grid-column: 2; grid-row: 1; min-width: 0; align-self: center; }
.promo-slim__deal ul { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: center; margin: 0; }
.promo-slim__single-card li { font-size: .79rem; }
.promo-slim__single-card li b { font-size: clamp(1.45rem, 2.15vw, 1.94rem); }
.promo-slim__fine { display: block; margin: 5px 0 0; font-size: .64rem; line-height: 1.1; }
.promo-slim__gift { grid-column: 3; grid-row: 1; overflow: visible; gap: 4px; padding-left: 13px; align-self: center; }
.promo-slim__gift img { position: relative; z-index: 2; width: 108px; height: 112px; margin: -11px 0 -11px -10px; object-fit: contain; transform: translateY(-10px); filter: drop-shadow(0 13px 15px rgba(0,0,0,.35)); }
.promo-slim__gift > span { font-size: .83rem; }
.promo-slim__art { opacity: .27; }

.has-ouji-opening-promo .announcement-bar { justify-content: center; gap: clamp(12px, 2vw, 25px); padding-left: 156px; }
.announcement-bar__shipping { order: 0; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; margin: 0; padding: 4px 12px 4px 5px; border: 1px solid rgba(180,213,221,.24); border-radius: 999px; background: rgba(56,103,122,.41); color: #f2f8f7; font-weight: 600; font-size: .81rem; }
.announcement-bar__shipping b { color: #fff; }
.has-ouji-opening-promo .announcement-bar__offers { order: 1; justify-content: start; }
.has-ouji-opening-promo .announcement-bar__offers > span { padding-inline: clamp(12px, 1.9vw, 25px); }
.has-ouji-opening-promo .announcement-bar__offers > span:first-child { border-left: 1px solid rgba(231,237,236,.18); }

@media (max-width: 1050px) {
  .promo-slim__single-card { grid-template-columns: 165px minmax(0,1fr) 248px; }
  .promo-slim__gift img { width: 82px; height: 94px; transform: translateY(-6px); }
  .has-ouji-opening-promo .announcement-bar { padding-left: 116px; gap: 8px; }
  .announcement-bar__shipping { padding-right: 8px; font-size: .72rem; }
  .has-ouji-opening-promo .announcement-bar__offers > span { padding-inline: 8px; font-size: .73rem; }
}
@media (max-width: 800px) {
  .promo-slim__single-card { grid-template-columns: minmax(0,1fr) 215px; grid-template-rows: auto auto; }
  .promo-slim__title { grid-column: 1; grid-row: 1; }
  .promo-slim__deal { grid-column: 1; grid-row: 2; }
  .promo-slim__gift { grid-column: 2; grid-row: 1 / 3; }
  .has-ouji-opening-promo .announcement-bar { padding-left: 102px; }
}
@media (max-width: 720px) {
  .promo-slim__single-card { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); grid-template-rows: auto auto; gap: 7px 8px; padding: 11px 14px; }
  .promo-slim__title { grid-column: 1; grid-row: 1; min-width: 0; width: 100%; }
  .promo-slim__deal { grid-column: 1 / -1; grid-row: 2; }
  .promo-slim__gift { grid-column: 2; grid-row: 1; padding: 0; border: 0; gap: 3px; }
  .promo-slim__gift img { width: 64px; height: 70px; margin: -6px 0 -4px -7px; transform: translateY(-4px); }
  .promo-slim__gift > span { font-size: .68rem; line-height: 1.2; }
  .promo-slim__gift small { font-size: .58rem; }
  .promo-slim__title strong { font-size: 1.16rem; }
  .promo-slim__art { opacity: .16; }
  .promo-slim__single-card li b { font-size: 1.18rem; }
  .has-ouji-opening-promo .announcement-bar {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 19px 20px;
    align-content: center; justify-content: stretch; gap: 0;
    height: 43px; min-height: 43px; padding: 1px 7px 1px 65px;
  }
  .announcement-bar__moon-badge { top: 5px; left: -3px; width: 60px; height: 60px; }
  .announcement-bar__moon-badge b { font-size: .5rem; }
  .announcement-bar__moon-badge small { font-size: .46rem; }
  .announcement-bar__shipping {
    grid-column: 1; grid-row: 1; justify-self: start; align-self: center;
    display: inline-flex; gap: 3px; padding: 0 0 0 7px; border: 0; border-left: 2px solid #8bb7c7;
    border-radius: 0; background: none; color: #e4eff0; font-size: .68rem; line-height: 1.1;
  }
  .announcement-bar__shipping b { color: #cce4e9; }
  .has-ouji-opening-promo .announcement-bar__offers {
    display: flex; grid-column: 1; grid-row: 2; width: 100%; height: 20px;
    justify-content: space-between; align-items: center; gap: 0;
  }
  .has-ouji-opening-promo .announcement-bar__offers > span {
    position: static; inset: auto; display: inline-flex; flex: 1 1 0; width: auto; min-width: 0; height: 20px;
    align-items: center; justify-content: center; gap: 2px; padding: 0;
    border: 0; white-space: nowrap; font-size: .68rem; letter-spacing: -.025em; line-height: 1;
    opacity: 1; transform: none; animation: none;
  }
  .has-ouji-opening-promo .announcement-bar__offers > span:first-child { border: 0; }
  .has-ouji-opening-promo .announcement-bar__offers b { font-size: .73rem; }
  .has-ouji-opening-promo .header__inner { padding-left: 64px; }
}
@media (max-width: 360px) {
  .promo-slim__title strong { font-size: 1rem; line-height: 1.18; }
  .promo-slim__gift img { width: 58px; height: 64px; }
  .promo-slim__gift > span { font-size: .63rem; }
}


















/* Price-level campaign tag is visible but never makes a regular product price red. */
.ouji-promo-price--detail .ouji-promo-price__badge {
  align-items: center; gap: 7px; min-height: 32px; padding: 7px 11px;
  border: 1px solid #b9ccd1; border-radius: 8px;
  background: linear-gradient(110deg, #f2f8f9, #fff9ec);
  color: #345d6b; font-size: .82rem; line-height: 1.2;
  box-shadow: 0 3px 9px rgba(36,71,86,.07);
}
.ouji-promo-price--detail .ouji-promo-price__badge::before {
  content: ''; flex: none; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 33% 32%, #fff9e3, #dacda9 72%, #b8b6ad);
  box-shadow: inset -3px -2px 3px rgba(55,74,80,.18);
}
.ouji-promo-price--detail .ouji-promo-price__badge b { color: #234957; font-size: .9rem; }
.ouji-promo-price--detail .ouji-promo-price__badge span { color: #6d8187; font-size: .7rem; }
.cart-moon-promo {
  position: relative; isolation: isolate; overflow: hidden; padding: 14px 14px 12px;
  border: 1px solid rgba(239,221,177,.28); border-radius: 18px;
  background: radial-gradient(circle at 82% 8%, rgba(233,226,196,.22), transparent 38%), linear-gradient(160deg,#1f4a56 0%,#1a3e49 55%,#163640 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 24px -12px rgba(8,22,31,.45);
  color: #f6f3e9;
}
.cart-moon-promo[hidden] { display: none; }
.cart-moon-promo__art { position: absolute; z-index: -1; width: 58%; height: auto; top: -22px; right: -26px; opacity: .95; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 34%), linear-gradient(0deg, transparent 22%, #000 55%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 2%, #000 34%), linear-gradient(0deg, transparent 22%, #000 55%); mask-composite: intersect; }
.cart-moon-promo__head { position: relative; display: grid; gap: 2px; padding-right: 34%; }
.cart-moon-promo__head span { color: #e5cc98; font-size: .6rem; font-weight: 700; letter-spacing: .14em; }
.cart-moon-promo__head strong { font: 600 1.25rem/1.25 var(--font-display); }
.cart-moon-promo__progress { position: relative; margin-top: 10px; }
.cart-moon-promo__progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cart-moon-promo__progress-top strong { color: #f8e2aa; font-size: .9rem; line-height: 1.3; }
.cart-moon-promo__progress-top > span { color: #d4e0e1; font-size: .68rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-moon-promo__progress-top b { font-weight: 600; }
.cart-moon-promo__meter { position: relative; height: 10px; margin: 7px 0 0; overflow: hidden; border: 1px solid rgba(164,207,216,.28); border-radius: 999px; background: #0b222a; box-shadow: inset 0 2px 4px rgba(0,0,0,.42); }
.cart-moon-promo__water { position: absolute; inset: 0 auto 0 0; width: 0; min-width: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(100deg,#3e7a8a,#8ccbd0 48%,#f4d795 85%,#8ccbd0); background-size: 190% 100%; box-shadow: inset 0 1px 1px rgba(255,255,255,.46), 0 0 10px rgba(145,213,218,.5); transition: width 650ms cubic-bezier(.2,.75,.2,1); animation: cart-moon-water 4.5s ease-in-out infinite alternate; }
@keyframes cart-moon-water { to { background-position: 100% 0; } }
.cart-moon-promo__tiers { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) minmax(0,1.35fr); gap: 5px; margin: 11px 0 0; padding: 0; list-style: none; }
.cart-moon-promo__tiers li { position: relative; display: flex; align-items: flex-end; gap: 4px; min-width: 0; min-height: 56px; padding: 16px 7px 7px; border: 1px solid rgba(223,234,232,.24); border-radius: 11px; background: rgba(9,30,37,.34); }
.cart-moon-promo__tiers li > span:not(.cart-moon-promo__check) { display: grid; gap: 1px; min-width: 0; }
.cart-moon-promo__tiers small { color: #c3d1d3; font-size: .6rem; line-height: 1.2; white-space: nowrap; }
.cart-moon-promo__tiers b { color: #f2d89f; font-size: .86rem; line-height: 1.2; white-space: nowrap; }
.cart-moon-promo__check { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid rgba(222,229,225,.38); border-radius: 50%; color: transparent; font-size: .56rem; }
.cart-moon-promo__tiers li.is-next { border-color: rgba(242,216,159,.65); background: rgba(242,216,159,.08); }
.cart-moon-promo__tiers li.is-reached { border: 1.5px solid #e9cf8e; background: linear-gradient(145deg,rgba(237,211,153,.2),rgba(9,30,37,.3)); box-shadow: inset 0 1px 0 rgba(255,255,255,.13); }
.cart-moon-promo__tiers li.is-reached .cart-moon-promo__check { border-color: #f3d797; background: #f3d797; color: #15252c; }
.cart-moon-promo__tiers li[data-cart-promo-gift] img { flex: none; align-self: center; width: 26px; height: 32px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.cart-moon-promo__terms { position: relative; margin: 8px 0 0; color: #aebdc2; font-size: .6rem; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .cart-moon-promo__water { animation: none; transition: none; } }
[data-discount-row][hidden] { display: none !important; }



/* Mobile announcement: two deliberate messages, never a dense row of thresholds. */
.announcement-bar__mobile, .announcement-bar__details { display: none; }
@media (max-width: 720px) {
  .has-ouji-opening-promo .announcement-bar {
    display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
    height: 44px; min-height: 44px; padding: 0; gap: 0;
    overflow: visible; line-height: 1.2;
  }
  .has-ouji-opening-promo .announcement-bar__moon-badge {
    top: -7px; left: -8px; width: 64px; height: 64px;
    transform: none; filter: drop-shadow(0 4px 7px rgba(235,220,185,.34));
  }
  .announcement-bar__moon-badge b, .announcement-bar__moon-badge small { display: none; }
  .has-ouji-opening-promo .announcement-bar__shipping,
  .has-ouji-opening-promo .announcement-bar__offers { display: none !important; }
  .has-ouji-opening-promo .announcement-bar__mobile {
    position: absolute; inset: 0;
    display: block; width: 100%; max-width: none; height: 100%;
  }
  .announcement-bar__slide {
    position: absolute; inset: 0; display: none; align-items: center;
    width: 100%; height: 44px; padding: 0;
    border: 0; background: none; color: #f6f4ed; text-align: center;
    text-decoration: none; font: 600 .94rem/1.2 var(--font-body); letter-spacing: .01em;
    white-space: nowrap; cursor: pointer;
  }
  .announcement-bar__slide.is-active { display: flex; }
  .announcement-bar__slide > span:first-child { position: absolute; left: 50%; transform: translateX(-50%); }
  .announcement-bar__slide strong { color: #f4d79d; font-weight: 750; }
  .announcement-bar__slide i { color: #b5c7c9; font-style: normal; }
  .announcement-bar__more { position: absolute; right: 26px; color: #d0dbdc; font-size: .72rem; font-weight: 500; }
  .announcement-bar__more b { margin-left: 1px; font-size: 1.3rem; font-weight: 400; vertical-align: -.06em; }
  .announcement-bar__dots { position: absolute; top: 50%; right: 2px; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; width: 18px; }
  .announcement-bar__dots button { position: relative; width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
  .announcement-bar__dots button::after { content: ''; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%,-50%); background: #6d7d82; }
  .announcement-bar__dots button.is-active::after { width: 9px; height: 9px; background: #f0d59c; }
  .announcement-bar__slide:focus-visible, .announcement-bar__dots button:focus-visible,
  .announcement-bar__details button:focus-visible { outline: 2px solid #f0d59c; outline-offset: 2px; }
  .announcement-bar__details:not([hidden]) {
    position: absolute; z-index: 3; top: 100%; left: 8px; right: 8px;
    display: block; padding: 17px 18px 15px;
    border: 1px solid #536c75; border-radius: 0 0 14px 14px;
    background: radial-gradient(circle at 92% 10%, rgba(114,137,142,.19), transparent 45%), #17232a;
    box-shadow: 0 18px 30px rgba(14,30,38,.28); color: #f4f4ee; text-align: left;
  }
  .announcement-bar__details-head { display: flex; align-items: center; justify-content: space-between; }
  .announcement-bar__details-head strong { color: #f7e3b9; font-size: .91rem; }
  .announcement-bar__details-head button { border: 0; background: none; color: #d8e4e5; font-size: 1.5rem; line-height: 1; cursor: pointer; }
  .announcement-bar__details ul { margin: 12px 0 0; padding: 0; list-style: none; }
  .announcement-bar__details li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(225,236,234,.17); font-size: .85rem; }
  .announcement-bar__details li b { color: #f2d69c; font-size: 1rem; }
  .announcement-bar__details p { margin: 8px 0 0; color: #c9d5d5; font-size: .72rem; line-height: 1.45; }
  .announcement-bar__details--shipping li { align-items: center; gap: 12px; }
  .announcement-bar__details--shipping li span { display: grid; gap: 2px; }
  .announcement-bar__details--shipping li small { color: #d0dcdf; font-size: .76rem; }
  .announcement-bar__details--shipping li em { color: #f2d69c; font-size: .85rem; font-style: normal; font-weight: 700; white-space: nowrap; }
  .has-ouji-opening-promo .header__inner { padding-inline: var(--space-md); }
}
@media (max-width: 360px) {
  .announcement-bar__slide { font-size: .88rem; }
  .announcement-bar__more-prefix { display: none; }
  .cart-moon-promo { padding: 12px 11px 11px; }
  .cart-moon-promo__tiers { gap: 4px; }
  .cart-moon-promo__tiers li { padding: 6px 5px; }
  .cart-moon-promo__tiers b { font-size: .76rem; }
  .cart-moon-promo__tiers li[data-cart-promo-gift] img { width: 20px; }
}













































/* Permanent Round Lab gift offer on the homepage. */

/* Product-page benefits use the current Round Lab artwork and shipping language. */





























/* Match the muted sea-blue Round Lab reference across the shared gift artwork. */

/* ===== Round Lab 首頁橫幅（HTML 版，取代整張 PNG）===== */

/* motion: transform/opacity only, so it stays on the GPU and costs no extra downloads */
/* 未入畫面前暫停，入咗畫面先播（home.js 之外嘅小 observer，見 index.html） */


/* 運送卡空白位：芝麻貓喺虛線路上由左行到右，到右邊淡出，再由左邊出現 */























/* ===== 門市頁 + 首頁 IG 門市牆 ===== */
.store-page__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-2xl); align-items: start; max-width: 1080px; margin: 0 auto; }
.store-page__map iframe { display: block; width: 100%; height: 440px; border: 0; border-radius: 14px; background: var(--primary-lightest); margin-bottom: var(--space-md); }
.store-page__name { font-family: var(--font-brand); font-size: 1.5rem; color: var(--primary-deep); margin-bottom: var(--space-md); }
.store-page__facts { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px 12px; margin: 0 0 var(--space-xl); line-height: 1.7; color: var(--text-secondary); }
.store-page__facts dt { color: var(--text-tertiary); }
.store-page__facts dd { margin: 0; }
.store-page__sub { font-size: 1.0625rem; color: var(--primary-deep); margin: var(--space-lg) 0 var(--space-sm); }
.store-page__route { list-style: none; counter-reset: r; padding: 0; margin: 0; }
.store-page__route li { counter-increment: r; position: relative; padding: 0 0 var(--space-md) 40px; color: var(--text-secondary); line-height: 1.6; }
.store-page__route li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8125rem; display: grid; place-items: center; }
.store-page__route strong { display: block; color: var(--text-primary); }
.store-page__info p { color: var(--text-secondary); line-height: 1.7; }
.store-page__legal { max-width: 1080px; margin: var(--space-2xl) auto 0; padding-top: var(--space-lg); border-top: 1px solid var(--primary-lighter); font-size: .8125rem; color: var(--text-tertiary); }
@media (max-width: 800px) { .store-page__grid { grid-template-columns: 1fr; gap: var(--space-xl); } .store-page__map iframe { height: 320px; } }
/* Expandable brand quick-jump: the trailing control stays beside the swipe track. */
.brand-rail.brand-rail--clearline:has(.brand-rail__track) {
  overflow: visible;
  contain: none;
}
/* A backdrop-filter on the rail would stop the panel blurring the page below. */
.lx-page .brand-rail.brand-rail--clearline:has(.brand-picker__panel:not([hidden])) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.brand-rail__track {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  border-radius: 999px;
}
.brand-rail__track::-webkit-scrollbar { display: none; }
.brand-picker__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #d4e3e6;
  border-radius: 999px;
  background: #e8f1f2;
  color: #315e6b;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: -10px 0 14px 2px #fafcfb;
}
.brand-picker__toggle svg { width: 14px; height: 14px; transition: transform 180ms ease; }
.brand-picker__toggle[aria-expanded="true"] { background: #315e6b; border-color: #315e6b; color: #fff; }
.brand-picker__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.brand-picker__toggle:focus-visible, .brand-picker__search:focus-visible { outline: 2px solid #4e8497; outline-offset: 3px; }
.brand-picker__panel {
  box-sizing: border-box;
  position: absolute;
  inset: calc(100% + 10px) 0 auto;
  z-index: 1;
  max-height: min(560px, 65dvh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior-y: contain;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 42%),
    rgba(109, 163, 181, .74);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  color: #294b56;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 18px 45px rgb(30 65 75 / 22%);
  scrollbar-width: thin;
  scrollbar-color: #b6ced3 transparent;
}
.brand-picker__panel[hidden], .brand-picker__empty[hidden],
.brand-rail.brand-rail--clearline .brand-picker__grid .brand-rail__item[hidden] { display: none; }
/* Keep the blue separation when the site's reduced-effects mode disables blur. */
html.is-lite .brand-picker__panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 42%),
    rgba(109, 163, 181, .96);
}
.brand-picker__header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.brand-picker__header h2 { margin: 0; color: #294b56; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.brand-picker__count { color: #294b56; font-size: 11px; white-space: nowrap; }
.brand-picker__search-wrap { display: block; margin-bottom: 10px; }
.brand-picker__search {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #d6e3e5;
  border-radius: 12px;
  background: #fff;
  color: #294b56;
  font: inherit;
  font-size: 16px;
}
.brand-picker__search::placeholder { color: #7c9299; }
.brand-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 6px; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; flex-shrink: 1; padding: 2px; }
.brand-rail.brand-rail--clearline .brand-picker__grid .brand-rail__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 50px;
  height: 50px;
  padding: 6px;
  border: 1px solid #e4ecec;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  text-decoration: none;
}
.brand-rail.brand-rail--clearline .brand-picker__grid .brand-rail__item::before { display: none; }
.brand-rail.brand-rail--clearline .brand-picker__grid .brand-rail__item.is-current { border-color: #8fb4bd; background: #e8f1f2; box-shadow: inset 0 0 0 1px #8fb4bd; }
.brand-rail.brand-rail--clearline .brand-picker__grid .brand-rail__fallback {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  color: #47636d;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}
.brand-picker__empty { padding: 20px 0; margin: 0; text-align: center; font-size: 14px; color: #294b56; }
.brand-picker__visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) {
  .brand-picker__toggle:hover { border-color: #8fb4bd; }
  .brand-rail.brand-rail--clearline .brand-picker__grid .brand-rail__item:hover { border-color: #8fb4bd; background: #eef5f5; }
}
/* Compact shared tools and brand index. */
.brand-picker__tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 8px; flex: 0 0 auto; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .38); }
.brand-picker__filter, .brand-picker__sort-wrap { box-sizing: border-box; display: flex; align-items: center; min-width: 0; min-height: 44px; flex: 1 1 0; border: 1px solid #cddfe5; border-radius: 10px; background: #fff; color: #315e6b; font: inherit; font-size: 12px; }
.brand-picker__filter { justify-content: center; gap: 8px; padding: 6px 10px; cursor: pointer; }
.brand-picker__filter svg { width: 16px; height: 16px; }
.brand-picker__sort-wrap { position: relative; display: block; height: 44px; margin: 0; }
.brand-picker__sort-label { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 12px; pointer-events: none; }
.brand-picker__tools [hidden] { display: none; }
.brand-picker__sort { box-sizing: border-box; display: block; width: 100%; height: 42px; min-width: 0; min-height: 42px; margin: 0; padding: 6px 10px 6px 44px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; font-size: 16px; }
.brand-picker__sort:focus { outline: none; box-shadow: none; }
.brand-picker__header, .brand-picker__search-wrap { flex: 0 0 auto; }
.brand-rail.brand-rail--clearline .brand-picker__grid .brand-rail__fallback[hidden] { display: none; }
.brand-rail.brand-rail--clearline .brand-picker__item .brand-rail__logo,
.brand-rail.brand-rail--clearline .brand-picker__item .brand-rail__logo-crop { zoom: .72; }
.brand-rail.brand-rail--clearline .brand-picker__item .brand-rail__logo-crop .brand-rail__logo { zoom: 1; }
.brand-picker__filter:focus-visible, .brand-picker__sort-wrap:focus-within { outline: 2px solid #4e8497; outline-offset: 2px; }
@media (min-width: 769px) {
  .brand-picker__tools { grid-template-columns: 120px 230px; }
  .brand-picker__filter { flex: 0 0 120px; }
  .brand-picker__sort-wrap { flex: 0 0 230px; }
}
@media (max-width: 768px) {
  /* Keep the original white rail; only the small hanging label is darker. */
  .brand-picker__toggle { position: absolute; right: 24px; top: 100%; bottom: auto; z-index: 3; width: 44px; height: 22px; min-height: 22px; padding: 0; gap: 0; border: 0; border-radius: 0 0 7px 7px; background: #9ebbc5; color: #fff; box-shadow: none; }
  .brand-picker__toggle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brand-picker__toggle svg { width: 13px; height: 13px; }
  .brand-picker__toggle[aria-expanded="true"] { background: #88aab6; color: #fff; }
  .lx-page .brand-rail-dock[data-brand-strip] { margin-bottom: 30px; }
  .brand-picker__panel { top: calc(100% + 28px); z-index: 4; padding: 12px; border-radius: 18px; }
  .brand-picker__header h2 { font-size: 13px; }
  .brand-picker__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .brand-rail.brand-rail--clearline .brand-picker__grid .brand-rail__item { min-height: 48px; height: 48px; padding: 4px; }
}
@media (max-width: 360px) {
  .brand-picker__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-picker__toggle svg { transition: none; }
}

/* Inline product filters inside the brand picker's glass panel only. */
.brand-picker__panel [hidden] { display: none; }
.brand-picker__panel .brand-picker__filters[hidden] { display: none; }
.brand-picker__filters {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.brand-picker__filter-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 8px;
  scrollbar-color: #b6ced3 transparent;
  scrollbar-width: thin;
}
.brand-picker__filters .lx-fields {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 0;
}
.brand-picker__filters .lx-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #294b56;
  font-size: 12px;
}
.brand-picker__filters .lx-field:has([data-lx-q]),
.brand-picker__filters .lx-fields:has([data-picker-category]) .lx-field:has([data-lx-pick="vendor"]),
.brand-picker__filters .lx-range,
.brand-picker__filters .lx-check { grid-column: 1 / -1; }
.brand-picker__filters .lx-range { min-width: 0; }
.brand-picker__filters .lx-field select,
.brand-picker__filters .lx-field input:not([type="checkbox"]):not([type="range"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d6e3e5;
  border-radius: 10px;
  background-color: #fff;
  color: #294b56;
  font: inherit;
  font-size: 14px;
}
.brand-picker__filters .lx-field select {
  padding-right: 30px;
  background-position: right 10px center;
}
.brand-picker__filters .lx-field:has([data-lx-q]) input {
  padding-right: 10px;
  background-image: none;
}
.brand-picker__filters .lx-check {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #d6e3e5;
  border-radius: 10px;
  background: #fff;
  color: #294b56;
  font-size: 14px;
  line-height: 1.35;
}
.brand-picker__filters .lx-check input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #315e6b;
}
.brand-picker__filters .lx-field select:focus-visible,
.brand-picker__filters .lx-field input:focus-visible,
.brand-picker__filters .lx-check:focus-within,
.brand-picker__filters .brand-picker__apply:focus-visible,
.brand-picker__filters .brand-picker__clear:focus-visible {
  outline: 2px solid #4e8497;
  outline-offset: 2px;
}
.brand-picker__filter-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .42);
}
.brand-picker__filters .brand-picker__apply,
.brand-picker__filters .brand-picker__clear {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.brand-picker__filters .brand-picker__apply {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid #315e6b;
  background: #315e6b;
  color: #fff;
  font-weight: 600;
}
.brand-picker__filters .brand-picker__clear {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .2);
  color: #294b56;
}
.brand-picker__panel .brand-picker__filter[aria-pressed="true"] {
  border-color: #315e6b;
  background: #315e6b;
  color: #fff;
}
@media (min-width: 769px) {
  .brand-picker__filter-actions { justify-content: flex-end; }
  .brand-picker__filters .brand-picker__apply { flex: 0 1 240px; }
  .brand-picker__filters .lx-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-picker__filters .lx-field { align-content: start; }
  .brand-picker__filters .lx-field:has([data-lx-pick="vendor"]),
  .brand-picker__filters .lx-field:has([data-lx-pick="cat"]),
  .brand-picker__filters .lx-field:has([data-lx-q]),
  .brand-picker__filters .lx-range,
  .brand-picker__filters .lx-check,
  .brand-picker__filters .lx-fields:has([data-picker-category]) .lx-field:has([data-lx-pick="vendor"]) { grid-column: span 2; }
}
@media (max-width: 768px) {
  .brand-picker__filters .lx-field select,
  .brand-picker__filters .lx-field input:not([type="checkbox"]):not([type="range"]) { font-size: 16px; }
}
@media (max-width: 360px) {
  .brand-picker__filters .lx-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-picker__filters .lx-field select,
  .brand-picker__filters .lx-field input:not([type="checkbox"]):not([type="range"]) {
    min-width: 0;
    font-size: 16px;
  }
  .brand-picker__filters .lx-field { font-size: 12px; }
}

/* 手機分類選單用嘅品牌字樣 League Spartan。 */
@font-face{font-family:'League Spartan';src:url('/assets/fonts/league-spartan-latin.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
