
.main-container{
    height: auto;
    

}
.product-index{
    width: 100%;
    height: 100%;
}


.product-index .product-wrapper{
    width: 100%;
    height: 100%;
    max-width: 1350px;
    display: flex;
    max-height: 520px;
    gap:15px
}
/*-------------sidebar---------------------*/

.product-wrapper .sidebar-category{
    height: 100%;
    flex: 0 0 auto; /* Prevent sidebar from growing */
    background: #ffffff;
    flex: 0.2;
    position: sticky;
    left: 0;
    top: 0;
    overflow-y: auto;  
}


.sidebar-category .sidebar-categroy-wrapper{
    max-width: 200px;
    margin:  0 auto;

}

.sidebar-category .sidebar-categroy-wrapper p{
    margin:  5px 0;
    font-size: 13px;
    
}

.sidebar-categroy-wrapper .tree-1,.sidebar-categroy-wrapper .tree-2{
    margin-left: 15px;
}


.sidebar-categroy-wrapper .brands-wrapper
{
    padding:10px 0;
}


.brands-wrapper .brand-container{
    width: 80px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    margin:10px 0;
    margin-left: 10px;
}

.brands-wrapper .brand-container img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}



.color-wrapper,.size-wrapper{
    padding:10px 0;
    margin: 10px 0;
}

.color-wrapper strong,.size-wrapper strong{
    padding:15px 0;
    margin:5px 0;
}


.color-input,.size-input{
    padding:3px 0;
    margin-left: 10px;
}
/*-------------product container---------------------*/


.product-wrapper .product-container{
    flex: 1;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow-y: auto;
    scrollbar-width: none; /* Hide the scrollbar in Firefox */
    -ms-overflow-style: none; /* Hide the scrollbar in Internet Explorer/Edge */  
    max-height: 500px;
}

.product-container::-webkit-scrollbar {
    display: none; /* Hide the scrollbar in Webkit browsers (Chrome, Safari) */
  }

.product-container .filter-wrapper{
    min-height: 5rem;
    margin-top: 15px;
}

.filter-wrapper .filter-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap:10px;
    
}
.filter-container .filter-up{
    display: flex;
    align-items: center;
    gap:20px;
    width: 100%;
    min-height: 5rem;
}

.filter-up .merge-container,.filter-up .btns-product-range,.filter-up .option-wrapper{
    display: flex;
    align-items: center;
    gap:5px;
}

.filter-up .marge{
    width: 70px;
    padding:0 10px;
}


.filter-up .btns-product-range{
    height: 100%;
    gap:0px;
}

.btns-product-range button{
    height: 24px;
    border: 1px solid gray;
    background: radial-gradient(circle at 18.7% 37.8%, rgb(250, 250, 250) 0%, rgb(225, 234, 238) 90%);
}


.btns-product-range button:hover{
    background: linear-gradient(to bottom,#ffffff,pink);
}


.stars-wrapper{
    display: flex;
    align-items: center;
}

.stars-wrapper label{
    color: pink;
}

.stars-wrapper #star-white{
    color:gray;
}
.stars-wrapper #text-up{
    color: #000000;
}

.filter-container .filter-down{
    display: flex;
    align-items: center;
}

.filter-down button {
padding:6px;
background: #fff;
border: 1px solid  gray;
font-size: 13px;
border-radius: 3px;
}

.filter-down #sort-label{
    padding:0 10px;
}

.filter-down #price-wrapper{
    display: flex;
    align-items: center;
    gap:4px;
}

.filter-down .btn-arrows-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap:0;
    height: 100%;

}

.btn-arrows-wrapper span{
    font-size: 15px;
    height: 10px;
}


.product-items{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap:20px;
    margin: 10px 0;
    
}




.product-items .product-item{
    max-width: 200px;
    width: 100%;
    background: #ffff;
    font-size: 13px;
    padding-bottom: 10px;
    border-radius: 8px;
    flex-grow: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    
}


.product-item img{
    border-top-left-radius:10px ;
    border-top-right-radius: 10px;
}


.product-item:hover{
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-item p{
    margin: 0;
}

.product-item .product-item-detail{
    display: flex;
    flex-direction: column;
    margin-left: 5px;
    gap:2px;
    flex-grow: 1;
    padding: 4px 8px 8px;

}

.product-item img{
    width: 100%;
}


.product-item .price-wrapper{
    display: flex;
    align-items: center;
    gap:15px;
    padding: 0;
}

.product-item .link-wrapper{
    width: 100%;
    overflow: hidden;;
}

.product-item .linkto-product{
    display: inline;
    margin: 0;
    font-size: 10px;
    font-weight: 400;
    color: #222;
    line-height: normal;
    word-break: break-all;
    vertical-align: middle;
}

.product-item-detail button{
    width: auto;
    max-width: 80px;
    padding: 0;
    margin-left: 0;
    color: #999;
    text-decoration: underline;
    font-size: 10px;
    border: none;
    background: none;
    padding-left: 0;
}

.product-item-detail #shipping-wrapper{
    max-width: 102px;
    padding-left:0
}

@media screen and (max-width:760px) {

    .product-index .product-wrapper{
        max-width: 720px;
    }

    .product-wrapper .sidebar-category{
            display: none;
    }

    .stars-wrapper{
        display: none;
    }
    
    .product-items .product-item{
        max-width: 170px;

    }

    
}

@media screen and (max-width:400px){
    .product-items{
        display: grid;
        grid-template-columns: auto auto;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;

    }

    .product-items .product-item{
        max-width: 140px;

    }
 
}