.catalog-category {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.catalog-category:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.catalog-category-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.7fr);
  gap: 26px;
  align-items: end;
  margin-bottom: 18px;
}

.catalog-category-head h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.catalog-category-head > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.catalog-category .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-category .product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.product-card-body h3 {
  margin-top: 3px;
}

.product-card-body > p:not(.access-label) {
  flex: 1;
}

.product-card-body .secondary-action,
.product-card-body > .access-label:last-child {
  margin-top: 18px;
}

.product-media,
.catalog-category .cover-placeholder {
  height: 250px;
  margin: 0;
}

.product-media {
  overflow: hidden;
  background: #eee2d1;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffdf7;
}

.catalog-category .cover-placeholder {
  background:
    linear-gradient(145deg, rgba(197, 155, 46, 0.18), transparent 55%),
    var(--ink);
  color: var(--gold);
  font-family: var(--heading-font);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .catalog-category .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .catalog-category-head,
  .catalog-category .product-grid {
    grid-template-columns: 1fr;
  }

  .product-media,
  .catalog-category .cover-placeholder {
    height: 220px;
  }
}
