/* common propoties*/
.momo-trust-display-regular {
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  font-style: normal;
}
a{
    text-decoration: none;
    color: black;
}
h5{
    display: block;
    margin-block-start: 0.1em;
    margin-block-end: 0.1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: lighter;
    unicode-bidi: isolate;
}
h6 {
    display: block;
    font-size: 0.67em;
    margin-block-start: 0.1em;
    margin-block-end: 0.1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: lighter;
    unicode-bidi: isolate;
}

body{
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
    height: fit-content;
}
/* ======================header=================================================================================================*/
.header{
  
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
 
}
.main-content{
    display:flex;
    justify-content: center;
    justify-content: space-between;
}
.main-content .nav{
    display: flex;
    align-items: center;
}
.nav a{
    padding: 10px;
}
.button{
    display : inline-block;
    padding : 7px 17px;
    color:aliceblue;
    margin-top:auto; 
    margin-bottom: auto;
    border-radius: 5%;
    background-color: black;
    margin-left: 40px;
}
.header .button{
    margin-left: 4%;
    margin-right: 2%;
}
.button:hover{
    transition: 0.5s;
    background-color: dimgray;
}
.main{
    display:flex;
}
.searchAndTag{
    display:flex;
    justify-content:space-between;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f6f6f6;
    h1 { text-align: center; }
}
#search {
    display: block;
    margin: 15px auto;
    width: 280px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #aaa;
}
.searchAndBrand{
    display: flex;
    padding: 8px 12px;
}
.searchAndBrand .button{
    border-radius: 6px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px auto;
    justify-content:left;
}

.tag-btn {
    font-family:"Momo Trust Display", sans-serif;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #888;
    cursor: pointer;
    background: white;
    transition: 0.2s;
}

.tag-btn.active {
    background: black;
    color: white;
}

.product-list {
    display:flex ;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: space-between;
}

.product {
    margin: 0.1% ;
    padding: 5px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align:left;
    width: 14%;
    height: fit-content;
    padding-top:5px;
    h3 {
        margin-left: 2%;
        margin-block-start: 0.5em;
        margin-block-end: 0.5em;
    }
    p {
        margin-left: 2%;
        margin-block-start: 0.5em;
        margin-block-end: 0.5em;
    }
    cursor: pointer;
}

.product img {
    width: 100%;
    border-radius: 1%;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    gap: 6px;
}

.page-btn {
    padding: 7px 14px;
    border: 1px solid #444;
    background: #fff;
    cursor: pointer;
    border-radius: 5px;
}

.page-btn.active {
    background: #000;
    color: #fff;
}

.no-result {
    text-align: center;
    margin-top: 40px;
    font-size: 20px;
}
.product_page{
    display: flex;
    height: fit-content;
}
.product_detail{
    width: 40%;
    margin-left:50px;
    margin-top:50px;
    margin-bottom: 10px;
    margin-right: 10px;
    padding-right: 25px;
    border-right: 1px solid black;    
}
.product_detail .large_product_img{
    position: relative;
}
.product_detail .large_product_img img{
    width: 100%;
    cursor: pointer;
}
.product_detail .small_product_img{
    display: flex;
    justify-content: space-between;
}
.product_detail .small_product_img img{
    width:24%;
    margin-top:5px;
    cursor: pointer;   
}
#productDes{
    white-space: pre-wrap;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: rgb(240, 240, 240);
    padding:5px;

}
.product_page .product_des{
    padding:50px;
    width:50%;
    input{width:40px; height: 20px;margin:10px;margin-left: 0px;}
    h2{
        background-color: rgb(240, 240, 240);
    }

}

.footer_main{
    width: 98.5%;
    height:180px;
    padding:10px;
    margin-top: 10px;
    border-top: 1px solid black;
    display:flex;
    h1{
        height: 70%;
        width: 13.8% ;
        border-right: 1px solid black;
        padding:10px;

    }
}
.footer_main .contact_box{
    margin-left: 30px;
    margin-right: 30%;
}
.cart{
    display:flex;
    width:80%;
    justify-content: space-between;
}
/*=====================slider===============================*/
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 20px;
}
.prev{
    left: 0%;
}
.next{
    right: 0%;
}
.hideImg{
    width: 200px;
    display: none;
}
.chart{
    width: 100%;
    display: flex;
    justify-content: space-between;
}
#chartContainer {
    width: 29%;
    padding: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#ratingContainer {
    width: 60%;
    max-width: 400px;
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.related-products-container {
    margin-top: 30px;
    overflow: hidden;
}

.slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
}

.product-card {
    max-width: 250px;
    min-width: 150px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.product-card img {
    width: 80%;
    border-radius: 8px;
}
/* ================================================================================================== MOBILE============== */
@media(max-width:800px) {
.searchAndTag{
    display:block;
    button{font-size: xx-small;}
    input{font-size: xx-small;}
}
.searchAndBrand{
    display: flex;
}
.searchAndBrand .button{
    font-size: xx-small;
}
.prev, .next {
    position: absolute;
    top: 89%; ;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.099);
    color: rgba(42, 42, 42, 0.453);
    border: none;
    border-radius: 20px;
    padding: 10%;
    cursor: pointer;
    font-size: 20px;
    touch-action: manipulation;
}
.prev{
    left: 0%;
    padding-right: 10%;
    padding-left: 10%;
}
.next{
    right: 0%;
    padding-right: 10%;
    padding-left: 10%;
}
    .footer_main{
            font-size: xx-small;
            width: 98%;
            height:150px;
            padding:10px;
            margin-top: 10px;
            border-top: 1px solid black;
            display:flex;
            h1{
                padding:5px;
                padding-right: 10px;
            }
            img{
                width: 0px;
                height: 0px;
            }
    }
    .chart{
        width: 100%;
        display:block
    }
    #chartContainer {
        width: 100%;
        height: 200px;
        margin-bottom: 10px;
    }
    #ratingContainer{
        width: 100%;
    }
    /*========================================================================product page==================*/
    .product{
        width: 30%;
        font-size: 40%;
    }
    .product_page{
    box-sizing: border-box;
    display: block;
    height: fit-content;
    width: 98%;
    }
    .product_detail{
    width: 100%;
    padding:0px;
    margin:0px;
    border-right: none;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid black; 
    }
    .product_page .product_des{
        padding:0px;
        width:97%;
        font-size: x-small;
    }
    .product_page .product_des .button{
        font-size: 70%;
    }
}
@media(max-width:500px) {
    .header{
        font-size: 10px;
        width: 98%;
    }
    .header .nav{
        display: flex;
        font-size: 10px;
        a{ padding: 5px;}
    }
    .product_page .product_des .button{
        font-size: 80%;
        margin:0px;
    }

    /* ==== ==================================================================================footer ================================*/
    .footer_main{
        font-size: xx-small;
        width: 98%;
        height:150px;
        padding:10px;
        margin-top: 10px;
        border-top: 1px solid black;
        display:flex;
        h1{
            padding:5px;
            padding-right: 10px;
        }
        img{
            width: 0px;
            height: 0px;
        }
    }
    .footer_main .contact_box{
        display:block;
        margin-left:10%;
        margin-right: 0px;
        font-size: 80%;
 
    }
}

