/* Catalogue and product detail presentation, following design.md.
 * Loaded after typography; product data and shopping behavior remain in catalog.php.
 */
.hered-catalog {
  --catalog-radius: 6px;
  --catalog-gap: 32px;
}
.hered-catalog .hered-catalog-hero {
  padding: 28px 0 64px;
  background: var(--hered-soft);
}
.hered-catalog .hered-catalog-hero h1 {
  max-width: 1000px;
  margin: 16px 0 24px;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.hered-catalog .hered-catalog-hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--hered-blue);
  margin-top: 24px;
}
.hered-catalog .hered-catalog-eyebrow { font-size: 12px; letter-spacing: .12em; }
.hered-catalog .hered-catalog-breadcrumbs { font-size: 12px; overflow-wrap: anywhere; }
.hered-catalog .hered-catalog-breadcrumbs li { min-width: 0; }
.hered-catalog .hered-catalog-layout {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  padding-block: 64px 80px;
}
.hered-catalog-navigation { border-radius: var(--catalog-radius); overflow: hidden; }
.hered-catalog-navigation > summary { min-height: 58px; align-items: center; }
.hered-catalog-navigation a, .hered-category-list details > summary { min-height: 44px; }
.hered-catalog-all[aria-current="page"] { background: #edf4ff; }
.hered-catalog .hered-catalog-help {
  border: 1px solid var(--hered-line);
  border-radius: var(--catalog-radius);
  padding: 24px 20px;
}
.hered-catalog-help a { display: inline-flex; align-items: center; min-height: 44px; gap: 16px; }
.hered-catalog .hered-category-overview-grid { gap: 12px; }
.hered-catalog .hered-category-overview-grid a {
  border-radius: var(--catalog-radius);
  align-items: center;
  padding: 20px 16px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 80px;
}
.hered-catalog .hered-catalog-category-overview { margin-bottom: 64px; }
.hered-catalog .hered-product-group { margin-bottom: 64px; }
.hered-catalog .hered-product-group:last-child { margin-bottom: 0; }
.hered-catalog .hered-product-group-heading { gap: 24px; margin-bottom: 24px; }
.hered-catalog .hered-product-group-heading h2,
.hered-catalog .hered-catalog-category-overview > h2 {
  font-size: clamp(26.4px, 2.8vw, 34px);
  line-height: 1.22;
  letter-spacing: -.02em;
}
.hered-catalog .hered-product-group-heading > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.hered-catalog .hered-product-grid { gap: 24px; }
.hered-catalog .hered-product-card { border-radius: var(--catalog-radius); }
.hered-catalog .hered-product-card-image {
  aspect-ratio: 4 / 3;
  padding: 16px;
  border-radius: 5px 5px 0 0;
}
.hered-catalog .hered-product-card-body { padding: 20px 18px 12px; background: #f9fbfc; border-radius: 0 0 5px 5px; }
.hered-catalog .hered-product-card h3 { margin-bottom: 16px; }
.hered-catalog .hered-product-card-more { min-height: 44px; align-items: center; font-size: 12px; }
.hered-catalog .hered-product-card:focus-within { border-color: var(--hered-blue); }
.hered-catalog .hered-catalog-toolbar { padding: 0 0 24px; margin-bottom: 28px; flex-wrap: wrap; }
.hered-catalog .hered-catalog-toolbar > p { color: var(--hered-ink); font-size: 15px; }
.hered-catalog .hered-catalog-order { gap: 12px; flex-wrap: wrap; }
.hered-catalog .hered-catalog-order select,
.hered-catalog .hered-catalog-order button { min-height: 46px; border-radius: 3px; }
.hered-catalog .hered-catalog-order select { font-size: 16px; }
.hered-catalog .hered-catalog-order button { padding-inline: 18px; }
.hered-catalog .hered-catalog-order button:hover { background: var(--hered-navy); }
.hered-catalog .hered-catalog-pagination { margin-top: 40px; }
.hered-catalog .hered-catalog-pagination :is(a, span) { min-width: 44px; min-height: 44px; border-radius: 3px; }
.hered-catalog-context { margin-top: 56px; padding: 32px; background: var(--hered-soft); border: 1px solid var(--hered-line); border-radius: var(--catalog-radius); }
.hered-catalog .hered-catalog-context > h2 { font-size: clamp(24px, 2.5vw, 30px); margin-bottom: 24px; }

/* A generous product stage above the technical catalogue. */
.hered-catalog .hered-product-breadcrumb-wrap { padding-top: 28px; }
.hered-catalog .hered-product-layout { padding-top: 32px; padding-bottom: 80px; }
.hered-catalog .hered-product-overview {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}
.hered-catalog .hered-product-gallery { padding: 24px; background: var(--hered-soft); border: 1px solid var(--hered-line); border-radius: var(--catalog-radius); }
.hered-catalog .hered-product-main-image { border: 0; border-radius: 4px; padding: 24px; }
.hered-catalog .hered-gallery-zoom-label { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; bottom: 10px; right: 10px; border-radius: 3px; }
.hered-catalog .hered-gallery-thumbnails { gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.hered-catalog .hered-gallery-thumbnails button { border-radius: 3px; min-width: 44px; min-height: 44px; max-width: 100px; }
.hered-catalog .hered-gallery-dialog { border-radius: 6px; padding-top: 52px; }
.hered-catalog .hered-gallery-dialog > button { min-width: 44px; min-height: 44px; }
.hered-catalog .hered-product-summary { padding: 24px 0 0; }
.hered-catalog .hered-product-summary h1 { margin: 16px 0 24px; }
.hered-catalog .hered-product-excerpt { font-size: 16px; line-height: 1.8; margin-bottom: 28px; }
.hered-catalog .hered-product-sku { font-size: 13px; padding: 12px 0; border-block: 1px solid var(--hered-line); }
.hered-catalog .hered-product-summary > .hered-button { min-height: 50px; font-size: 15px; padding: 12px 24px; }
.hered-catalog .hered-product-support { margin: 16px 0 28px; font-size: 12px; line-height: 1.8; }
.hered-catalog .hered-product-taxonomy { font-size: 13px; gap: 12px; line-height: 1.7; }
.hered-catalog .hered-product-taxonomy ul { gap: 8px 12px; }
.hered-product-section-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; border-block: 1px solid var(--hered-line); padding: 12px 0; margin-bottom: 40px; }
.hered-product-section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; text-decoration: none; color: var(--hered-ink); font-size: 14px; font-weight: 500; border-radius: 3px; }
.hered-product-section-nav a:hover { background: var(--hered-soft); color: var(--hered-blue); }
.hered-product-information { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; align-items: start; }
.hered-product-document { min-width: 0; }
.hered-product-document > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.hered-catalog :is(.hered-product-details, .hered-product-attributes, .hered-product-downloads, .hered-related-products) { margin-top: 48px; padding-top: 40px; }
.hered-catalog .hered-product-document > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.hered-catalog :is(.hered-product-details, .hered-product-attributes, .hered-product-downloads, .hered-related-products) > h2 { font-size: clamp(26.4px, 2.8vw, 38.4px); margin-bottom: 28px; }
.hered-catalog .hered-product-content :is(h2, h3, h4) { margin-top: 32px; }
.hered-catalog .hered-product-content h2 { font-size: clamp(23px, 2.2vw, 30px); }
.hered-catalog .hered-product-content h3 { font-size: 21px; }
.hered-catalog .hered-product-content > :first-child { margin-top: 0; }
.hered-catalog .hered-product-content p { margin-bottom: 24px; }
.hered-catalog .hered-table-scroll { margin-block: 24px; border: 1px solid var(--hered-line); border-radius: 4px; }
.hered-catalog .hered-table-scroll table { margin: 0; }
.hered-catalog .hered-table-scroll :is(th, td) { border-color: var(--hered-line); }
.hered-catalog .hered-table-scroll th { background: var(--hered-soft); }
.hered-catalog .hered-product-downloads a { border-radius: 4px; min-height: 48px; font-size: 14px; }
.hered-catalog .hered-related-products { margin-top: 64px; padding-top: 48px; }

/* The same blue closing band as the homepage, retaining both contact destinations. */
.hered-catalog > .hered-contact-cta {
  margin: 0;
  padding: 64px max(32px, calc((100% - 1200px) / 2));
  background: var(--hered-blue);
  border: 0;
  color: #fff;
}
.hered-catalog > .hered-contact-cta :is(h2, .hered-eyebrow) { color: #fff; }
.hered-catalog > .hered-contact-cta p:last-child { color: #e6efff; }
.hered-catalog > .hered-contact-cta .hered-button { background: #fff; border-color: #fff; color: var(--hered-blue); }
.hered-catalog > .hered-contact-cta .hered-button--outline { background: transparent; color: #fff; border-color: #ffffff80; }
.hered-catalog > .hered-contact-cta .hered-button:hover { background: var(--hered-navy); border-color: var(--hered-navy); color: #fff; }
.hered-catalog + .hered-footer { margin-top: 0; }
.hered-catalog :is(a, button, select, summary, [tabindex]):focus-visible { outline: 3px solid #f3b43e; outline-offset: 4px; }

@media (max-width: 1100px) {
  .hered-catalog .hered-catalog-layout, .hered-product-information { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
  .hered-catalog .hered-product-overview { gap: 32px; }
  .hered-catalog .hered-product-gallery { padding: 16px; }
  .hered-catalog .hered-product-summary { padding-top: 8px; }
  .hered-catalog .hered-product-grid { gap: 16px; }
}
@media (min-width: 901px) {
  .hered-catalog .hered-related-products .hered-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hered-catalog .hered-catalog-layout, .hered-product-information { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hered-catalog .hered-catalog-sidebar { position: static; max-height: none; }
  .hered-catalog .hered-catalog-navigation nav { max-height: 340px; overflow: auto; }
  .hered-catalog .hered-catalog-help { display: none; }
  .hered-catalog .hered-catalog-toolbar { flex-direction: row; align-items: center; }
  .hered-catalog .hered-product-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .hered-catalog .hered-product-main-image { max-height: none; padding: 16px; }
  .hered-catalog .hered-product-grid { gap: 20px; }
  .hered-catalog .hered-product-gallery { padding: 12px; }
  .hered-catalog > .hered-contact-cta { padding: 48px 20px; }
}
@media (max-width: 767px) {
  .hered-catalog .hered-catalog-hero { padding: 24px 0 44px; }
  .hered-catalog .hered-catalog-hero h1 { margin-top: 16px; }
  .hered-catalog .hered-catalog-layout { padding-block: 36px 48px; }
  .hered-catalog .hered-catalog-category-overview, .hered-catalog .hered-product-group { margin-bottom: 44px; }
  .hered-catalog .hered-product-group-heading { gap: 16px; align-items: flex-start; }
  .hered-catalog .hered-product-group-heading > a { padding: 0; }
  .hered-catalog .hered-product-overview { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 36px; }
  .hered-catalog .hered-product-layout { padding-top: 24px; padding-bottom: 48px; }
  .hered-catalog .hered-product-main-image { aspect-ratio: 4 / 3; }
  .hered-catalog .hered-product-summary { padding: 0; }
  .hered-product-section-nav { gap: 4px 8px; margin-bottom: 28px; }
  .hered-catalog .hered-product-document > :first-child { padding-top: 0; }
  .hered-catalog .hered-related-products { margin-top: 44px; padding-top: 36px; }
  .hered-catalog .hered-product-grid { gap: 14px; }
  .hered-catalog .hered-product-card-body { padding: 16px 12px 8px; }
  .hered-catalog .hered-product-card-image { padding: 10px; }
  .hered-catalog .hered-product-taxonomy { flex-wrap: wrap; gap: 4px 10px; }
}
@media (max-width: 600px) {
  .hered-catalog-context { margin-top: 40px; padding: 24px 20px; }
  .hered-catalog > .hered-contact-cta { padding: 44px 16px; }
  .hered-catalog .hered-product-group-heading h2 { font-size: 26.4px; }
  .hered-catalog .hered-catalog-order { gap: 8px; }
  .hered-catalog .hered-catalog-order label { flex-basis: 100%; }
  .hered-catalog .hered-catalog-order select { max-width: calc(100% - 86px); }
  .hered-catalog .hered-product-summary > .hered-button { width: 100%; }
  .hered-catalog .hered-gallery-thumbnails { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
