/* ===== Block 3 — Catalog ===== */

.catalog-section {
  background: url("../images/block3_bg.png") no-repeat center center/cover;
  padding: 100px 20px;
  text-align: center;
}

/* Заголовок теперь как в hero */
.catalog-section .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #3A2A23;
  margin-bottom: 20px;
  text-align: center;
}

/* Сетка товаров */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* по умолчанию 3 */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

/* планшеты */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* телефоны */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Карточка товара */
.product-item {
  background: #fffdf9;
  border: 2px solid #D4A373;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Главное изображение */
.product-thumb img {
  width: 100%;
  height: auto; /* сохраняем пропорции */
  border-radius: 15px;
  margin-bottom: 15px;
}

/* Миниатюры */
.product-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.product-thumb-small {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.product-thumb-small:hover,
.product-thumb-small.active {
  border-color: #D4A373;
}

/* Название */
.product-title {
  font-size: 20px;
  font-weight: 600;
  color: #3A2A23;
  margin: 10px 0;
}

/* Короткое описание */
.product-excerpt {
  font-size: 16px;
  color: #4b3d3d;
  margin-bottom: 10px;
}

/* Цена */
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #3A2A23;
  margin-bottom: 15px;
}

/* Поле количества и кнопка */
.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-qty {
  width: 70px;
  padding: 6px;
  border: 1px solid #D4A373;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
}

.add-to-cart-btn {
  padding: 12px 24px;
  background: linear-gradient(45deg, #D4A373, #E0B986);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
}

.add-to-cart-btn:hover {
  background: linear-gradient(45deg, #c38a5d, #d7a86e);
  transform: translateY(-2px);
}

/* ===== Responsive доп. правки ===== */
@media (max-width: 768px) {
  .catalog-section {
    padding: 70px 15px;
  }

  .catalog-section .section-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .product-title {
    font-size: 18px;
  }

  .product-excerpt {
    font-size: 14px;
  }

  .product-price {
    font-size: 16px;
  }

  .add-to-cart-btn {
    font-size: 14px;
    padding: 10px 20px;
  }
}
