
/*
============================================================================================================================================

Estilos para la pagina de producto

============================================================================================================================================
*/

/*
============================================================================================================================================

Estilos para la pagina de producto Resumen del producto imagen del producto y miniaturas
*/
body a {
  text-decoration: none;
  color: #20699f;
}


.product-page {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0px 100px;
  padding-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  gap: 20px;
}

.product-page {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0px 100px;
  padding-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  gap: 20px;
}

.item-container {
  padding: 10px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  width: 100%; /* Cambiado el ancho a 100% */
  max-width: 500px; /* Añadido un ancho máximo */
  margin-top: 20px;
  margin-left: 20px;
}

.container {
  width: 100%;
}

.aspect-square {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.aspect-square img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.controls button:hover {
  background-color: rgba(255, 255, 255, 1);
}

.controls button svg {
  width: 16px;
  height: 16px;
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.thumbnail {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
}

.thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: #3b82f6;
}


/*
============================================================================================================================================

Estilos para la pagina de producto Resumen del producto

============================================================================================================================================
*/

.category-title {
  position: relative;
  width: 100%;
  padding-top: 10%; /* Usa padding-top para mantener la relación de aspecto */
  overflow: hidden;
  margin-top: 95px; /* Deja espacio para la barra de navegación */
  z-index: 1; /* Asegúrate de que esté en la capa correcta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px;
}

.category-title-text {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  color: white;
  width: 300px;
  height: 200px;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Dosis', sans-serif;
  font-weight: 200;
  font-size: 50px;
  z-index: 2; /* Asegúrate de que esté sobre la forma azul */
}

.blue-shape {
  position: absolute;
  top: 0; /* Ajusta la posición superior según sea necesario */
  left: 0; /* Mueve la forma a la izquierda */
  width: 50%; /* Asegura que cubra todo el ancho del contenedor */
  height: 100%; /* Asegura que cubra todo el alto del contenedor */
  background-color: #8AC1DD;
  background: linear-gradient(to right, #8AC1DD 70%, transparent 100%);
  z-index: 1; /* Asegúrate de que esté debajo del texto */
}


.category-title .carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Asegúrate de que esté detrás del texto */
}

.category-title .carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la imagen para cubrir el contenedor sin distorsión */
}


.route {
  background-color: #20699f;
  border: none; 
  padding: 10px 20px; 
  transition: background-color 0.3s ease;
}

.route-text {
  font-family: 'Dosis', sans-serif;
  font-weight: 300;
  font-size: 20px; /* Ajusta el tamaño de la fuente */
  color: white;
  text-decoration: none; /* Elimina la línea debajo de los enlaces */

}

.route-text:hover {
  text-decoration: underline; /* Opcional: Añade subrayado al pasar el ratón */
}



.item-information-summary {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    flex: 1;
    margin-top: 20px;
    margin-right: 20px;
  }
  
  .item-information-summary h1 {
    font-family: 'Dosis', sans-serif;
    font-weight: 300;
    font-size: 36px;
    color: #20699f;
    margin-bottom: 10px;
  }
  
  .item-information-summary p {
    font-family: 'Dosis', sans-serif;
    font-weight: 200;
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .item-information-summary .price {
    font-family: 'Dosis', sans-serif;
    font-weight: 300;
    font-size: 28px;
    color: #268cb5;
    margin-bottom: 20px;
  }

  .container-details{
    font-family: 'Dosis' ;
    font-optical-sizing: auto;
    font-weight: 200;  /* Usar 300 para light weight */
    font-size: 25px;
    margin-top: 40px;
  }
  
  .details{
    gap: 20px;
  }
  
  .details button{
    background-color: #20699f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    font-family: 'Dosis', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: white;
    text-decoration: none; /* Elimina el subrayado en los enlaces */
  }
  
  .details button:hover{
    background-color: #268cb5;
    transform: scale(1.05);
  }
  
  .description {
    max-width: 100%;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 5px;
    font-family: 'Dosis', sans-serif;
    font-weight: 200;
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    
  }

  .counter button{
    background-color: #20699f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    font-family: 'Dosis', sans-serif;
    font-weight: 300;
    font-size: 1em;
    color: white;
    text-decoration: none; /* Elimina el subrayado en los enlaces */
    
  }

  .counter button:hover{
    background-color: #268cb5;
    transform: scale(1.05);
  }
  

  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }
  
  
  /*
  ============================================================================================================================================
  
  Estilos para la pagina de producto Resumen del producto Productos relacionados
  
  ============================================================================================================================================
  */
  .relation-items-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0px 100px;
    padding-bottom: 20px;
    background-color: #ffffff;
    gap: 20px;
    height: 600px;
  }
  
  .relation-items-container h1{
    font-family: 'Dosis', sans-serif;
    font-weight: 300;
    font-size: 40px;  
    color: #20699f;
    margin-bottom: 15px;
  }
  
  .slider-title {
    width: 100%;
    text-align: center;
  }
  
  
  .swiper {
    width: 100%;
    height: 80%;
  }
  
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
    width: 100%;
    max-width: 250px;
    height: 90%;  /* Added to ensure uniform height */
    box-sizing: border-box;
  }

  .card-title {
    display: -webkit-box; /* Utiliza caja flex de WebKit */
    -webkit-box-orient: vertical; /* Orientación vertical */
    -webkit-line-clamp: 3; /* Número máximo de líneas */
    overflow: hidden; /* Oculta cualquier desbordamiento del texto */
    text-overflow: ellipsis; /* Añade "..." al final del texto si es demasiado largo */
    width: 100%; /* Asegura que el contenedor del texto tome todo el ancho disponible */
}
  
  .item-card img {
    max-width: 100%;
    height: 150px;  /* Set a fixed height for images */
    object-fit: fill;  /* Ensures images cover the area without distortion */
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .item-card a {
    display: flex;
    flex-direction: column;
    align-items: center;  /* Centra verticalmente el contenido del enlace */
    text-align: center;  /* Centra el texto horizontalmente */
    width: 100%;  /* Asegura que el enlace ocupe todo el ancho de la tarjeta */
  }
  
  
  .item-card h3, .item-card p, .item-card .price, .item-card .add-to-cart {
    margin: 0 0 10px;
  }
  
  .item-card h3 {
    font-family: 'Dosis', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #333;
  }
  
  .item-card p {
    font-family: 'Dosis', sans-serif;
    font-weight: 200;
    font-size: 16px;
    color: #666;
    flex-grow: 1;
    text-align: center;
  }
  
  .item-card .price {
    font-family: 'Dosis', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #268cb5;
  }
  
  .item-card .add-to-cart {
    background-color: #268cb5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
  }
  
  .back-button{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0px 100px;
    padding-bottom: 20px;
    background-color: #ffffff;
    gap: 20px;
  
  }
  
  .back-button button {
      padding: 10px 20px;
      font-family: 'Dosis', sans-serif;
      font-weight: 300;
      font-size: 1em;
      color: white;
      background-color: #20699f;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s;
      text-decoration: none; /* Elimina el subrayado en los enlaces */
  }
  
  .back-button button:hover,
  .item-card .add-to-cart:hover{
      background-color: #268cb5;
      transform: scale(1.05);
  }


  /*
  ============================================================================================================================================
  
  Estilos para la pagina de producto Resumen del producto Estilos para moviles 
  
  ============================================================================================================================================
  */
  
  @media (max-width: 768px) {
    .product-page {
      flex-direction: column;
      margin: 0 ;
      gap: 0px;
    }
  
    .back-button {
      margin: 0;
      gap: 0px;
    }

    .relation-items-container {
      display: flex;
      flex-direction: row;
      overflow-x: auto; /* Permite desplazamiento horizontal */
    }
  
  
    .swiper-slide {
      width: 100%; /* Ajusta el ancho de las diapositivas al 100% */
      margin-right: 0; /* Elimina el margen derecho */
    }
  
    .item-container,
    .item-information-summary{
      width: 100%;
      margin-bottom: 0px;
      margin-top: 0px;
      margin-left: 0px;
      border: 0px solid #ddd;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.0);
      
    }
    
    .swiper-slide {
      justify-content: center;
    }
    
    .item-card{
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
      width: 100%;
      max-width: 250px;
      max-height: 600px;
      height: 80%;  /* Added to ensure uniform height */
      margin-left: 15%;
    }
  
  
    .relation-items-container {
      align-items: center; /* Centra los elementos horizontalmente */
      margin: 0 auto; /* Centra el contenedor horizontalmente */
      padding: 0; /* Elimina el padding para evitar espacios innecesarios */
    }
  
    .item-card {
      width: 100%; /* Ajusta el ancho al 100% del contenedor */
    }
  }


  @media (max-width: 1368px) {
  
    .category-title {
      height: 100px;
    }
  
    .products-container {
      margin: 0px 0px;
    }
    
    .products-content{
      width: 100%;
      height: 100%;
    }
  
    .category-title-text {
      font-size: 20px;
      text-align: left;
      left: 0px;
    }
  
    .route-text {
      font-size: 16px;
    }
  
  
    .section-title {
      font-size: 20px;
    }

    .relation-items-container h1{
      font-size: 30px;
    }
  
  
  }

