/* =========================================================
   UNIVERSAL PRODUCT CARDS  (Popular + New + любые подборки)
   ========================================================= */

/* ======== DESKTOP ======== */
.products-section {
  padding: 60px 20px;
  background: #fff;
}

.products-section .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.products-grid,
.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-info {
  padding: 15px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

.product-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: #d00;
  margin-bottom: 10px;
}

.product-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background: #d00;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.product-button:hover {
  background: #a00;
}

/* ======== TOUCH DEVICES ======== */
@media (hover: none) {
  .product-card:active {
    transform: scale(0.98);
  }
  .product-button:active {
    background: #a00;
    transform: scale(0.98);
  }
}

/* ======== MOBILE / SMALL SCREENS (до 480px) ======== */
@media screen and (max-width: 480px) {
  .products-section {
    padding: 40px 15px;
  }

  .products-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .product-button {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

.section-title {
  text-align: center;
}
