/* 產品頁新產品卡（Winston 2026-10-14 叫上 live；同日批咗輕身版）。設計跟佢張 CLIO 參考圖，再按佢張 mock 減重：
   相（右下角白色「選色・N色 ⊕」掣、左上得獎章）→ 品牌 → 名 → ★ 評分｜則評價｜Olive Young → 劃線價＋特價＋細牌一行
   → 獲獎／優惠短條（右邊低庫存字）。冇色號行、冇大掣。
   冇白色卡底，相同字直接坐喺頁面底色。尺寸用 cqi 跟卡闊縮放，細字有最細字級；
   上限跟 Codex 商品頁預覽（名 15px、價錢 15px、評分 11.5px 幼字），桌面闊卡唔再放大（Winston 2026-10-15 嫌粗大）。
   只喺載入咗呢個檔嘅產品頁生效；首頁、產品內頁唔受影響。 */
.product-card.lc {
  --lc-ink: #132129; --lc-brand: #6f8790; --lc-rate: #444b51; --lc-rate-2: #56636d; --lc-src: #5f6d78; --lc-sep: #d3d9dd;
  --lc-tile: #eef2f3; --lc-was: #6e7d87; --lc-sale: #bd3a27; --lc-chip-bg: #fdebea; --lc-chip-ink: #b23423;
  --lc-award-bg: #26343e; --lc-award-ink: #fff; --lc-gold: #c8a159; --lc-link: #637487; --lc-var-ink: #101c24;
  --lc-cta: #617a8b; --lc-cta-hover: #536a7a; --lc-name: #284653; --lc-pick-dot: #4e8497; --lc-pick-dot-hover: #43788a;
  --lc-f: "Manrope", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  container: lc / inline-size;
  display: block; min-width: 0; width: 100%; max-width: 440px; margin-inline: auto;
  color: var(--lc-ink); font: 400 14px/1.4 var(--lc-f); text-align: left; text-decoration: none;
  -webkit-font-smoothing: antialiased; perspective: none;
}
/* 角色標籤顏色（G35）：顏色跟角色——前鋒紅（同減價一家）、引流琥珀、主力留空、獨市深藍金字（同獲獎條一家）、防守線框（有意境嘅字）、清貨炭灰；產品頁 .pdp-role／.pdp-brandline 共用 */
.product-card.lc, .pdp-role {
  --lc-role-front-bg: #bd3a27; --lc-role-front-ink: #fff;
  --lc-role-lure-bg: #fbefd6; --lc-role-lure-ink: #6f4700;
  --lc-role-solo-bg: #26343e; --lc-role-solo-ink: #ecd29b;
  --lc-role-guard-line: #9db2bb; --lc-role-guard-ink: #284653;
  --lc-role-clear-bg: #3d4448; --lc-role-clear-ink: #fff;
}

/* 網站舊卡嘅浮起、反光、3D 傾斜唔用（新設計冇呢啲效果） */
.product-card.lc:hover { transform: none; }
.product-card.lc * { box-sizing: border-box; }
.lc__in { display: flex; flex-direction: column; height: 100%; }

/* 相：參考圖比例 812 × 780，圓角；心心喺右上角；得獎章照舊喺左下角 */
.lc .product-card__image-wrap {
  position: relative; flex: none; aspect-ratio: 812 / 780; margin: 0; overflow: hidden;
  border: 0; border-radius: min(3.41cqi, 12px); background: var(--lc-tile); box-shadow: none;
  transform: none !important; transition: none;
}
.product-card.lc:hover .product-card__image-wrap { box-shadow: none; }
.lc .product-card__image-wrap::after { content: none; display: none; }
.lc .product-card__image {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center; transform: none; transition: none;
}
/* 首圖、第二張相共用固定相框；移除舊卡 hover 放大，切換時尺寸同裁切位置保持一致。 */
.product-card.lc:hover .product-card__image { transform: none; }
.lc .lc__alt { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .18s ease-out; }
@media (hover: hover) and (pointer: fine) {
  .product-card.lc:hover .lc__alt.is-ready { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .lc .lc__alt { transition: none; } }
.lc .award-ribbon { top: 10px; bottom: auto; }
.lc .product-card__badge--sold-out ~ .award-ribbon { display: none; }
/* 心心：畫出嚟 30px，但撳位用 ::before 四邊各擴 10px（方形，約 50px；斜角撳偏都計），手指撳偏少少都算撳中心心，
   唔會跌落張相條連結入咗產品頁（Winston 2026-10-14：「揿嗰粒心，點知揿咗個產品頁面」）。
   離角最少 6px，等擴大咗嘅撳位唔會俾相框切走。 */
.lc .product-card__wishlist {
  position: absolute; top: clamp(6px, 2.39cqi, 8.41px); right: clamp(6px, 1.36cqi, 4.79px); z-index: 3; display: grid; place-items: center;
  width: clamp(30px, 9.18cqi, 32.31px); height: clamp(30px, 9.18cqi, 32.31px); padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: #39444c;
  box-shadow: 0 1px 4px rgba(19, 33, 41, .12); backdrop-filter: none; -webkit-backdrop-filter: none;
  opacity: 1; transform: none; cursor: pointer;
}
.lc .product-card__wishlist::before { content: ''; position: absolute; inset: -10px; }
.lc .product-card__wishlist svg { width: clamp(14px, 4.66cqi, 16.4px); height: clamp(14px, 4.66cqi, 16.4px); fill: none; stroke: currentColor; stroke-width: 1.8; }
.lc .product-card__wishlist.is-active { color: var(--lc-sale); background: #fff; }
.lc .product-card__wishlist.is-active svg { fill: currentColor; stroke: currentColor; }

/* 文字：名稱按每行最高行數同步；冇評分嘅整行會收起評分槽位 */
.lc__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 0 min(0.2cqi, 0.7px); }
.lc__brand { display: flex; align-items: center; justify-content: space-between; gap: clamp(4px, 1.7cqi, 6px); height: clamp(14px, 5.11cqi, 15px); margin-top: clamp(4px, 1.92cqi, 6.76px); overflow: hidden; color: var(--lc-brand); font: 500 clamp(10.5px, 3.84cqi, 11px)/clamp(14px, 5.11cqi, 15px) var(--lc-f); letter-spacing: .045em; white-space: nowrap; }
.lc__vendor { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 角色標籤（G35）：品牌行右邊，高度跟品牌行，唔加行；中文字重只用 500 */
.lc__role { display: inline-flex; flex: none; align-items: center; height: 100%; padding: 0 clamp(4px, 1.6cqi, 5.5px); border-radius: clamp(3px, 1.2cqi, 4px); font: 500 clamp(9.5px, 3.5cqi, 10.5px)/1 var(--lc-f); letter-spacing: .03em; }
.lc__role--front { background: var(--lc-role-front-bg); color: var(--lc-role-front-ink); }
.lc__role--lure { background: var(--lc-role-lure-bg); color: var(--lc-role-lure-ink); }
.lc__role--solo { background: var(--lc-role-solo-bg); color: var(--lc-role-solo-ink); }
/* 清貨（五個角色以外）：炭灰底白字，「告別清貨」行先過角色標籤 */
.lc__role--clear { background: var(--lc-role-clear-bg); color: var(--lc-role-clear-ink); }
/* 防守：線框（冇底色），字講意境（拒絕平凡等）；唔寫「正貨保證」——Winston 10-29：寫咗好似其他貨唔係正貨 */
.lc__role--guard { background: transparent; box-shadow: inset 0 0 0 1px var(--lc-role-guard-line); color: var(--lc-role-guard-ink); }
/* 產品頁：名下面一行，標籤＋一句講點解（客人睇得明） */
.pdp-role { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 2px; color: #5f6d78; font: 400 12.5px/1.4 "Manrope", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif; }
.pdp-role[hidden] { display: none; }
.pdp-role .lc__role { height: 22px; padding: 0 8px; border-radius: 5px; font: 500 12px/1 "Manrope", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif; }
/* 中文字只用 400／500（2026-10-15 定；當時 Noto Sans TC 只載兩級。10-16 起中文用系統字，字重照留唔郁）。 */
/* 名：--lc-lines 由 product-card-lc.js 按每一行最高行數計，整行卡保持對齊 */
.lc__name { display: block; flex: none; height: calc(clamp(18px, 8.12cqi, 22.5px) * var(--lc-lines, 2)); margin-top: min(1.42cqi, 4px); overflow: hidden; }
.lc__title { color: var(--lc-name); font: 500 clamp(12.5px, 5.8cqi, 15px)/clamp(18px, 8.12cqi, 22.5px) var(--lc-f); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* 評分：★ 4.6 ｜ 369 則評價 ｜ Olive Young */
.lc__rating { display: flex; flex: none; align-items: center; gap: min(2.55cqi, 8.98px); height: clamp(14px, 5.11cqi, 17.25px); margin-top: clamp(4px, 1.53cqi, 4px); overflow: hidden; color: var(--lc-rate-2); font: 400 clamp(10px, 3.5cqi, 11.5px)/clamp(14px, 5.11cqi, 17.25px) var(--lc-f); white-space: nowrap; }
.lc--no-row-rating .lc__rating:empty { display: none; }
.lc__rating .lc__score { display: inline-flex; align-items: center; gap: min(1.25cqi, 4.4px); color: var(--lc-rate); font-weight: 500; }
.lc__rating .lc__star { color: var(--lc-gold); font-size: clamp(11.5px, 4.25cqi, 13px); line-height: 1; }
.lc__rating .lc__max { margin-left: -1px; font-size: .82em; font-weight: 400; color: var(--lc-rate-2); }
.lc__rating i { flex: none; width: 1px; height: min(3.4cqi, 11.97px); min-height: 10px; background: var(--lc-sep); }
.lc__rating .lc__src { color: var(--lc-src); }

/* 價錢：劃線原價、特價、細牌同一行（class 唔可以有「price」字，分析程式會攞第一個「price」做售價） */
.lc__deal { display: flex; flex: none; align-items: center; gap: min(3.75cqi, 8px); height: clamp(19px, 7.39cqi, 21px); margin-top: clamp(6px, 2.67cqi, 6px); overflow: hidden; white-space: nowrap; }
.lc__nums { display: flex; flex: none; align-items: center; gap: min(3.86cqi, 6px); }
.lc__was { color: var(--lc-was); font: 400 clamp(11px, 4.97cqi, 11px)/1 var(--lc-f); font-variant-numeric: tabular-nums; text-decoration: line-through; }
.lc__pricenow { color: var(--lc-name); font: 600 clamp(14.5px, 6.82cqi, 15px)/1 var(--lc-f); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.lc__nums.is-sale .lc__pricenow { color: var(--lc-sale); }
.lc__chip { display: flex; flex: none; align-items: center; height: clamp(18px, 7.36cqi, 20px); padding: 0 clamp(4.5px, 2.6cqi, 6px); border-radius: clamp(4px, 1.7cqi, 5px); background: var(--lc-chip-bg); color: var(--lc-chip-ink); font: 500 clamp(10.5px, 3.84cqi, 11px)/1 var(--lc-f); font-style: normal; }

/* 獲獎條：深藍灰底白字白獎盃（Winston 2026-10-14 指定），跟字長嘅短條（唔拉滿闊度，冇咁重）。
   同一個位都用嚟出優惠；冇就留返個位，同一行卡照對齊。右邊低庫存寫「最後一件／最後兩件」 */
.lc__awardrow { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 6px; height: clamp(24px, 9.52cqi, 26px); margin-top: clamp(6px, 2.73cqi, 8px); }
.lc__award { display: inline-flex; flex: 0 1 auto; align-items: center; gap: min(3.18cqi, 6px); min-width: 0; height: 100%; padding: 0 min(3.6cqi, 9px) 0 min(3.18cqi, 8px); overflow: hidden; border-radius: clamp(6px, 2.13cqi, 6px); background: var(--lc-award-bg); color: var(--lc-award-ink); font: 500 clamp(10.5px, 3.92cqi, 11.5px)/1.2 var(--lc-f); white-space: nowrap; }
.lc__award.is-empty { visibility: hidden; }
.lc__award svg { flex: none; width: clamp(14px, 5.97cqi, 15px); height: clamp(14px, 5.97cqi, 15px); fill: currentColor; }
.lc__award > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lc__award .lc__aws { display: none; }
/* 優惠：紅＝限時／換季／任揀／到期；黃＝孖裝／套裝；深色＝專櫃套裝 */
.lc__award--sale { background: var(--lc-chip-bg); color: var(--lc-chip-ink); }
.lc__award--sale svg { fill: var(--lc-sale); }
.lc__award--promo { background: #fff4b8; color: #5c4700; }
.lc__award--promo svg { fill: #b08600; }
.lc__award--prestige { background: #1b1814; color: #e3c98f; }
.lc__award--prestige svg { fill: #e3c98f; }

.lc__low { flex: none; color: var(--lc-chip-ink); font: 500 clamp(10px, 3.4cqi, 11px)/1 var(--lc-f); }

/* 相右下角粒掣：「選色・3色 ⊕」開揀色畫面；單一款式「加入 ⊕」；缺貨「到貨通知我」。
   白底黑字唔搶相；⊕ 係品牌藍實心圓＋白加號，淺色相上面都睇得到（Winston 2026-10-16 揀 C 版）。
   藍用深一級 #4e8497：主色 #6da3b5 配白色加號對比唔夠 */
.lc__pick {
  position: absolute; right: min(2.4cqi, 8.45px); bottom: min(2.4cqi, 8.45px); z-index: 3;
  display: inline-flex; align-items: center; gap: min(1.6cqi, 5.63px); height: clamp(32px, 11.6cqi, 36px); max-width: calc(100% - min(4.8cqi, 16.9px));
  padding: 0 clamp(7px, 2.2cqi, 7.74px) 0 clamp(11px, 3.6cqi, 12.67px); border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .96); color: var(--lc-ink); box-shadow: 0 3px 12px rgba(19, 33, 41, .2);
  font: 500 clamp(12px, 4.3cqi, 13px)/1 var(--lc-f); letter-spacing: .02em; white-space: nowrap; cursor: pointer;
}
.lc__pick svg { flex: none; width: clamp(17px, 6cqi, 19px); height: clamp(17px, 6cqi, 19px); fill: none; stroke: currentColor; stroke-width: 1.6; }
.lc__pick svg circle { fill: var(--lc-pick-dot); stroke: var(--lc-pick-dot); }
.lc__pick svg path { stroke: #fff; stroke-width: 2; }
.lc__pick:hover { background: #fff; }
.lc__pick:hover svg circle { fill: var(--lc-pick-dot-hover); stroke: var(--lc-pick-dot-hover); }
.lc__pick:disabled { cursor: default; }
.lc__pick--restock { padding-right: clamp(11px, 3.6cqi, 12.67px); color: var(--lc-cta); }
.lc__pick:focus-visible, .lc .product-card__wishlist:focus-visible { outline: 2px solid var(--lc-ink); outline-offset: 2px; }

/* 手機一行兩張（卡闊大約 160px，同網站原本一樣）：細字用最細字級、間距收窄，價錢細牌照樣一行；
   獲獎條唔寫年份（相上得獎章已經寫咗年份）；評分收起「則評價」三隻字（★ 4.7｜3,684｜Olive Young） */
@container lc (max-width: 199px) {
  .lc__rating { gap: 4px; }
  .lc__rating .lc__cw { display: none; }
  .lc__rating .lc__score { gap: 2px; }
  .lc__deal { gap: 5px; }
  .lc__nums { gap: 5px; }
  .lc__was { font-size: 10px; }
  .lc__pricenow { font-size: 13.5px; }
  .lc__chip { height: 17px; padding: 0 4px; font-size: 9.5px; }
  .lc__award { gap: 5px; padding: 0 6px; }
  .lc__award svg { width: 13px; height: 13px; }
  .lc__award .lc__yr { display: none; }
  .lc__pick { right: 6px; bottom: 6px; height: 30px; padding: 0 6px 0 10px; font-size: 11.5px; }
  .lc__pick svg { width: 16px; height: 16px; }
}
/* 細手機（320px，卡闊大約 140px）：價錢再細少少 */
@container lc (max-width: 149px) {
  .lc__was { font-size: 9.5px; }
  .lc__pricenow { font-size: 12.5px; }
  .lc__chip { padding: 0 3px; font-size: 9px; }
}
/* 首頁貨架細卡（卡闊 139px 或以下：手機首頁一屏 2.8 件、Codex 首頁白底卡）。張卡同一套，只係減嘢：
   選色掣縮做一粒「+」圓掣；評分收起評價數，留 ★ 分數同 Olive Young；價錢收起劃線價（細牌已經講慳幾多）；
   低庫存字收起；得獎章同心心縮細。 */
@container lc (max-width: 139px) {
  .lc .award-ribbon { top: 6px; left: 6px; transform: scale(.62); transform-origin: 0 0; }
  .lc .product-card__wishlist { top: 5px; right: 5px; width: 26px; height: 26px; }
  .lc .product-card__wishlist svg { width: 13px; height: 13px; }
  .lc__rating > i:nth-child(2), .lc__rating > span:nth-child(3) { display: none; }
  .lc__was, .lc__low { display: none; }
  .lc__award { gap: 4px; padding: 0 5px; }
  .lc__award .lc__awl { display: none; }
  .lc__award .lc__aws { display: inline; }
  .lc__award .lc__hk { display: none; }
  .lc__pick { right: 5px; bottom: 5px; width: 28px; height: 28px; padding: 0; gap: 0; justify-content: center; font-size: 0; }
  .lc__pick svg { width: 18px; height: 18px; }
  .lc__pick--restock { display: none; }
}
