/* Anahata v2 — category card. Figma: "Category Card" set. */

.category-card {
  position: relative;
  display: block;
  aspect-ratio: var(--cc-ratio, 3 / 4);
  border-radius: var(--a-radius);
  overflow: hidden;
  text-decoration: none;
}

.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--a-gradient-card-veil);
}

.category-card__label {
  position: absolute;
  left: var(--a-space-4);
  right: var(--a-space-4);
  bottom: var(--a-space-4);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: var(--a-space-3);
  font-family: var(--a-font-display);
  font-size: var(--a-fs-display-s);
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--a-surface);
}

/* long collection names ("Bestsellers - shine with our most loved pieces")
   would otherwise run past the card and shove the arrow out of place */
.category-card__label > span:first-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-width: 0;
}

.category-card__label .a-icon {
  flex: 0 0 auto;
}
