:root {
  --brand: #5d4037;
  --brand-dark: #4a3329;
  --brand-light: #7d5c4a;
  --accent: #8d6e63;
  --accent-soft: #ebe3d8;
  --bg: #f9f7f2;
  --surface: #ffffff;
  --ink: #5d4037;
  --muted: #7d6b5f;
  --line: #e8e0d6;
  --shadow: 0 10px 40px rgba(74, 51, 41, 0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-serif: "Noto Serif TC", "PingFang TC", "Songti TC", serif;
  --hero-h: clamp(280px, 42vw, 480px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.site-header-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.site-header {
  position: relative;
  z-index: 50;
}
.site-header-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before {
  top: -6px;
}
.nav-toggle-bars::after {
  top: 6px;
}
.site-header.site-nav-open .nav-toggle-bars {
  background: transparent;
}
.site-header.site-nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header.site-nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
body.site-nav-open {
  overflow: hidden;
}
body.inquiry-drawer-open {
  overflow: hidden;
}
body.product-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}
.lang-switch {
  font-size: 12px;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: var(--brand-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.lang-switch a:hover { color: var(--brand-dark); }
.lang-switch a.is-pending-nav {
  opacity: 0.55;
}
.lang-switch span { color: var(--line); margin: 0 6px; }
.logo {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}
.main-nav a,
.main-nav-link {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: none;
  transition: color 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.main-nav a::after,
.main-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center bottom;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.main-nav a:hover,
.main-nav-link:hover {
  color: var(--brand);
}
.main-nav a:hover::after,
.main-nav-link:hover::after,
.main-nav-link.is-active::after,
.main-nav-link.is-pending::after {
  transform: scaleX(1);
}
.main-nav-link.is-active {
  color: var(--brand-dark);
  font-weight: 600;
}
.main-nav-link.is-pending,
.main-nav-link.is-pending-nav {
  opacity: 0.72;
}
.site-main a:not(.btn) {
  transition: color 0.22s ease, opacity 0.22s ease;
}
.site-main a.is-pending-nav:not(.btn) {
  opacity: 0.65;
}

@media (prefers-reduced-motion: no-preference) {
  html.is-page-enter .site-main {
    animation: site-page-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  html.is-page-enter .site-footer {
    animation: site-page-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
  }
}
@keyframes site-page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (view-transition-name: none) {
  html.has-view-transition::view-transition-old(root) {
    animation: site-vt-fade-out 0.22s ease forwards;
  }
  html.has-view-transition::view-transition-new(root) {
    animation: site-vt-fade-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}
@keyframes site-vt-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes site-vt-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-page-enter .site-main,
  html.is-page-enter .site-footer {
    animation: none !important;
  }
}

/* 首頁：Hero 包住導覽（疊在圖上） */
.page-home .home-hero-stack {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  height: clamp(420px, min(72vh, 720px), 760px);
  min-height: 360px;
  overflow: hidden;
  background: var(--brand-dark);
}
.page-home .home-hero-stack .hero-carousel--home {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  max-width: none;
  --hero-h: 100%;
}
.page-home .site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 18px clamp(16px, 4vw, 48px) 20px;
  background: linear-gradient(
    180deg,
    rgba(12, 32, 24, 0.72) 0%,
    rgba(12, 32, 24, 0.35) 55%,
    rgba(12, 32, 24, 0) 100%
  );
  border: 0;
  box-shadow: none;
  pointer-events: none;
}
.page-home .site-header--overlay a,
.page-home .site-header--overlay button {
  pointer-events: auto;
}
.page-home .site-header--overlay .logo,
.page-home .site-header--overlay .main-nav a,
.page-home .site-header--overlay .main-nav-link,
.page-home .site-header--overlay .lang-switch a {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.page-home .site-header--overlay .lang-switch a:hover,
.page-home .site-header--overlay .main-nav a:hover,
.page-home .site-header--overlay .main-nav-link:hover {
  color: #e8f5ec;
}
.page-home .site-header--overlay .lang-switch a.is-pending-nav {
  opacity: 0.75;
}
.page-home .site-header--overlay .main-nav a::after,
.page-home .site-header--overlay .main-nav-link::after {
  background: rgba(255, 255, 255, 0.92);
}
.page-home .site-header--overlay .main-nav-link.is-active {
  color: #fff;
}
.page-home .site-header--overlay .lang-switch span {
  color: rgba(255, 255, 255, 0.55);
}
.page-home .site-main {
  max-width: none;
  width: 100%;
  padding: 0;
  overflow-x: clip;
}
.page-home .home-hero-stack {
  margin-top: 0;
  margin-bottom: 0;
}
.page-home .home-page-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) clamp(16px, 4vw, 28px) 48px;
  width: 100%;
}
.page-home .home-page-inner > .card-section:first-child {
  margin-top: 0;
}
.page-home .card-section--brand-intro {
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 32px);
  margin-bottom: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.page-home .card-section--brand-intro h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.45rem);
}
.page-home .card-section--brand-intro p {
  max-width: 52em;
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.8;
}
.page-home .highlights-section.card-section {
  margin-bottom: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px) clamp(16px, 3vw, 24px) clamp(36px, 5vw, 48px);
}
.page-home .discover-section.card-section {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3vw, 28px);
}
.page-home .hero-color-inner {
  padding-top: clamp(120px, 18vh, 200px);
  justify-content: flex-end;
}
.page-home .hero-dots {
  bottom: 28px;
}
@media (max-width: 719px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-header-brand-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }
  .main-nav.main-nav--panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 12px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(74, 51, 41, 0.12);
    max-height: min(70vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header.site-nav-open .main-nav--panel {
    display: flex;
  }
  .main-nav--panel .main-nav-link {
    display: block;
    padding: 12px 10px;
    font-size: 15px;
    border-radius: 8px;
  }
  .main-nav--panel .main-nav-link:hover,
  .main-nav--panel .main-nav-link:focus-visible {
    background: var(--accent-soft);
  }
  .page-home .site-header--overlay .nav-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(12, 32, 24, 0.45);
    color: #fff;
  }
  .page-home .site-header--overlay.site-nav-open .main-nav--panel {
    background: rgba(12, 32, 24, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }
  .page-home .site-header--overlay.site-nav-open .main-nav--panel .main-nav-link {
    color: #fff;
  }
  .page-home .site-header--overlay.site-nav-open .main-nav--panel .main-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e8f5ec;
  }
  .page-home .home-hero-stack {
    height: clamp(360px, 68vh, 560px);
    min-height: 320px;
  }
  .page-home .home-page-inner {
    padding-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (min-width: 720px) {
  .main-nav.main-nav--panel {
    display: flex;
  }
}
.site-main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  width: 100%;
}
.site-main--catalog,
.page-catalog-layout .site-main {
  max-width: 1280px;
}
/* 橫向全幅（突破置中容器；須為 .site-main 直屬子元素，不可放在 grid 左欄內） */
.layout-full-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  z-index: 0;
  clear: both;
}
.layout-catalog-primary .layout-full-bleed {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.site-footer {
  background: var(--brand-dark);
  border-top: 0;
  padding: 28px 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}
.site-footer a { color: #d4e8dc; }

/* ── 首頁 Hero 輪播（全幅 + 疊層淡入） ── */
.hero-carousel {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: var(--brand-dark);
}
.layout-full-bleed.hero-carousel:not(.hero-carousel--home) {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
  --hero-h: clamp(320px, 52vh, 580px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.hero-carousel .slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide-color {
  background: var(--hero-bg, linear-gradient(145deg, #1f6044 0%, #2d6b4f 55%, #163828 100%));
  color: var(--hero-fg, #eef6f0);
}
.hero-slide-color::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 82%, rgba(0, 0, 0, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero-color-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
  padding: clamp(32px, 7vw, 64px) clamp(32px, 8vw, 80px);
  max-width: min(88%, 640px);
  box-sizing: border-box;
}
.hero-color-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.9;
}
.hero-color-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.2);
}
.hero-color-hint {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.85;
  max-width: 26em;
}
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hero-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}
/* ── 主題系列：全幅圖集輪播（內頁上方，同首頁 Hero 邏輯） ── */
.collection-gallery {
  position: relative;
  height: clamp(300px, 48vh, 560px);
  overflow: hidden;
  background: var(--brand-dark);
  margin-bottom: 28px;
}
.page-collection-detail .site-main--catalog {
  padding-top: 0;
}
.page-collection-detail .collection-products-wrap {
  margin-top: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 0;
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.carousel-slide--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-slide--color {
  background: var(--coll-bg, linear-gradient(145deg, #1a4d38, #2d6b4f, #163828));
}
.collection-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 61, 44, 0.82) 0%, rgba(26, 61, 44, 0.15) 45%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}
.collection-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 80px);
  color: #f5faf6;
  z-index: 3;
  pointer-events: none;
}
.collection-hero-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.collection-hero-caption h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.collection-hero-desc {
  margin: 0;
  max-width: 42em;
  line-height: 1.65;
  opacity: 0.92;
  font-size: clamp(14px, 2vw, 16px);
}
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 4;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.carousel-dot.is-active {
  background: #fff;
  border-color: #fff;
}

/* 系列內頁：圖下方商品區 */
.collection-products-wrap {
  margin-top: 28px;
}
.collection-products-head {
  margin-bottom: 12px;
}
.collection-products-note {
  margin: 0 0 16px;
  font-size: 14px;
}

/* 主題系列列表 */
.page-title-collections {
  font-family: var(--font-serif);
  color: var(--brand-dark);
  margin: 0 0 8px;
}
.collections-index-lead {
  margin: 0 0 24px;
  max-width: 36em;
}
.collections-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .collections-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .collections-index-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}
.collection-index-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(28, 46, 36, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.collection-index-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28, 46, 36, 0.12);
}
.collection-index-card-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--brand-dark);
}
.collection-index-card-visual--placeholder {
  background: var(--coll-bg, linear-gradient(145deg, #1a4d38, #2d6b4f));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.collection-index-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.collection-index-card-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5faf6;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.collection-index-card-body {
  padding: 18px 20px 20px;
}
.collection-index-card-body h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--brand-dark);
}
.collection-index-card-body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.collection-index-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--brand-dark);
  margin: 8px 0 12px;
}
.product-filter-panel input[type="search"] {
  width: 100%;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.card-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(28, 46, 36, 0.04);
}
.card-section h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.04em;
}
.card-section p {
  margin: 0;
  color: var(--ink);
  line-height: 1.75;
}
.card-section--brand-intro p {
  white-space: pre-line;
}

.discover-section h2 {
  text-align: center;
  letter-spacing: 0.06em;
}
.discover-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  counter-reset: discover;
}
.discover-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.discover-step:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.discover-step-no {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.discover-step-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.discover-step-pipe {
  margin-right: 2px;
  font-weight: 400;
  color: var(--brand-light);
}
.discover-step-body {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.discover-step-action {
  margin: 0;
  font-size: 14px;
}
.discover-step-action a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}
.discover-step-action a:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-light);
}
@media (min-width: 720px) {
  .discover-steps {
    gap: 32px;
  }
  .discover-step {
    gap: 20px 28px;
  }
}
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.product-badge-best {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px 6px 8px;
  border-radius: 0 0 10px 0;
  background: linear-gradient(135deg, #e85d2c 0%, #c41e12 55%, #9a1208 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow:
    0 3px 10px rgba(154, 18, 8, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 1px rgba(80, 0, 0, 0.35);
}
.product-badge-best-icon::before {
  content: "★";
  display: block;
  font-size: 11px;
  line-height: 1;
  color: #ffe566;
  text-shadow: 0 0 6px rgba(255, 220, 80, 0.9);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.muted { color: var(--muted); font-size: 12px; }

.highlights-section {
  position: relative;
  padding: 40px 28px 48px;
  background: var(--bg);
  border: none;
  box-shadow: none;
}
.highlights-section-head {
  text-align: center;
  margin-bottom: 28px;
}
.highlights-section-head h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
}
.highlights-section-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 280px;
  margin: 0 auto;
}
.highlights-section-rule::before,
.highlights-section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.highlights-section-rule span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--brand-light);
  background: var(--surface);
  margin: 0 10px;
  flex-shrink: 0;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .highlights-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 22px 18px;
  }
}
.highlight-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius-lg);
  padding: 18px 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(74, 51, 41, 0.05);
  min-height: 100%;
}
.highlight-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.highlight-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.highlight-icon-svg {
  width: 30px;
  height: 30px;
}
.highlight-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.highlight-card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--hl-bg, var(--accent-soft));
  color: var(--hl-fg, var(--ink));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.highlight-card-visual--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 51, 41, 0.12) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}
.highlight-card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.highlight-card-slot {
  position: relative;
  z-index: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.35;
}
.highlight-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.highlights-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  color: var(--line);
  pointer-events: none;
  z-index: 0;
}
.highlights-hills svg {
  width: 100%;
  height: 100%;
  display: block;
}

.collaborations-lead {
  margin: 0 0 20px;
  max-width: 42em;
  line-height: 1.7;
  color: var(--muted);
  font-size: 15px;
}

/* 合作夥伴：單一版面 + 標籤雲（避免七張分散小卡） */
.partners-board {
  padding: 24px 28px 28px;
}
.partners-board-summary {
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.partners-board-count {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-right: 6px;
  letter-spacing: 0.02em;
}
.partners-board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .partners-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
}
.partner-category-block {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
}
.partners-board-grid .partner-category-block:last-child {
  border-bottom: none;
}
@media (min-width: 768px) {
  .partners-board-grid .partner-category-block:nth-last-child(-n+2) {
    border-bottom: none;
  }
}
.partner-category-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.partner-category-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.partner-category-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.partner-cat-icon-svg {
  width: 20px;
  height: 20px;
}
.partner-category-name {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.3;
}
.partner-category-count {
  flex-shrink: 0;
  min-width: 1.6em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.partner-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.partner-chip-list > li {
  margin: 0;
  padding: 0;
}
.partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
a.partner-chip:hover {
  background: var(--accent-soft);
  border-color: var(--brand-light);
  color: var(--brand-dark);
}
.partner-chip--logo {
  padding-left: 8px;
}
.partner-chip-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}
.partner-chip span {
  min-width: 0;
}

/* —— 詢價側欄／系列與商品兩欄 —— */
.inquiry-global-flash {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--brand-dark);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.inquiry-success-modal-hidden {
  display: none !important;
}
.inquiry-success-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.inquiry-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.inquiry-success-dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.inquiry-success-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--brand);
}
.inquiry-success-body {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.inquiry-success-ok {
  max-width: 200px;
  margin: 0 auto;
}
body.inquiry-success-open {
  overflow: hidden;
}
.page-catalog-layout .site-main {
  max-width: 1280px;
}
@media (min-width: 960px) {
  .layout-catalog-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(340px, 32vw);
    gap: 20px;
    align-items: start;
    width: 100%;
  }
}
.layout-catalog-primary {
  min-width: 0;
  overflow: hidden;
}
.catalog-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.product-thumb-trigger {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}
.product-thumb-trigger:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.product-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: #e8f2ec;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 8px;
}
.product-card-title { font-weight: 600; margin-top: 2px; }
.product-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.product-add-row {
  display: flex;
  flex: 1 1 140px;
  gap: 6px;
  min-width: 0;
  align-items: stretch;
}
.product-add-row .btn-add-inquiry {
  flex: 1;
  min-width: 3.5em;
}
.product-qty-input,
.product-qty-select {
  margin: 0;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
}
.product-qty-input--desktop {
  width: 52px;
  flex-shrink: 0;
  text-align: center;
  -moz-appearance: textfield;
}
.product-qty-input--desktop::-webkit-outer-spin-button,
.product-qty-input--desktop::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-qty-select--mobile {
  display: none;
  flex: 0 0 auto;
  min-width: 56px;
  max-width: 88px;
  min-height: 44px;
  padding: 8px 28px 8px 10px;
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 959px) {
  .product-card-actions {
    flex-direction: column;
  }
  .product-add-row {
    flex: 1 1 auto;
    width: 100%;
  }
  .product-qty-input--desktop {
    display: none !important;
  }
  .product-qty-select--mobile {
    display: block;
  }
}
@media (min-width: 960px) {
  .product-qty-select--mobile {
    display: none !important;
  }
}
.product-filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0 18px;
  font-size: 13px;
}
.product-sort-bar,
.product-catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  flex-wrap: wrap;
}
.product-search-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex: 1 1 200px;
  min-width: min(100%, 240px);
}
.product-catalog-toolbar input[type="search"] {
  flex: 1 1 160px;
  min-width: 0;
}
.product-toolbar-submit {
  flex-shrink: 0;
}
.product-toolbar-reset {
  color: var(--brand);
  font-size: 14px;
  text-decoration: underline;
  align-self: center;
}
.catalog-result-meta {
  margin: 0 0 12px;
  font-size: 13px;
}
.catalog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 8px;
  flex-wrap: wrap;
}
.catalog-pager-info {
  font-size: 14px;
  color: var(--muted);
}
.catalog-pager .btn {
  min-width: 96px;
  text-decoration: none;
}
.product-sort-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
}
.product-sort-label-text {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.product-sort-select {
  min-height: 44px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.btn {
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
}
.btn:hover { filter: brightness(1.05); }

.inquiry-sidebar {
  position: relative;
}
.inquiry-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(74, 51, 41, 0.06);
}
.inquiry-card {
  background: #fff;
  padding: 14px;
  font-size: 13px;
}
.inquiry-card--scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.inquiry-submit-bar {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff 28%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(74, 51, 41, 0.1);
}
.inquiry-submit-bar .inquiry-submit-btn {
  margin-top: 0;
}
.inquiry-card-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--brand);
}
.inquiry-rules-disclosure {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f6;
}
.inquiry-rules-disclosure > summary {
  list-style: none;
}
.inquiry-rules-disclosure > summary::-webkit-details-marker {
  display: none;
}
.inquiry-rules-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.inquiry-rules-summary::before {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--brand);
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}
.inquiry-rules-disclosure[open] > .inquiry-rules-summary::before {
  transform: rotate(90deg);
}
.inquiry-rules-summary:hover {
  color: var(--brand-dark);
}
.inquiry-rules-body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}
.inquiry-rules-body .inquiry-sub:first-child {
  margin-top: 10px;
}
.inquiry-sub { font-size: 0.92rem; margin: 14px 0 6px; }
.inquiry-bullets { margin: 0 0 0 1rem; padding: 0; color: var(--muted); font-size: 12px; }
.inquiry-bullets li + li { margin-top: 4px; }
.tier-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.tier-table th, .tier-table td { border: 1px solid var(--line); padding: 6px; text-align: left; vertical-align: top; }
.tier-table th { background: #f4faf6; }
.tier-hint { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.inquiry-empty { margin: 0 0 8px; font-size: 13px; }
.inquiry-flash-msg {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #e8f5ec;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}
.inquiry-flash-msg--error {
  background: #fdecea;
  color: #8b2e24;
}
.inquiry-lines { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.inquiry-lines th, .inquiry-lines td { border: none; vertical-align: top; }
.inquiry-lines thead th {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
}
.inquiry-line-name { padding: 10px 0 2px !important; }
.inquiry-line-row { padding: 0 0 6px !important; border-bottom: 1px solid var(--line); }
.qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.qty-row button[data-act="minus"], .qty-row button[data-act="plus"] {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.inquiry-qty-input {
  width: 52px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
}
.line-srp { margin-left: auto; font-variant-numeric: tabular-nums; }
.link-remove {
  margin-left: 6px;
  background: none;
  border: 0;
  color: #a33;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
}
.inquiry-subtotal { margin-top: 8px; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 8px; }
.inquiry-calc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 8px;
}
.inquiry-calc-actions .btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 0;
}
.inquiry-calc-result {
  margin-bottom: 12px;
  font-size: 13px;
}
.inquiry-calc-result .calc-hint {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.inquiry-calc-result .calc-totals {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--bg);
}
.inquiry-calc-result .calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0;
}
.inquiry-calc-result .calc-row-grand {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-weight: 700;
  color: var(--ink);
}
.inquiry-calc-result .calc-row-muted {
  font-size: 12px;
  color: var(--muted);
}
.inquiry-calc-result .calc-error {
  margin: 0;
  color: #a33;
  font-size: 12px;
}
.product-card-price {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  margin: 4px 0 8px;
}
.qty-row .line-unit {
  font-size: 11px;
  align-self: center;
}

.inquiry-form label { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  width: 100%;
  margin-top: 2px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  box-sizing: border-box;
}
.inquiry-form textarea {
  resize: vertical;
  min-height: 72px;
}
.inquiry-submit-btn {
  margin-top: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(74, 51, 41, 0.22);
}
.inquiry-submit-btn:hover { filter: brightness(1.06); }

/* 手機 FAB 與抽屜側欄 */
.inquiry-fab {
  display: none;
}
@media (max-width: 959px) {
  .inquiry-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    min-width: 56px;
    min-height: 48px;
    height: auto;
    padding: 12px 16px;
    border-radius: 999px;
    border: 0;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(25,54,41,0.25);
    cursor: pointer;
  }
  .inquiry-sidebar {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    display: flex;
    flex-direction: column;
    max-height: min(82vh, calc(100dvh - 40px));
    overflow: hidden;
    transform: translateY(104%);
    transition: transform 0.25s ease;
    z-index: 90;
    padding: 0 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .inquiry-sidebar .inquiry-panel {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
  }
  .inquiry-sidebar .inquiry-card--scroll {
    -webkit-overflow-scrolling: touch;
  }
  .inquiry-drawer-visible.inquiry-sidebar {
    transform: translateY(0);
  }
  .inquiry-mobile-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 76;
    animation: fadeIn 0.2s ease;
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
@media (min-width: 960px) {
  .inquiry-sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
    padding-right: 4px;
  }
  .inquiry-sidebar .inquiry-panel {
    max-height: calc(100dvh - 32px);
  }
  .inquiry-sidebar .inquiry-card--scroll {
    scrollbar-gutter: stable;
  }
  .inquiry-sidebar .inquiry-card--scroll::-webkit-scrollbar {
    width: 8px;
  }
  .inquiry-sidebar .inquiry-card--scroll::-webkit-scrollbar-thumb {
    background: rgba(93, 64, 55, 0.28);
    border-radius: 8px;
  }
  .inquiry-sidebar .inquiry-card--scroll::-webkit-scrollbar-track {
    background: transparent;
  }
  .inquiry-mobile-backdrop {
    display: none !important;
    visibility: hidden;
  }
}

/* Modal */
.product-modal-hidden { display: none !important; }
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    max(14px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(14px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  overflow: hidden;
}
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}
.product-modal-dialog {
  position: relative;
  z-index: 1;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  width: min(520px, 100%);
  max-height: min(88dvh, 100%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}
.product-modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.product-modal-body { padding-top: 4px; }
.product-modal-loading { color: var(--muted); padding: 16px 0; }
.detail-dl {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: 13px;
}
.detail-dl dt { color: var(--muted); font-weight: 500; }
.detail-dl dd { margin: 0; line-height: 1.45; }
.detail-srp { font-size: 1.05rem; font-weight: 600; color: var(--brand); margin: 6px 0; }
.gallery-main img { width: 100%; max-height: 320px; object-fit: contain; background: #f6faf7; border-radius: 10px; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gallery-thumb-img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}
.gallery-thumb-img:hover { border-color: var(--brand); }
.modal-add-cart { width: 100%; margin-top: 12px !important; }
