﻿/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans TC', 'Arial', sans-serif; color: #2d2d2d; background: #fff; line-height: 1.7; }
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: 1.15rem; font-weight: 700; letter-spacing: .05em; }
.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;
}
.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); }

/* ── 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; }
.hero h1 { color: #fff; font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 32px; }

/* ── 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 ── */
.product-grid { display: grid; grid-template-columns: repeat(4, 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: block;
}
.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); }
.prod-card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  position: relative;
  background: #FFFFFF;
}
.prod-card-img img { width: 100%; height: 100%; object-fit: contain; }
.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; 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;
  min-height: 2.5em; /* 確保 2 行高度，唔會跳行 */
}
.prod-card-body .en-name {
  font-size: .8rem; color: #777; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 1em;
}
.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; }

/* ── 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; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 14px 28px; border-radius: 40px;
  font-weight: 700; font-size: .92rem;
  transition: background .2s, transform .2s;
  margin-top: 28px;
  text-decoration: none;
}
.wa-btn:hover { background: #1ebe5d; transform: translateY(-2px); }

/* ── 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; }
.stat-box { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 28px 20px; text-align: 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.wa  { background: #25D366; color: #fff; }
.social-btn.fb  { background: #1877F2; color: #fff; }
.social-btn.ig  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.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; }
.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,.35); }

/* ── 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:hover { transform:translateY(-5px); box-shadow:0 12px 32px rgba(0,0,0,.1); border-color:var(--gold); }
.carousel-card-img { aspect-ratio:1/1; overflow:hidden; background:#FFFFFF; display:flex; align-items:center; justify-content:center; font-size:2.4rem; }
.carousel-card-img img { width:100%; height:100%; object-fit:contain; }
.carousel-card-body { padding:10px 12px 14px; }
.carousel-card-zh { font-size:.82rem; color:var(--navy); font-weight:600; line-height:1.35; max-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:1300px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap: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, 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(85svh, 560px); min-height: 340px; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero-eyebrow { font-size: .7rem; letter-spacing: .2em; }

  /* 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, 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; }
  .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); }
  .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,.38);
  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: 9px; 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: .88rem !important; font-weight: 500 !important; color: #fff !important; letter-spacing: .02em !important; text-transform: none !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: #fafaf6;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #f0ebe0; 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; }
.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; }
@media (max-width: 760px) {
  .prod-add-inquiry,
  .prod-quick-view { opacity: 1; transform: scale(1); 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; }
.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; }
/* 關閉 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"] { margin: 0; accent-color: #D4AF37; flex-shrink: 0; }
.cat-filter-group .cnt {
  margin-left: auto; font-size: .68rem; color: #bbb;
  flex-shrink: 0;
}

.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; }
}

