/* Product count: larger label with a strongly emphasized deep-blue number. */
.cat-count {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
}
.cat-count-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.6vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .9;
  color: var(--ink-900);
}
.cat-count-label { color: var(--text-700); }

/* Category cards: 480 × 360 thumbnail only; close scene loads on first hover/focus. */
.catalog-card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.show-card > .catalog-card-media { z-index: -2; }
.catalog-card-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity .45s ease;
}
.catalog-card-layer img {
  position: absolute !important;
  inset: 0;
  z-index: auto !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-card-hover { opacity: 0; }
.hover-ready:hover .catalog-card-default,
.hover-ready:focus-within .catalog-card-default { opacity: 0; }
.hover-ready:hover .catalog-card-hover,
.hover-ready:focus-within .catalog-card-hover { opacity: 1; }
.litem-media { position: relative; }
.litem-media .catalog-card-media { position: absolute; inset: 0; }

/* Product cards: reserve the full card width for the tagline and keep it on one line. */
.cat-grid .show-card-body {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.cat-grid .show-card-body > p {
  max-width: none;
  white-space: nowrap;
}

/* Selection Guide recommendations reuse the product-category card system. */
.selection-guide-results {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 580px;
  margin: 18px auto 0;
}
.selection-guide-results .show-card {
  width: 100%;
}

/* Every product and Insight card reads and behaves as a clickable surface. */
.cat-card,
.litem,
.acard,
.cat-card *,
.litem *,
.acard * { cursor: pointer; }

/* Insights: stable card geometry with a fluid, cursor-following light field. */
.acard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --acard-light-x: 50%;
  --acard-light-y: 50%;
  --acard-lift: 0px;
  transform: translate3d(0, var(--acard-lift), 0);
  background:
    radial-gradient(
      440px circle at var(--acard-light-x) var(--acard-light-y),
      rgba(0, 132, 204, .09),
      rgba(0, 132, 204, .025) 30%,
      transparent 58%
    ),
    #fff;
  box-shadow: 0 2px 5px rgba(7, 13, 23, .025);
  transition:
    transform .52s cubic-bezier(.16, 1, .3, 1),
    box-shadow .52s cubic-bezier(.16, 1, .3, 1),
    border-color .36s ease;
  will-change: transform, box-shadow;
}
.acard::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0, 132, 204, .82), transparent);
  opacity: 0;
  transform: scaleX(.18);
  transition:
    opacity .38s ease,
    transform .58s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.acard > * {
  position: relative;
  z-index: 1;
}
.acard .meta,
.acard p,
.acard .card-link {
  transition: color .36s ease;
}
.acard .card-link i {
  display: inline-block;
  transition: transform .48s cubic-bezier(.16, 1, .3, 1);
}
.acard h3 a,
.acard h3 a:hover {
  color: inherit;
  transition: none;
}
.acard:hover,
.acard:focus-within,
.acard:focus-visible {
  z-index: 5;
  --acard-lift: -3px;
  border-color: rgba(61, 105, 132, .42);
  box-shadow:
    0 18px 44px rgba(7, 13, 23, .105),
    0 0 0 1px rgba(255, 255, 255, .88) inset;
}
.acard:hover::after,
.acard:focus-within::after,
.acard:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}
.acard:hover .card-link,
.acard:focus-within .card-link,
.acard:focus-visible .card-link {
  color: var(--brand-700);
}
.acard:hover .card-link i,
.acard:focus-within .card-link i,
.acard:focus-visible .card-link i {
  transform: translateX(6px);
}
.acard:focus-visible {
  outline: 3px solid rgba(0, 132, 204, .34);
  outline-offset: 3px;
}

/* Bullet points for Insight titles and in-article section titles. */
.acard h3,
.single-vitrius_product .article-body h2,
.single-vitrius_product .article-body h3,
.single-post .article-body h2,
.single-post .article-body h3 {
  position: relative;
  padding-left: 18px;
}
.acard h3::before,
.single-vitrius_product .article-body h2::before,
.single-vitrius_product .article-body h3::before,
.single-post .article-body h2::before,
.single-post .article-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  transform: translateY(-50%);
}
.acard h3::before {
  transition:
    transform .48s cubic-bezier(.16, 1, .3, 1),
    box-shadow .48s ease;
}
.acard:hover h3::before,
.acard:focus-within h3::before,
.acard:focus-visible h3::before {
  transform: translateY(-50%) scale(1.22);
  box-shadow: 0 0 0 6px rgba(0, 132, 204, .11);
}

@media (prefers-reduced-motion: reduce) {
  .acard,
  .acard::after,
  .acard .card-link i,
  .acard h3::before {
    transition-duration: .01ms !important;
  }
  .acard:hover,
  .acard:focus-within,
  .acard:focus-visible {
    --acard-lift: 0px;
  }
}

@media (hover: none), (pointer: coarse) {
  .acard:hover {
    --acard-lift: 0px;
    border-color: var(--line);
    box-shadow: 0 2px 5px rgba(7, 13, 23, .025);
  }
  .acard:hover::after {
    opacity: 0;
    transform: scaleX(.18);
  }
  .acard:hover .card-link i { transform: none; }
  .acard:hover h3::before {
    transform: translateY(-50%);
    box-shadow: none;
  }
}

/* Product detail: only 480 × 360 thumbnails before the 1440 × 1080 lightbox opens. */
[data-gallery-performance] .pg-main {
  display: block;
  width: 100%;
  padding: 0;
}
[data-gallery-performance] .pg-main picture,
[data-gallery-performance] .pg-main img { width: 100%; height: 100%; object-fit: cover; }
[data-gallery-performance] .pg-main:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 4px; }
.lightbox picture { display: contents; }
.lightbox img { width: auto; height: auto; }
body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .cat-count { gap: 10px; font-size: .78rem; }
  .cat-count-number { font-size: 2.6rem; }
  .cat-grid .show-card-body > p { font-size: .72rem; }
}
