/*
Theme Name: Haihuan Apparel Showcase
Theme URI: https://shop.sunwuitr.com/
Author: 海寰盛貿跨境有限公司
Description: Luxury apparel showcase theme for 海寰盛貿跨境有限公司.
Version: 1.0.0
Text Domain: haihuan-apparel
*/

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f3efe8;
  --ink: #171513;
  --ink-soft: #5f5850;
  --ink-muted: #8a8177;
  --gold: #a47e4f;
  --gold-dark: #866338;
  --gold-soft: #f4ece0;
  --line: #e7e0d6;
  --dark-bg: #141210;
  --dark-surface: #1e1b18;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(23, 21, 19, 0.05);
  --shadow-md: 0 12px 32px rgba(23, 21, 19, 0.09);
  --shadow-lg: 0 24px 60px rgba(23, 21, 19, 0.16);
  --font-serif: "Noto Serif TC", "Cormorant Garamond", "Songti TC", Georgia, serif;
  --font-display: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --font-sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", -apple-system, sans-serif;
  --max-w: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 600; line-height: 1.28; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; }

.shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* 頂部公告欄 */
.top-bar {
  background: var(--dark-bg);
  color: #e9e2d8;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-pill {
  background: rgba(164, 126, 79, 0.24);
  color: #e6cba5;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.top-note { color: #b9b0a5; }
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e9e2d8;
  transition: color 0.2s;
}
.top-link:hover { color: #e6cba5; }
.top-link svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8;
}

/* 主導覽列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-main {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  flex-shrink: 0;
}
.brand-en {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.brand-zh {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--gold-dark);
  margin-top: 3px;
}
.brand-light .brand-en { color: #fff; }
.brand-light .brand-zh { color: #d8bc93; }

.header-search {
  flex: 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(164, 126, 79, 0.14);
}
.header-search select {
  border: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 6px 8px 6px 0;
  outline: none;
  cursor: pointer;
}
.search-divider {
  width: 1px; height: 20px; background: var(--line); margin: 0 10px 0 4px;
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
  padding: 6px 8px;
}
.search-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.2s;
}
.search-submit:hover { background: var(--gold-dark); }
.search-submit svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-cta {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
}
.header-cta:hover { background: var(--ink); color: #fff; }

.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-soft);
  border: 1px solid #e4d4be;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
}
.bag-btn:hover { background: #eadbc6; }
.bag-btn svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8;
}
.bag-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--surface-alt); }
.icon-btn svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.mobile-menu-btn { display: none; }

/* 次導覽列 */
.sub-nav {
  background: var(--surface);
  border-top: 1px solid #f0ebe3;
}
.sub-nav-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cat-trigger-wrap { position: relative; }
.cat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
}
.cat-trigger svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.cat-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 90;
}
.cat-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.15s;
}
.cat-dropdown a:hover { background: var(--surface-alt); color: var(--gold-dark); }
.cat-dropdown a span {
  font-size: 12px; color: var(--ink-muted);
}

.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 12px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
}
.season-tag {
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* 手機搜尋條 */
.mobile-search-bar {
  display: none;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.mobile-search-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
}
.mobile-search-form input {
  flex: 1; border: 0; background: transparent; outline: none; font-size: 14px;
}
.mobile-search-form button {
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.mobile-search-form svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2;
}

/* 按鈕系統 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  letter-spacing: 0.04em;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: #fff; backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* 區塊通用標題 */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.section-title { font-size: clamp(26px, 3vw, 36px); letter-spacing: 0.02em; }
.section-sub { color: var(--ink-soft); max-width: 600px; margin-top: 8px; font-size: 15px; }

/* 首頁 Hero */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.56;
  transform: scale(1.02);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(16, 14, 12, 0.88) 0%, rgba(16, 14, 12, 0.56) 52%, rgba(16, 14, 12, 0.22) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(164, 126, 79, 0.28);
  border: 1px solid rgba(230, 203, 165, 0.45);
  color: #f2dec0;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  color: #fff;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}
.hero p {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 信任服務條 */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 0;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.trust-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
}
.trust-item h3 { font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.trust-item p { font-size: 12.5px; color: var(--ink-soft); }

/* 精選分類四格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--dark-bg);
  display: block;
}
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.05) 35%, rgba(20,18,16,0.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
}
.cat-card-en {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e6cba5;
}
.cat-card h3 { font-size: 21px; color: #fff; margin: 4px 0 6px; }
.cat-card span { font-size: 13px; color: rgba(255,255,255,0.82); }

/* 分類篩選膠囊 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--gold); color: var(--ink); }
.filter-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 商品卡片網格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-alt);
  display: block;
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(20, 18, 16, 0.82);
  color: #f3e4cc;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 12px;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.product-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.35;
}
.product-meta {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  flex: 1;
}
.product-quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0ebe3;
}
.quote-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-dark);
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.card-actions .btn { flex: 1; padding: 9px 12px; font-size: 13px; }

/* 季度企劃橫幅 */
.campaign-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-bg);
  min-height: 360px;
  display: flex;
  align-items: center;
}
.campaign-banner img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.45;
}
.campaign-inner {
  position: relative;
  z-index: 2;
  padding: 52px 56px;
  max-width: 640px;
  color: #fff;
}
.campaign-inner h2 { font-size: clamp(26px, 3.2vw, 38px); color: #fff; margin: 10px 0 14px; }
.campaign-inner p { color: rgba(255,255,255,0.85); margin-bottom: 26px; font-size: 15.5px; }

/* 政策與說明四卡 */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.policy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.policy-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.policy-tag {
  font-size: 11.5px; color: var(--gold-dark); font-weight: 600; letter-spacing: 0.08em;
}
.policy-card h3 { font-size: 18px; }
.policy-card p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.policy-more {
  background: none; border: 0; padding: 6px 0 0; text-align: left;
  color: var(--ink); font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.policy-more:hover { color: var(--gold-dark); }

/* 型錄頁頂部 */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 32px;
}
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-muted); margin-bottom: 12px;
}
.breadcrumb a:hover { color: var(--ink); }
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.result-count { font-size: 14px; color: var(--ink-soft); }

/* 商品詳情頁 */
.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}
.detail-gallery {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: clamp(26px, 3vw, 34px); margin: 8px 0 12px; }
.detail-sku { font-size: 13px; color: var(--ink-muted); margin-bottom: 18px; }
.detail-notice {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 24px;
}
.spec-block { margin-bottom: 22px; }
.spec-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  transition: all 0.18s;
}
.chip.active, .chip:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.spec-table th, .spec-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.spec-table th { width: 110px; color: var(--ink-soft); font-weight: 500; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.detail-actions .btn { flex: 1; min-width: 180px; }

/* 關於我們與公司登記資質 */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-text p { color: var(--ink-soft); margin-top: 14px; font-size: 15.5px; }
.br-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.br-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin-top: 24px;
}
.br-item dt { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 4px; }
.br-item dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }

/* 聯絡頁 */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.contact-card, .form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0ebe3;
}
.contact-item:last-child { border-bottom: 0; }
.contact-item span { display: block; font-size: 12.5px; color: var(--ink-muted); margin-bottom: 4px; }
.contact-item strong, .contact-item a { font-size: 15.5px; color: var(--ink); }
.contact-item a:hover { color: var(--gold-dark); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  background: #fff;
}
.inquiry-preview-box {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

/* 頁尾（淺色 2×2 對標佈局） */
.site-footer {
  background: #f1efec;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 64px;
  padding-bottom: 44px;
}
.footer-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-tagline {
  margin: 14px 0 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 440px;
}
.footer-heading {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
  letter-spacing: 0.04em;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.footer-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
}
.footer-pill-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}
.footer-pill-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-pill-outline {
  margin-top: 18px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.footer-pill-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.footer-quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.footer-quick-links a,
.footer-quick-links .text-link {
  font-size: 14px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}
.footer-quick-links a:hover,
.footer-quick-links .text-link:hover {
  color: var(--gold-dark);
}
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.fc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: -2px;
}
.fc-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-contact-list a {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-contact-list a:hover { color: var(--gold-dark); }
.footer-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-service-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ded7cc;
  font-size: 13.5px;
}
.footer-service-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.footer-service-list span { color: var(--ink-muted); flex-shrink: 0; }
.footer-service-list strong { color: var(--ink); font-weight: 500; text-align: right; }
.footer-bottom {
  border-top: 1px solid #e2dbd1;
  background: #eae6e0;
  padding: 18px 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* 抽屜與彈窗 */
.drawer-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 11, 0.55);
  z-index: 120;
  backdrop-filter: blur(2px);
}
.nav-drawer, .bag-drawer {
  position: fixed;
  top: 0; bottom: 0;
  width: min(380px, 90vw);
  background: var(--surface);
  z-index: 130;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.nav-drawer { left: 0; }
.bag-drawer { right: 0; }
.drawer-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-title { font-size: 20px; }
.drawer-sub { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.drawer-links {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.drawer-links a {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}
.drawer-links a:hover { background: var(--surface-alt); color: var(--gold-dark); }
.drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bag-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bag-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-muted);
}
.bag-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0ebe3;
}
.bag-item img {
  width: 68px; height: 90px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.bag-item-info { flex: 1; min-width: 0; }
.bag-item-info h4 { font-family: var(--font-sans); font-size: 14px; margin-bottom: 4px; }
.bag-item-meta { font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty-ctrl {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
}
.qty-ctrl button {
  width: 28px; height: 28px; border: 0; background: transparent; font-weight: 600;
}
.qty-ctrl span { min-width: 26px; text-align: center; font-size: 13px; }
.remove-btn {
  border: 0; background: none; color: var(--ink-muted); font-size: 12px;
}
.remove-btn:hover { color: #b43b3b; }
.bag-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  width: min(680px, 100%);
  max-height: 84vh;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-body h3 { font-family: var(--font-sans); font-size: 15.5px; color: var(--ink); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  z-index: 160;
}

/* 手機底部導覽 */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  z-index: 95;
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav a, .mobile-bottom-nav button {
  flex: 1;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--ink-soft);
}
.mobile-bottom-nav a.active { color: var(--gold-dark); font-weight: 600; }
.mobile-bottom-nav svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
}
.bnav-icon-wrap { position: relative; display: inline-flex; }
.bnav-badge {
  position: absolute;
  top: -5px; right: -9px;
  font-style: normal;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--gold-dark);
  color: #fff;
  font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}

[hidden] { display: none !important; }

/* 響應式斷點 */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid, .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 36px 40px; }
  .hide-md { display: none; }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .shell { padding: 0 14px; }
  .top-bar, .top-note, .hide-sm { display: none; }
  .header-main { height: 54px; gap: 10px; }
  .header-search, .sub-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; width: 36px; height: 36px; }
  .mobile-menu-btn svg { width: 18px; height: 18px; }
  .bag-btn { padding: 6px 10px; gap: 6px; }
  .bag-btn svg { width: 16px; height: 16px; }
  .bag-count { min-width: 18px; height: 18px; font-size: 11px; }
  .mobile-search-bar { display: block; padding: 6px 14px 8px; }
  .mobile-search-form { padding: 3px 4px 3px 14px; }
  .mobile-search-form input { font-size: 13.5px; }
  .mobile-search-form button { width: 32px; height: 32px; }
  .mobile-bottom-nav {
    display: flex;
    height: calc(58px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(23, 21, 19, 0.06);
  }
  .brand-en { font-size: 20px; letter-spacing: 0.14em; }
  .brand-zh { font-size: 9.5px; letter-spacing: 0.24em; margin-top: 2px; }

  .section { padding: 36px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .eyebrow { font-size: 11.5px; margin-bottom: 4px; }
  .section-title { font-size: 23px; }
  .section-sub { font-size: 13.5px; margin-top: 4px; }

  /* 手機端緊湊首屏 */
  .hero { min-height: 360px; align-items: flex-end; }
  .hero-bg { opacity: 0.65; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(16, 14, 12, 0.25) 0%, rgba(16, 14, 12, 0.68) 52%, rgba(16, 14, 12, 0.92) 100%);
  }
  .hero-content { padding-top: 32px; padding-bottom: 28px; width: 100%; }
  .hero-badge { font-size: 11px; padding: 4px 11px; margin-bottom: 12px; }
  .hero h1 { font-size: 26px; line-height: 1.24; margin-bottom: 10px; }
  .hero p { font-size: 13.5px; line-height: 1.55; margin-bottom: 20px; }
  .hero-actions { gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1; padding: 10px 12px; font-size: 13.5px; white-space: nowrap; }

  /* 手機端緊湊 2×2 信任條 */
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; padding: 16px 0; }
  .trust-item { gap: 9px; align-items: flex-start; }
  .trust-icon { width: 32px; height: 32px; border-radius: 8px; }
  .trust-icon svg { width: 16px; height: 16px; }
  .trust-item h3 { font-size: 13px; margin-bottom: 2px; line-height: 1.25; }
  .trust-item p { font-size: 11.5px; line-height: 1.4; }

  /* 分類四格與篩選橫向滑動 */
  .category-grid { gap: 10px; }
  .cat-card { aspect-ratio: 3 / 4; border-radius: 8px; }
  .cat-card-overlay { padding: 12px; }
  .cat-card-en { font-size: 10px; letter-spacing: 0.14em; }
  .cat-card h3 { font-size: 16px; margin: 2px 0 3px; }
  .cat-card span {
    font-size: 11.5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .filter-tabs {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .filter-tab { flex-shrink: 0; padding: 6px 14px; font-size: 12.5px; }

  /* 手機端精緻雙列商品卡片 */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: 8px; }
  .product-badge { top: 8px; left: 8px; font-size: 10px; padding: 3px 8px; }
  .product-body { padding: 10px; }
  .product-cat { font-size: 10.5px; margin-bottom: 3px; }
  .product-title {
    font-size: 13.5px;
    line-height: 1.32;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-meta {
    font-size: 11.5px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-quote-row { padding-top: 8px; }
  .quote-label { font-size: 11px; }
  .card-actions { flex-direction: column; gap: 6px; margin-top: 8px; }
  .card-actions .btn { padding: 7px 8px; font-size: 12px; }

  .campaign-banner { min-height: 260px; border-radius: var(--radius-md); }
  .campaign-inner { padding: 28px 20px; }
  .campaign-inner h2 { font-size: 22px; }
  .campaign-inner p { font-size: 13.5px; margin-bottom: 18px; }

  .policy-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .policy-card { padding: 16px; gap: 6px; }
  .policy-card h3 { font-size: 15px; }
  .policy-card p { font-size: 12px; line-height: 1.5; }
  .policy-more { font-size: 12.5px; }

  .page-hero { padding: 24px 0 20px; }
  .detail-grid, .about-split, .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .detail-gallery { aspect-ratio: 4 / 5; max-height: 460px; }
  .detail-actions .btn { min-width: 0; padding: 11px 16px; font-size: 13.5px; }
  .br-card, .contact-card, .form-card { padding: 20px; }
  .br-grid, .form-grid { grid-template-columns: 1fr; gap: 14px; }

  .site-footer { padding-top: 38px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-tagline { margin: 10px 0 16px; font-size: 13.5px; }
  .footer-heading { font-size: 15px; margin-bottom: 14px; }
  .footer-quick-links { gap: 10px 16px; }
  .footer-quick-links a, .footer-quick-links .text-link { font-size: 13.5px; }
  .footer-service-list { max-width: 100%; }
  .footer-bottom { padding: 14px 0; font-size: 11.5px; }
}

@media (max-width: 360px) {
  .policy-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
