h1{

}
/* Grid general de productos */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

/* Tarjeta individual */
.product-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Imagen del producto */
.img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .img-container img {
  transform: scale(1.05);
}

/* Descripción del producto */
.description-container {
  padding: 1rem;
  flex-grow: 1;
}

.description-container h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.description-container p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
  height: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  /* line-height: ; */

}

/* Precio */
.description-container span {
  font-size: 1rem;
  font-weight: bold;
  color: #ff4b5c;
}

/* Controles de cantidad */
.products-options-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.products-options-container button {
  background-color: #eee;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.products-options-container button:hover {
  background-color: #ccc;
}

.products-options-container input {
  width: 40px;
  text-align: center;
  margin: 0 0.5rem;
  border: none;
  background: none;
  font-size: 1rem;
}

/* Botón Agregar al carrito */
.products-btn-container {
  padding: 0 1rem 1rem;
}

.products-btn-container button {
  width: 100%;
  padding: 0.8rem;
  background-color: #ff4b5c;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.products-btn-container button:hover {
  background-color: #ff4b5c;
}

/* Paginación */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pagination-btn {
  background-color: #ff4b5c;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination-btn:hover {
  background-color: #b34a2f;
}

#page-input {
  width: 40px;
  text-align: center;
  border: none;
  background: #eee;
  border-radius: 8px;
  padding: 0.5rem;
}

/* Responsive: Si quieres un grid diferente en mobile */
@media (max-width: 600px) {
  .grid-products {
    grid-template-columns: 1fr;
  }

  .product-card {
    margin: 0 auto;
    width: 90%;
  }
}
