.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}


.product-card {
  width: 100%; /* IMPORTANTE */
  font-family: 'Poppins', sans-serif;
}

.product-card:hover .product-title {
  color: #ff3c3c;
  transition: 0.3s;
}

/* CONTENEDOR IMAGEN */
.product-img {
  position: relative;
  background: #eee;
  overflow: hidden;
}

/* IMAGEN */
.product-img img {
  width: 100%;
  display: block;
  transition: 0.4s ease;
}

/* BADGE SALE */
.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff2d2d;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  font-weight: bold;
}

/* PRECIO */
.price {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: #111;
  color: #fff;
  padding: 10px 15px;
  font-weight: bold;
}

/* ICONO CARRITO */
.cart-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s ease;
  cursor: pointer;
}

/* ICONO */
.cart-hover i {
  font-size: 18px;
  color: #111;
}

/* HOVER EFECTO */
.product-img:hover img {
  transform: scale(1.05);
}

.product-img:hover .cart-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.product-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 5px 0;
  color: #111;
  text-transform: uppercase;
}

/* SUBTITULO */
.product-category {
  font-size: 12px;
  color: #ff3c3c;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* INFO */
.product-info {
  padding: 10px 0 10px;
}

.product-link {
  text-decoration: none;
  color: inherit;
}

/* RATING */
.rating {
  text-align: right;
  margin-bottom: 5px;
  color: red;
  font-size: 14px;
}

.rating i {
  color: #ff3c3c;
  font-size: 13px;
  margin-left: 2px;
}

/* TITULO */
.product-info h2 {
  margin: 5px 0;
  font-weight: 700;
}

/* CATEGORIA */
.category {
  font-size: 12px;
  color: #ff2d2d;
}