.catalog-category-grid {
}

.catalog-category-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  transition: transform 0.2s ease;

  &:hover {
    transform: translateY(-4px);
  }

  &:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-color) 28%, white);
    outline-offset: 4px;
    border-radius: var(--radius-lg, 13px);
  }
}

.catalog-category-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-color);
  border-radius: 13px 13px 0 0;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.catalog-category-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f7f8f8 0%, #e6eceb 100%);
}

.catalog-category-content {
  min-height: 88px;
  padding: 13px 16px;
  border: 1px solid var(--border-color);
  border-top: 0;
  border-radius: 0 0 13px 13px;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-category-title {
  color: var(--text-primary);
  font-size: var(--font-size-lg, 1rem);
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  span {
    padding: 2px 7px;
    border-radius: var(--radius-full, 999px);
    background: rgba(73, 118, 113, 0.1);
    color: #3d635f;
    font-size: var(--font-size-sm, 0.8125rem);
    font-weight: var(--font-weight-bold, 700);
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .catalog-category-content {
    min-height: 84px;
    padding: 10px 12px;
  }
}
