.catalog-page .site-header {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.catalog-page .brand-logo { filter: none; }
.catalog-page .site-nav { color: var(--ink); }
.catalog-page .language-switcher button { color: var(--ink); }
.catalog-page .nav-toggle { color: var(--ink); }
.catalog-page .nav-toggle span { background: currentColor; }
.catalog-main { width: min(100% - 64px, 1300px); margin: 0 auto; padding: 110px 0 84px; }
.catalog-crumbs { display: flex; flex-wrap: wrap; gap: 5px 9px; font-size: 13px; color: var(--muted); margin-bottom: 29px; }
.catalog-crumbs > :not(:first-child)::before { content: "/"; margin-right: 9px; color: var(--muted); }
.catalog-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.catalog-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.catalog-heading { max-width: 780px; overflow-wrap: anywhere; }
.catalog-heading h1 { font-size: var(--title-lg); letter-spacing: 0; line-height: 1.15; margin: 0; }
.catalog-heading p { font-size: var(--text-md); letter-spacing: 0; color: var(--muted); max-width: 650px; margin: 16px 0 0; }
.catalog-heading .catalog-code { font-size: 13px; margin: 0 0 10px; font-weight: 600; }
.catalog-heading .button { margin-top: 24px; }
.catalog-heading .catalog-quote { background: var(--ink); color: var(--white); gap: 10px; }
.catalog-section { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 23px; }
.catalog-section h2 { font-size: 22px; letter-spacing: 0; margin: 0 0 16px; }
.catalog-prose { max-width: 820px; overflow-wrap: anywhere; }
.catalog-prose a { text-decoration: underline; }
.catalog-product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.catalog-product-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 32px; }
.catalog-product-content { min-width: 0; }
.catalog-directory { position: sticky; top: 94px; max-height: calc(100vh - 112px); overflow: auto; border-block: 1px solid var(--line); }
.catalog-directory summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 10px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.catalog-directory summary::-webkit-details-marker { display: none; }
.catalog-directory details[open] summary i { transform: rotate(180deg); }
.catalog-directory ol, .catalog-directory ul { list-style: none; margin: 0; padding: 0; overflow-wrap: anywhere; font-size: 13px; }
.catalog-directory-trail { border-block: 1px solid var(--line); }
.catalog-directory-trail li + li { padding-inline-start: 9px; }
.catalog-directory a, .catalog-directory [aria-current] { display: block; padding: 8px 10px; font-size: 13px; letter-spacing: 0; }
.catalog-directory-products { padding-block: 5px; }
.catalog-directory a:hover { color: var(--olive); text-decoration: underline; }
.catalog-directory [aria-current] { border-inline-start: 3px solid var(--olive); background: rgba(89, 99, 77, 0.09); color: var(--ink); font-weight: 600; }
.catalog-product { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.catalog-product--text { grid-template-columns: 1fr; }
.catalog-product .catalog-heading h1 { font-size: clamp(26px, 2.6vw, 32px); }
.catalog-heading .catalog-series { margin: 0 0 9px; font-size: 13px; font-weight: 600; color: var(--olive); }
.catalog-heading .catalog-alternate-name { font-size: 14px; margin-top: 8px; }
.catalog-product .catalog-code { margin: 8px 0 0; }
.catalog-quick-specs { margin: 18px 0 0; font-size: 13px; }
.catalog-quick-specs > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; border-top: 1px solid var(--line); padding: 7px 0; overflow-wrap: anywhere; }
.catalog-quick-specs > div:last-child { border-bottom: 1px solid var(--line); }
.catalog-quick-specs dt { font-weight: 600; }
.catalog-quick-specs dd { margin: 0; color: var(--muted); }
.catalog-product-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.catalog-product-actions .button, .catalog-enquiry .button { margin: 0; min-height: 44px; padding-inline: 14px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.catalog-product-actions .button.catalog-spec-link { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.catalog-product-actions .button.catalog-spec-link:hover { background: rgba(89, 99, 77, 0.09); border-color: var(--olive); }
.catalog-gallery { min-width: 0; margin: 0; }
.catalog-product-media { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px; aspect-ratio: 4 / 3; overflow: hidden; }
.catalog-gallery figcaption { color: var(--muted); font-size: 12px; margin-top: 6px; }
.catalog-gallery figcaption:empty { display: none; }
.catalog-gallery-options { display: flex; gap: 6px; margin-top: 9px; padding: 3px; overflow-x: auto; }
.catalog-gallery-options button { flex: 0 0 64px; width: 64px; height: 54px; padding: 2px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.catalog-gallery-options button[aria-pressed="true"] { border: 2px solid var(--olive); }
.catalog-gallery-options img { width: 100%; height: 100%; object-fit: contain; }
.catalog-image-button { display: block; width: 100%; padding: 0; position: relative; cursor: zoom-in; }
.catalog-image-button i { position: absolute; bottom: 8px; right: 8px; border-radius: 4px; padding: 8px; background: var(--paper); color: var(--ink); }
.catalog-section-nav { display: flex; flex-wrap: wrap; gap: 0 18px; border-block: 1px solid var(--line); margin-top: 27px; }
.catalog-section-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--olive); }
.catalog-section-nav a:hover { text-decoration: underline; }
.catalog-product-content [id] { scroll-margin-top: 95px; }
.catalog-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.catalog-detail { min-width: 0; overflow-wrap: anywhere; }
.catalog-detail-image { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.catalog-detail-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.catalog-detail h3 { margin: 10px 0 0; font-size: 16px; line-height: 1.35; letter-spacing: 0; }
.catalog-detail p, .catalog-detail small, .catalog-section-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.catalog-section-note { margin-top: 16px; }
.catalog-custom-grid .catalog-detail { border-top: 1px solid var(--line); }
.catalog-enquiry { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 32px; padding: 20px 0; border-block: 1px solid var(--line); }
.catalog-enquiry h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.catalog-enquiry p { margin: 6px 0 0; color: var(--muted); letter-spacing: 0; }
.catalog-enquiry > div { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.catalog-enquiry .catalog-quote { background: var(--ink); color: var(--white); gap: 10px; }
.catalog-image-viewer { width: min(940px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 14px; background: var(--paper); color: var(--ink); border: 0; border-radius: 8px; }
.catalog-image-viewer::backdrop { background: rgba(21, 22, 20, 0.72); }
.catalog-image-viewer form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.catalog-image-viewer button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; }
.catalog-image-viewer figure { margin: 0; }
.catalog-image-viewer img { display: block; width: 100%; max-height: calc(100dvh - 164px); object-fit: contain; background: #fff; }
.catalog-image-viewer figcaption { margin-top: 8px; font-size: 13px; overflow-wrap: anywhere; }
.catalog-image-viewer figcaption:empty { display: none; }
.catalog-specs { margin: 0; max-width: 820px; }
.catalog-specs > div { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 10px 0; overflow-wrap: anywhere; }
.catalog-specs dt { font-weight: 600; }
.catalog-specs dd { margin: 0; }
.catalog-finishes, .catalog-documents { display: flex; gap: 10px 24px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.catalog-finishes li, .catalog-documents a { display: flex; gap: 8px; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.catalog-finishes img, .catalog-finishes span { width: 32px; height: 32px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.catalog-documents a:hover { text-decoration: underline; }
.catalog-documents span { color: var(--muted); font-size: 11px; }
.catalog-empty { color: var(--muted); }

@media (max-width: 900px) {
  .catalog-product-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .catalog-directory { position: static; max-height: none; }
}

@media (max-width: 760px) {
  .catalog-main { width: calc(100% - 32px); padding: 92px 0 54px; }
  .catalog-page:has(.catalog-product-layout) .floating-actions { display: none; }
  .catalog-product { grid-template-columns: 1fr; gap: 17px; }
  .catalog-heading h1, .catalog-product .catalog-heading h1 { font-size: 28px; }
  .catalog-heading p { font-size: 15px; margin-top: 11px; }
  .catalog-crumbs { margin-bottom: 19px; }
  .catalog-section { margin-top: 25px; padding-top: 17px; }
  .catalog-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ===== Product finder & category browsing ===== */
.catalog-main .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.catalog-hero { display: grid; gap: 18px; padding-bottom: 8px; }
.catalog-hero .catalog-heading h1 { overflow-wrap: anywhere; }
.catalog-hero--compact { margin-top: 28px; max-width: 760px; }

.catalog-search { position: relative; display: flex; align-items: center; max-width: 820px; min-height: 60px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 22px rgba(35, 31, 24, 0.06); }
.catalog-search:focus-within { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(89, 99, 77, 0.16); }
.catalog-search > i { position: absolute; left: 20px; color: var(--muted); pointer-events: none; }
.catalog-search input { flex: 1; min-width: 0; height: 58px; padding: 0 12px 0 50px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.catalog-search input::-webkit-search-cancel-button { cursor: pointer; }
.catalog-search button { flex: 0 0 auto; height: 46px; margin-right: 7px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--ink); color: var(--white); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.catalog-search button:hover { background: var(--olive); }

.catalog-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 8; max-height: min(480px, 60vh); overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.catalog-suggest[hidden] { display: none; }
.catalog-suggest-title { margin: 8px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.catalog-suggest a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 10px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.catalog-suggest a i { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--paper); color: var(--olive); font-size: 12px; }
.catalog-suggest a span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.catalog-suggest a small { display: block; color: var(--muted); font-size: 12px; }
.catalog-suggest a b { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 600; }
.catalog-suggest a mark { background: rgba(217, 199, 173, 0.6); color: inherit; border-radius: 2px; }
.catalog-suggest a[aria-selected="true"], .catalog-suggest a:hover { background: rgba(89, 99, 77, 0.1); }
.catalog-suggest-all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px !important; color: var(--olive) !important; font-weight: 600; }
.catalog-suggest-empty { margin: 10px; color: var(--muted); font-size: 14px; }

.catalog-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.catalog-popular a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.catalog-popular a:hover { border-color: var(--olive); color: var(--olive); }

.catalog-section h2 small, .catalog-group h2 small { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.catalog-no-results { margin: 28px 0 0; padding: 18px 20px; border-radius: 8px; background: rgba(217, 199, 173, 0.28); }

/* Family directory (landing) */
.catalog-families { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.catalog-family { display: flex; flex-direction: column; min-width: 0; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.catalog-family-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.catalog-family-head strong { display: block; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.catalog-family-head small { color: var(--muted); font-size: 12px; }
.catalog-family-head:hover strong { color: var(--olive); }
.catalog-family-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--paper); color: var(--olive); font-size: 18px; }
.catalog-family ul { flex: 1; list-style: none; margin: 6px 0 0; padding: 0; }
.catalog-family li a, .catalog-tree li a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.catalog-family li a span, .catalog-tree li a span { min-width: 0; overflow-wrap: anywhere; }
.catalog-family li a small, .catalog-tree small { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.catalog-family li a:hover span { color: var(--olive); text-decoration: underline; }
.catalog-family-all { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-top: 6px; color: var(--olive); font-size: 13px; font-weight: 600; }
.catalog-family-all:hover { text-decoration: underline; }

/* Category page layout */
.catalog-browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.catalog-browse-main { min-width: 0; }
.catalog-sidebar { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; overscroll-behavior: contain; }
.catalog-tree > summary { display: none; }
.catalog-tree ul { list-style: none; margin: 0; padding: 0; }
.catalog-tree > nav > ul > li { border-bottom: 1px solid var(--line); }
.catalog-tree details summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 6px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.catalog-tree details summary::-webkit-details-marker { display: none; }
.catalog-tree details summary i { width: 18px; color: var(--olive); text-align: center; }
.catalog-tree details summary span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.catalog-tree details summary.is-active { color: var(--ink); }
.catalog-tree details summary:hover { color: var(--olive); }
.catalog-tree details ul { padding: 0 0 8px 34px; }
.catalog-tree li a { padding: 6px 8px; margin-left: -8px; border-radius: 4px; font-size: 13px; }
.catalog-tree li a:hover { background: rgba(89, 99, 77, 0.08); }
.catalog-tree li a[aria-current] { background: rgba(89, 99, 77, 0.12); font-weight: 600; box-shadow: inset 3px 0 0 var(--olive); }

.catalog-category-heading h1 { font-size: var(--title-lg); }
.catalog-meta { margin-top: 10px !important; font-size: 14px !important; font-weight: 600; color: var(--olive) !important; }
.catalog-category-prose { margin-top: 18px; color: var(--muted); }

.catalog-chips { display: flex; gap: 8px; margin: 22px 0 0; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.catalog-chips--wrap { flex-wrap: wrap; margin-top: 0; }
.catalog-chips a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.catalog-chips a small { color: var(--muted); font-weight: 500; }
.catalog-chips a b { color: var(--muted); font-size: 12px; font-weight: 600; }
.catalog-chips a:hover { border-color: var(--olive); }
.catalog-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.catalog-chips a[aria-current] b { color: var(--warm); }

.catalog-filter { position: relative; display: flex; align-items: center; gap: 10px; max-width: 420px; margin-top: 18px; }
.catalog-filter[hidden] { display: none; }
.catalog-filter i { position: absolute; left: 14px; color: var(--muted); font-size: 12px; }
.catalog-filter input { flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 36px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); }
.catalog-filter input:focus { outline: 2px solid var(--olive); outline-offset: -1px; }
.catalog-filter output { flex: 0 0 auto; color: var(--muted); font-size: 12px; }

.catalog-group { margin-top: 30px; scroll-margin-top: 96px; }
.catalog-group[hidden] { display: none; }
.catalog-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.catalog-group-head h2 { margin: 0; font-size: 20px; letter-spacing: 0; overflow-wrap: anywhere; }
.catalog-group-head a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--olive); font-size: 13px; font-weight: 600; }
.catalog-group-head a:hover { text-decoration: underline; }

/* Product card (compact, works with or without a photo) */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.catalog-card { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 40px 10px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.catalog-card[hidden] { display: none; }
.catalog-card:hover, .catalog-card:focus-visible { border-color: var(--olive); box-shadow: 0 8px 22px rgba(35, 31, 24, 0.08); transform: translateY(-1px); }
.catalog-card-media { position: relative; flex: 0 0 76px; height: 76px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.catalog-card-media img { width: 100%; height: 100%; object-fit: contain; }
.catalog-card-media.is-empty { border-color: transparent; background: linear-gradient(135deg, var(--paper), #ede6da); color: var(--olive); font-size: 22px; opacity: 0.9; }
.catalog-card-content { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.catalog-card-content small { color: var(--olive); font-size: 11px; font-weight: 600; }
.catalog-card-content strong { font-size: 15px; line-height: 1.3; }
.catalog-card-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.catalog-card-code { color: var(--muted); font-size: 11px; font-weight: 600; }
.catalog-card-arrow { position: absolute; right: 14px; top: 50%; color: var(--olive); font-size: 13px; transform: translateY(-50%); transition: transform 140ms ease; }
.catalog-card:hover .catalog-card-arrow { transform: translate(3px, -50%); }

.catalog-help { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 44px; padding: 22px 24px; border-radius: 8px; background: var(--ink); color: var(--white); }
.catalog-help > div { flex: 1 1 320px; min-width: 0; }
.catalog-help h2 { margin: 0; font-size: 19px; letter-spacing: 0; }
.catalog-help p { margin: 6px 0 0; color: rgba(255, 250, 242, 0.72); font-size: 14px; }
.catalog-help .catalog-quote { background: var(--white); color: var(--ink); gap: 10px; margin: 0; min-height: 44px; padding-inline: 16px; font-size: 13px; letter-spacing: 0; text-transform: none; }

@media (max-width: 1180px) {
  .catalog-families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .catalog-browse { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .catalog-sidebar { position: static; max-height: none; overflow: visible; order: 2; margin-top: 40px; }
  .catalog-tree > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
  .catalog-tree > summary::-webkit-details-marker { display: none; }
}
@media (max-width: 760px) {
  .catalog-families { grid-template-columns: minmax(0, 1fr); }
  .catalog-search { min-height: 52px; }
  .catalog-search input { height: 50px; padding-left: 42px; font-size: 16px; }
  .catalog-search > i { left: 16px; }
  .catalog-search button { height: 40px; padding: 0 14px; }
  .catalog-popular { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; }
  .catalog-popular a { flex: 0 0 auto; }
  .catalog-category-heading h1 { font-size: 28px; }
  .catalog-chips { margin-inline: -16px; padding-inline: 16px; }
  .catalog-filter { max-width: none; }
  .catalog-card-media { flex-basis: 60px; height: 60px; }
  .catalog-help { padding: 18px; }
}
.catalog-main :is(.catalog-family li, .catalog-tree li, .catalog-hero p, .catalog-help p, .catalog-popular, .catalog-meta, .catalog-suggest p, .catalog-no-results) { letter-spacing: 0; }
.catalog-main :is(.catalog-family li, .catalog-tree li) { font-size: inherit; }
/* Chinese: the site-wide wide tracking makes long product names hard to scan in lists, so keep catalog UI tight. */
html[lang^="zh"] body .catalog-main,
html[lang^="zh"] body .catalog-main :is(p, li, a, label, span, strong, small, b, h1, h2, h3, button, input, output) { letter-spacing: 0.02em; }
.catalog-group-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--olive); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.catalog-group-more:hover { border-color: var(--olive); background: rgba(89, 99, 77, 0.06); }
.catalog-group-more[hidden] { display: none; }
@media (max-width: 760px) {
  .catalog-card { gap: 12px; padding: 8px 36px 8px 8px; }
  .catalog-card-media { flex-basis: 52px; height: 52px; font-size: 18px; }
  .catalog-card-content strong { font-size: 14px; }
  .catalog-group-head h2 { font-size: 18px; }
}

/* ===== Product detail page ===== */
.pd.catalog-product-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
.pd-panel { margin-top: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; scroll-margin-top: 150px; }
.pd .catalog-product-content > .pd-panel:first-child { margin-top: 0; }

/* Sidebar */
.pd-aside { border: 0; overflow: visible; max-height: none; top: 96px; }
.pd-aside details { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pd-aside summary { min-height: 54px; padding: 12px 18px; background: var(--ink); color: var(--white); font-size: 15px; }
.pd-aside summary span { display: inline-flex; align-items: center; gap: 10px; }
.pd-aside nav { max-height: calc(100vh - 380px); min-height: 160px; overflow: auto; overscroll-behavior: contain; }
.pd-aside .catalog-directory-trail { padding: 12px 8px; background: var(--paper); border-block: 0; border-bottom: 1px solid var(--line); }
.pd-aside .catalog-directory-trail a { padding: 5px 10px; font-weight: 600; color: var(--ink); }
.pd-aside .catalog-directory-trail li + li a::before { content: "└ "; color: var(--muted); font-weight: 400; }
.pd-aside .catalog-directory-trail li + li { padding-inline-start: 12px; }
.pd-aside .catalog-directory-products { padding: 6px 0; }
.pd-aside .catalog-directory-products a, .pd-aside .catalog-directory-products [aria-current] { padding: 10px 18px 10px 20px; color: var(--muted); border-left: 3px solid transparent; }
.pd-aside .catalog-directory-products a:hover { color: var(--ink); background: rgba(89, 99, 77, 0.06); text-decoration: none; }
.pd-aside .catalog-directory-products [aria-current] { border-left-color: var(--olive); background: rgba(89, 99, 77, 0.1); color: var(--ink); }
.pd-aside-contact { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; }
.pd-aside-contact h3 { margin: 0; font-size: 15px; letter-spacing: 0; }
.pd-aside-contact p { margin: 6px 0 12px; color: var(--muted); font-size: 12.5px; letter-spacing: 0; line-height: 1.6; }
.pd-aside-contact a { display: flex; align-items: center; gap: 8px; min-height: 36px; color: var(--olive); font-weight: 600; overflow-wrap: anywhere; }
.pd-aside-contact a:hover { text-decoration: underline; }
.pd-aside-contact .pd-aside-quote { justify-content: center; min-height: 42px; margin-bottom: 6px; border-radius: 6px; background: var(--ink); color: var(--white); text-decoration: none !important; }
.pd-aside-contact .pd-aside-quote:hover { background: var(--olive); }

/* Hero */
.pd-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.pd-hero--text { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
.pd .catalog-product-media { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--paper); }
.pd .catalog-gallery-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 12px; padding: 0; overflow: visible; }
.pd .catalog-gallery-options button { width: auto; height: auto; aspect-ratio: 1.2; padding: 2px; border-radius: 6px; opacity: 0.72; transition: opacity 120ms ease; }
.pd .catalog-gallery-options button:hover, .pd .catalog-gallery-options button[aria-pressed="true"] { opacity: 1; }
.pd .catalog-gallery-options img { border-radius: 4px; object-fit: cover; }
.pd-hint { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; letter-spacing: 0; }
.pd-placeholder { display: grid; place-items: center; align-content: center; gap: 12px; aspect-ratio: 4 / 3; border-radius: 8px; background: linear-gradient(135deg, var(--paper), #ece4d6); color: var(--olive); }
.pd-placeholder i { font-size: 54px; opacity: 0.7; }
.pd-placeholder span { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pd-copy { max-width: none; }
.pd-copy .catalog-series { margin: 4px 0 10px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.pd-copy h1 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; }
.pd-copy .catalog-alternate-name { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.pd-copy .pd-intro { margin-top: 18px; color: #4b4e47; font-size: 15px; line-height: 1.8; }
.pd-copy .catalog-quick-specs { margin-top: 20px; font-size: 13px; }
.pd-copy .catalog-quick-specs > div { grid-template-columns: 120px minmax(0, 1fr); padding: 10px 0; border-top: 0; border-bottom: 1px solid var(--line); }
.pd-copy .catalog-quick-specs > div:first-child { border-top: 1px solid var(--line); }
.pd-copy .catalog-quick-specs dt { color: var(--muted); font-weight: 500; }
.pd-copy .catalog-quick-specs dd { color: var(--ink); }
.pd-copy .catalog-product-actions { margin-top: 24px; }

/* Sticky section tabs */
/* Section tabs: JS pins them under the header (sticky cannot work because body uses overflow-x: hidden). Edge shadows show when more tabs are off-screen. */
.pd-tabs-holder { margin-top: 20px; }
.pd-tabs { position: relative; z-index: 15; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; margin: 0; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; background:
    linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
    linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(21, 22, 20, 0.16), transparent) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(21, 22, 20, 0.16), transparent) right center / 14px 100% no-repeat scroll,
    #fff;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(21, 22, 20, 0.2) transparent; }
.pd-tabs::-webkit-scrollbar { height: 4px; }
.pd-tabs::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(21, 22, 20, 0.2); }
.pd-tabs.is-fixed { position: fixed; margin: 0; border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(35, 31, 24, 0.1); }
.pd-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.pd-tabs a:hover { color: var(--ink); text-decoration: none; }
.pd-tabs a.is-active { border-bottom-color: var(--olive); color: var(--ink); }

/* Section heads & grids */
.pd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pd-section-head h2 { margin: 0; font-size: 22px; letter-spacing: 0; line-height: 1.3; }
.pd-section-head span { color: var(--muted); font-size: 12px; letter-spacing: 0; text-align: right; }
.pd-section-head a { display: inline-flex; align-items: center; gap: 6px; color: var(--olive); font-size: 13px; font-weight: 600; }
.pd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pd-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pd-grid--applications .pd-card, .pd-grid--production .pd-card { border: 0; border-radius: 0; }
.pd-grid--applications .pd-card-body, .pd-grid--production .pd-card-body { padding: 14px 0 0; }
.pd-card-image { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; overflow: hidden; background: var(--paper); border-radius: 6px; }
.pd-card .pd-card-image { border-radius: 0; }
.pd-grid--applications .pd-card-image, .pd-grid--production .pd-card-image { border-radius: 8px; }
.pd-card-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.pd-card-image:hover img { transform: scale(1.03); }
.pd-card-body { padding: 18px; overflow-wrap: anywhere; }
.pd-card h3, .pd-steps h3, .pd-process h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: 0; line-height: 1.35; }
.pd-card p, .pd-steps p, .pd-process p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0; line-height: 1.8; }
.pd-card small { display: inline-block; margin-top: 8px; padding: 2px 6px; border-radius: 3px; background: var(--paper); color: var(--muted); font-size: 10.5px; }
.pd-card--text { padding-top: 4px; border-top: 3px solid var(--olive); }
.pd-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; letter-spacing: 0; line-height: 1.8; }

.pd-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.pd-steps article { padding: 24px; background: #fbf9f5; }
.pd-steps span, .pd-process span { display: block; margin-bottom: 12px; color: var(--clay); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }

.pd .pd-spec-table { max-width: none; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.pd .pd-spec-table > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 0; padding: 0; font-size: 13.5px; }
.pd .pd-spec-table > div:last-child { border-bottom: 0; }
.pd .pd-spec-table dt { padding: 14px 16px; background: var(--paper); color: #4e5249; font-weight: 600; }
.pd .pd-spec-table dd { padding: 14px 20px; }

.pd-documents { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pd-documents a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.pd-documents a:hover { border-color: var(--olive); }
.pd-documents i { color: var(--clay); font-size: 22px; }
.pd-documents span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pd-documents b { color: var(--muted); font-size: 11px; }

.pd-process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.pd-process li { position: relative; padding-top: 14px; border-top: 2px solid var(--line); }
.pd-process li:first-child { border-top-color: var(--olive); }

.pd-enquiry { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 20px; padding: 32px; border-radius: 10px; background: var(--ink); color: var(--white); }
.pd-enquiry > div:first-child { flex: 1 1 auto; min-width: 0; }
.pd-eyebrow { margin: 0 0 10px; color: var(--warm); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.pd-enquiry h2 { margin: 0; font-size: 26px; letter-spacing: 0; line-height: 1.3; }
.pd-enquiry p:not(.pd-eyebrow) { max-width: 560px; margin: 10px 0 0; color: rgba(255, 250, 242, 0.72); font-size: 14px; letter-spacing: 0; }
.pd-enquiry-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 8px; }
.pd-enquiry .catalog-quote { justify-content: center; gap: 10px; margin: 0; min-height: 46px; padding-inline: 20px; background: var(--white); color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; }
.pd-enquiry-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid rgba(255, 250, 242, 0.24); border-radius: 6px; color: var(--white); font-size: 13px; font-weight: 600; }
.pd-enquiry-link:hover { border-color: var(--warm); }
.pd-related { margin-top: 40px; }

@media (max-width: 1150px) {
  .pd.catalog-product-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .pd-hero, .pd-hero--text { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pd-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-enquiry { flex-direction: column; align-items: flex-start; }
  .pd-enquiry-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .pd.catalog-product-layout { grid-template-columns: minmax(0, 1fr); }
  .pd-aside { position: static; }
  .pd-aside nav { max-height: 260px; min-height: 0; }
  .pd-aside-contact { display: none; }
}
@media (max-width: 760px) {
  .pd-panel { padding: 18px; border-radius: 8px; }
  .pd-copy h1 { font-size: 27px; }
  .pd-tabs-holder { margin-inline: -16px; }
  .pd-tabs { padding: 0; border-inline: 0; border-radius: 0; scrollbar-width: none; }
  .pd-tabs::-webkit-scrollbar { display: none; }
  .pd-tabs.is-fixed { border-radius: 0; }
  .pd-tabs a { min-height: 46px; padding: 0 12px; font-size: 12.5px; }
  .pd-section-head { display: block; }
  .pd-section-head span { display: block; margin-top: 4px; text-align: left; }
  .pd-grid, .pd-steps, .pd-process { grid-template-columns: minmax(0, 1fr); }
  .pd .pd-spec-table > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); font-size: 12.5px; }
  .pd .pd-spec-table dt, .pd .pd-spec-table dd { padding: 12px; }
  .pd-enquiry { padding: 22px; }
  .pd-enquiry h2 { font-size: 21px; }
  .pd .catalog-gallery-options { gap: 6px; }
}
/* Main photo sizes itself to the image, so wide photos and square cut-outs both fill the frame without bands. */
.pd .catalog-gallery .catalog-product-media { display: flex; align-items: center; justify-content: center; aspect-ratio: auto; min-height: 0; background: #fff; }
.pd .catalog-gallery .catalog-product-media img { position: static; width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 8px; }
.pd .catalog-gallery-options { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 36px) / 5); overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.pd .pd-tabs { flex-wrap: nowrap; }
.pd-enquiry .button.catalog-quote { background: var(--white); color: var(--ink); border-color: var(--white); }
.pd-enquiry .button.catalog-quote:hover { background: var(--warm); border-color: var(--warm); }
@media (max-width: 760px) { .pd .catalog-gallery-options { grid-auto-columns: calc((100% - 24px) / 4.3); } }
