/* Дополнение к service-page.css: сетка товаров на страницах каталога. */

.catalog-text {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.catalog-text p {
  margin: 0 0 14px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.catalog-card-image {
  display: flex;
  aspect-ratio: 1 / 0.86;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper-soft);
}

.catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-card-empty {
  color: #8b9499;
  font-size: 12px;
}

.catalog-card-body {
  display: flex;
  min-height: 120px;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
}

.catalog-card-cat {
  color: #286f9b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-card-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.catalog-card-price {
  font-size: 19px;
  font-weight: 850;
}

.catalog-empty {
  color: var(--muted);
}

.related-list span {
  color: var(--muted);
  font-size: 13px;
}

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

@media (max-width: 700px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-card-body { min-height: 104px; padding: 11px; }
}
