/**
 * Category hero — franja 8:1 con imagen de portada (páginas de categoría).
 * Grid overlay (mismo patrón que ldn-minimalblock hero).
 * Carga solo en categoría vía theme.yml + category.tpl.
 */

#js-product-list-header .category-hero {
  position: relative;
  display: grid;
  align-items: stretch;
  width: 100%;
  aspect-ratio: 8 / 1;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  overflow: hidden;
}

#js-product-list-header .category-hero__media,
#js-product-list-header .category-hero__scrim,
#js-product-list-header .category-hero__content {
  grid-area: 1 / 1;
}

#js-product-list-header .category-hero__media {
  z-index: 0;
  min-width: 0;
  min-height: 0;
}

#js-product-list-header .category-hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

#js-product-list-header .category-hero__media picture,
#js-product-list-header .category-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

#js-product-list-header .category-hero__scrim {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.3) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

#js-product-list-header .category-hero__content {
  z-index: 2;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 var(--space-5);
  box-sizing: border-box;
  pointer-events: none;
}

#js-product-list-header .category-hero__title {
  margin: 0;
  color: var(--color-text-inverse);
  font-size: 1.125rem;
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  pointer-events: auto;
}

#js-product-list-header .category-hero--fallback {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-dark);
}

#js-product-list-header .category-hero__description {
  margin-bottom: var(--space-5);
  color: var(--color-muted-inverse);
}

#js-product-list-header .category-hero__description p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  #js-product-list-header .category-hero__content {
    padding: 0 var(--space-6);
  }

  #js-product-list-header .category-hero__title {
    font-size: 1.5rem;
  }
}
