.product-directory-page {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
}

.product-directory-hero {
  background:
    linear-gradient(132deg, rgba(4, 45, 88, .98), rgba(12, 84, 160, .95) 62%, rgba(54, 126, 190, .92)),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .08) 46px 47px);
  border-radius: calc(var(--brand-radius-card) * 2);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--brand-color-primary) 22%, transparent);
  color: #fff;
  overflow: hidden;
}

.product-directory-hero-copy {
  max-width: 920px;
  padding: clamp(18px, 2.2vw, 26px) clamp(22px, 3.2vw, 40px);
}

.product-directory-eyebrow {
  color: var(--brand-color-primary-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.product-directory-hero h1 {
  color: inherit;
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0 0 12px;
  text-wrap: balance;
}

.product-directory-lead {
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.58;
  margin: 0;
  max-width: 68ch;
}

.product-directory-summary {
  border-left: 4px solid var(--brand-color-primary);
  color: var(--brand-color-text-muted);
  font-size: 1.06rem;
  line-height: 1.5;
  max-width: 86ch;
  padding: 2px 0 2px 20px;
}

.product-directory-summary > :first-child { margin-top: 0; }
.product-directory-summary > :last-child { margin-bottom: 0; }

.product-directory-catalog {
  display: grid;
}

.product-directory-grid.product-related-pages {
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.product-directory-grid .product-card.section-card {
  background: var(--brand-color-surface);
  border: 1px solid color-mix(in srgb, var(--brand-color-primary) 14%, var(--brand-color-border));
  border-radius: calc(var(--brand-radius-card) * 1.35);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-color-primary) 6%, transparent);
  display: grid;
  gap: 12px;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 176px;
  padding: 19px 20px;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-directory-grid .product-card:hover,
.product-directory-grid .product-card:focus-within {
  border-color: var(--brand-color-primary-mid);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--brand-color-primary) 14%, transparent);
  transform: translateY(-4px);
}

.product-directory-grid .product-card-icon {
  grid-column: 1;
  grid-row: 1;
  height: 54px;
  width: 54px;
}

.product-card-copy {
  grid-column: 2;
  min-width: 0;
}

.product-directory-grid .product-card h2 {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.18rem;
  gap: 6px;
  justify-content: space-between;
  line-height: 1.18;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}

.product-directory-grid .product-card h2 a::after {
  content: "";
  inset: 0;
  position: absolute;
}

.product-directory-grid .product-card p {
  color: var(--brand-color-text-muted);
  font-size: .96rem;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.product-card-more {
  align-items: center;
  align-self: end;
  color: var(--brand-color-primary);
  display: flex;
  font-size: .86rem;
  font-weight: 700;
  gap: 6px;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.product-card-more span { font-size: 1.15rem; }

.product-directory-grid .product-mes-card.section-card {
  align-items: center;
  background: color-mix(in srgb, var(--brand-color-surface) 72%, var(--brand-color-primary-soft));
  border-color: var(--brand-color-primary-mid);
  grid-column: 1 / -1;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  min-height: 126px;
}

.product-directory-grid .product-mes-card .product-card-icon {
  height: 64px;
  width: 64px;
}

.product-directory-grid .product-mes-card .product-card-copy { grid-column: 2; }

.product-directory-grid .product-mes-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.product-directory-grid .product-mes-actions {
  grid-column: 3;
  grid-row: 1;
  min-width: 180px;
  position: relative;
  z-index: 2;
}

.product-directory-grid .product-mes-actions .button {
  box-sizing: border-box;
  justify-content: center;
  margin: 0;
  text-align: center;
  width: 100%;
}

.product-directory-grid .product-training-card.section-card {
  background: color-mix(in srgb, var(--brand-color-surface) 70%, var(--brand-color-primary-soft));
  grid-column: 1 / -1;
  min-height: 116px;
}

.product-directory-cta {
  align-items: center;
  background: color-mix(in srgb, var(--brand-color-surface) 76%, var(--brand-color-primary-soft));
  border: 1px solid color-mix(in srgb, var(--brand-color-primary) 18%, var(--brand-color-border));
  border-radius: calc(var(--brand-radius-card) * 1.5);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 30px);
}

.product-directory-cta h2 {
  color: var(--brand-color-ink);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  margin: 0;
  max-width: 32ch;
}

.product-directory-cta .button {
  flex: 0 0 auto;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .product-directory-grid .product-card { transition: none; }
  .product-directory-grid .product-card:hover,
  .product-directory-grid .product-card:focus-within { transform: none; }
}

@media (max-width: 900px) {
  .product-directory-grid.product-related-pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .product-directory-hero-copy { padding: 18px 20px; }

  .product-directory-grid.product-related-pages { grid-template-columns: minmax(0, 1fr); }

  .product-directory-grid .product-card.section-card {
    min-height: 0;
    padding: 18px;
  }

  .product-directory-grid .product-mes-card.section-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .product-directory-grid .product-mes-card .product-card-icon {
    height: 54px;
    width: 54px;
  }

  .product-directory-grid .product-mes-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
  }

  .product-directory-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .product-directory-cta .button { text-align: center; }
}
