.categories-page {
  padding: .65rem 0 2rem;
}

.categories-page-head {
  margin-bottom: .8rem;
}

.categories-page-head h1 {
  margin: 0;
  font-size: 1.55rem;
}

.categories-page-head p {
  max-width: 720px;
  margin: .3rem 0 0;
  color: var(--muted);
}

.all-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}

.all-categories-grid a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem .65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.all-categories-grid a:hover {
  text-decoration: none;
}

.all-categories-grid span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 700;
}

.all-categories-grid small {
  color: var(--muted);
}

@media (max-width: 850px) {
  .all-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .all-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
