/* Category Hero Module
   Standalone, reusable banner for category/collection listing pages.
   Usage: <section class="category-hero"> ... </section> */

.category-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .56fr) 1fr;
  min-height: 300px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 26px 56px -34px rgba(23, 29, 25, .26);
  isolation: isolate;
}

.category-hero__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 46px 36px;
  overflow: visible;
  background:
    radial-gradient(130% 150% at -10% -10%, rgba(79, 99, 86, .10), transparent 55%),
    var(--white);
}

.category-hero__index {
  position: absolute;
  top: -8px;
  left: 18px;
  z-index: 0;
  font-size: 148px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--gray-100);
  user-select: none;
  pointer-events: none;
}

.category-hero__content {
  position: relative;
  z-index: 1;
}

.category-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-500);
}
.category-hero__crumb a { color: var(--gray-500); transition: color .2s ease; }
.category-hero__crumb a:hover { color: var(--anthracite); }
.category-hero__crumb span.sep { color: var(--gray-300); }
.category-hero__crumb span.current { color: var(--cta); font-weight: 700; }

.category-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cta);
}
.category-hero__eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cta);
}

.category-hero h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--anthracite);
  margin-bottom: 14px;
}

.category-hero p {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.category-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  align-items: start;
  flex-shrink: 0;
}
.category-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  overflow: visible;
}
.category-hero__stats strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--anthracite);
}
.category-hero__stats span {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gray-500);
  overflow: visible;
}

.category-hero__media {
  position: relative;
  overflow: hidden;
}
.category-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
  filter: saturate(1.02) contrast(1.02);
}
.category-hero:hover .category-hero__media img {
  transform: scale(1.08);
}
.category-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 16%);
}
.category-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10, 14, 12, .28), transparent 46%);
  pointer-events: none;
}

.category-hero__tag {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: rgba(23, 29, 25, .55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.category-hero__tag svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1000px) {
  .category-hero { grid-template-columns: 1fr; min-height: 0; }
  .category-hero__media { height: 200px; order: -1; }
  .category-hero__body { padding: 32px 30px; }
  .category-hero__index { font-size: 110px; top: -4px; }
}

@media (max-width: 560px) {
  .category-hero__body { padding: 26px 22px; }
  .category-hero h1 { font-size: 28px; }
  .category-hero p { font-size: 13px; }
  .category-hero__stats { gap: 10px 8px; margin-top: 18px; padding-top: 16px; }
  .category-hero__stats strong { font-size: 16px; }
  .category-hero__stats span { font-size: 9.5px; letter-spacing: .04em; }
  .category-hero__media { height: 160px; }
  .category-hero__tag { right: 12px; bottom: 12px; padding: 6px 11px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .category-hero__media img { transition: none; }
}
