/*  ------------------  for all tag  --------------------  */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: def;
    list-style: none;
    scroll-behavior: smooth;
}
/*  ------------------  font  --------------------  */
@font-face {
    font-family: def;
    src: url(../fonts/Vazir-Bold.ttf);
}


/*  ------------------  scrollbar  --------------------  */
::-webkit-scrollbar{
    background-color: rgb(0, 0, 0);
    width: 5px;

}
::-webkit-scrollbar-thumb{
    background-color: rgb(66, 233, 149);
}
header, footer ,main{
    width: 100%;
}
header{
    height: 15vh;
    display: flex;
    justify-content: start;
    background-color: rgb(33, 33, 34);
    align-items: center;
}
header .nav-bar{
    width: 100%;
    height: 15vh;
    background-color: rgb(33, 33, 34);
    padding: 2rem  ;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 300;
    transition: .7s;
}
header .r_menu a , .l_menu a{
    color: rgb(138, 138, 138);
    text-decoration: none;
    padding: .5rem .5rem;
    margin:  0 .5rem ;
    font-size: 14px;
}
header .r_menu a:hover , .l_menu a:hover{
    color:rgb(252, 252, 252);
}
.r_menu{
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}
.r_menu .berger_menu_icon{
    margin: .5rem 1rem;
    cursor: pointer;
    display: none;
}
.berger_menu_icon{
    margin: .5rem 1rem;
    cursor: pointer;
}
body .berger_menu{
    display: none;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: .5rem;
    z-index: 500;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    backdrop-filter: blur(20px);
    background-color: rgba(57, 57, 58, 0.349);
}
.berger_menu .exit_berger{
    margin-top: 2rem;
    width: 30px;
}
.berger_menu .exit_berger i{
    background-color: rgba(17, 18, 19, 0.568);
    border-radius: 50%;
    padding: .5rem;
    
    
}
.berger_menu .menu{
    margin: 1rem 1rem 2rem 3rem;
}
.berger_menu .menu ul {
    display: flex;
    margin: 0 !important;
    gap: 0.5rem;
    flex-direction: column;
}
.berger_menu .menu li{
    padding:.5rem;
    cursor: pointer;
}
.berger_menu .menu li  a{
   margin-right: 1rem;
   color: aliceblue;
}
.footer .menu_respon{
    display: none;
}
.r_menu .entry-sing{
    display: flex;
    justify-content: center;
    align-items: center;
}
.r_menu .logo{
    font-size: 12px;
}
.logo{
    color: rgb(241, 198, 78);
    display: flex;
    align-items: center;
}
.logo h5{
    margin: 0 !important;
    text-shadow: 2px 2px 10px rgb(0, 0, 0);
}
.menu {
    margin-right: 2rem;
    display: flex;
    align-items: center;
}
.menu ul{
    display: flex;
    margin: 0 !important;
    gap: .5rem;
}
.menu li{
    display: flex;
    align-items: center;
    padding: 0 .5rem;
}
.menu li:hover{
    color: rgb(255, 255, 255);
    text-decoration: none;
    background-color: rgb(26, 25, 25);
    border-radius: 3rem;
    box-shadow: 0px 0px 5px rgb(59, 59, 59);
}
.l_menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
}
.l_menu .reg-log{
    display: flex;
    justify-content: center;
    align-items: center;
}
.l_menu .search{
    display: flex;
    margin-left: .5rem;
}
.l_menu .search form{
    width: 100%;
    display: flex;
    align-items: center;
    padding: .5rem 1rem .5rem .5rem;
    background-color: rgb(20, 19, 20);
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}
.l_menu .search form input{
    width: 100%;
    padding: 2px;
    background-color: transparent;
    border: none;
    outline: none;
    color: aliceblue;
    font-size: 14px;
}
.l_menu .entry-sing{
    padding: 2px 0;
    border: 1px solid rgb(112, 112, 112);
    border-radius: 2rem;
}
.l_menu .user-panel{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.l_menu .user-panel .sub-menu{
    width: 200px;
    position: absolute;
    flex-direction: column;
    margin:0;
    right: 15px;
    top: 65px;
    background-color: rgba(255, 255, 255, 0.89);
    z-index: 50;
    border-radius: 15px;
    transition: max-height .5s;
    max-height:0px;
    overflow: hidden;
}
.l_menu .sub-menu.open-menu{
    max-height: 260px;
}
.l_menu .user-panel ul li{
    font-size: 13px;
    display: flex;
    justify-content: start;
    align-items: center;
    padding-right: 1rem;
    position: relative;
    color: gray;
}
.user-dashboard{
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}
.user-dashboard .shop-item{
    margin-left: 6rem!important;
}
.user-dashboard ul li a{
    width: 100%;
    color: rgb(114, 114, 114);
    text-decoration: none;
    background-color: transparent;
    border-radius: 15px ;
    padding: 1rem 1rem ;
    margin: 0;

}
.user-dashboard ul li:hover{
    width: 100%;
    color: black;
    text-decoration: none;
    margin: 0;
}
.user-dashboard ul li:hover a{
    color: black;
} 
.l_menu .u-image{
    margin-right: 1rem;
    margin-left: 1rem;
    width: 55px;
    height: 55px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.l_menu img{
    width: 180%;
}
.l_menu .big-image{
    width: 165px;
    height: 100px;
    margin-top: .5rem;
    border-radius: 5px;
    background-position: center;
    background-size: cover;
}
.l_menu .big-image img{
    width: 100%;
}
.l_menu .user-name{
    position: absolute;
    top: 5rem;
    right: 1.5rem;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
}
.l_menu .user-panel .user-name{
    margin-left: 4rem;

}
.l_menu .user-dashboard .order_card{
    position: absolute;
    width: 400px;
    top: 10vh;
    left: 0;
    background-color: rgb(225, 225, 212);
    padding: 0rem;
    border-radius: 12px;
    transition: max-height .5s;
    max-height: 0;
    overflow: hidden;
}
.l_menu .order_card.open-card{
    max-height: 450px;
    padding: 1rem;
}
div .items-box{
    width: 100%;
    overflow: auto;
    max-height: 275px;
}
.order_card .go-to{
    width: 100%;
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content:end;
    align-items: end;
}

.order_card .card-shop{
    width: 100%;
    text-align: center;
}
.card-shop h3{
    font-size: 16px;
}
.order_card a{
    color: aliceblue;
    background-color: rgb(255, 69, 116);
    text-align: center;
    margin: 1rem 0 0 0 !important;
    padding: .5rem !important;
    text-decoration: none;
    border-radius: 6px;
}
.order_card a:hover{
    background-color: rgb(8, 153, 73);
    text-decoration: none;
    margin: 1rem 0 0 0  !important;
    padding: .5rem !important;
}
.order_card .card-item {
    width: 100%;
    background-color: rgb(247, 243, 230);
    margin-bottom: 1rem;
    padding: .5rem;
    display: flex;
    justify-content: start;
    align-items: center;
    box-shadow:2px 2px 7px #b4a7a7;
    border-radius: 5px;
}
.card-item .image{
    width: 120px;
    height: 90px;
    overflow: hidden;
    display: flex;
    align-items: start;
    justify-content: center;
    border-radius: 5px;
    margin-left: 1rem;
}
.card-item .iamge img{
    width: 120%;
}
.card-item .card-dis{
    width: 250px;
}
.card-item .card-dis .item-row{
    width: 100%;
    padding-bottom: .5rem;
}
.card-dis .offer-row{
    background-color: rgb(255, 48, 48);
    padding: .5rem ;
    display: flex;
    align-items: center;
    border-radius: 5px;
    color: aliceblue;
}

/*          ------------------     MAIN       ----------------------      */
main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    min-height: 78vh;
    position: relative;
}
main .scrollup{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    backdrop-filter: blur(5px);
    box-shadow:1px 1px 10px rgb(194, 192, 192);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: azure;
}

/* --------------------------   ****    resposive dasboard   *****    ---------------------------- */

/* -------------- header  */

@media only screen and (max-width: 1465px) {
    header a{
        font-size: 12px;
    }
}
@media only screen and (max-width: 1415px) {
    

}
@media only screen and (max-width: 1315px) {
  
}
@media only screen and (max-width: 1215px) {
    header .nav-bar {
        justify-content: space-around;
    }
    .l_menu{
        width: 80%;
        justify-content: space-between;
    }
    .r_menu .menu{
        display: none;
    }
    .footer .menu_respon{
        background-color: rgba(246, 246, 248, 0.699);
        backdrop-filter: blur(20px);
        position: fixed;
        bottom: 0;
        height: 10vh;
        display: flex;
        border-top-left-radius: 2rem;
        border-top-right-radius: 2rem;
        justify-content: space-around;
        align-items: center;
        flex-direction: row;
        width: 80%;
        margin: 0 auto;
    }
    .menu_respon a{
        color: rgba(0, 0, 0, 0.514);
    }
    .menu_respon a:hover{
        color: rgb(0, 0, 0) !important;
    }
    .menu_respon i{
        color: black;
    }
    .menu_respon {
        margin-right: 2rem;
        display: flex;
        align-items: center;
    }
    .menu_respon ul{
        display: flex;
        margin: 0 !important;
        gap: 3rem;
    }
    .menu_respon li{
        display: flex;
        align-items: center;
        padding: .5rem 1rem;
    }
    .menu_respon li:hover{
        text-decoration: none;
        border-radius: 3rem;
        box-shadow: 0px 0px 5px rgb(252, 252, 252);
    }

}
@media only screen and (max-width: 900px) {
    
    /* ------------- respon menu */
    .footer .menu_respon{
        width: 80%;   
    }
    .menu_respon ul{
        display: flex;
        margin: 0 !important;
        gap: 1rem;
    }
    .menu_respon li{
        display: flex;
        align-items: center;
        padding: .5rem 1rem;
    }
}
@media only screen and (max-width: 750px) {

    /* ------------- respon menu */
    header .nav-bar{
        justify-content: space-between;
    }
    .r_menu .berger_menu_icon{
        display: flex;
    }
    .footer .menu_respon{
        display: none;
    }
    .l_menu{
        justify-content: end;
        width: max-content;
    }
    .l_menu .search{
        display: none;
    }
    .footer .menu_respon{
        width: 80%;   
    }
    .menu_respon ul{
        display: flex;
        margin: 0 !important;
        gap: .5rem;
    }
    .menu_respon li{
        display: flex;
        align-items: center;
        padding: .5rem;
    }
}
@media only screen and (max-width: 500px) {
    .l_menu .user-panel .sub-menu {
        width: 150px;
    }
    .l_menu .big-image {
        width: 100%;
        height: 50px;
    }
    .l_menu .user-name {
        position: absolute;
        top: 3rem;
        font-size: 14px;
        right: 1.5rem;
        text-shadow: 2px 2px 5px rgb(0, 0, 0);
    }
    .l_menu .user-panel ul li {
        padding: .5rem .5rem 0 .5rem;
    }
    .l_menu .user-panel ul li a{
        font-size: 11px;
    }
    .user-dashboard .shop-item {
        margin-left: 2rem!important;
    }
}
@media only screen and (max-width: 400px) {
    header .l_menu .reg-log a{
        font-size: 11px;
        padding: 2px;
    }    
    header .r_menu .logo h5{
        font-size: 13px;
    }    
}
