@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazir.eot");
    src: url("../fonts/Vazir.eot?#iefix") format("embedded-opentype"),
    url("../fonts/Vazir.woff2") format("woff2"),
    url("../fonts/Vazir.woff") format("woff"),
    url("../fonts/Vazir.ttf") format("truetype");
}

body {
    font-family: "Vazir" !important;
}
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style-type: none;

}

.header {
    position: fixed;
    /*position: relative;*/
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

::after,::before{
    box-sizing: border-box;
}
.container-header{
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 9999px;
    background: rgba(81, 81, 81, 0.8);

}


@media (max-width: 1100px) {
    .container-header{
        max-width: 900px;
    }
}
@media (max-width: 950px) {
    .container-header{
        max-width: 800px;
    }
}
@media (max-width: 850px) {
    .container-header{
        max-width: 700px;
    }
}
@media (max-width: 750px) {
    .container-header{
        max-width: 600px;
    }
}
@media (max-width: 650px) {
    .container-header{
        max-width: 550px;
    }
}
@media (max-width: 550px) {
    .container-header{
        max-width: 450px;
    }
}
@media (max-width: 450px) {
    .container-header{
        max-width: 350px;
    }
}
@media (max-width: 400px) {
    .container-header{
        max-width: 300px;
    }
}


.header-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


.header .item-center{

}
.header .item-right{
    display: flex;
    align-items: center;
}
.header .item-center{
    display: flex;
    align-items: center;
}


.menu > ul > li{
    display: inline-block;
    line-height: 50px;
    margin-left: 25px;
}
.menu > ul > li > a{
    text-decoration: none;
    color: black;
}
.main-menu > .item-color{
    color: white; !important;
}
.sub-menu{
    position: absolute;
    margin-top: 10px;
    padding: 10px;
    z-index: 500;
    background-color: white;
    box-shadow: 0 0 10px #606060;

    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    border-radius: 20px;
}
.sub-menu > ul > li{
    list-style-type: none;
}
.single-column-menu{
    min-width: 280px;
    max-width: 350px;
}
@media (min-width: 992px) {
    .menu-items-has-children:hover .sub-menu{
        visibility: visible;
        opacity: 1;
        margin-top: 0;
    }
}
.mega-menu-column-4{
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 30px 15px;

}
.mega-menu{
    left: 50%;
    transform: translateX(-50%);
}
.mega-menu-column-4 .list-items{
    flex: 0 0 25%;
    padding: 0 15px;
}
.title{
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 0;
}
.list-items > a{
    text-decoration: none;
    color: black;
}
.list-items > ul > li > a{
    color: black;
}
.list-items > h4{
    color: #1E6F5C;
}
.list-items img{
    width: 100%;
}
.list-items > ul > li{
    line-height: 1;
    display: block;
}
.list-items > ul > li > a{
    text-decoration: none;
    font-size: 15px;
    padding: 10px 0;
    display: inline-block;
}
.mobile-nav-trigger, .mobile-menu-head{
    display: none;
}
.header .item-center .menu > ul > li > a{
    position: relative;
}
.list-title{

}
.bottom-nav-fixed{
    display: none;
}

@media (max-width: 991px) {
    .container-header{
        padding: 10px 15px;
    }
    .header-color{
        color: #1E6F5C; !important;
    }

    .header .item-center{
        order: 3;
        flex: 0 0 100%;
    }
    .header .item-right{
        /*order: 2;*/

    }
    .header .item-left,
    .header .item-right{
        flex: 0 0 auto;
    }
    .v-center{
        justify-content: space-between;
    }

    .mobile-nav-trigger{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
    }


    .mobile-nav-trigger span::before{
        transform: translateY(-6px);
    }
    .mobile-nav-trigger span::after{
        transform: translateY(6px);
    }
    .header .menu{
        position: fixed;
        top: 0;
        Right: 0;
        background-color: #fff;
        width: 300px;
        height: 100%;
        overflow: hidden;
        /*box-shadow: 0 0 15px #ccc;*/
        z-index: 999;
        transform: translateX(100%);
    }
    .header .menu.active{
        transform: translateX(0);
        transition: all 0.3s ease-in-out;
    }
    .header .item-center .menu > ul > li{
        display: block;
        line-height: 1;
        margin: 0;
    }
    .header .item-center .menu > ul > li > a{
        line-height: 50px;
        height: 50px;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .header .item-center .menu > ul > li > a i{
        position: absolute;
        height: 50px;
        width: 12px;
        top: 0;
        left: 10px;
        transform: rotate(90deg);
        line-height: 50px;

    }
   .mobile-menu-head{
        display: flex;
        height: 50px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        align-items: center;
        justify-content: space-between;
        position: sticky;
        background-color: #fff;
        z-index: 501;
    }
    .go-back{
        width: 50px;
        height: 50px;
        line-height: 50px;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        text-align: center;
        cursor: pointer;
        display: none;
    }
    .mobile-menu-head.active .go-back{
        display: block;
    }
    .mobile-menu-close{
        width: 50px;
        height: 50px;
        line-height: 50px;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        text-align: center;
        cursor: pointer;
    }
    .header .menu .main-menu{
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .header .item-center .menu  ul  li .sub-menu,
    .sub-menu.mega-menu{
        position: absolute;
        visibility: visible;
        opacity: 1;
        margin: 0;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        padding: 15px;
        padding-top: 65px;
        display: none;
        transform: translateX(0%);
        overflow-y: auto;
    }
    .header .item-center .menu  ul  li .sub-menu.active{
        display: block;
    }
    @keyframes slideInLeft {
        0%{
            opacity: 0;
            transform: translateX(100%);
        }
        100%{
            opacity: 1;
            transform: translateX(0%);
        }

    }
    @keyframes slideInRight {
        0%{
            opacity: 1;
            transform: translateX(0%);
        }
        100%{
            opacity: 0;
            transform: translateX(100%);
        }

    }
    .mega-menu-column-4 .list-items{

        flex: 0 0 100%;
        padding: 0;
    }
    .single-column-menu{
        min-width: none;
        max-width: none;
    }
    .mega-menu-column-4 .list-items > ul > li > a{
        display: block;
    }
    .mega-menu-column-4 .list-items > ul{
        margin-bottom: 20px;
    }
    .mega-menu-column-4 .list-items > h4{
        margin-right: 7px;
        /*margin-bottom: 10px;*/
    }
    .overlay{
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        visibility: hidden;
        opacity: 0;
        transition: all .3s ease;
    }
    .overlay.active{
        visibility: visible;
        opacity: 1;
    }
    .navbar-brand{
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .bottom-nav-fixed{
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
    }
    .bottom-nav{
        width: 100%;
        height: 10vh;
        /*border-radius: 20px 20px 0 0;*/
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
        padding: 0 20px;
        background-color: white;
        border-radius: 20px 20px 0 0;
    }
    .bottom-nav i{
        color: #1E6F5C;

    }
    .hidden-mobile{
        display: none;
    }
    footer{
        margin-bottom: 10vh;
    }
}

.icon-body{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.search-overlay{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}
.search-overlay.active{
    visibility: visible;
    opacity: 1;
}

.search-popup{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}
.search-popup.active{
    visibility: visible;
    opacity: 1;
}
.search-popup .form-group{
    width: 100%;
    position: relative;
}
.search-popup .form-group input{
    width: 100%;
    height: 60px;
    border: none;
    outline: none;
    border-radius: 30px;
    padding: 0 20px 0 90px;
    box-sizing: border-box;
}
.submit-btn{
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    height: 60px;
    background-color: #1E6F5C;
    border: none;
    color: white;
    font-size: 18px;
    border-radius: 30px 0 0 30px;
}
@media (max-width: 600px){
    .search-popup{
        max-width: 300px;
    }
    .search-popup .form-group input{
        height: 45px;
    }
    .submit-btn{
        height: 45px;
        width: 50px;
    }
}



.mega-menu-column-4 .list-items h4 i{
    opacity: 0;
}

@media (max-width: 991px) {

    /* همه ul ها مخفی باشند */
    .mega-menu-column-4 .list-items ul {
        display: none;
    }

    /* وقتی فعال شود نمایش داده شود */
    .mega-menu-column-4 .list-items ul.active {
        display: block;
    }

    /* h4 قابل کلیک شود */
    .mega-menu-column-4 .list-items h4 {
        cursor: pointer;
        padding: 12px 0;
        font-size: 17px;
    }
    .mega-menu-column-4 .list-items h4 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 12px 0;
        font-size: 15px;
        /*border-bottom: 1px solid #b2aeae;*/
    }

    .mega-menu-column-4 .list-items h4 i {
        transition: transform 0.3s ease;
        font-size: 16px;
    }
    .mega-menu-column-4 .list-items h4 i{
        opacity: 1;
    }

    /* چرخش فلش هنگام باز شدن */
    .mega-menu-column-4 .list-items h4.active i {
        transform: rotate(180deg);
    }

    /* انیمیشن باز شدن */
    .mega-menu-column-4 .list-items ul {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 1s ease, opacity 1s ease;
    }

    .mega-menu-column-4 .list-items ul.active {
        max-height: 500px;
        opacity: 1;
    }

}
/*new*/
footer{
    padding: 80px 13% 70px;
    background-color: #1E6F5C;

}
.footer{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 3.5rem;

}
.footer-content li{
    margin-bottom: 16px;
}
.footer-content li h4{
    color: white;
}
.footer-content li a{
    display: block;
    color: darkgrey;
    text-decoration: none;
    transition: all .4s ease;
}
.footer-content li a:hover{
    transform: translateY(-3px) ;
}
.footer-content p{
    font-size: 16px;
    color: white;
    line-height: 30px;
    margin: 20px 0;
}
.icons a{
    display: inline-block;
    font-size: 22px;
    color: white;
    margin-left: 17px;
    transition: all .4s ease;
}
.icons a:hover{
    transform: translateY(-5px) ;
}
@media (max-width: 1690px){
    footer{
        padding: 50px 5% 40px;
    }
}
.menu-desktop {
    position: relative;
}

/* سطح اول */
.sub-menu-desktop {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: rgba(0, 0, 0, 0.6);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    z-index: 100;
}

.menu-desktop:hover > .sub-menu-desktop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* سطح دوم */
.sub-menu-desktop li {
    position: relative;
}

.sub-menu-level-2 {
    position: absolute;
    top: 0;
    right: 100%;
    min-width: 180px;
    background: rgba(0, 0, 0, 0.6);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;

    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.sub-menu-desktop li:hover > .sub-menu-level-2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* لینک‌ها */
.sub-menu-desktop a,
.sub-menu-level-2 a {
    display: block;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
}
.menu-desktop .menu-link{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
}



.navbar-brand img{
    height: 40px;
}

.container-header{
    margin-top: 15px;
}

@media (max-width: 768px) {
    .container-header{
        margin-top: 5px;
    }
    .navbar-brand img{
        height: 35px;
    }
}

@media (max-width: 576px) {
    .container-header{
        margin-top: 0px;
    }
    .navbar-brand img{
        height: 25px;
    }
}


ul{
    margin-bottom: 0;!important;
}
.discount-shop{
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: red;
    color: white;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: clamp(10px, 1vw, 14px);
    z-index: 10;
}
.bottom-nav a{
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
}
.bottom-nav span{
    text-align: center;
    margin-top: 10px;
}
.bottom-nav p{
    color: #1E6F5C;
    font-size: 12px;
    padding: 0;
}





