* {
    box-sizing: border-box;
}


.contenedor{
    width: 78%;
    background-color: #fff;
    border-radius: 25px;
    margin: 15px;
    margin-left: 10%;
   
    justify-content: center;
    padding: 10px;
   
}

.redireccion{
  width: 98%;
  
}

.redireccion a{
  color: gray;
  text-align: left;
  margin-top: 25px;
}

#prod-vista{
  text-align: left;
  padding-left: 55px;
  margin-top: 15px;
}

.cuadros{
  width: 98%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 45px;
  
}

#product-image {
    transition: opacity 0.5s ease;
    opacity: 1;
    max-width: 100%;
    height: auto;
}

.fade-out {
    opacity: 0;
}

.thumbnail-gallery {
    margin-top: 20px;
    max-width: 10%;
    display: block;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
   margin-left: 5px;
}

.thumbnail-gallery img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border 0.3s;
    border-radius: 5px;
}

.thumbnail-gallery img.selected {
    border: 2px solid rgb(84, 82, 179);
}



.izq{
    width: 700px;
    display: flex;
    flex-direction: row;
    padding-top: 10px;
    margin-top: 25px;
    margin-bottom: 25px;
    gap: 5px;
}



.image-viewer{
    max-width: 80%;
    display: flex;
    
}

.image-viewer img{
  max-width: 450px;
  height: auto;
  max-height: 670px;
  border-radius: 25px;
}



.nav-button{
    min-width: 40px;
    height: 40px;
    background: #fff;
    text-align: center;
    margin-top: 250px;
    line-height: 40px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;

}



.nav-button:hover{
    background: rgb(84, 82, 179);
    color: #fff;
}


.der{
    width: 350px;
    min-height: 150px ;
    max-height: auto;
    padding-left: 20px;
    padding-top: 20px;
    margin-left: 0;
    margin-top: 25px;
    border: solid 1px rgb(173, 173, 173);
    border-radius: 15px;
    
}


.div-btn{
    max-width: 100%;
    margin-top: 60px;
}

.btn-agregar{
    max-width: 50%;
}

@media screen and (max-width: 900px) {
    .contenedor{
        width: 96%;
        display: block;
        background-color: #fff;
        border-radius: 25px;
        margin-left: 8px;
        padding: 0;
        padding-bottom: 20px;
        margin-top: 10px;
    }

    .izq{
        width: 98%;
        display: block;
        margin: 0;

    }

    .thumbnail-gallery {
        margin-top: 20px;
        max-width: 98%;
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-bottom: 20px;
       margin-left: 10px;
    }

    .thumbnail-gallery img {
        width: 50px;
        height: 50px;
        margin: 0;
    }

    
    .image-viewer{
        width: 100%;
        margin-left: 5px;
    }

    .image-viewer img{
        width: 320px;
       margin: 0;
    }

    .nav-button{
        max-width: 50px;
        max-height: 40px;  
        margin-top: 180px;
        line-height: 40px;
        border-radius: 50%;

    }


    .der{
        width: 96%;
        margin-left: 8px;
        margin-bottom: 20px;
    }

    .div-btn{
        margin-left: 100px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .btn-agregar{
        max-width: 200px;
    }

}



/*------------------------- Filtros ------------------------*/

  .filter-group ul {
    list-style: none;
    font-size: 1em;
  }


  

  .category-group ul{
    list-style: none;
    font-size: 1em;
  }

  .todos-prod{
    width: 100%;
    cursor: pointer;
    border: 0;
    background-color: transparent;
    color: white;
    font-size: 1.1em;
    border-radius: 10px;
  }




  .filters li button{
    width: 80%;
    height: 35px;
    font-size: 1.2em;
    cursor: pointer;
    border: 0;
    background-color: transparent;
    color:white;
    text-align: left;
    border-radius: 10px;
  }





 
  .filters button:hover {
    text-decoration: underline;
    background-color: rgb(182,120,255) ;
  }
  
  .filters button:active{
    font-weight: bolder;
  }


  .cat-toggle {
    display: none; 
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: rgb(84, 82, 179);
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
}

.filter-mobile{
  display: none;
}

.category-group-mob{
 display: none;
}


  @media screen and (max-width: 900px) {
    
    
    
    .contenedor{
      width: 96%;
     margin-left: 8px;
      
    }

    .cuadros{
      width: 98%;
      display:block;
      
    }

    .card {
      width: 95%;
      display: flex;
      justify-content: space-between;
      height: auto; 
      min-height: 100px; 
      padding: 10px;
      margin-bottom: 2%;
  }

    .card-body{
      width: 40%;
      height: 100px;
      padding: 0;
      margin: 0;
      padding-left: 4%;
      font-size: 12px;
    }

    
  .card-body p{
    font-size: 10px;
  }

    .card img{
      width: 25%;
      height: 100px;
      padding: 0;
    
      
    }

    .card-text{
      font-size: 10px;
    }


    .btn-agregar {
      font-size: 11px !important;
      width: 300px; 
      height: 40px;
      text-align: center;
      background-color: rgb(182,120,255);
      margin: 10px 0; 
      display: block;
   
  }


  .filters{
    display: none;
  }

  .category-group{
    display: none;
    background-color: rgb(84, 82, 179);
    padding: 10px;
    margin-top: 10px;
  }

  .div-btn{
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .cat-toggle {
    width: 150px;
    display: block;
    align-self: flex-end;
    padding-bottom: 12px;
    align-items: center;
    padding-right: 2%;

}

.category-group-mob {
  display: none; 
  background-color: rgba(84, 82, 179,0.9);
  border-top: 1px solid #ccc;
  padding: 10px 0;
}

.category-group-mob li button{
  width: 80%;
  height: 35px;
  font-size: 1.0em;
  cursor: pointer;
  border: 0;
  background-color: transparent;
  color:white;
  text-align: left;
  border-radius: 10px;
 
}

.category-group-mob.active {
  width: 60%;
  margin-left: 5%;
  display: block;
  position: absolute;
}


.filter-mobile{
  display: flex;
  width: 100%;
  padding-left: 5%;
  gap: 1em;
  margin-top: 2%;
}

#prod-btn{
  width: 200px;
  border-radius: 10px;
}

#cat-btn{
  border-radius: 10px;
}

.donde-prod{
  width: 80%;
  padding: 0;
  margin: 0;
}


.nav-button{
  min-width: 35px;
  max-height: 35px;
  line-height: 35px;
}

}

