
a{
  color: inherit;
  text-decoration: none;

}
.custom-link{
  color: white;
}
.search-box {
  margin: 20px;
}
input {
  padding: 10px;
  width: 100%;
  margin-bottom: 20px;
  color: black;

  }
.product {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}
.product img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}
.hidden {
  display: none;
}
  
/* Responsivo */
@media (max-width: 768px) {
  .search-input {
      font-size: 14px; 
      padding: 8px; 
  }
}




main {
    padding: 2rem;
}

.marca {
    margin-bottom: 2rem;
}

.marca h2 {
    color: #e86c1c;
    border-bottom: 2px solid #e86c1c;
    padding-bottom: 0.5rem;
}
  

.productList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.product {
  width: 30%;
  margin: 10px;
  border: none;
  padding: 10px;
  box-sizing: border-box;
}

.product img {
  max-width: 100%;
}

.informacion{
    font-size: 10px;
    padding: 20px;
    
}

@media (max-width: 768px) {
  .product {
      width: 45%; /* Para pantallas medianas, como tablets */
  }
}

@media (max-width: 480px) {
  .product {
      width: 100%; /* Para pantallas pequeñas, como móviles */
  }
}


.product img {
    width: 80%;
    height: auto;
    border-radius: 66px;
  
    margin: 10px;
    object-fit: cover; 
    max-width: 100%; 
  }

.product img :hover{
  transform: scale(1.05); 
}


.new-price {
    color: green;
    font-weight: bold;
}

button {
    background-color: #e86c1c;
    border: none;
    padding: 10px;
    color: white;
    border-radius: 15px;
    cursor: pointer;
    padding-right:27px ;
    padding-left:27px;
}

button:hover {
    background-color: #e86c1c;
}




.MALLA{
    font-size: 17PX;
    padding-bottom: 2%;
    padding-top: 3%;
}
.otros{
  font-size: 17PX;
  padding-bottom: 2%;
  padding-top: 3%;
}

.productList img {
    width: 100px;
    height: 100px;
    object-fit: cover; /* Ajusta la imagen dentro del contenedor */
}
.product-name {
    font-size: 16px;
    text-align: center;
    margin-top: 10px;
}
   
.productList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}





.tarjeta {
  perspective: 1000px;
  width: 250px;
  margin: 20px;
}

.product-card {
  width: 100%;
  height: 350px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.tarjeta:hover .product-card {
  transform: rotateY(180deg);
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.front {
  background-color: #fff;
}

.back {
  background-color: #f7f7f7;
  transform: rotateY(180deg);

}

.product-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
}

h3 {
  font-size: 1.2em;
  margin: 10px 0;
  color: #333;
}

p {
  font-size: 1em;
  color: #666;
  margin-bottom: 10px;
}

.buy-button {
  background-color: #ff6600;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.buy-button:hover {
  background-color: #cc5200;
}

.product-card h4, 
.product-card p {
  font-size: 14px; /* Ajusta el tamaño */
  line-height: 1.4;
  overflow-wrap: break-word; /* Asegura que las palabras largas no sobresalgan */
}
   






.tarjeta {
  width: 300px;
  height: 400px;
  perspective: 1000px;
  margin: 20px;
}

/* Product card settings for 3D rotation */
.product-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

/* Rotate the card when hovered */
.tarjeta:hover .product-card {
  transform: rotateY(180deg);
}

/* Common settings for front and back sides */
.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Front side settings */
.front {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Back side settings (rotated) */
.back {
  background-color: #f7f7f7;
  transform: rotateY(180deg); /* Rotamos la tarjeta */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

/* Ajustamos el texto de la parte posterior para que no esté al revés */
.back-content {
  transform: rotateY(180deg); /* Volvemos a rotar solo el contenido del reverso */
}

/* Image inside the front */
.tarjeta img {
  width: 100%;
  height: auto; /* Ajusta la altura automáticamente */
  object-fit: cover; /* Ajusta la imagen sin salirse ni deformarse */
  border-radius: 10px 10px 0 0;
}

/* Title (h4) settings, fixed at the bottom */
h4 {
  margin: 0;
  padding: 10px;
  text-align: center;
  font-size: 1.2rem;
  background-color: #ff5722;
  color: white;
  position: absolute;
  bottom: 50px; /* Ajusta esta distancia si lo prefieres más arriba */
  width: 100%;
  z-index: 1;
  padding-bottom: 70px;
}

/* Button settings, fixed at the very bottom */
.buy-button {
  display: block;
  background-color: #ff5722;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 1rem;
  position: absolute;
  bottom: 0;
  width: 100%;
  border: none;
  cursor: pointer;
  z-index: 1;
}

/* Link inside the button */
.buy-button a {
  color: white;
  text-decoration: none;
}

/* Button hover effect */
.buy-button:hover {
  background-color: #cc5200;
}

.buy-button a:hover {
  text-decoration: underline;
}

/* Text description inside the back side */
p {
  font-size: 1em;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}
.tarjeta img {
  width: 100%;
  height: 60%; /* Asegura que la imagen ocupe un 60% de la tarjeta sin salirse */
  object-fit: cover; /* Ajustar la imagen para que no se salga ni se deforme */
  border-radius: 10px 10px 0 0;
     }






