/*
 * Product families overview (/products: views/products.php, root .ax-page-products). Loaded on that page only
 * (inc/assets.php kdtx_page_css_map(): area "products"). Components (hero, chips, navcard, grid, buttons, link-cta)
 * come from axis.css; only the page layout lives here.
 */

/* ------------------------------------------------------------------ hero */
.ax-page-products .axpr-crumbs { margin-bottom: 28px; }
.ax-page-products .axpr-hero .ax-hl { color: var(--ax-accent); }
.ax-page-products .axpr-hero .ax-hero__lead { margin-bottom: 28px; }
.ax-page-products .axpr-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.ax-page-products .axpr-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.ax-page-products .axpr-stats dt { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.ax-page-products .axpr-stats dd { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 600; color: #fff; }

/* ------------------------------------------------------------------ family chips (in-page links) */
.ax-page-products .axpr-jump { padding-block: 8px 32px; background: #fff; }
.ax-page-products .axpr-jump__list { justify-content: center; }

/* ------------------------------------------------------------------ one family */
.ax-page-products .axpr-fam { scroll-margin-top: 88px; }
.ax-page-products .axpr-fam__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: start; margin-bottom: 40px;
}
.ax-page-products .axpr-fam__head > :not(.axpr-fam__art) { grid-column: 1; }
.ax-page-products .axpr-fam__art { grid-column: 2; grid-row: 1 / span 6; display: flex; align-items: center; width: 160px; height: 110px; }
.ax-page-products .axpr-fam__art img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.ax-page-products .axpr-fam__meta { margin: 0 0 8px; font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--ax-accent-text); }
.ax-page-products .axpr-fam__title { margin: 0 0 12px; font-size: 34px; line-height: 1.25; font-weight: 600; color: var(--ax-ink); }
.ax-page-products .axpr-fam__title a { color: inherit; text-decoration: none; }
.ax-page-products .axpr-fam__title a:hover { color: var(--ax-accent-text); }
.ax-page-products .axpr-fam__desc { margin: 0 0 20px; max-width: 760px; font-size: 18px; line-height: 1.6; font-weight: 300; color: var(--ax-gray-700); }
.ax-page-products .axpr-fam__groups { margin-bottom: 20px; }
.ax-page-products .axpr-fam__all { justify-self: start; }

/* up to three collections: the heading beside the cards */
@media (min-width: 993px) {
  .ax-page-products .axpr-fam--few .axpr-fam__inner {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
  }
  .ax-page-products .axpr-fam--few .axpr-fam__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
  .ax-page-products .axpr-fam--few .axpr-fam__art { grid-column: 1; grid-row: auto; order: -1; margin-bottom: 16px; }
  .ax-page-products .axpr-fam--few .axpr-fam__title { font-size: 30px; }
}

/* collection cards */
.ax-page-products .axpr-grid { margin: 0; padding: 0; list-style: none; }
.ax-page-products .axpr-grid > li { min-width: 0; }
.ax-page-products .axpr-card { padding: 28px 20px 24px; }
.ax-page-products .axpr-card .ax-navcard__media img { width: 100%; object-fit: contain; }

/* ------------------------------------------------------------------ closing band */
.ax-page-products .axpr-help__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.ax-page-products .axpr-help__inner > div:first-child { flex: 1 1 420px; min-width: 0; }
.ax-page-products .axpr-help .ax-section__title { font-size: 34px; }
.ax-page-products .axpr-help__text { margin: 0; max-width: 680px; font-size: 18px; line-height: 1.6; font-weight: 300; color: rgba(255, 255, 255, .9); }

@media (max-width: 992px) {
  .ax-page-products .axpr-fam__art { width: 120px; height: 84px; }
}
/* phones (Axis mobile): one card per row, picture at the start, name + count beside it (like the category page) */
@media (max-width: 768px) {
  .ax-page-products .axpr-crumbs { margin-bottom: 18px; }
  .ax-page-products .axpr-stats { gap: 12px 28px; }
  .ax-page-products .axpr-stats dd { font-size: 26px; }
  .ax-page-products .axpr-jump { padding-block: 4px 24px; }
  .ax-page-products .axpr-jump__list { justify-content: flex-start; }
  .ax-page-products .axpr-fam__head { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
  .ax-page-products .axpr-fam__art { display: none; }
  .ax-page-products .axpr-fam__title { font-size: 26px; }
  .ax-page-products .axpr-fam__desc { font-size: 16px; }
  .ax-page-products .axpr-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ax-page-products .axpr-card {
    display: grid; grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px;
    min-height: 0; padding: 14px 16px; text-align: start;
  }
  .ax-page-products .axpr-card .ax-navcard__media { grid-row: 1 / span 2; width: 110px; height: 72px; margin: 0; }
  .ax-page-products .axpr-card .ax-navcard__media img { max-height: 72px; }
  .ax-page-products .axpr-card .ax-navcard__title { align-self: end; margin-bottom: 2px; font-size: 16px; }
  .ax-page-products .axpr-card .ax-navcard__text { align-self: start; }
  .ax-page-products .axpr-help .ax-section__title { font-size: 26px; }
  .ax-page-products .axpr-help__text { font-size: 16px; }
  .ax-page-products .axpr-help .ax-actions { width: 100%; }
  .ax-page-products .axpr-help .ax-btn { flex: 1 1 auto; white-space: normal; }
}
