.category-recipes {
  display: grid;
  gap: 42px;
  margin-top: 52px;
}

.category-recipes-section {
  scroll-margin-top: 28px;
}

.category-recipes-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.category-recipes-heading h2 {
  margin: 0;
  color: #294733;
  font: 700 clamp(1.45rem, 3vw, 1.95rem)/1.2 var(--font-display);
}

.category-recipes-count {
  flex: 0 0 auto;
  color: #718071;
  font: 500 .82rem/1.4 var(--font-ui);
}

.category-recipes-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-recipes-grid .recipe-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(47, 101, 69, .12);
  border-radius: 18px;
  background: #fffef9;
  box-shadow: 0 7px 20px rgba(34, 68, 43, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-recipes-grid .recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 26px rgba(34, 68, 43, .12);
}

.category-recipes-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(47, 101, 69, .2);
  border-radius: 16px;
  background: rgba(255, 254, 249, .7);
  color: #718071;
  font: 400 .9rem/1.6 var(--font-ui);
}

.category-recipes-more {
  display: block;
  min-height: 44px;
  margin: 22px auto 0;
  padding: 0 20px;
  border: 1px solid #315a3b;
  border-radius: 999px;
  background: #315a3b;
  color: #fffef8;
  font: 700 .82rem/1.2 var(--font-ui);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.category-recipes-more:hover {
  transform: translateY(-2px);
  background: #244b32;
}

.category-recipes-more:focus-visible {
  outline: 3px solid #879b74;
  outline-offset: 4px;
}

.category-recipes-more[hidden] {
  display: none;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .category-recipes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .category-recipes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .category-recipes {
    gap: 34px;
    margin-top: 40px;
  }

  .category-recipes-heading {
    align-items: start;
  }

  .category-recipes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-recipes-grid .recipe-card {
    border-radius: 14px;
  }

  .category-recipes-grid .recipe-card .card-body {
    padding: 11px;
  }

  .category-recipes-grid .recipe-card .card-body h3 {
    font-size: .86rem;
  }
}

@media (max-width: 360px) {
  .category-recipes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-recipes-grid .recipe-card,
  .category-recipes-more {
    transition: none;
  }
}
