* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

main {
    width: 95%;
    margin: 30px 10px;
    display: flex;
    justify-content:space-between;
    background-color: #ffffff00;
   

}

#side_bar {
    width: 20%;
    /* max-width: 300px; */
    /* flex: 1 1 200px; */

    background-color: rgba(255, 255, 255, 0);
    padding: 40px;
    height: auto;
    z-index: 10 !important;



}
.container{
    position:sticky;
    top: 50px;
   
}

#hidden{
    display: none;

}

/*.sorting {

    min-width: 160px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px 6px;
    border: 1px solid rgb(216, 220, 223);
    border-radius: 20px;
    line-height: 1.5;
    font-size: 16px;
    gap: 10px;
}

.sorting select {
    margin-right: 10px;
    padding: 5px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    background-color: rgba(218, 241, 251, 0.765);

}*/

.brand_s ,.catego{
    width: 90%;
    min-width: 138px;

    
    padding: 20px 6px;
    border: 1px solid rgb(216, 220, 223);
    border-radius: 20px;
    line-height: 1.5;
    font-size: 16px;
    margin-top: 20px;
    padding-left: 13px;
   
}

.brands input[type="checkbox"], .cate input[type="checkbox"] {
    margin-top: 10px;
    margin-right: 15px;
    accent-color:rgba(218, 241, 251, 0.765) ;
    transform: scale(1.6);
    font-size: 14px;

}
.brand_s ,.catego{
    width: 90%;

    
    padding: 20px 6px;
    border: 1px solid rgb(216, 220, 223);
    border-radius: 20px;
    line-height: 1.5;
    font-size: 16px;
    margin-top: 20px;
    padding-left: 13px;
   
}
.p_title{
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #0683ffad;
}

.brands a, .cate a {
    margin-top: 10px;
    margin-right: 15px;
   /* accent-color:rgba(218, 241, 251, 0.765) ;*/
    font-size: 17px;
    text-decoration: none;
    color: #08315aad;
    
}

.brands a:hover, .cate a:hover {    
    
    color: #033fa0c5;
}

.brands a:active, .cate a:active { 
    color: #4d22c3;
}



.product_container {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.237);
    margin: 0;
    border: 1px solid #d7e9fac5;
    padding: 5px;
    border-radius: 10px;
    /* position: relative; */
   /* left: 3%; */

}

.the_product {
    flex: 1 1 250px;
    max-width: 400px;
    padding: 10px;
    margin: 5px;
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 3px;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 20px;
    z-index: 3;
}

.the_product:hover {
    border: 1px solid rgb(89, 196, 250);


}

.product_img {
    z-index: 15;
    width: 95%;
   height: 220px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    transform: scaley(0.7);
    transform: scalex(0.8);
    

   
  

}
/*.product_img:hover {
    transform: scale(1);
    transition: 0.5s;

}*/

.image_wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    
}




.product_details {
    width: 100%;
    padding: 0 10px;
    height: 45px;
  overflow: hidden;

}


.price {
    display: flex;
    font-weight: 600;
    font-size: 19px;
    margin: 5px 10px 15px 10px;
    align-items: center;
    gap: 10px;
}

.new_price {
   
    color: rgba(55, 74, 156, 0.901);
    font-size: 20px;
    z-index: 1;
    font-weight: 700;
     margin: 0;
}

.old_price {
    color: #e53935;
    font-size: 13px;
  
    z-index: 1;
}



.dis {
    z-index: 18;
    margin: 5px 0 20px 0;
    padding-left: 10px;

    
}

.discount {
    width: 45px;
    height: 25px;
    
    color: rgb(252, 245, 239);
    background-color: #e53935;
    font-size: 13px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg {
    font-size: 15px;
    color: white;
    background-color: rgb(226, 74, 9);
    display: none;
    position: absolute;
    top: auto;

}

.product_details:hover .msg {
    display: block;
    position: absolute;
    width: 350px;
    border: 1px solid rgb(221, 104, 14);
    border-radius: 5px;
    padding: 5px;
    z-index: 15;
   



}

.the_product button {
    
    
    background-color: rgba(218, 241, 251, 0.765);
    color: #1a5b9b;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid #d0e4f2;

    border-radius: 9px;
    width: 94%;
    margin: 10px;
    padding: 12px;
    text-align: center;
    
     
}

.the_product button:hover {
    background-color: rgb(48, 68, 126);
    color: white;

    transition: 0.3s;

}


.the_product button i {
    font-size: 18px;
}





@media (max-width: 600px) {
    .the_product {
        max-width: 75%;
    }
}






.product_details p {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    min-height: 60px;
    
}





.image_wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    background-repeat: no-repeat;
    background: center;
     background-size: contain;
}





.icons_right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.icons_right i {
    color: #559bd6;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.icons_right i:hover {
    color: #1a5b9b;
}

/*.product_imgnet {
    width: 70%;
    height: 170px;
    margin: 30px 0 10px 0;
    background-image: url(./image/imlllage.jfif);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 30px;
}

.product_imgmon {
    width: 70%;
    height: 170px;
    margin: 30px 0 10px 0;
    background-image: url(./image/ima11111ge.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 30px;
}
.product_imgcom {
    width: 70%;
    height: 170px;
    margin: 30px 0 10px 0;
    background-image: url(./image/image233.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 30px;
}*/

@media screen and (max-width:1200px){
    #side_bar{
        width: 25%;
    }
}
@media screen and (max-width:1000px){
    #side_bar{
        width: 30%;
    }
}
@media screen and (max-width:800px){
      #side_bar{
        width: 25%;
        margin-left: 73%;
        display: none;
        position: fixed;
        top: 50px;
        right: 20px;
        z-index: 1000;
        background-color: #ecf2f1;
        border-radius: 20px;
    }


.brands input[type="checkbox"], .cate input[type="checkbox"] {
    margin-right:5px;
}
.brand_s ,.catego{
    padding-bottom:30px;
    border: none ;
    border-radius: 20px;
    font-size: 16px;
   margin-bottom: -40px ;
   margin-top: -25px;
   
}
    


    .product_container{
        width: 100%;
    }
    #hidden{
        display: block;
        position: relative;
           z-index: 1001;
          left: 60%;
           color: #4a5ece;
           transform: scale(1.4);

    }
    #hidden:active{
        color: #ed1714;
    }
    #side_bar.show {
        display: block;
        left: 0; 
     

    }


}
@media screen and (max-width:700px){
      #side_bar{
  display: none;
    }
}
@media screen and (max-width:400px){
      #side_bar{
        display: none;
    }
}