.category-home {
  padding: 28px 0 35px;
  scroll-margin-top: 145px;
}
.category-home[hidden],
.section-toolbar[hidden] {
  display: none;
}
.category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.category-heading small {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 2px;
}
.category-heading h2 {
  margin: 3px 0 0;
  font-size: 30px;
}
.category-heading > span {
  color: var(--muted);
  font-size: 11px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.category-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0;
  border: 1px solid rgba(214, 169, 80, 0.25);
  border-radius: 22px;
  background: #f3e2c6;
  color: #fff;
  text-align: start;
  overflow: hidden;
  cursor: pointer;
  transition: 0.25s;
  animation: card-enter 0.55s ease both;
}
.category-card:nth-child(2) {
  animation-delay: 0.06s;
}
.category-card:nth-child(3) {
  animation-delay: 0.12s;
}
.category-card:nth-child(4) {
  animation-delay: 0.18s;
}
.category-card:nth-child(5) {
  animation-delay: 0.24s;
}
.category-card:nth-child(6) {
  animation-delay: 0.3s;
}
.category-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}
.category-card:before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 5, 2, 0.06) 20%, rgba(7, 5, 2, 0.9) 100%);
}
.category-card:after {
  content: '';
  position: absolute;
  inset: auto -25px -35px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  z-index: 1;
  background: rgba(214, 169, 80, 0.12);
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}
.category-card:hover .category-photo {
  transform: scale(1.07);
}
.category-copy {
  align-self: stretch;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4px 9px;
  margin-top: auto;
  padding: 20px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}
.category-copy b {
  display: block;
  font-size: 19px;
}
.category-copy small {
  display: block;
  color: var(--gold2);
  font-size: 11px;
}
.section-toolbar {
  position: sticky;
  top: 136px;
  z-index: 17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  background: rgba(255, 248, 235, 0.94);
  backdrop-filter: blur(14px);
  scroll-margin-top: 130px;
}
.section-toolbar button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--gold2);
  padding: 9px 13px;
  cursor: pointer;
}
.section-toolbar b {
  color: var(--gold2);
}
.categories {
  display: none !important;
}
@media (max-width: 680px) {
  .category-heading {
    align-items: start;
    flex-direction: column;
  }
  .category-heading h2 {
    font-size: 25px;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .category-card {
    min-height: 190px;
  }
  .category-copy {
    padding: 14px;
  }
  .category-copy b {
    font-size: 16px;
  }
  .section-toolbar {
    top: 124px;
  }
}
