/* All categories — scoped; matches shop hero + Lynbis blue */

.all-categories-page {
  padding-bottom: 3rem;
}

.all-categories-main {
  padding-top: 0.25rem;
}

.all-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

@media (min-width: 1200px) {
  .all-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.all-cat-grid--loading {
  min-height: 200px;
}

.all-cat-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  padding: 1.25rem 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}

.all-cat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.all-cat-card__head {
  margin-bottom: 0.75rem;
}

.all-cat-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.all-cat-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.all-cat-card__title i {
  color: #2563eb;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.all-cat-card__link:hover .all-cat-card__title {
  color: #2563eb;
}

.all-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.all-cat-list__item {
  margin: 0;
  padding: 0;
}

.all-cat-list__item a {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 6px;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.all-cat-list__item a:hover {
  color: #2563eb;
  background: #f8fafc;
}

.all-cat-list--empty {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-style: normal;
  padding: 0.25rem 0 0;
}

.all-cat-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.9375rem;
  color: #64748b;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  background: #fafafa;
}

.all-cat-state--error {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}

.all-cat-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  color: #64748b;
  font-size: 0.9375rem;
}

.all-cat-loading__spinner {
  display: block;
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: all-cat-spin 0.75s linear infinite;
}

@keyframes all-cat-spin {
  to {
    transform: rotate(360deg);
  }
}
