/* Products hub — page-specific styles on top of v7.css. Cache-bust: 20261116b.
   Does not change the shared header layout or attempt an overflow fix. */

/* Current item in the v7 nav / footer */
.nav-links a[aria-current="page"],
.foot-col a[aria-current="page"] {
  color: var(--brand);
}

/* -------- Language switcher (baked into this page).
   products.html is not in dyj_i18n_pages(), so i18n.php will not inject
   the switcher or its CSS after go-live. Links point at each language
   home, not at missing /xx/products.html routes. -------- */
.dyj-lang {
  position: relative;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  margin-left: 14px;
  flex: 0 0 auto;
}
.dyj-lang details { position: relative; }
.dyj-lang summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid currentColor;
  border-color: rgba(127, 140, 150, .45);
  border-radius: 999px;
  font-weight: 700;
  opacity: .9;
}
.dyj-lang summary::-webkit-details-marker { display: none; }
.dyj-lang summary::after {
  content: "";
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 4px;
}
.dyj-lang summary:hover { opacity: 1; }
.dyj-lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 9999;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #d5e2e6;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 44, 59, .16);
  min-width: 170px;
}
.dyj-lang li { margin: 0; }
.dyj-lang ul a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: #102c3b;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}
.dyj-lang ul a:hover { background: #eef3f4; }
.dyj-lang ul a[aria-current] { font-weight: 700; color: #168ab2; }
@media (max-width: 900px) {
  .dyj-lang { margin-left: auto; margin-right: 10px; font-size: 12px; }
  .dyj-lang summary { padding: 6px 8px; }
}

/* -------- Hero additions -------- */
.hub-page .hero-copy { max-width: 680px; }
.hub-page .hero .lead { max-width: 52ch; }

.hub-note {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
  max-width: 52ch;
}

/* -------- Sticky line nav -------- */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.cat-nav-in {
  display: flex;
  gap: 6px 28px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 14px;
  padding-bottom: 14px;
}
.cat-nav-in::-webkit-scrollbar { display: none; }
.cat-nav a {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.cat-nav a span {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.cat-nav a:hover { color: var(--brand-bright); }

/* -------- Catalogue sections -------- */
.cat { padding: 76px 0 84px; scroll-margin-top: 56px; }
.cat--alt { background: var(--soft); }
.cat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 34px;
}
.cat-head h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; margin-top: 10px; }
.cat-side p { font-size: 15px; line-height: 1.7; color: var(--body); max-width: 52ch; }
.cat-all {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--brand-bright);
}
.cat-all svg, .pc-link svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.pc {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.pc:hover {
  border-color: var(--line-2);
  box-shadow: 0 22px 40px -28px rgba(10, 52, 80, .42);
  transform: translateY(-3px);
}
.pc-fig {
  display: block;
  aspect-ratio: 4 / 3;
  background: radial-gradient(120% 90% at 50% 40%, #fff 0%, var(--fig) 70%);
  border-bottom: 1px solid var(--line);
}
.pc-fig img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px 14px 6px;
  filter: drop-shadow(0 14px 14px rgba(10, 52, 80, .14));
  transition: transform .3s var(--ease);
}
.pc:hover .pc-fig img { transform: translateY(-4px); }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.pc-code {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-bright); margin-bottom: 6px;
}
.pc-body h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
.pc-intro { margin-top: 10px; font-size: 14px; line-height: 1.62; color: var(--body); }
.pc-key {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.pc-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 16px;
  font-size: 13.5px; font-weight: 600; color: var(--brand-bright);
}
.pc-link--rfq { color: var(--brand); }
.pc:hover .pc-link svg { transform: translateX(3px); }

.cat-subs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  margin-top: 24px;
}
.cat-subs p {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.cat-subs a {
  display: inline-flex; gap: 8px; align-items: baseline;
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; font-size: 13px; color: var(--ink);
}
.cat-subs a span { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.cat-subs a:hover { border-color: var(--brand-bright); color: var(--brand-bright); }

.pc-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-grid[data-count="4"] .pc-body h3 { font-size: 17px; }
.pc-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.pc-note {
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 36px; border: 1px dashed var(--line-2); border-radius: var(--r); background: #fff;
}
.pc-note h3 { font-size: 22px; }
.pc-note .pc-intro { font-size: 15px; max-width: 56ch; }
.pc-note-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn--ghost-dark { background: transparent; color: var(--brand); border: 1px solid var(--line-2); }
.btn--ghost-dark:hover { border-color: var(--brand); background: var(--soft); }

@media (max-width: 1180px) {
  .pc-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .pc-grid, .pc-grid[data-count="1"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cat { padding: 56px 0 60px; }
  .cat-head { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
  .pc-grid, .pc-grid[data-count="4"], .pc-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pc-note { padding: 24px 22px; }
}
@media (max-width: 620px) {
  .hub-note { margin-top: 16px; }
  .cat-nav-in { gap: 6px 20px; padding-left: 20px; padding-right: 20px; }
}
