/* =========================
   🛍️ PRODUCTOS EN GRID – Página de tienda
   Tema: Regalos ARI – Producción
   ========================= */

/* 📦 Estructura de grilla general */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  padding: 20px;
  box-sizing: border-box;
}

/* 🧱 Cada ítem de producto */
.product-item {
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
  box-sizing: border-box;
  display: flex;
}

@media (min-width: 768px) {
  .product-item {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
  }
}

@media (min-width: 1024px) {
  .product-item {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
  }
}

/* 💳 Tarjeta de producto */
.product-card {
  background-color: #fff0f5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.15);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
  position: relative;
  border: 2px solid #ff69b4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* 🏷️ Badge de oferta */
.product-card .badge-oferta {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4081;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 2;
}

/* 🖼️ Imagen */
.product-card .product-thumbnail img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 10px;
}

/* 📝 Título */
.product-card .product-title {
  font-size: 16px;
  font-weight: 600;
  color: #c2185b;
  margin: 10px 0 5px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.product-card .product-title a {
  color: inherit;
  text-decoration: none;
}

/* 💰 Precio */
.product-card .product-price {
  font-size: 15px;
  font-weight: bold;
  color: #e91e63;
  margin-bottom: 10px;
}

.product-card .product-price del {
  color: #888;
  font-weight: normal;
  margin-left: 5px;
}

/* 🛒 Botón agregar al carrito */
.product-card .product-add-to-cart .button {
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.product-card .product-add-to-cart .button:hover {
  background-color: #0097a7;
}
