/****************************** TIENDA PRODUCTOS ********************************/

.mi-clase-personalizada {
  width: 300px;
  height: auto;
  background-color: #f0f0f0;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 7px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-container .mi-clase-personalizada {
  flex: 0 1 30%; /* Cada producto ocupará el 15% del ancho para 5 por fila */
  margin: 20px;
}

.card {
  max-width: 100%;
  color:rgb(9, 17, 57);
}

.card-img-top {
  width: 100%;
  align-self:center;
  object-fit: contain;
  height: auto;
  margin-top: 10px;
}

.card-body {
  flex-grow: 1;
  height: 150px;
}

.product-list {
  background-color: white;
  padding: 50px 0;
  width: 100%;
  align-items: center;
}

h1, h2 {
  font-family: 'Roboto', serif;
}

h2 {
  margin-top: 10px;
}

.product-list h1 {
  margin-bottom: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 4em;
  color: rgb(18, 78, 120);
  font-weight: bold;
  letter-spacing: 5px;
  background-color: transparent;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: rgba(0, 0, 0, 0.5);
  text-shadow: 
    1px 1px 4px rgba(0, 0, 0, 0.1),
    0px 4px 6px rgba(0, 0, 0, 0.08);
  transition: text-shadow 0.5s ease, color 0.5s ease, transform 0.5s ease;
}

.product-list h2 {
  font: 1.3em;;
  color: rgb(26, 4, 49);
}

p, .product-description {
  margin-top: 10px;
  font-family: 'Poppins', sans-serif;
  color: #333;
  text-align: left;
}

.product-container {
  background-color: transparent;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.product-container .col-md-4 {
  flex: 0 1 15%;
}

.product {
  background-image: none;
  background-color: #ffffff;
  color: black;
}

/*************************** ESTILO PARA CUANDO NO HAY PRODUCTOS ***************************/
.not-product {
  background-image: url('../img/history/circle-blues.png');
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 100px 0;
  text-align: center;
  color: white;
}

.not-product h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.not-product p {
  font-size: 1.5rem;
  text-align: center;
  color: white;
}

.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
}

.like-btn .bi-heart-fill {
  color: rgb(206, 77, 8);
}

.add-to-cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
}

.add-to-cart-btn:hover {
  color: rgb(175, 115, 3);
  transform: scale(1.1); /* Le da un efecto de agrandamiento suave */
}

.add-to-cart-btn:active {
  color: rgb(18, 78, 120);
  transform: scale(1); /* Restaura el tamaño al hacer clic */
}

.add-to-cart-btn i {
  margin-right: 5px;
  transition: color 0.3s ease;
}

.add-to-cart-btn:hover i {
  color: #faa541;
}

.remove-from-cart-btn {
  background: none !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.remove-from-cart-btn i {
  font-size: 1.5rem;
  color: black; 
  transition: color 0.3s ease; 
}

.remove-from-cart-btn:hover i {
  color: red; 
}


/*************************** RESPONSIVE ********************************/
@media (max-width: 768px) {
  .product-soon {
      margin-top: 0px; 
      padding: 50px 0;
  }
  
  .product-soon h1 {
      font-size: 2rem; 
      margin-bottom: 10px;
  }
  
  .product-soon p {
      font-size: 1.2rem;
  }
  
  .product {
      margin-top: -10px;
  }

  .card-text {
    font-size: 14px;
    line-height: 1.4; /* Ajustar el espaciado entre líneas */
  }

  .card-img-top {
    max-height: 200px;
  }
  .product-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .product-container .price {
    font-size: 16px;
  }

  .product-container .add-to-cart-btn,
  .product-container .like-btn {
    font-size: 12px;
    padding: 4px;
  }
}

@media (min-width: 769px) {
  .card-img-top {
    max-height: 150px;
  }
}
