
.catalog-section {
  padding: 60px 20px;
  padding-bottom: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.catalog-title {
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 10px;
  color: var(--text-color);
}

.catalog-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 60px 30px; /* 60px — вертикальный отступ, 30px — горизонтальный */
  align-items: stretch; /* Растягивает карточки */
}


.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* чтобы кнопка была внизу */
  height: 100%;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}


.product-card:hover {
  transform: translateY(-5px);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-color);
  color: white;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: var(--font-weight-medium);
  z-index: 2;
}

.product-discount {
  position: absolute;
  top: 16px;
  right: 16px;
  background: crimson;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: var(--font-weight-bold);
  z-index: 2;
}
.product-name {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.product-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.product-features li {
  background: var(--third-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-color);
}

.product-price {
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 8px;
}

.price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-left: 10px;
}

.product-rating {
  font-size: 14px;
  color: var(--text-muted);
}
.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 12px;
}
.price-new {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
}

.price-old {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-left: 10px;
}

/* 🛒 Кнопка Купить */
.buy-button {
  margin-top: 16px;
  padding: 10px 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  justify-content: center;
}

.buy-button:hover {
  background-color: #009c47; /* немного темнее при наведении */
  color: white;
  text-decoration: none;
}

.shop-icon {
  width: 18px;
  height: 18px;
}

.card-content {
  flex-grow: 1; /* Растягивается и выталкивает кнопку вниз */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.catalog-footer {
  text-align: center;

}