
.pivenor-categories-page {
  padding: var(--space-4) 0 var(--space-12);
}

.pivenor-categories-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
}

.pivenor-categories-title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-bold);
}

.pivenor-categories-count {
  font-size: var(--text-l);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.pivenor-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.pivenor-category-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(var(--rgb-black), var(--alpha-06));
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.pivenor-category-card:hover {
  border-color: color-mix(in srgb, var(--color-accent-1) 35%, var(--color-border));
  box-shadow: 0 6px 16px rgba(var(--rgb-black), var(--alpha-10));
  transform: translateY(-2px);
}

.pivenor-category-card:active {
  transform: translateY(-1px);
}

.pivenor-category-card__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-background);
}

.pivenor-category-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pivenor-category-card__body {
  padding: var(--space-2-5) var(--space-3) var(--space-3);
}

.pivenor-category-card__title {
  display: -webkit-box;
  margin: 0 0 var(--space-1);
  overflow: hidden;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-snug);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pivenor-category-card__meta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-l);
  line-height: var(--leading-ltight);
}

.pivenor-categories-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: clamp(var(--space-8), 8vw, var(--space-16)) var(--space-4);
  text-align: center;
}

.pivenor-categories-empty__panel {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(100%, 620px);
}

.pivenor-categories-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 360px;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(var(--rgb-white), var(--alpha-72));
  border-radius: var(--radius-16xl);
  background:
    linear-gradient(145deg, rgba(var(--rgb-white), var(--alpha-42)), transparent),
    color-mix(in srgb, var(--color-accent-1) 40%, transparent);
  box-shadow:
    0 32px 90px color-mix(in srgb, var(--color-accent-1) 22%, transparent),
    inset 0 1px 0 rgba(var(--rgb-white), var(--alpha-55));
  color: var(--color-accent-1);
}

.pivenor-categories-empty__svg {
  width: 260px;
  height: 260px;
  display: block;
  flex-shrink: 0;
}

.pivenor-categories-empty h2 {
  margin: 0;
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
}

.pivenor-categories-empty p {
  margin: 0;
  max-width: 440px;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .pivenor-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .pivenor-category-card {
    flex: 0 0 calc((100% - 36px) / 4);
    max-width: calc((100% - 36px) / 4);
  }
}

@media (min-width: 1200px) {
  .pivenor-category-card {
    flex-basis: calc((100% - 60px) / 6);
    max-width: calc((100% - 60px) / 6);
  }
}
