/* ==========================================================
   Component: CategoryCard
   Figma nodes: 5:515, 5:518, 5:521, 5:524
   Dimensões: 158px × 219px | radius: 16px
   ========================================================== */

.cs-category-card {
  position: relative;
  width: var(--cs-category-w);
  height: var(--cs-category-h);
  border-radius: var(--cs-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 46, 71, 0.20);
}

.cs-category-card:active {
  transform: translateY(0);
}

/* Background image */
.cs-category-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Dark overlay */
.cs-category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--cs-overlay-category);
  border-radius: var(--cs-radius-xl);
}

/* Text content sits above overlay */
.cs-category-card__name,
.cs-category-card__count {
  position: relative;
  z-index: 1;
  text-align: center;
  white-space: nowrap;
}

.cs-category-card__name {
  font-family: var(--cs-font-base);
  font-weight: var(--cs-fw-bold);
  font-size: var(--cs-fs-xl);
  line-height: var(--cs-lh-tight);
  color: var(--cs-text-on-dark);
}

.cs-category-card__count {
  font-family: var(--cs-font-base);
  font-weight: var(--cs-fw-regular);
  font-size: var(--cs-fs-base);
  line-height: var(--cs-lh-tight);
  color: var(--cs-text-muted);
}
