/* src/css/products.css */

/* Hero de Productos */
.hero-products {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--light);
  padding: 80px 0;
  text-align: center;
  margin-bottom: 40px;
}

.hero-products h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 16px;
}

/* Grid de Productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  padding-bottom: 60px;
}

/* Tarjeta de Producto */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f9f9f9;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
  flex-grow: 1;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

/* Estilos específicos para el botón de agregar */
.add-to-cart-btn {
  transition: all 0.3s ease !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  padding: 12px;
}

/* Asegurar que el verde de Bootstrap se vea bien sobre nuestros estilos */
.btn-success {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: #fff !important;
}

.btn-success:hover {
  background-color: #146c43 !important;
  border-color: #13653f !important;
}

/* Input de cantidad */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(232, 180, 184, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-products h1 {
    font-size: 36px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}