/* ─── Categories index page ─── */
.cat-page-hero {
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  padding: 2.75rem 0;
}
.cat-page-hero__inner {
  text-align: center;
}
.cat-page-hero__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
@media (min-width: 768px) {
  .cat-page-hero__title {
    font-size: 2rem;
  }
}
.cat-page-hero__subtitle {
  margin: 0.65rem auto 0;
  max-width: 42rem;
  color: #64748b;
  line-height: 1.6;
}
.cat-page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: #94a3b8;
}
.cat-page-breadcrumb a {
  color: var(--theme-secondary);
  text-decoration: none;
  font-weight: 600;
}
.cat-page-breadcrumb a:hover {
  text-decoration: underline;
}
.cat-page-body {
  padding: 2.5rem 0 3.5rem;
}
.cat-page-intro {
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-align: center;
  color: #475569;
  line-height: 1.7;
}
.cat-page-intro p:last-child {
  margin-bottom: 0;
}
.cat-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .cat-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .cat-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
.cat-page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem 1.35rem;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-page-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(26, 86, 219, 0.15);
}
.cat-page-icon {
  position: relative;
  border-radius: 50%;
  background-color: #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #f8fafc, 0 0 0 3.5px var(--theme-secondary);
  width: 72px;
  height: 72px;
  overflow: hidden;
  transition: transform 0.25s ease;
}
@media (min-width: 768px) {
  .cat-page-icon {
    width: 84px;
    height: 84px;
    box-shadow: 0 0 0 2.5px #f8fafc, 0 0 0 4.5px var(--theme-secondary);
  }
}
.cat-page-card:hover .cat-page-icon {
  transform: scale(1.05);
}
.cat-page-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.cat-page-name {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .cat-page-name {
    font-size: 1rem;
  }
}
.cat-page-count {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--theme-secondary);
}
.cat-page-desc {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-page-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}
