﻿/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
/* 全站防橫向溢出（手機底部/兩側白邊）鐵律：任何頁面都唔可以橫向 scroll。
   overflow-x:hidden 喺 html（root scroll container）→ sticky 導覽列不受影響；
   body 用 clip（唔會建立 scroll container，唔會整壞 sticky）+ max-width 鎖死。 */
body { font-family: 'Noto Sans TC', 'Arial', sans-serif; color: #2d2d2d; background: #fff; line-height: 1.7; overflow-x: clip; max-width: 100%; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Variables ── */
:root {
  --gold: #D4AF37;
  --gold-dark: #B8960C;
  --navy: #1C1C1C;
  --cream: #FFFFFF;
  --border: #E5DDD0;
  --text: #2d2d2d;
}

/* ── Navbar ── */
.navbar {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.navbar-logo img { height: 48px; width: auto; object-fit: contain; }
.navbar-logo .logo-text { color: #fff; font-size: clamp(.92rem, 3.6vw, 1.15rem); font-weight: 700; letter-spacing: .05em; white-space: nowrap; }
.navbar-logo .logo-sub .ls-short { display: none; }
.navbar-logo .logo-sub  { color: var(--gold); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.navbar-logo { display: flex; align-items: center; gap: 12px; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  color: #fff;
  font-size: .88rem;
  letter-spacing: .04em;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  display: block;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--gold); background: rgba(212,175,55,.08); }

.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--navy);
  border: 1px solid rgba(212,175,55,.2); border-top: 2px solid var(--gold);
  min-width: 200px; border-radius: 0 0 6px 6px; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 999; }
.nav-menu > li:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 10px 18px; font-size: .83rem; color: #ccc; border-bottom: 1px solid rgba(255,255,255,.05); transition: color .2s, background .2s; }
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--gold); background: rgba(212,175,55,.06); }

.navbar-search { display: flex; align-items: center; gap: 0; }
.navbar-search input {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 7px 14px;
  font-size: .83rem;
  border-radius: 20px 0 0 20px;
  outline: none;
  width: 190px;
  transition: width .3s, background .2s;
}
.navbar-search input:focus { width: 230px; background: rgba(255,255,255,.12); }
.navbar-search input::placeholder { color: rgba(255,255,255,.45); }
.navbar-search button {
  background: var(--gold);
  border: none;
  color: var(--navy);
  padding: 7px 14px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s;
}
.navbar-search button:hover { background: var(--gold-dark); }

/* 主選單 7 項會喺中等螢幕逼爆 → ≤1100 切漢堡包（items 全在手機選單，唔會漏、零橫向溢出） */
@media (max-width: 1100px) {
  .nav-menu { display: none; }
  .navbar-search { display: none; }
  .mobile-nav-controls { display: flex !important; }
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: linear-gradient(135deg, #1C1C1C 0%, #2C2416 60%, #1C1C1C 100%);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 760px; padding: 0 24px; }
.hero-eyebrow { color: var(--gold); font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.65); }
.hero h1 { color: #fff; font-family: 'Noto Serif TC', Georgia, serif; font-size: 3.4rem; font-weight: 700; letter-spacing: .02em; line-height: 1.18; margin-bottom: 16px; text-shadow: 0 2px 6px rgba(0,0,0,.65), 0 6px 26px rgba(0,0,0,.55); }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.95); font-size: 1.05rem; font-weight: 500; margin-bottom: 32px; text-shadow: 0 1px 5px rgba(0,0,0,.7); }

/* ── Hero slider（2026-07-12 主頁 banner 輪播）── */
.hero-slide {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.1s ease; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: #1C1C1C; }
/* 首張 hero（LCP）：用 media query 揀桌面/手機圖，令瀏覽器只下載啱嗰張。
   URL 由 front-page.php inline 設 --hero-d / --hero-m 兩個變數。
   2026-07-19：舊做法 inline 寫死桌面圖再由 JS 換 -m，手機會兩張都落（白費 174KB）。 */
.hero-slide-bg.is-first { background-image: var(--hero-d); }
@media (max-width: 768px) { .hero-slide-bg.is-first { background-image: var(--hero-m); } }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,10,.58) 0%, rgba(16,14,10,.42) 52%, rgba(16,14,10,.5) 100%);
}
/* 真露 slide（v5 真實氛圍相）：同其他 slide 一致（置中文字 + 預設深色遮罩）；
   busy 招紙上加少少額外中央壓暗保字清晰 */
.hero-slide--jinro::after {
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(10,8,4,.5) 0%, rgba(10,8,4,.28) 55%, rgba(10,8,4,.6) 100%);
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(20,20,20,.32); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-size: 26px; line-height: 1; padding: 0 0 4px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s, border-color .2s, color .2s;
}
.hero-arrow:hover { background: rgba(212,175,55,.85); border-color: var(--gold); color: #1C1C1C; }
.hero-arrow--prev { left: 22px; }
.hero-arrow--next { right: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active .hero-slide-bg { animation: mthHeroZoom 8s ease-out both; }
  @keyframes mthHeroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
}
.hero-cta { margin-top: 4px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.75); background: transparent;
  transition: background .25s, width .25s, border-color .25s;
  position: relative;
}
/* 隱形點擊區：視覺仍係 9px 圓點，但手指可撳範圍擴到約 30×30px（手機易撳好多，視覺零改變）*/
.hero-dot::after {
  content: ''; position: absolute; top: -11px; bottom: -11px; left: -6px; right: -6px;
}
.hero-dot.is-active { background: var(--gold); border-color: var(--gold); width: 26px; border-radius: 5px; }

/* ── Section ── */
.section { padding: 72px 40px; max-width: 1300px; margin: 0 auto; }
.section-dark { background: var(--navy); padding: 72px 40px; }
.section-dark-inner { max-width: 1300px; margin: 0 auto; }
.section-cream { background: var(--cream); padding: 72px 40px; }
.section-cream-inner { max-width: 1300px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-header h2 { font-size: 2.1rem; color: var(--navy); font-weight: 700; margin-bottom: 12px; font-family: 'Noto Serif TC', Georgia, serif; }
.section-header h2.white { color: #fff; }
.section-header p { color: #888; max-width: 520px; margin: 0 auto; font-size: .9rem; }
.section-header p.white { color: rgba(255,255,255,.6); }
.divider-gold { width: 56px; height: 2px; background: var(--gold); margin: 14px auto 0; }

/* ── Product Card ── */
/* minmax(0,1fr)：欄最小值鎖 0，避免 #product-grid 卡片嘅 content-visibility
   (contain-intrinsic-size:auto 340px) 令欄被當成最少 340px 闊 → 撐爆版面/橫向溢出。 */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s;
  text-decoration: none;
  display: flex; flex-direction: column; height: 100%; width: 100%; min-width: 0;
  position: relative;
}
.prod-card:hover { transform: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 8px 28px rgba(0,0,0,.13); }
/* 代理正貨 badge 改做圖片左上浮層 → 唔影響卡片高度，全部卡一致 */
.prod-card .badge-agency-sm {
  position: absolute; top: 10px; left: 10px; margin: 0 !important; z-index: 3;
  background: rgba(255,255,255,.92); backdrop-filter: blur(2px);
}
.prod-card-img {
  height: 180px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  position: relative;
  background: #FFFFFF;
  padding: 16px 16px 6px; box-sizing: border-box;
}
.prod-card-img img { width: 100%; height: 80%; max-height: 80%; object-fit: contain; object-position: center; }
.prod-img-placeholder {
  font-size: 2.8rem; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; background: #faf6ec; color: #d4af37;
  opacity: .65;
}
.prod-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 120px; }
.prod-card-body h4 {
  font-size: .93rem; color: var(--navy); font-weight: 500; margin-bottom: 4px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  height: 2.7em; /* 固定 2 行高度（1.35×2），1 行/2 行都一致 */
}
.prod-card-body .en-name {
  font-size: .8rem; color: #777; margin-bottom: 8px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  height: 1.3em; /* 固定 1 行高度，有/冇英文名都一致 */
}
.prod-card-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .75rem; color: #888; margin-top: auto; }
.prod-card-meta .spec { background: var(--cream); padding: 2px 8px; border-radius: 20px; border: 1px solid var(--border); }
.prod-card-meta .abv  { color: var(--gold); font-weight: 600; }

/* ── Badges ── */
.badge-agency    { display: inline-block; font-size: .7rem; color: var(--gold); border: 1px solid rgba(212,175,55,.45); padding: 2px 9px; border-radius: 20px; letter-spacing: .04em; margin-bottom: 6px; }
.badge-agency-sm { display: inline-block; font-size: .65rem; color: var(--gold); border: 1px solid rgba(212,175,55,.35); padding: 1px 7px; border-radius: 20px; letter-spacing: .03em; }
.badge-cat { display: inline-block; font-size: .7rem; background: var(--cream); color: var(--navy); border: 1px solid var(--border); padding: 2px 10px; border-radius: 20px; letter-spacing: .03em; }

/* ── 品牌橫向自動捲動帶（首頁，白底無邊框，讀 mth_brand）── */
.brand-marquee-section { background: #fff; padding: 30px 0; }
.brand-marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brand-marquee + .brand-marquee { margin-top: 14px; }
.brand-marquee-track {
  display: flex; width: max-content;
  animation: brand-scroll 60s linear infinite;
  /* GPU 合成：喺低端機/手機都用顯示卡跑動畫，唔會卡（唔靠主線程重繪）*/
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.brand-marquee-track--rev { animation-direction: reverse; }
/* 桌面滑鼠停喺成條 banner 上會令 hover 暫停 → 用戶睇落好似「唔郁」，故移除，保持持續捲動 */
.brand-marquee-item {
  flex: 0 0 auto; width: 138px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px; box-sizing: content-box;
}
.brand-marquee-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes brand-scroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@media (prefers-reduced-motion: reduce) { .brand-marquee-track { animation: none; } }
@media (max-width: 760px) {
  .brand-marquee-section { padding: 16px 0; }
  .brand-marquee-item { width: 92px; height: 46px; padding: 0 13px; }
  /* 手機部分瀏覽器 mask 支援差，移除避免整條消失 */
  .brand-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ── 圖片防偷：禁止拖曳/選取（配合 JS 禁右鍵）── */
.prod-card-img img, .qv-img, .brand-card img, .brand-marquee-item img,
.carousel-card img, .prod-img-zoom img {
  -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; user-drag: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}

/* ── Breadcrumb ── */
.breadcrumb { background: var(--cream); padding: 14px 40px; font-size: .8rem; color: #888; border-bottom: 1px solid var(--border); }
.breadcrumb-inner { max-width: 1300px; margin: 0 auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--gold); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb .sep { color: #ccc; }

/* ── Category Page Header ── */
.cat-page-header {
  background: var(--navy);
  padding: 60px 40px;
  text-align: center;
}
.cat-page-header .eyebrow { color: var(--gold); font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 10px; }
.cat-page-header h1 { color: #fff; font-size: 2.4rem; font-weight: 700; margin-bottom: 10px; font-family: 'Noto Serif TC', Georgia, serif; }
.cat-page-header p { color: rgba(255,255,255,.6); font-size: .9rem; max-width: 500px; margin: 0 auto; }
.cat-count-badge { display: inline-block; margin-top: 14px; background: rgba(212,175,55,.15); color: var(--gold); border: 1px solid rgba(212,175,55,.3); padding: 4px 16px; border-radius: 20px; font-size: .8rem; }

/* ── Search Bar ── */
.search-bar-wrap { max-width: 520px; margin: 0 auto 48px; }
.search-bar-wrap input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--border);
  border-radius: 40px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--navy);
  outline: none;
  transition: border .2s, box-shadow .2s;
}
.search-bar-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.12); }
.search-count { text-align: center; font-size: .8rem; color: #aaa; margin-bottom: 28px; }
.no-results { text-align: center; padding: 60px 20px; color: #aaa; font-size: .95rem; display: none; }

/* ── Product Detail ── */
.product-detail { max-width: 1100px; margin: 0 auto; padding: 56px 40px; display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: start; }
.product-detail-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
  position: sticky;
  top: 90px;
  background: #FFFFFF;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: contain; }
.product-info .cat-breadcrumb { font-size: .78rem; color: #aaa; margin-bottom: 12px; }
.product-info h1 { font-size: 2.1rem; color: var(--navy); font-weight: 700; line-height: 1.25; margin-bottom: 6px; font-family: 'Noto Serif TC', Georgia, serif; }
.product-info .en-name { font-size: 1rem; color: #777; margin-bottom: 18px; }
.product-info .divider { height: 1px; background: var(--border); margin: 22px 0; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: #888; width: 110px; font-size: .82rem; }
.spec-table td:last-child { color: var(--navy); font-weight: 500; }

/* ── About ── */
.about-hero { background: var(--navy); padding: 80px 40px; text-align: center; }
.about-hero h1 { color: #fff; font-size: 2.6rem; font-weight: 700; margin-bottom: 12px; font-family: 'Noto Serif TC', Georgia, serif; }
.about-hero h1 span { color: var(--gold); }
.about-hero p { color: rgba(255,255,255,.65); max-width: 560px; margin: 0 auto; }
.about-body { max-width: 900px; margin: 0 auto; padding: 72px 40px; }
.about-body h2 { font-size: 1.45rem; color: var(--navy); font-weight: 700; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; font-family: 'Noto Serif TC', Georgia, serif; }
.about-body p { color: var(--text); line-height: 1.9; margin-bottom: 14px; font-size: .95rem; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; align-items: stretch; }
.stat-box { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 28px 20px; text-align: center; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-box .num { font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.stat-box .label { font-size: .8rem; color: #888; letter-spacing: .06em; }

/* ── Contact ── */
.contact-grid { max-width: 1100px; margin: 0 auto; padding: 72px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 1.7rem; color: var(--navy); font-weight: 700; margin-bottom: 8px; font-family: 'Noto Serif TC', Georgia, serif; }
.contact-info .sub { color: #aaa; font-size: .85rem; margin-bottom: 32px; }
.contact-row { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-row .icon { width: 38px; height: 38px; background: var(--cream); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-row .detail .label { font-size: .72rem; color: #aaa; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.contact-row .detail .val { font-size: .9rem; color: var(--navy); font-weight: 500; }
.social-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 8px; font-size: .82rem; font-weight: 600; transition: transform .2s, box-shadow .2s; text-decoration: none; }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.social-btn.fb  { background: #1877F2; color: #fff; }
.social-btn.ig  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
/* FB/IG 按鈕統一闊度 + 對齊 */
.footer-social { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.footer-social .social-btn { width: 100%; max-width: 190px; justify-content: center; padding: 10px 14px; }
/* 各欄內容貼住標題頂部對齊（唔再錨定欄底，避免標題同內容之間出現大空隙） */
.footer-col { display: flex; flex-direction: column; }
.map-wrap iframe { width: 100%; height: 360px; border: none; border-radius: 12px; border: 1px solid var(--border); }

/* ── Footer ── */
footer {
  background: var(--navy);
  padding: 64px 40px 32px;
  color: #fff;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 40px; margin-bottom: 48px; align-items: start; }
.footer-logo img { height: 44px; width: auto; object-fit: contain; margin-bottom: 14px; }
.footer-logo .company-zh { font-size: 1rem; font-weight: 500; color: #fff; }
.footer-logo .company-en { font-size: .75rem; color: rgba(255,255,255,.55); letter-spacing: .04em; margin-bottom: 4px; }
.footer-logo .est { font-size: .7rem; color: var(--gold); letter-spacing: .1em; margin-bottom: 18px; }
.footer-logo address { font-style: normal; font-size: .8rem; color: rgba(255,255,255,.62); line-height: 1.85; }
.footer-logo address a { color: rgba(255,255,255,.62); transition: color .2s; }
.footer-logo address a:hover { color: var(--gold); }
.footer-col h4 { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.62); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .75rem; color: rgba(255,255,255,.5); }

/* ── Carousel ── */
.carousel-section { padding: 52px 40px; background:#fff; border-bottom: 1px solid var(--border); }
.carousel-section:last-child { border-bottom: none; }
.carousel-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.carousel-header-left .carousel-title { font-size:1.55rem; color:var(--navy); font-weight:700; margin:0; font-family:'Noto Serif TC',Georgia,serif; }
.carousel-header-left .carousel-subtitle { color:var(--gold); font-size:.78rem; letter-spacing:.05em; margin-top:4px; }
.carousel-view-all { color:var(--gold); font-size:.83rem; font-weight:700; border:1px solid rgba(212,175,55,.4); padding:6px 16px; border-radius:20px; transition:background .2s, color .2s; white-space:nowrap; }
.carousel-view-all:hover { background:var(--gold); color:var(--navy); }
.carousel-wrap-outer { position:relative; display:flex; align-items:center; gap:0; }
.carousel-track-outer { overflow:hidden; flex:1; }
.carousel-track { display:flex; gap:18px; transition:transform .38s cubic-bezier(.4,0,.2,1); }
.carousel-card { flex:0 0 calc(20% - 15px); min-width:0; background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; cursor:pointer; transition:transform .22s, box-shadow .22s, border-color .22s; text-decoration:none; display:block; }
.carousel-card-img { aspect-ratio:1/1; overflow:hidden; background:#FFFFFF; display:flex; align-items:center; justify-content:center; font-size:2.4rem; padding:16px 16px 6px; box-sizing:border-box; }
.carousel-card-img img { width:100%; height:80%; max-height:80%; object-fit:contain; object-position:center; }
.carousel-card-body { padding:10px 12px 14px; }
.carousel-card-zh { font-size:.82rem; color:var(--navy); font-weight:600; line-height:1.35; height:2.7em; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.carousel-card-en { font-size:.75rem; color:#777; margin-top:3px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.carousel-card-spec { font-size:.72rem; color:#999; margin-top:4px; }
/* 空 carousel 嘅 placeholder（敬請期待） */
.carousel-empty {
  display: flex; align-items: center; gap: 16px;
  padding: 28px 28px;
  background: linear-gradient(135deg, #fafaf6 0%, #fff8e8 100%);
  border: 1px dashed rgba(212,175,55,.3);
  border-radius: 12px;
  margin: 0 auto;
  max-width: 1300px;
}
.carousel-empty .ce-icon {
  font-size: 2rem; line-height: 1;
  flex-shrink: 0;
  filter: grayscale(.3);
}
.carousel-empty .ce-text {
  flex: 1;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
}
.carousel-empty .ce-link {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 24px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.carousel-empty .ce-link:hover { background: var(--gold-dark); transform: translateY(-1px); }
@media (max-width: 760px) {
  .carousel-empty { padding: 20px 18px; gap: 12px; flex-wrap: wrap; }
  .carousel-empty .ce-icon { font-size: 1.6rem; }
  .carousel-empty .ce-text { font-size: .85rem; flex-basis: 60%; }
  .carousel-empty .ce-link { padding: 7px 16px; font-size: .78rem; }
}
.carousel-btn { flex-shrink:0; width:38px; height:38px; border-radius:50%; background:var(--navy); border:none; color:var(--gold); font-size:1.1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s, color .2s; z-index:2; }
.carousel-btn:hover { background:var(--gold); color:var(--navy); }
.carousel-btn.carousel-prev { margin-right:10px; }
.carousel-btn.carousel-next { margin-left:10px; }

/* ── Category Buttons ── */
.cat-btn-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.cat-btn { background:#1C1C1C; border:1px solid rgba(212,175,55,.2); border-radius:10px; padding:22px 20px 18px; cursor:pointer; transition:border-color .25s, box-shadow .25s; text-decoration:none; display:block; text-align:center; }
.cat-btn:hover { border-color:var(--gold); box-shadow:0 0 18px rgba(212,175,55,.18); }
.cat-btn-zh { color:var(--gold); font-size:1.1rem; font-weight:700; display:block; }
.cat-btn-en { color:rgba(255,255,255,.65); font-size:.78rem; margin-top:4px; display:block; font-weight:400; }
.cat-btn-count { color:rgba(255,255,255,.38); font-size:.75rem; margin-top:8px; display:block; letter-spacing:.02em; }

/* ── You May Also Like ── */
.you-may-like-section { background:var(--cream); padding:56px 40px; }
.ymal-title { font-size:1.45rem; color:var(--navy); font-weight:700; margin-bottom:28px; border-left:3px solid var(--gold); padding-left:14px; font-family:'Noto Serif TC',Georgia,serif; }

/* ── Brands ── */
.brands-hero { background:var(--navy); padding:72px 40px; text-align:center; }
.brands-hero h1 { color:var(--gold); font-size:2.4rem; font-weight:700; margin-bottom:8px; font-family:'Noto Serif TC',Georgia,serif; }
.brands-hero p { color:rgba(255,255,255,.55); font-size:.9rem; }
.brands-body { max-width:1200px; margin:0 auto; padding:64px 40px; }
.brands-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:24px; }
.brand-item { border:1px solid var(--border); border-radius:10px; overflow:hidden; display:flex; align-items:center; justify-content:center; padding:16px; aspect-ratio:5/3; background:#fff; transition:border-color .22s, box-shadow .22s; }
.brand-item:hover { border-color:var(--gold); box-shadow:0 4px 20px rgba(212,175,55,.15); }
.brand-item img { max-width:100%; max-height:100%; object-fit:contain; }

/* ── Stats ── */
.stats-section { background:var(--cream); padding:64px 40px; }
.stats-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:32px 24px; }
.stat-item { text-align:center; }
.stat-item .num { font-size:2.6rem; font-weight:800; color:var(--navy); line-height:1; }
.stat-item .num span { color:var(--gold); }
.stat-item .lbl { font-size:.78rem; color:#888; letter-spacing:.1em; text-transform:uppercase; margin-top:6px; }

/* ── 404 ── */
.page-404 { text-align:center; padding:120px 40px; }
.page-404 h1 { font-size:6rem; color:var(--gold); font-weight:800; line-height:1; }
.page-404 h2 { font-size:1.8rem; color:var(--navy); margin:16px 0 12px; }
.page-404 p { color:#888; margin-bottom:32px; }
.btn-gold { display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:var(--navy); padding:12px 28px; border-radius:40px; font-weight:700; font-size:.9rem; transition:transform .2s, box-shadow .2s; }
.btn-gold:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(212,175,55,.4); }

/* ── Search Results ── */
.search-results-header { background:var(--navy); padding:48px 40px; }
.search-results-header h1 { color:#fff; font-size:1.8rem; font-weight:700; font-family:'Noto Serif TC',Georgia,serif; }
.search-results-header h1 span { color:var(--gold); }
.search-results-header p { color:rgba(255,255,255,.55); font-size:.85rem; margin-top:6px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-img { position: static; aspect-ratio: auto; height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carousel-card { flex:0 0 calc(25% - 14px); }
  .cat-btn-grid { grid-template-columns:repeat(2,1fr); }
  .brands-grid { grid-template-columns:repeat(3,1fr); }
  .stats-inner { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 760px) {
  /* Body padding for bottom nav */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

  /* Navbar */
  .navbar { padding: 0 16px; height: 56px; }
  .navbar-logo img { height: 36px; }
  .navbar-logo .logo-sub { display: none; }
  .nav-menu { display: none; }
  .navbar-search { display: none; }
  .legal-bar { display: none; }
  .mobile-nav-controls { display: flex !important; }

  /* Hero — uses svh so it adapts to every screen size */
  .hero { height: min(56svh, 400px); min-height: 280px; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero-eyebrow { font-size: .7rem; letter-spacing: .2em; }
  .hero p { font-size: .92rem; margin-bottom: 24px; }
  .hero-dots { bottom: 14px; }
  .hero-cta { padding: 10px 22px; font-size: .85rem; }
  .hero-arrow { width: 38px; height: 38px; font-size: 22px; }
  .hero-arrow--prev { left: 10px; }
  .hero-arrow--next { right: 10px; }

  /* Sections */
  .section { padding: 40px 16px; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }

  /* Product grid */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prod-card-img { height: 140px; }
  .prod-card-body { padding: 10px 12px 14px; }
  .prod-card-body h4 { font-size: .85rem; }

  /* Carousel */
  .carousel-card { flex: 0 0 calc(50% - 9px) !important; }
  .carousel-section { padding: 32px 16px; }
  .carousel-btn { display: none; }
  /* 國旗：手機卡片細，縮細 + 內移避免貼住圓角邊框 */
  .prod-flag { top: 9px; right: 9px; font-size: 1.05rem; }
  /* 分類/搜尋頁產品卡：右上角有 👁 ＋ 兩個掣（手機長期顯示），國旗改放右下角避免被遮 */
  .prod-card-img .prod-flag { top: auto; bottom: 9px; right: 9px; }
  .carousel-header { margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
  .carousel-header-left .carousel-title { font-size: clamp(1.1rem, 4.5vw, 1.4rem); }

  /* Category buttons */
  .cat-btn-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-btn { padding: 18px 14px 14px; }
  .cat-btn-zh { font-size: 1rem; }

  /* Brands grid */
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Section dark/cream on mobile */
  .section-dark { padding: 40px 16px; }
  .section-cream { padding: 40px 16px; }
  .stats-section { padding: 40px 16px; }

  /* Footer */
  footer { padding: 40px 16px 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-inner { padding-bottom: 80px; }

  /* Contact / stats */
  .contact-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  /* Breadcrumb */
  .breadcrumb { padding: 10px 16px; font-size: .75rem; }

  /* Category page header */
  .cat-page-header { padding: 32px 16px; }
  .cat-page-header h1 { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* Search results */
  .search-results-header { padding: 32px 16px; }
  .search-results-header h1 { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  /* Product detail page */
  .product-detail { flex-direction: column !important; gap: 20px !important; padding: 20px 16px !important; }
  .zoom-wrapper { width: 100% !important; min-width: unset !important; height: min(75vw, 300px) !important; }
  .zoom-container { width: 100% !important; height: min(75vw, 300px) !important; cursor: default !important; }
  .health-warning-center { padding: 16px 20px; margin: 20px auto 0; }
  .you-may-like-section { padding: 32px 16px; }
  .ymal-title { font-size: clamp(1rem, 4.5vw, 1.2rem); }

  /* Mobile typography fine-tuning */
  .product-info h1 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .product-info .en-name { font-size: .9rem; }
  .about-hero h1 { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
  .brands-hero h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .contact-info h2 { font-size: 1.45rem; }
  .about-body p { font-size: .9rem; }
  .prod-card-body h4 { font-size: .88rem; }
  .prod-card-body .en-name { font-size: .77rem; }
  .carousel-card-zh { font-size: .8rem; }
  .carousel-card-en { font-size: .72rem; }
  .cat-btn-zh { font-size: 1rem; }
  .cat-btn-en { font-size: .75rem; }
  .footer-col ul li a { font-size: .85rem; }

}
/* ── 產品國旗 ── */
.prod-card-img,
.carousel-card-img { position: relative; }
.prod-flag {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 1.35rem;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.25));
}

/* 強制所有卡片白色背景 */
.carousel-card { background: #FFFFFF !important; }
.carousel-card-img {
  background: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.carousel-card-img img {
  max-width: 85% !important;
  max-height: 85% !important;
  object-fit: contain !important;
  background: #FFFFFF !important;
}
.product-card { background: #FFFFFF !important; }
.prod-card { background: #FFFFFF !important; }
.prod-card-img { background: #FFFFFF !important; }
.zoom-container { background: #FFFFFF !important; }
.product-detail-img { background: #FFFFFF !important; }

/* ── Disable hover scale on touch devices ── */
@media (hover: none) {
  .prod-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--border) !important; }
  .carousel-card:hover { transform: none !important; box-shadow: none !important; border-color: var(--border) !important; }
  .prod-card-img img { transform: none !important; }
  .carousel-card-img img { transform: none !important; }
}

/* ── Mobile Nav Controls (hamburger + search icon in navbar) ── */
.mobile-nav-controls {
  display: none;
  align-items: center;
  gap: 2px;
}
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .28s ease, opacity .22s ease, background .2s;
  pointer-events: none;
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #D4AF37; }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #D4AF37; }
.mobile-search-btn-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-search-btn-nav svg { width: 20px; height: 20px; }

/* ── Mobile Nav Overlay (full-screen slide from left) ── */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #111;
  z-index: 99998;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav-overlay.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(212,175,55,.12);
  position: sticky;
  top: 0;
  background: #111;
  z-index: 1;
}
.mobile-nav-logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mobile-nav-logo-wrap img { height: 34px; width: auto; }
.mobile-nav-logo-name { color: #fff; font-size: .95rem; font-weight: 500; }
.mobile-nav-close {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s;
}
.mobile-nav-close:active { background: rgba(212,175,55,.15); color: #D4AF37; }
.mobile-nav-body { padding: 8px 20px 100px; }
.mobile-nav-main-links { margin-bottom: 8px; }
.mobile-nav-main-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .18s;
}
.mobile-nav-main-links a:active { color: #D4AF37; }
.mobile-nav-main-links a span { color: rgba(212,175,55,.4); font-size: .9rem; }
.mobile-nav-section-label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #D4AF37;
  margin: 22px 0 12px;
  font-weight: 600;
}
.mobile-nav-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-nav-cat {
  display: block;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.1);
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  text-decoration: none;
  transition: background .18s, color .18s;
  line-height: 1.35;
}
.mobile-nav-cat:active { background: rgba(212,175,55,.12); color: #D4AF37; border-color: rgba(212,175,55,.35); }
.mobile-nav-social {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.mobile-nav-social a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity .18s;
}
.mobile-nav-social a:active { opacity: .75; }
.mobile-nav-social .snav-fb { background: #1877F2; }
.mobile-nav-social .snav-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* ── Mobile Search Overlay ── */
.mobile-search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.92);
  z-index: 99997;
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top));
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, visibility .22s;
  pointer-events: none;
}
.mobile-search-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 10px;
}
.mobile-search-title { color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: .04em; }
.mobile-search-cancel-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  cursor: pointer;
  padding: 8px 4px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.mobile-search-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.mobile-search-input {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  color: #fff;
  padding: 15px 18px;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  transition: border-color .2s;
}
.mobile-search-input::placeholder { color: rgba(255,255,255,.35); }
.mobile-search-input:focus { border-color: rgba(212,175,55,.5); }
.mobile-search-submit {
  background: #D4AF37;
  border: none;
  border-radius: 10px;
  color: #1C1C1C;
  padding: 15px 20px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

/* ── Mobile Bottom Navigation Bar ── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  background: #111;
  border-top: 1px solid rgba(212,175,55,.15);
  z-index: 9998;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 760px) { .mobile-bottom-nav { display: flex; } }
.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0 8px;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s;
  min-width: 0;
  position: relative;
}
.mbn-item.active, .mbn-item:active { color: #D4AF37; }
.mbn-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.mbn-label { font-size: 10.5px; letter-spacing: .02em; white-space: nowrap; margin-top: 1px; }
/* Active dot indicator */
.mbn-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  background: #D4AF37;
  border-radius: 0 0 2px 2px;
}

/* ── EN 語言模式：所有中英對照元素統一處理 ── */

/* 產品卡 */
body.lang-en .prod-card-body h4 { display: none !important; }
body.lang-en .prod-card-body .en-name {
  font-size: .93rem !important; color: var(--navy) !important;
  font-weight: 600 !important; margin-bottom: 4px !important; line-height: 1.35 !important;
}
/* 輪播產品卡 */
body.lang-en .carousel-card-zh { display: none !important; }
body.lang-en .carousel-card-en {
  font-size: .82rem !important; color: var(--navy) !important;
  font-weight: 600 !important; line-height: 1.35 !important;
  max-height: none !important; overflow: visible !important;
  white-space: normal !important; text-overflow: unset !important; display: block !important;
}
/* 產品詳情頁 */
body.lang-en .product-info h1 { display: none !important; }
body.lang-en .product-info .en-name {
  font-size: 2.1rem !important; color: var(--navy) !important;
  font-weight: 700 !important; line-height: 1.25 !important;
  margin-bottom: 6px !important; display: block !important; font-family: 'Noto Serif TC', Georgia, serif !important;
}
/* 分類按鈕 */
body.lang-en .cat-btn-zh { display: none !important; }
body.lang-en .cat-btn-en {
  font-size: 1.05rem !important; color: var(--gold) !important;
  font-weight: 700 !important; margin-top: 0 !important; display: block !important;
}
/* 輪播區塊標題 */
body.lang-en .carousel-header-left .carousel-title { display: none !important; }
body.lang-en .carousel-header-left .carousel-subtitle {
  font-size: 1.55rem !important; color: var(--navy) !important;
  font-weight: 700 !important; letter-spacing: normal !important;
  display: block !important; margin-top: 0 !important; font-family: 'Noto Serif TC', Georgia, serif !important;
}
/* 分類頁頭部 */
body.lang-en .cat-page-header h1 { display: none !important; }
body.lang-en .cat-page-header .eyebrow {
  font-size: 2rem !important; text-transform: none !important;
  letter-spacing: .02em !important; color: #fff !important;
  margin-bottom: 8px !important; display: block !important;
}
/* 關於/聯絡 頁頭部 */
body.lang-en .about-hero h1 { display: none !important; }
body.lang-en .about-hero .eyebrow {
  font-size: 2.2rem !important; text-transform: none !important;
  letter-spacing: .02em !important; color: #fff !important;
  margin-bottom: 8px !important; font-family: 'Noto Serif TC', Georgia, serif !important; font-weight: 700 !important;
}
/* YMAL 標題 */
body.lang-en .ymal-title .zh-text { display: none !important; }
body.lang-en .ymal-title small {
  font-size: 1.45rem !important; font-weight: 700 !important;
  color: var(--navy) !important; display: block !important; font-family: 'Noto Serif TC', Georgia, serif !important;
}

/* EN mode: hide Chinese logo, show English name */
body.lang-en .navbar-logo .logo-text { display: none !important; }
body.lang-en .navbar-logo .logo-sub { display: block !important; font-size: clamp(.74rem, 3vw, .88rem) !important; font-weight: 500 !important; color: #fff !important; letter-spacing: .02em !important; text-transform: none !important; line-height: 1.2; white-space: nowrap; }
/* 英文模式：英文字長，選單/logo 要 compact 先唔會同 logo 撞、唔會摺行。
   預設用短名「MENG TAK HONG」，夠闊(≥1400)先顯全名；選單縮 gap/padding/字級。 */
body.lang-en .navbar-logo .logo-sub .ls-full  { display: none; }
body.lang-en .navbar-logo .logo-sub .ls-short { display: inline; }
body.lang-en .nav-menu { gap: 2px; }
body.lang-en .nav-menu > li > a { padding: 8px 9px; font-size: .82rem; letter-spacing: .01em; }
body.lang-en .navbar-search input { width: 152px; }
body.lang-en .navbar-search input:focus { width: 190px; }
@media (min-width: 1400px) {
  body.lang-en .navbar-logo .logo-sub .ls-full  { display: inline; }
  body.lang-en .navbar-logo .logo-sub .ls-short { display: none; }
}
/* 英文選單比中文闊，喺 1200px 就收埋漢堡包（中文維持 1100px），避免 1100–1200 撞位 */
@media (max-width: 1200px) {
  body.lang-en .nav-menu { display: none; }
  body.lang-en .navbar-search { display: none; }
  body.lang-en .mobile-nav-controls { display: flex !important; }
}
body.lang-en .mobile-nav-logo-name { display: none !important; }

/* ── Card Hover Enhancement ── */
.prod-card {
  transition: box-shadow .28s ease, border-color .28s ease;
}
.prod-card-img img {
  transition: none;
}
.carousel-card {
  transition: box-shadow .28s ease, border-color .28s ease !important;
}
.carousel-card:hover {
  transform: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px var(--gold), 0 8px 28px rgba(0,0,0,.13) !important;
}

/* ── 搜尋自動完成下拉 ── */
.search-autocomplete .ac-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0ebe0;
  text-decoration: none;
  color: var(--navy);
  transition: background .15s;
}
.search-autocomplete .ac-item:last-child { border-bottom: none; }
.search-autocomplete .ac-item:hover { background: #fff8e8; }
.search-autocomplete .ac-img {
  width: 44px; height: 44px; flex-shrink: 0;
  background: #fafafa; border: 1px solid #f0ebe0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.search-autocomplete .ac-img img { width: 100%; height: 100%; object-fit: contain; }
.search-autocomplete .ac-noimg { font-size: 22px; color: #ccc; }
.search-autocomplete .ac-body { min-width: 0; flex: 1; }
.search-autocomplete .ac-zh {
  font-size: .9rem; font-weight: 500; color: var(--navy);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-autocomplete .ac-flag { margin-left: 6px; font-size: .95rem; }
.search-autocomplete .ac-en {
  font-size: .75rem; color: #888; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-autocomplete .ac-empty {
  padding: 18px; text-align: center; color: #999; font-size: .85rem;
}
/* 手機版自動完成 — 深色配色 */
.search-autocomplete-mobile .ac-item { border-bottom-color: rgba(255,255,255,.07); color: #fff; }
.search-autocomplete-mobile .ac-item:hover,
.search-autocomplete-mobile .ac-item:active { background: rgba(212,175,55,.1); }
.search-autocomplete-mobile .ac-zh { color: #fff; }
.search-autocomplete-mobile .ac-en { color: rgba(255,255,255,.55); }
.search-autocomplete-mobile .ac-img { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.search-autocomplete-mobile .ac-empty { color: rgba(255,255,255,.5); }

/* ============================================
   查詢清單系統（Inquiry Cart）
   ============================================ */

/* 浮動按鈕樣式都喺 footer.php 內聯 CSS 處理，呢度只放 quick-view / inquiry 相關 */

/* 產品快速預覽 Modal */
.quick-view-modal {
  position: fixed; inset: 0; z-index: 100002;
  visibility: hidden; opacity: 0;
  transition: visibility 0s linear .25s, opacity .25s;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.quick-view-modal.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.qv-box {
  position: relative; background: #fff;
  border-radius: 12px; max-width: 760px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: scale(.96); transition: transform .25s;
  z-index: 1; overflow: hidden;
}
.quick-view-modal.open .qv-box { transform: scale(1); }
.qv-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
}
.qv-body {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 28px; padding: 30px;
}
.qv-img-wrap {
  aspect-ratio: 1/1; background: #FFFFFF;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #eee; position: relative;
}
.qv-img { max-width: 88%; max-height: 88%; object-fit: contain; }
.qv-flag {
  position: absolute; top: 10px; right: 10px;
  font-size: 1.6rem; line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.2));
}
.qv-info { display: flex; flex-direction: column; min-width: 0; }
.qv-cat {
  font-size: .72rem; color: #888;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.qv-title {
  font-size: 1.5rem; color: #1C1C1C; font-weight: 700;
  line-height: 1.3; margin: 0 0 6px;
  font-family: 'Noto Serif TC', Georgia, serif;
}
.qv-en {
  font-size: .9rem; color: #777; margin-bottom: 16px;
}
.qv-spec { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.qv-spec td { padding: 8px 0; border-bottom: 1px solid #f0ebe0; font-size: .88rem; }
.qv-spec tr:last-child td { border-bottom: none; }
.qv-spec td:first-child { color: #999; width: 80px; font-size: .8rem; }
.qv-spec td:last-child { color: #1C1C1C; font-weight: 500; }
.qv-actions {
  margin-top: auto; display: flex; gap: 10px;
  flex-wrap: wrap; padding-top: 8px;
}
.qv-more {
  flex: 1; min-width: 140px;
  padding: 10px 20px; border-radius: 24px;
  background: #1C1C1C; color: #D4AF37; text-decoration: none;
  text-align: center; font-size: .85rem; font-weight: 500;
  transition: background .2s;
}
.qv-more:hover { background: #2a2a2a; }
.qv-add {
  flex: 1; min-width: 140px;
  padding: 10px 20px; border-radius: 24px;
  background: #D4AF37; color: #1C1C1C; border: none;
  font-family: inherit; font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.qv-add:hover { background: #B8960C; }

@media (max-width: 720px) {
  .qv-body { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .qv-img-wrap { aspect-ratio: 4/3; max-height: 260px; }
  .qv-title { font-size: 1.25rem; }
  .qv-en { font-size: .85rem; margin-bottom: 12px; }
}

/* 電郵訂閱表單 (footer) */
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-form input,
.newsletter-form select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 8px 12px; border-radius: 6px;
  font-size: .82rem; font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form select { color: rgba(255,255,255,.85); }
.newsletter-form select option { background: #1C1C1C; color: #fff; }
.newsletter-form input:focus,
.newsletter-form select:focus { border-color: rgba(212,175,55,.5); background: rgba(255,255,255,.1); }
.newsletter-form button {
  background: #D4AF37; color: #1C1C1C; border: none;
  padding: 9px 16px; border-radius: 6px;
  font-size: .82rem; font-weight: 700; font-family: inherit;
  cursor: pointer; margin-top: 4px;
  transition: background .2s;
}
.newsletter-form button:hover { background: #B8960C; }
.nl-msg { font-size: .75rem; margin-top: 4px; min-height: 14px; }
.nl-msg.ok  { color: #4CAF50; }
.nl-msg.err { color: #ff7a7a; }


/* 「加入查詢」按鈕 — 單品頁 */
.mth-add-inquiry {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #1C1C1C;
  border: 1px solid #D4AF37;
  padding: 7px 16px; border-radius: 20px;
  font-size: .82rem; font-family: inherit; font-weight: 500;
  cursor: pointer; margin-top: 16px;
  transition: background .2s, color .2s;
}
.mth-add-inquiry:hover { background: #D4AF37; color: #1C1C1C; }
.mth-add-inquiry .ai-icon { font-size: 1.1rem; line-height: 1; }

/* 「+」按鈕 + 「👁」快速預覽 — 產品卡 hover 出現 */
.prod-card-wrap { position: relative; display: flex; }
.prod-add-inquiry,
.prod-quick-view {
  position: absolute; top: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #1C1C1C;
  border: 1px solid #D4AF37;
  font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.85);
  transition: opacity .18s, transform .18s, background .18s, color .18s;
  z-index: 2; padding: 0;
}
.prod-add-inquiry { right: 6px; font-size: 16px; }
.prod-quick-view  { right: 40px; font-size: 13px; }
.prod-card-wrap:hover .prod-add-inquiry,
.prod-card-wrap:hover .prod-quick-view { opacity: 1; transform: scale(1); }
.prod-add-inquiry:hover,
.prod-quick-view:hover { background: #D4AF37; color: #1C1C1C; }
/* 2026-07-19：顯示條件由「闊度」改為「有冇 hover 能力」。
   舊寫法淨係 max-width:760px 兜底，iPad 直度 768px 落喺中間——冇 hover 又唔夠細，
   兩個掣永遠 opacity:0，平板客人撳唔到「加入查詢」同「快速預覽」。 */
@media (max-width: 760px), (hover: none) {
  .prod-add-inquiry,
  .prod-quick-view { opacity: 1; transform: scale(1); }
}
/* 尺寸縮細只喺真·手機闊度做（同上面條件分開，唔好合埋） */
@media (max-width: 760px) {
  .prod-add-inquiry,
  .prod-quick-view { width: 26px; height: 26px; }
  .prod-add-inquiry { font-size: 14px; }
  .prod-quick-view  { font-size: 12px; right: 38px; }
}

/* 查詢 Drawer */
.inquiry-overlay {
  position: fixed; inset: 0; z-index: 100000;
  visibility: hidden; opacity: 0;
  transition: visibility 0s linear .25s, opacity .25s;
}
.inquiry-overlay.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.inq-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.inq-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 90vw; background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,.2);
}
.inquiry-overlay.open .inq-panel { transform: translateX(0); }
.inq-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid #E5DDD0;
}
.inq-header h3 { font-size: 1rem; color: #1C1C1C; font-weight: 600; margin: 0; }
.inq-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #E5DDD0; background: transparent; color: #666;
  cursor: pointer; font-size: 14px;
}
.inq-close:hover { background: #f5f0e8; color: #1C1C1C; }
.inq-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.inq-empty {
  text-align: center; color: #999; padding: 60px 20px;
  font-size: .9rem; line-height: 1.8;
}
.inq-empty span { font-size: .8rem; color: #bbb; }
.inq-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 22px; border-bottom: 1px solid #f5f0e8;
}
.inq-item-body { flex: 1; min-width: 0; }
.inq-item-title { font-size: .9rem; color: #1C1C1C; font-weight: 500; margin-bottom: 3px; line-height: 1.4; }
.inq-item-meta { font-size: .75rem; color: #888; }
/* 查詢清單 數量 stepper */
.inq-qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.inq-qty-lbl { font-size: .72rem; color: #999; margin-right: 2px; }
.inq-qty-btn {
  width: 26px; height: 26px; border: 1px solid #e0d6bf; border-radius: 6px;
  background: #fbf7ee; color: #1C1C1C; font-size: 15px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: inherit; -webkit-tap-highlight-color: transparent; padding: 0;
}
.inq-qty-btn:hover { background: var(--gold); border-color: var(--gold); }
.inq-qty-input {
  width: 46px; height: 26px; text-align: center; border: 1px solid #e0d6bf;
  border-radius: 6px; font-size: .82rem; font-family: inherit; color: #1C1C1C;
  -moz-appearance: textfield;
}
.inq-qty-input::-webkit-outer-spin-button,
.inq-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* 規格表 品牌連結 */
.spec-brand-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.spec-brand-link:hover { color: var(--navy); text-decoration: underline; }
.inq-remove {
  width: 24px; height: 24px; border-radius: 50%;
  background: transparent; border: none; color: #bbb;
  cursor: pointer; font-size: 12px; flex-shrink: 0;
  transition: color .2s, background .2s;
}
.inq-remove:hover { background: #fcebeb; color: #c0392b; }
.inq-actions {
  display: flex; gap: 10px; padding: 16px 22px;
  border-top: 1px solid #E5DDD0; background: #fafaf6;
}
.inq-btn-clear {
  padding: 9px 16px; border-radius: 20px;
  background: transparent; border: 1px solid #ccc;
  color: #666; font-size: .82rem; font-family: inherit;
  cursor: pointer;
}
.inq-btn-clear:hover { background: #f5f5f5; }
.inq-btn-send {
  flex: 1; padding: 9px 20px; border-radius: 20px;
  background: #D4AF37; color: #1C1C1C; border: none;
  font-size: .85rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .2s;
}
.inq-btn-send:hover { background: #B8960C; }

/* 發送方式 Modal */
.inquiry-modal {
  position: fixed; inset: 0; z-index: 100001;
  visibility: hidden; opacity: 0;
  transition: visibility 0s linear .25s, opacity .25s;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.inquiry-modal.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.inq-modal-box {
  position: relative; background: #fff;
  border-radius: 12px; max-width: 440px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: scale(.95); transition: transform .25s;
  z-index: 1;
}
.inquiry-modal.open .inq-modal-box { transform: scale(1); }
.inq-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 10px;
}
.inq-modal-head h3 { font-size: 1.05rem; color: #1C1C1C; font-weight: 600; margin: 0; }
.inq-modal-sub { padding: 0 22px; font-size: .82rem; color: #888; margin-bottom: 14px; }
.inq-send-options { padding: 0 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.inq-send-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 8px;
  background: #fafaf6; border: 1px solid #f0ebe0;
  color: #1C1C1C; font-family: inherit; cursor: pointer;
  text-align: left;
  transition: background .18s, border-color .18s, transform .18s;
}
.inq-send-opt:hover { background: #fff8e8; border-color: #D4AF37; transform: translateX(2px); }
.inq-send-opt .opt-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.opt-email .opt-icon { background: #FFE9B8; color: #8a6d00; }
.opt-fb    .opt-icon { background: #1877F2; color: #fff; font-family: Georgia,serif; font-style: italic; }
.opt-ig    .opt-icon.ig-grad {
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: #fff; font-size: 11px;
}
.opt-copy  .opt-icon { background: #f0ebe0; color: #666; }
.inq-send-opt .opt-body { flex: 1; display: flex; flex-direction: column; }
.inq-send-opt strong { font-size: .92rem; font-weight: 500; line-height: 1.3; }
.inq-send-opt small { font-size: .72rem; color: #888; margin-top: 2px; }

/* ============================================
   分類頁：篩選 Sidebar + 排序
   ============================================ */
.cat-section-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px;
  max-width: 1300px; margin: 0 auto; padding: 40px 24px;
}
.cat-filter {
  background: #fff; border: 1px solid #E5DDD0;
  border-radius: 10px; padding: 18px 16px;
  position: sticky; top: 90px;
  font-size: .85rem;
  /* 防止 sidebar 過長：自動 scroll */
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #f5f0e8;
}
.cat-filter::-webkit-scrollbar { width: 6px; }
.cat-filter::-webkit-scrollbar-track { background: #f5f0e8; }
.cat-filter::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 3px; }
.cat-filter-header {
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; color: #1C1C1C;
  letter-spacing: .06em; padding-bottom: 12px;
  border-bottom: 1px solid #E5DDD0; margin-bottom: 14px;
}
.cat-filter-header > span:first-child { flex: 1; }
.cat-filter-clear {
  background: transparent; border: none; color: #D4AF37;
  font-size: .72rem; cursor: pointer; padding: 2px 4px; font-family: inherit;
}
.cat-filter-clear:hover { text-decoration: underline; }
/* 「全部」置頂重置掣（Edison 要求：特別細字體效果，一按睇返所有產品） */
.cat-filter-all {
  display: block; width: 100%; margin: 0 0 16px;
  padding: 7px 10px; border: 1px dashed #d9cfb8; border-radius: 8px;
  background: #fcfaf4; color: #9a8f76;
  font-family: inherit; font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; text-align: center; line-height: 1.3;
  transition: background .15s, color .15s, border-color .15s;
}
.cat-filter-all:hover { background: #f5f0e2; color: #1C1C1C; border-color: var(--gold); }
.cat-filter-all.active {
  background: #fbf6e8; color: #1C1C1C; border-style: solid; border-color: var(--gold);
}
/* 關閉 X 按鈕 — 預設隱藏，只喺手機版顯示 */
.cat-filter-close {
  display: none;
  background: transparent; border: 1px solid #ddd;
  width: 28px; height: 28px; border-radius: 50%;
  color: #666; font-size: 13px; cursor: pointer;
  align-items: center; justify-content: center;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.cat-filter-close:active { background: #f5f0e8; color: #1C1C1C; }
/* 背景遮罩 */
.cat-filter-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99995;
  opacity: 0;
  transition: opacity .25s;
}
.cat-filter-backdrop.open {
  display: block;
  opacity: 1;
}
.cat-filter-group {
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid #f0ebe0;
}
.cat-filter-group:last-child { border-bottom: none; }
.cat-filter-label {
  font-size: .75rem; color: var(--navy); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.cat-filter-label::before {
  content: ''; width: 3px; height: 12px;
  background: var(--gold); border-radius: 2px;
}
.cat-filter-group label {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; cursor: pointer; color: #444;
  font-size: .8rem; line-height: 1.4;
}
.cat-filter-group label:hover { color: #1C1C1C; }
.cat-filter-group input[type="radio"],
.cat-filter-group input[type="checkbox"] { margin: 0; accent-color: #D4AF37; flex-shrink: 0; }
.cat-filter-group label > span:first-of-type { flex: 1; min-width: 0; }
.cat-filter-group .cnt {
  margin-left: auto; font-size: .68rem; color: #bbb;
  flex-shrink: 0;
}
/* 品牌/國家組較長 → 內部限高可捲 */
.cat-filter-scroll { max-height: 230px; overflow-y: auto; }
.cat-filter-scroll::-webkit-scrollbar { width: 5px; }
.cat-filter-scroll::-webkit-scrollbar-thumb { background: #e0d6bf; border-radius: 3px; }
/* 品牌 chip：中文品牌名 + 英文品牌名（細字灰色，方便熟悉英文名嘅客人）*/
.f-brand-en { color: #a39a86; font-size: .8em; font-weight: 400; letter-spacing: .01em; }

/* 已選條件 chips */
.cat-active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cat-active-chips:empty { display: none; }
.fchip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border: 1px solid var(--gold); border-radius: 16px;
  background: #fbf7ee; color: #1C1C1C; font-size: .76rem; font-family: inherit;
  cursor: pointer; line-height: 1.2; transition: background .15s;
}
.fchip:hover { background: var(--gold); color: #fff; }

/* 手機 sticky「查看 N 件」掣（桌面唔顯示） */
.cat-filter-apply { display: none; }

@media (max-width: 900px) {
  .cat-filter { padding-bottom: 84px; } /* 留位俾固定喺底嘅「查看」掣，唔遮住最後選項 */
  /* 真正固定喺視窗最底（唔再隨捲動飄）。放喺面板 aside 外 → 唔受面板 transform 當作容器，
     以視窗為定位基準；只喺面板開啟（.show）時顯示，闊度對齊面板。 */
  .cat-filter-apply.show {
    display: block; position: fixed; bottom: 0; left: 0;
    width: 300px; max-width: 88vw;
    margin: 0; padding: 16px 15px; border: none;
    background: var(--gold); color: #1C1C1C; font-weight: 700; font-size: .95rem;
    font-family: inherit; cursor: pointer;
    box-shadow: 0 -4px 12px rgba(0,0,0,.12); z-index: 99997;
  }
}

.cat-toolbar {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 16px; flex-wrap: wrap;
}
.cat-toolbar .search-bar-wrap { flex: 1; min-width: 200px; margin: 0 !important; }
.cat-sort {
  padding: 8px 32px 8px 14px;
  border: 1px solid #E5DDD0; border-radius: 20px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L0 2h10z'/%3E%3C/svg%3E") right 12px center no-repeat;
  font-size: .82rem; font-family: inherit; color: #1C1C1C;
  cursor: pointer; height: 36px;
  appearance: none; -webkit-appearance: none;
  outline: none;
}
.cat-sort:focus { border-color: #D4AF37; }
.cat-filter-toggle {
  display: none;
  padding: 8px 16px; border: 1px solid #E5DDD0; border-radius: 20px;
  background: #fff; color: #1C1C1C; font-size: .82rem; font-family: inherit;
  cursor: pointer; height: 36px;
}

@media (max-width: 900px) {
  .cat-section-layout { grid-template-columns: 1fr; gap: 0; padding: 24px 16px; }
  .cat-filter {
    position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 88vw;
    max-height: 100vh; /* 覆蓋桌面版限制 */
    border-radius: 0; transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 99996; overflow-y: auto;
    box-shadow: 8px 0 24px rgba(0,0,0,.2);
  }
  .cat-filter.open { transform: translateX(0); }
  .cat-filter-toggle { display: inline-block; }
  .cat-toolbar { margin-bottom: 12px; }
  .cat-sort { font-size: .78rem; }
  /* 手機版顯示關閉 X 按鈕 */
  .cat-filter-close { display: inline-flex; }
}

/* ============================================
   最近瀏覽 Recently Viewed
   ============================================ */
.recently-viewed-section {
  background: #fafaf6; padding: 40px 0 50px;
  border-top: 1px solid #f0ebe0;
}
.rv-inner { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.rv-title {
  font-size: 1.25rem; color: var(--navy); font-weight: 700;
  margin-bottom: 20px; padding-left: 12px;
  border-left: 3px solid var(--gold);
  font-family: 'Noto Serif TC', Georgia, serif;
}
.rv-title small {
  font-size: .85rem; color: #888; font-weight: 400; margin-left: 8px;
  font-family: 'Noto Sans TC', sans-serif;
}
.rv-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.rv-card {
  background: #fff; border: 1px solid #f0ebe0; border-radius: 8px;
  overflow: hidden; text-decoration: none; color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
  display: block;
}
.rv-card:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.rv-img {
  aspect-ratio: 1/1; background: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.rv-img img { width: 80%; height: 80%; object-fit: contain; }
.rv-noimg { font-size: 1.6rem; color: #ccc; }
.rv-flag {
  position: absolute; top: 4px; right: 4px;
  font-size: .9rem; line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.rv-body { padding: 8px 10px 10px; }
.rv-name {
  font-size: .75rem; font-weight: 500; color: var(--navy);
  line-height: 1.3; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  max-height: 2.6em;
}
.rv-meta {
  font-size: .68rem; color: #999; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 1100px) {
  .rv-track { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .recently-viewed-section { padding: 28px 0 36px; }
  .rv-inner { padding: 0 16px; }
  .rv-title { font-size: 1.05rem; }
  .rv-title small { font-size: .75rem; }
  .rv-track { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rv-name { font-size: .7rem; }
  .rv-meta { font-size: .62rem; }
}


/* ────────────────────────────────────────────────
   2026-06-15 — UI/UX polish (A+B+C)
   A: prefers-reduced-motion / B: focus rings / C: hover timing
   參考：UI-UX-Pro-Max, Impeccable, animations.dev
   ──────────────────────────────────────────────── */

/* A — 用戶 OS 開咗「減少動畫」就停 transition/animation */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* B — Keyboard focus ring：B2B 客戶 tab 瀏覽時清楚見到 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
  border-radius: 3px;
}
/* 深色背景區嘅 focus ring（hero、section-dark、footer）— 加白色 inset 增強對比 */
.hero a:focus-visible,
.section-dark a:focus-visible,
.section-dark button:focus-visible,
footer a:focus-visible,
footer button:focus-visible,
footer input:focus-visible,
footer select:focus-visible {
  outline-color: #D4AF37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .25);
}

/* C — 統一 hover transition (200ms, material easing) */
:root {
  --mth-trans-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --mth-trans: 200ms cubic-bezier(.4, 0, .2, 1);
  --mth-trans-slow: 300ms cubic-bezier(.4, 0, .2, 1);
}
a, button, .prod-card, .carousel-card, .cat-btn, .social-btn,
.mth-pill, .footer-social a, .sf-btn, .stat-box {
  transition: background-color var(--mth-trans),
              color var(--mth-trans),
              border-color var(--mth-trans),
              box-shadow var(--mth-trans),
              transform var(--mth-trans);
}

/* ============================================================
   2026-07-04 Best-practice pack v2.9.0
   A: skip-link（無障礙，企業站標準）
   B: back-to-top（長清單頁）
   C: content-visibility（分類/搜尋 300+ 卡片渲染優化，Google 推薦）
   ============================================================ */

/* A. Skip link：平時收埋，鍵盤 focus 先現身（唔影響視覺設計） */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--gold, #D4AF37); color: #1C1C1C;
  padding: 10px 18px; border-radius: 0 0 8px 0;
  font-weight: 700; text-decoration: none; font-size: .9rem;
}
.skip-link:focus-visible { left: 0; }

/* B. Back to top：滾過 600px 先淡入；跟全站 gold 圓鈕語言 */
.back-to-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 9000;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(212,175,55,.55);
  background: rgba(28,28,28,.82); color: #D4AF37;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--mth-trans, .2s ease), transform var(--mth-trans, .2s ease), visibility .2s;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #D4AF37; color: #1C1C1C; }
@media (max-width: 760px) {
  .back-to-top { left: 12px; bottom: 14px; width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

/* C. 大清單渲染優化：只限 #product-grid（分類/搜尋/總覽），
      carousel / 最近瀏覽等橫向 JS 位刻意唔郁（JS 量度闊度會受影響）。
      contain-intrinsic-size 用 auto 記住實際高度，防捲動條跳格。 */
#product-grid .prod-card-wrap {
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}

/* D. 單品頁手機 sticky 詢價欄（Baymard 實證 pattern：主 CTA 捲走先出現） */
.pp-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8500;
  display: none; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(28,28,28,.96); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(212,175,55,.4);
  transform: translateY(110%); transition: transform var(--mth-trans, .25s ease);
}
.pp-sticky-cta.is-visible { transform: translateY(0); }
.ppsc-name {
  flex: 1; min-width: 0; color: #eee; font-size: .82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-sticky-cta .ppsc-btn {
  flex-shrink: 0; margin: 0; width: auto; padding: 10px 16px; font-size: .88rem;
}
@media (max-width: 760px) {
  .pp-sticky-cta { display: flex; }
  /* 預留底部空間，防 sticky 欄遮住 footer 內容/浮動按鈕唔受影響（佢哋喺右側偏上） */
  body.single-mth_product footer { padding-bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) { .pp-sticky-cta { transition: none; } }

/* E. 404 救援頁：搜尋 + 分類快捷（跟搜尋頁 empty state 同語言） */
.page-404 .nf-search {
  display: flex; gap: 10px; justify-content: center; margin: 26px auto 22px; max-width: 420px; padding: 0 16px;
}
.page-404 .nf-search input[type="text"] {
  flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid #ddd; border-radius: 24px;
  font-family: inherit; font-size: .95rem; outline: none;
}
.page-404 .nf-search input[type="text"]:focus-visible { border-color: var(--gold, #D4AF37); }
.page-404 .nf-search .btn-gold { margin: 0; }
.page-404 .nf-cats {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 560px; margin: 0 auto 30px; padding: 0 16px;
}
.page-404 .nf-cat-link {
  padding: 8px 16px; border: 1px solid rgba(212,175,55,.45); border-radius: 20px;
  color: #555; font-size: .85rem; text-decoration: none;
  transition: background var(--mth-trans, .2s), color var(--mth-trans, .2s), border-color var(--mth-trans, .2s);
}
.page-404 .nf-cat-link:hover { background: var(--gold, #D4AF37); color: #1C1C1C; border-color: var(--gold, #D4AF37); }
