/* ==========================================================================
   category-hero — number, big title, description, count, image pill (Catalog
   and Category pages).
   Same typographic language as hero-title, but smaller: the products are the
   point of this page.
   ========================================================================== */
.category-hero {
  padding-block: var(--space-lg) var(--space-xl);
}

.category-hero__crumbs {
  margin-bottom: var(--space-lg);
}

.category-hero__number {
  margin-bottom: var(--space-xs);
}

.category-hero__title {
  margin-bottom: var(--space-lg);
}

/* Phones: the wide display font may wrap the title (pill included) onto a
   second line once it loads. Reserve two lines so the text below never jumps. */
@media (max-width: 47.99em) {
  .category-hero__title {
    min-height: 2lh;
  }
}

.category-hero__meta {
  display: grid;
  gap: var(--space-md);
  padding-top: var(--space-sm);
  border-top: var(--border-hairline);
}

.category-hero__count {
  display: block;
}

.category-hero__description {
  max-width: 44ch;
  font-size: var(--text-lg);
  line-height: 1.4;
}

@media (min-width: 48em) {
  .category-hero {
    padding-block: var(--space-xl) var(--space-xl);
  }

  .category-hero__meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--space-lg);
  }
}

@media (min-width: 64em) {
  .category-hero__meta {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  }
}
