/* Product-family navigation. Shared by procurement and Tencent product pages. */
.has-product-family-nav,
.tx-page { --product-family-nav-h: 61px; }
.has-product-family-nav { --page-anchor-nav-h: 0px; }

.product-family-nav,
.tx-page .tx-product-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 80;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.product-family-nav-inner,
.tx-product-nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(1280px, calc(100% - 80px));
  min-height: 60px;
  margin-inline: auto;
}
.product-family-home,
.tx-nav-home {
  flex: 0 0 auto;
  padding-right: 28px;
  border-right: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}
.product-family-links,
.tx-products {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 28px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #c9d3ef transparent;
}
.product-family-links a,
.tx-products a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 59px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text);
}
.product-family-links a[aria-current="page"],
.tx-products a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}
.product-family-links a[aria-current="page"]::after,
.tx-products a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  content: '';
}
.product-family-links a:hover,
.product-family-home:hover,
.tx-products a:hover,
.tx-nav-home:hover { color: var(--primary); }
.product-family-links a:focus-visible,
.product-family-home:focus-visible,
.tx-products a:focus-visible,
.tx-nav-home:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* Keep the existing page-anchor row below the new product-family row. */
.has-product-family-nav .page-subnav {
  top: calc(var(--header-h) + var(--product-family-nav-h));
}
html:has(> body.has-product-family-nav) { scroll-padding-top: 0; }
.has-product-family-nav :is(section[id], main[id], .gv-banner, .gv-block) {
  scroll-margin-top: calc(var(--header-h) + var(--product-family-nav-h) + var(--page-anchor-nav-h) + 16px);
}

@media (min-width: 1500px) {
  .product-family-nav-inner,
  .tx-product-nav-inner { width: min(1360px, calc(100% - 120px)); }
}
@media (max-width: 1150px) {
  .product-family-nav-inner,
  .tx-product-nav-inner { gap: 22px; }
  .product-family-links,
  .tx-products { gap: 23px; }
  .product-family-home,
  .tx-nav-home { padding-right: 20px; }
}
@media (max-width: 900px) {
  .product-family-nav-inner,
  .tx-product-nav-inner { width: calc(100% - 48px); }
}
@media (max-width: 640px) {
  .has-product-family-nav,
  .tx-page { --product-family-nav-h: 54px; }
  .product-family-nav-inner,
  .tx-product-nav-inner {
    width: calc(100% - 40px);
    gap: 15px;
    min-height: 53px;
  }
  .product-family-home,
  .tx-nav-home { padding-right: 15px; font-size: 12px; }
  .product-family-links,
  .tx-products { gap: 23px; }
  .product-family-links a,
  .tx-products a { min-height: 52px; font-size: 12px; }
}
