/* Product Category Framework V1 page composition.
 * Public tokens, modules and the fixed-header safe area remain externally owned.
 */
body.product-category-v1-page {
  min-width: 0;
}

.product-category-v1 {
  --product-category-content-max: var(--ui-container-max, 1180px);
  min-width: 0;
  overflow: clip;
  background: var(--ui-color-surface, #fff);
  color: var(--ui-color-text, #334155);
}

/* Product-family section rhythm: the public Section Background remains the
 * final owner, while inherit receives the same ambient wash used by the
 * established Product Root and Brand Focus pages. Alternating the light spot
 * keeps consecutive content sections visually distinct without introducing a
 * second card or module surface owner.
 */
.product-category-v1 > .page-module:not(#product-category-cta) {
  --page-module-page-background: var(--ui-section-bg-ambient-wash);
  background: var(--page-module-section-background, var(--ui-section-bg-ambient-wash));
}

.product-category-v1 > .page-module:is(
  #product-category-directory,
  #product-category-scenarios
) {
  --ui-section-ambient-x: 88%;
  --ui-section-ambient-y: 10%;
}

.product-category-v1 > .page-module:is(
  #product-category-selection,
  #product-category-faq
) {
  --ui-section-ambient-x: 12%;
  --ui-section-ambient-y: 12%;
}

.product-category-v1 *,
.product-category-v1 *::before,
.product-category-v1 *::after {
  box-sizing: border-box;
}

.product-category-v1__breadcrumb-bar {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--ui-color-border-subtle, #e2e8f0);
  background: color-mix(in srgb, var(--ui-color-surface, #fff) 92%, transparent);
  backdrop-filter: blur(12px);
}

.product-category-v1__breadcrumb-bar .ui-breadcrumbs {
  margin: 0;
}

.product-category-v1__hero {
  --product-category-hero-title-inherit: var(--ui-color-text-strong, #0f172a);
  --product-category-hero-description-inherit: var(--ui-color-text-muted, #64748b);
  position: relative;
  isolation: isolate;
  min-width: 0;
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--product-category-hero-accent, #06b6d4) 12%, transparent), transparent 34%),
    var(--ui-color-surface-muted, #f8fafc);
  color: var(--ui-color-text, #334155);
}

.product-category-v1__hero[data-section-background="white"] {
  background: #fff;
}

.product-category-v1__hero[data-section-background="surface"] {
  background: var(--ui-color-surface-muted, #f8fafc);
}

.product-category-v1__hero[data-section-background="accent-soft"] {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--product-category-hero-accent, #06b6d4) 13%, #fff), #fff 72%);
}

.product-category-v1__hero[data-section-background="brand-gradient"],
.product-category-v1__hero[data-section-background="custom"][data-section-background-fill="gradient"] {
  background: linear-gradient(
    var(--product-category-hero-background-angle, 90deg),
    var(--product-category-hero-background-start, #0f172a),
    var(--product-category-hero-background-end, #164e63)
  );
}

.product-category-v1__hero[data-section-background="custom"][data-section-background-fill="solid"] {
  background: var(--product-category-hero-background-start, #fff);
}

.product-category-v1__hero[data-foreground="light"] {
  --product-category-hero-title-inherit: var(--ui-color-on-accent, #fff);
  --product-category-hero-description-inherit: rgba(255, 255, 255, .78);
  color: #e2e8f0;
}

.product-category-v1__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  min-height: clamp(520px, 50vw, 650px);
  padding-block: clamp(76px, 8vw, 112px);
}

.product-category-v1__hero-copy {
  min-width: 0;
  max-width: 720px;
  text-align: left;
}

.product-category-v1__hero[data-title-align="center"] .product-category-v1__hero-copy {
  margin-inline: auto;
  text-align: center;
}

.product-category-v1__hero[data-title-align="right"] .product-category-v1__hero-copy {
  margin-left: auto;
  text-align: right;
}

.product-category-v1__hero .ui-eyebrow {
  color: var(--product-category-hero-eyebrow-color, var(--ui-color-accent, #06b6d4));
  font-size: var(--product-category-hero-eyebrow-size, 12px);
}

.product-category-v1__hero h1 {
  max-width: 100%;
  margin: 14px 0 20px;
  color: var(--product-category-hero-title-color, var(--ui-color-text-strong, #0f172a));
  font-size: var(--product-category-hero-title-size, 50px);
  font-weight: var(--product-category-hero-title-weight, 700);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: wrap;
}

.product-category-v1__hero[data-title-align="center"] h1 {
  margin-inline: auto;
}

.product-category-v1__hero[data-title-align="right"] h1 {
  margin-left: auto;
}

.product-category-v1__hero-intro {
  max-width: 680px;
  margin: 0;
  color: var(--product-category-hero-description-color, var(--ui-color-text-muted, #64748b));
  font-size: var(--product-category-hero-description-size, 16px);
  line-height: 1.85;
}

.product-category-v1__hero[data-foreground="light"] h1 {
  color: var(--product-category-hero-title-color, #f8fafc);
}

.product-category-v1__hero[data-foreground="light"] .product-category-v1__hero-intro {
  color: var(--product-category-hero-description-color, #cbd5e1);
}

.product-category-v1__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 30px 0 0;
}

.product-category-v1__hero-meta > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 8px;
}

.product-category-v1__hero-meta dt {
  color: var(--ui-color-text-muted, #64748b);
  font-size: 12px;
  line-height: 1.4;
}

.product-category-v1__hero-meta dd {
  margin: 0;
  color: var(--product-category-hero-title-color, var(--ui-color-text-strong, #0f172a));
  font-size: 15px;
  font-weight: 700;
}

.product-category-v1__hero[data-foreground="light"] .product-category-v1__hero-meta dt {
  color: #cbd5e1;
}

.product-category-v1__hero[data-foreground="light"] .product-category-v1__hero-meta dd {
  color: #f8fafc;
}

.product-category-v1__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.product-category-v1 #product-category-directory .product-category-product-highlights {
  display: grid;
  margin: 16px 0 18px;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.product-category-v1 #product-category-directory .product-category-product-highlights li {
  position: relative;
  display: -webkit-box;
  margin: 0;
  padding-left: 16px;
  overflow: hidden;
  color: var(--page-module-card-description-color, var(--ui-color-text-muted, #64748b));
  font-size: var(--ui-type-note-size, 13px);
  line-height: 1.55;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.product-category-v1 #product-category-directory .product-category-product-highlights li::before {
  position: absolute;
  top: .62em;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--page-module-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-module-accent) 12%, transparent);
  content: "";
}

.product-category-sibling-navigation {
  display: flex;
  width: 100%;
  margin-top: 28px;
  padding: 11px 12px;
  align-items: center;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--page-module-accent) 15%, var(--ui-color-border, #e2e8f0));
  border-radius: var(--ui-radius-md, 12px);
  background: color-mix(in srgb, var(--page-module-accent) 4%, var(--ui-color-surface, #fff));
  text-align: left;
}

.product-category-sibling-navigation__label {
  padding-inline: 4px 2px;
  flex: 0 0 auto;
  color: var(--ui-color-text-strong, #0f172a);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.product-category-sibling-navigation__scroller {
  min-width: 0;
  flex: 1 1 auto;
}

.product-category-sibling-navigation__links {
  display: flex;
  min-width: max-content;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.product-category-sibling-navigation__link {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 13px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--ui-color-text, #334155);
  border: 1px solid var(--ui-color-border, #dbe3ec);
  border-radius: var(--ui-radius-pill, 999px);
  background: var(--ui-color-surface, #fff);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ui-duration-fast, 180ms) var(--ui-ease, ease),
    border-color var(--ui-duration-fast, 180ms) var(--ui-ease, ease),
    background-color var(--ui-duration-fast, 180ms) var(--ui-ease, ease);
}

.product-category-sibling-navigation__link:hover,
.product-category-sibling-navigation__link:focus-visible {
  color: var(--page-module-accent);
  border-color: color-mix(in srgb, var(--page-module-accent) 48%, var(--ui-color-border, #dbe3ec));
}

.product-category-sibling-navigation__link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--page-module-accent) 22%, transparent);
  outline-offset: 2px;
}

.product-category-sibling-navigation__link.is-current {
  color: color-mix(in srgb, var(--page-module-accent) 86%, var(--ui-color-text-strong, #0f172a));
  border-color: color-mix(in srgb, var(--page-module-accent) 42%, var(--ui-color-border, #dbe3ec));
  background: color-mix(in srgb, var(--page-module-accent) 11%, var(--ui-color-surface, #fff));
}

.product-category-v1__hero[data-foreground="light"] .ui-button--outline {
  color: var(--ui-color-on-accent, #fff);
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
}

.product-category-v1__hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid color-mix(in srgb, var(--product-category-hero-accent, #06b6d4) 18%, var(--ui-color-border, #dbe3ec));
  border-radius: var(--ui-radius-lg, 20px);
  background: var(--ui-color-surface, #fff);
  box-shadow: var(--ui-shadow-lg, 0 24px 60px rgba(15, 23, 42, .13));
}

.product-category-v1__hero-media[hidden] {
  display: none;
}

.product-category-v1__hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-category-v1__hero[data-hero-image-position="left"] .product-category-v1__hero-media img {
  object-position: left center;
}

.product-category-v1__hero[data-hero-image-position="right"] .product-category-v1__hero-media img {
  object-position: right center;
}

.product-category-selection__empty {
  margin: 0;
  color: var(--ui-color-text-muted, #64748b);
  text-align: center;
}

.product-category-selection__disclosure {
  display: none;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .product-category-v1__hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    gap: 40px;
    min-height: 520px;
  }

  .product-category-v1__hero h1 {
    font-size: min(var(--product-category-hero-title-size, 50px), 46px);
  }
}

@media (max-width: 768px) {
  /* This four-column comparison retains readable cells inside the public scroller. */
  .product-category-selection .ui-information-matrix__table {
    min-width: 760px;
    table-layout: fixed;
  }

  .product-category-selection .ui-information-matrix__head > :first-child {
    width: 28%;
  }

  .product-category-selection .ui-information-matrix__head > :nth-child(2) {
    width: 18%;
  }

  .product-category-v1__hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    min-height: 0;
    padding-block: 64px;
  }

  .product-category-v1__hero-copy {
    max-width: none;
  }

  .product-category-v1__hero[data-mobile-title-align="center"] .product-category-v1__hero-copy {
    text-align: center;
  }

  .product-category-v1__hero[data-mobile-title-align="left"] .product-category-v1__hero-copy {
    text-align: left;
  }

  .product-category-v1__hero h1 {
    font-size: min(var(--product-category-hero-title-size, 50px), 48px);
  }

  .product-category-v1__hero-media {
    width: min(100%, 620px);
  }

  .product-category-sibling-navigation {
    display: block;
    padding: 12px;
  }

  .product-category-sibling-navigation__label {
    display: block;
    margin: 0 0 10px;
  }

  .product-category-sibling-navigation__scroller {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .product-category-sibling-navigation__scroller::-webkit-scrollbar {
    display: none;
  }

  .product-category-sibling-navigation__links {
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
  }

  .product-category-sibling-navigation__link {
    scroll-snap-align: start;
  }

  .product-category-selection[data-selection-disclosure-ready]
    .product-category-selection__disclosure {
    display: flex;
  }

  .product-category-selection[data-selection-disclosure-ready]
    .product-category-selection__disclosure-button[hidden] {
    display: none;
  }

  .product-category-selection.is-selection-collapsed
    [data-product-category-selection-row]:nth-child(n + 5) {
    display: none;
  }
}

@media (max-width: 430px) {
  .product-category-v1__hero-grid {
    padding-block: 52px;
  }

  .product-category-v1__hero h1 {
    margin-top: 12px;
    
    
  }

  .product-category-v1__hero-intro {
    line-height: 1.75;
  }

  .product-category-v1__hero-meta {
    display: grid;
    gap: 10px;
    margin-top: 24px;
  }

  .product-category-v1__hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .product-category-v1__hero-actions .ui-button {
    width: 100%;
  }

}

@media (max-width: 390px) {
  
}

@media (prefers-reduced-motion: reduce) {
  .product-category-v1 *,
  .product-category-v1 *::before,
  .product-category-v1 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Mobile H1 scale: preserve smaller editor values; desktop/tablet stay unchanged. */
@media (max-width: 767px) {
  .product-category-v1__hero h1 {
    font-size: min(var(--product-category-hero-title-size, 50px), 26px);
    line-height: 1.4;
  }
}

@media (max-width: 360px) {
  .product-category-v1__hero h1 {
    font-size: min(var(--product-category-hero-title-size, 50px), 24px);
  }
}
