/* Category hero — professional catalog header */

.wm-cat-hero {
  background: linear-gradient(180deg, var(--wm-surface-canvas) 0%, var(--wm-surface-muted) 100%);
  border-bottom: 1px solid var(--wm-border-light);
}

.wm-cat-hero__inner {
  max-width: var(--wm-container-max);
  margin: 0 auto;
  padding: 0.85rem var(--wm-container-pad) 1rem;
}

.wm-cat-hero__crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--wm-space-1);
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wm-text-muted);
  line-height: 1.2;
}

.wm-cat-hero__crumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--wm-space-1);
  min-width: 0;
}

.wm-cat-hero__crumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--wm-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.wm-cat-hero__crumb a:hover {
  color: var(--wm-accent-blue);
}

.wm-cat-hero__crumb [aria-current='page'],
.wm-cat-hero__crumb span {
  color: var(--wm-secondary);
  font-weight: 600;
}

.wm-cat-hero__crumb svg {
  width: 0.7rem;
  height: 0.7rem;
  opacity: 0.45;
  flex-shrink: 0;
}

.wm-cat-hero__crumb-home {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0.65;
}
.wm-cat-hero__crumb a[aria-label] .wm-cat-hero__crumb-home { opacity: 0.75; }

.wm-cat-hero__panel {
  background: var(--color-surface);
  border: 1px solid var(--wm-border-light);
  border-radius: var(--wm-radius-md);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--color-bg) 5%, transparent), 0 6px 20px color-mix(in srgb, var(--color-bg) 4%, transparent);
  overflow: hidden;
}

.wm-cat-hero__panel-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wm-item-gap);
  padding: 0.9rem 1rem 0.85rem;
}

.wm-cat-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--wm-item-gap);
  min-width: 0;
}

.wm-cat-hero__intro {
  min-width: 0;
}

.wm-cat-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wm-accent-blue);
}

.wm-cat-hero__title {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--wm-secondary);
}

.wm-cat-hero__lead {
  margin: 0.45rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--wm-text-muted);
  max-width: 36rem;
}

.wm-cat-hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--wm-item-gap);
  margin: 0;
}

.wm-cat-hero__metrics div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--wm-space-1);
  padding: 0.4rem 0.45rem;
  border-radius: var(--wm-radius-md);
  border: 1px solid var(--wm-border-light);
  background: var(--wm-surface-canvas);
  white-space: nowrap;
}

.wm-cat-hero__metrics dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--wm-text-muted);
}

.wm-cat-hero__metrics dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wm-secondary);
  line-height: 1.2;
}

/* Spotlight uses shared .wm-cat-deal card (see category.css) */
.wm-cat-hero__spotlight {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  align-self: stretch;
  min-width: 0;
}

.wm-cat-hero__spotlight > .wm-cat-deal {
  height: 100%;
  min-height: 10.5rem;
}

.wm-cat-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.75rem 1.15rem;
  list-style: none;
  border-top: 1px solid var(--wm-border-light);
  background: var(--wm-surface-canvas);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wm-text-body);
}

.wm-cat-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--wm-space-1);
  position: relative;
}

.wm-cat-hero__trust-label {
  white-space: nowrap;
}

/* Align with --wm-bp-sm (576px): max = 575.98px (FIN-023) */
@media (max-width: 575.98px) {
  .wm-cat-hero__trust {
    justify-content: space-between;
    gap: var(--wm-space-1);
    padding-inline: 1rem;
  }

  .wm-cat-hero__trust li {
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--wm-radius-md);
    border: 1px solid var(--wm-border-light);
    background: var(--color-surface);
    cursor: pointer;
  }

  .wm-cat-hero__trust svg {
    width: 1rem;
    height: 1rem;
  }

  .wm-cat-hero__trust-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.4rem);
    transform: translateX(-50%) translateY(4px);
    padding: 0.35rem 0.55rem;
    border-radius: var(--wm-radius-md);
    background: var(--wm-secondary);
    color: var(--wm-text-on-dark);
    font-size: 0.6875rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 2;
  }

  .wm-cat-hero__trust-label::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--wm-secondary);
  }

  .wm-cat-hero__trust li:is(:hover, :focus-within, .is-tip-open) .wm-cat-hero__trust-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.wm-cat-hero__trust svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--wm-success);
  flex-shrink: 0;
}

.wm-cat-hero__chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.3rem;
  border-radius: var(--wm-radius);
  border: 1px solid var(--wm-border-light);
  background: color-mix(in srgb, var(--wm-surface-muted) 88%, #fff);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.wm-cat-hero__chips::-webkit-scrollbar {
  display: none;
}

.wm-cat-hero__chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: var(--wm-radius);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--wm-text-muted);
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wm-cat-hero__chip:hover {
  background: var(--wm-surface-base);
  color: var(--wm-text-primary);
}

.wm-cat-hero__chip:focus-visible {
  outline: 2px solid var(--wm-accent-blue);
  outline-offset: 1px;
}

.wm-cat-hero__chip.is-active {
  background: var(--wm-surface-base);
  color: var(--wm-accent-blue);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-bg) 8%, transparent),
    0 0 0 1px color-mix(in srgb, var(--wm-accent-blue) 22%, transparent);
}

@media (max-width: 479px) {
  .wm-cat-hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .wm-cat-hero__panel-main.has-spotlight {
    grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.75fr);
    align-items: center;
    gap: 0.85rem;
  }
}

@media (min-width: 992px) {
  .wm-cat-hero__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .wm-cat-hero__panel-main.has-spotlight {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.72fr);
  }
}
