.header {
    min-height: 190px;
    display: flex;
    align-items: center;
    background: var(--white);
    direction: rtl !important;
}

.Main-Menu li {
    margin-left: 10px;
}

.Main-Menu li.active {
    border-bottom: 1px solid;
}

#PageMenu li.dropdown:hover>ul.dropdown-menu{
    display: block;
}

#PageMenu li.dropdown::after{
    content: "\f107";
    font: normal normal normal 14px/1 FontAwesome;
}

#PageMenu li.dropdown>ul.dropdown-menu{
    left: auto;
    right: 0;
    padding: 0.5rem 1rem;
    text-align: right;
    margin: 0;
}

.header .menu .navbar-out {
    height: 100%;
}

.header .menu .navbar {
    padding: 0;
    height: 100%;
}

.header__Category .btnStyle_Primary:focus .WbIcon_Sm,
.header__Category .btnStyle_Primary:hover .WbIcon_Sm {
    background-color: white;
    background-image: none !important;
}

.header__CallUs .WbIcon_Sm {
    background: var(--mc1);
}

header #PageMenu {
    width: 100%;
}

header #PageMenu .nav-pills {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.header .WbIcon_Sm {
    background: var(--mc1);
}

/* -------------------------------------------------------------------------- */
/*                                  drop down                                 */
/* -------------------------------------------------------------------------- */

.wb-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 1rem;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: right;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: var(--border-radius-sm);
    opacity: 0;
    transform: translateY(20%);
    transition: all ease-in .3s;
    pointer-events: none;
}

.wb-dropdown-menu .nav-pills {
    flex-direction: column;
}

.wb-dropdown-menu .nav-pills li {
    margin-bottom: .5rem;
}

.wb-dropdown-menu.active {
    opacity: 1;
    transform: translateY(0);
    transition: all ease-in .3s;
    pointer-events: auto;
}

.wb-dropdown {
    position: relative;
}

.wb-dropdown i {
    font-size: inherit;
    color: inherit;
}

/* -------------------------------------------------------------------------- */
/*                                  Ajax Basket                               */
/* -------------------------------------------------------------------------- */

.AjaxMiniCartWrapper .icon-cart {
    background: url(../Images/basket.svg) no-repeat center;
    width: 1.5rem;
    height: 1.5rem;
    max-width: unset;
    margin: 0;
    background-size: 24px !important;
    background-position: center left;

}

.AjaxMiniCartWrapper svg {
    display: none;
}

.AjaxMiniCartWrapper #cart {
    padding: 0;
}

.AjaxMiniCartWrapper #cartNum .num {
    top: 0%;
    right: auto;
    transform: translate(+50%, -50%);
    background-color: var(--mc3);
    color: var(--tc1);
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: "IranYekan";
    color: var(--white);
}



.AjaxMiniCartWrapper .cartInfo {
    left: 0;
    right: auto;
    z-index: 999;
    padding-top: 1rem !important;
    top: 25px !important;
}

.AjaxMiniCartWrapper .cartInfo-wrap:after {
    left: 12px;
    right: auto;
}

/* -------------------------------------------------------------------------- */
/*                                 HEADER SEARCH                              */
/* -------------------------------------------------------------------------- */

.header__Search__Content {
    width: 100%;
    position: absolute;
    bottom: -1px;
    left: 0;
    background-color: #fff;
    display: none;
}

.header__Search__Content.active {
    display: block;
}

.ModWBAdvanceSearchC {
    width: 100%;
    /* max-width: 600px; */
    margin: 0 auto;
    height: auto;
}

.headerSearch__Content::before {
    content: '';
    display: block;
    position: fixed;
    width: 100%;
    height: calc(100% - 80px);
    background: rgba(29, 43, 71, 0.8);
    left: 0;
    bottom: 0;
    z-index: -1;
}

.searchBoxContainer {
    position: relative;
}

.searchBoxContainer .search-icon {
    width: var(--icon-sm);
    height: var(--icon-sm);
    display: block;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    mask-image: url(/Portals/0/Images/search.svg);
    -webkit-mask-image: url(/Portals/0/Images/search.svg);
    mask-position: center;
    -webkit-mask-position: center;
    mask-size: cover;
    -webkit-mask-size: cover;
    background: var(--mc1);
}

.searchBoxContainer .closeBtn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.searchBoxContainer .closeBtn img {
    width: 20px;
    height: 20px;
}

.searchBoxContainer .search-icon::before {
    display: none;
}

#txtAdvanceSearch {
    padding: 0.5rem 1.5rem;
    padding-left: 42px;
    text-indent: 0;
    border-radius: 0;
    border: unset;
    box-shadow: unset;
    height: 57px;
    border-radius: var(--border-radius-sm);
    border: solid 1px #e7e7e7;
    color: var(--tc1) !important;
    max-height: 3rem;
}

#txtAdvanceSearch::placeholder {
    color: #b2b2b2 !important;
}


#resultAdvanceSearch {
    box-shadow: 0 5px 10px 0px #d2d2d240;
}

#resultAdvanceSearch .category-content,
#resultAdvanceSearch .product-content,
.search-result .category-content .search-name,
.search-result .product-content .product-name {
    color: var(--tc1);
    text-transform: capitalize;
}

#resultAdvanceSearch .product-content img {
    border: 1px solid #dadada;
    border-radius: 5px;
    margin-right: 5px;
}


/* header category Drop */

.header__Category {
    margin-left: 1.5rem;
    position: relative;
}

.headerCtg-out {
    position: absolute;
    padding-top: 2rem;
    top: 100%;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(10px);
}

.headerCtg-inner {
    min-width: 57rem;
    min-height: 25rem;
    background: white;
    display: flex;
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.headerCtg-inner > #dnn_HeaderCategoryPane {
    min-width: 700px;
}

.header__Category_inner:hover .headerCtg-out {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.header__ProductCtg {
    position: relative;
}

.header__Category_inner .SCat-Main {
    width: 30%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* .header__ProductCtg .SCat-Main > .SCat-have-sub-menu > .SCat-sub-menu > .SCat-have-sub-menu > ul.SCat-sub-menu {
    display: none;
} */

.header__ProductCtg .SCat-Main > .SCat-have-sub-menu > .SCat-sub-menu > .SCat-have-sub-menu:has(.SCat-sub-menu)>a {
    display: block;
    margin-bottom: 0.25rem;
}

.header__ProductCtg .SCat-Main > .SCat-have-sub-menu > .SCat-sub-menu > .SCat-have-sub-menu > ul.SCat-sub-menu a {
    display: flex;
    align-items: center;
}

.header__ProductCtg .SCat-Main > .SCat-have-sub-menu > .SCat-sub-menu > .SCat-have-sub-menu > ul.SCat-sub-menu a::before {
    content: "";
    width: 4px;
    height: 4px;
    background-color: #b2b2b2;
    margin-inline-end: 0.75rem;
    border-radius: 50%;
}

.header__ProductCtg .SCat-Main > li {
    padding: 0.5rem 0rem;
    color: #242424;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 2rem !important;
}

#MENU .SCat-Main > li:not(.page__Item) {
    border-top: 1px dashed var(--mc3);
}

#MENU .SCat-Main > li.page__Item {
    border-bottom: 1px dashed var(--mc3);
}

#MENU .SCat-Main > li:first-of-type,
#MENU .SCat-Main > li:last-of-type {
    border: none;
}

#MENU .SCat-Main > li {
    transition: var(--transition);
    border-bottom: 1px solid #00000000;
}
#MENU .SCat-Main > li.SCat-have-sub-menu::after  {
    content:"\f104";
    font-family: "FontAwesome";
    font-weight: bold;
}

.header__ProductCtg .SCat-Main > li:hover {
    color: var(--mc3);
}

:not(.sideProductList) > .header__ProductCtg .SCat-Nav:not(.home__ctgSlider) .SCat-Main > li.SCat-have-sub-menu::after {
    content: '\f104 ';
    font-family: 'FontAwesome';
    font-weight: bold;
    transition: var(--transition);
}

.header__ProductCtg .SCat-Main > li:hover::after {
    color: var(--mc3);
}

.header__ProductCtg .SCat-Main > li:first-child {
    padding: 0 0 0.25rem;

}

/* ****change */
.header__Category_inner .SCat-Main > li.SCat-have-sub-menu > ul.SCat-sub-menu {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: calc(100% - 2rem);
    color: #b2b2b2;
    opacity: 0;
    visibility: hidden;
    padding: 1rem 0.5rem 0rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.header__ProductCtg .SCat-Main > li.SCat-have-sub-menu > ul.SCat-sub-menu > li .WbIcon {
    display: none;
}

/* ***change */
.header__Category_inner .SCat-Main > li > .category__Title {
    position: absolute;
    top: 0;
    left: 0;
    height: 2rem;
    width: calc(70% - 0.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #B2B2B2;
    opacity: 0;
    visibility: hidden;
    color: #242424;
}

.header__Category_inner .SCat-Main > li > .category__Title > a {
    color: var(--mc3);
}

.header__Category_inner:hover .SCat-Main > li.SCat-have-sub-menu.hover > ul.SCat-sub-menu,
.header__Category_inner:hover .SCat-Main > li.hover > .category__Title {
    opacity: 1;
    visibility: visible;
}

.header__Category_inner .SCat-Main > li.SCat-have-sub-menu > ul.SCat-sub-menu > li {
    list-style: disc;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.header__ProductCtg .SCat-Main a {
    transition: var(--transition);
}

.header__ProductCtg .SCat-Main a:hover {
    color: var(--mc3);
}

.header__Category_Direct > ul > a:not(:last-child) {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px dashed #B2B2B2;
    display: flex;
    align-items: center;
}


/* end of header category drop  */
.header__Menu .nav > li > a{
    transition: var(--transition);
}

.header__Menu .nav > li:hover > a{
    color: var(--mc3);
}

/* -------------------------------------------------------------------------- */
/*                                 RESPONSIVE                                 */
/* -------------------------------------------------------------------------- */


@media (max-width:991px) {
    .header {
        min-height: 98px;
        position: sticky;
        top: 0;
        left: 0;
        transition: var(--transition);
        z-index: 100;
    }

    .page_scrolled.page__Scrolled_Down .header {
        top: -98px;
    }

    .Mobile-Menu-Icon {
        display: flex;
        flex-direction: column;
        width: 18px;
        height: 18px;
        cursor: pointer;
        position: relative;
        z-index: 99;
    }

    .Mobile-Menu-Icon .icon-bar {
        height: 3px;
        background-color: var(--mc1);
        transition: var(--transition);
        margin: 2px 0;
        width: 100%;
        border-radius: 10px;
    }

    .show-effect .Mobile-Menu-Icon .icon-bar:nth-child(1) {
        transform: rotatez(-45deg) translate(-6px, 6px);
        transform-origin: bottom;
    }

    .show-effect .Mobile-Menu-Icon .icon-bar:nth-child(2) {
        transform-origin: top;
        transform: rotatez(-45deg);
        width: 0;
        opacity: 0;

    }

    .show-effect .Mobile-Menu-Icon .icon-bar:nth-child(3) {
        transform-origin: bottom;
        transform: translate(-2px, -6px) rotatez(45deg);
    }


    .AjaxMiniCartWrapper .icon-cart {
        background-image: url(../Images/basket-white.svg);
        width: 2rem;
        height: 2rem;
    }



    /*------------------------------------------------*/
    /* End Mobile Menu */
    /*------------------------------------------------*/

    /*------------------------------------------------*/
    /* Start Submenu Menu */
    /*------------------------------------------------*/

    .Main-Menu li.dropdown > a:after {
        position: absolute;
        left: -15px;
        top: 5px;
        color: #fff;
    }

    .Main-Menu li.dropdown b:after {
        color: #fff;
    }

    .Main-Menu .nav.nav-pills > li.dropdown a {
        pointer-events: none;
    }

    .Main-Menu .nav-pills li.dropdown .dropdown-menu {
        position: relative;
        float: none;
        top: 0;
        background: transparent;
        text-align: center;
        display: none;
    }

    /*------------------------------------------------*/
    /* End Submenu Menu */
    /*------------------------------------------------*/


    .header__Search_Wrapper {
        width: 58%;
    }

    .header__Category_Wrapper {
        width: 25%;
    }

    /* header sideMenu in Mobile */

    .header__Logo {
        position: relative;
        display: flex;
        justify-content: start;
        padding: 1rem;
        padding-bottom: 2.5rem;
        background: var(--white);
    }

    .header__Login {
        padding: 0.5rem;
        border: solid 1px var(--mc3);
        color: var(--mc3);
        border-radius: var(--border-radius-sm);
    }

    .header__Login .WbIcon_Sm {
        background: var(--mc3);
    }

    .header__Middle {
        padding: 35px 0px;
    }

    .header__Logo img {
        width: 200px;
    }

    .header__MenuBtn {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-85%);
        background-image: url(/Portals/0/Images/close.svg);
        background-size: contain;
        width: 2rem;
        height: 2rem;
        background-size: 50%;
        background-position: center;
        background-repeat: no-repeat;
    }

    .Mobile-Menu-Icon .icon-bar {
        height: 2px;
        background-color: var(--mc2);
        transition: var(--transition);
        margin: 2px 0;
        width: 100%;
        border-radius: 10px;
    }

    .show-effect .Mobile-Menu-Icon .icon-bar:nth-child(1) {
        transform: rotatez(-45deg) translate(-6px, 6px);
        transform-origin: bottom;
    }

    .show-effect .Mobile-Menu-Icon .icon-bar:nth-child(2) {
        transform-origin: top;
        transform: rotatez(-45deg);
        width: 0;
        opacity: 0;
    }

    .show-effect .Mobile-Menu-Icon .icon-bar:nth-child(3) {
        transform-origin: bottom;
        transform: translate(-2px, -6px) rotatez(45deg);
    }

    .menu__ShadowBox {
        width: 100%;
        height: 120%;
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(131, 131, 131, 0.7);
        visibility: hidden;
        transition: var(--transition);
        opacity: 0;
        backdrop-filter: blur(0);
        z-index: 998;

    }

    .show-effect .menu__ShadowBox {
        background: rgba(0, 0, 0, 0.8);
        visibility: visible;
        opacity: 1;
        backdrop-filter: blur(2px);
    }

    .header__ProductCtg .SCat-Main {
        padding: 0rem 1rem;
        height: calc(100vh - 220px);
        max-height: calc(100vh - 220px);
        overflow-y: scroll;
        overflow-x: hidden;
    }

    .headerCtgList__Return.active {
        transform: translate(0);
    }

    .Main-Menu {
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        z-index: 102;
        min-width: 280px;
        width: 320px;
        z-index: 999;
        position: fixed;
        top: 0px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: #fff;
        align-content: flex-start;
        transition: var(--transition);
        height: 100vh;
        max-height: 100vh;
        padding-bottom: 20%;
        overflow-y: hidden;
    }

    .show-effect .Main-Menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0px);
        z-index: 999;
        overflow-x: hidden;
    }

    .page_Scrolled__Down .Main-Menu {
        transform: translate(100%, 100px);
    }

    .page_Scrolled__Down .show-effect .Main-Menu {
        transform: translate(0%, 100px);
    }

    .menu .nav.nav-pills {
        margin-right: 0px !important;
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        height: 100%;
    }

    .Main-Menu .nav.nav-pills > li {
        text-align: right;
        width: 100%;
        margin: 0px;
        /* padding: 8px 0; */
    }

    .header__Menu .nav > li > a {
        display: block;
        padding: 8px 0 !important;
        margin-bottom: 0;
    }

    .header__Menu .nav > li:not(:last-child) > a {
        border: unset;
        border-bottom: 1px dashed #E1E1E1;
        margin-left: 0;
    }

    .nav.nav-pills {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        width: 100%;
        padding: 0 15px;

    }

    .header .menu {
        height: 100%;
        justify-content: flex-start !important;
        align-items: center;
        line-height: normal;
        display: flex;
    }

    /* header sideMenu in Mobile End  */


    .Mobile-Menu-Icon {
        display: flex;
        flex-direction: column;
        width: 18px;
        height: 18px;
        cursor: pointer;
        position: relative;
        z-index: 99;
    }

    .Mobile-Menu-Icon .icon-bar {
        height: 3px;
        background-color: #4d4d4d;
        transition: var(--transition);
        margin: 2px 0;
        width: 100%;
        border-radius: 10px;
    }

    .show-effect .Mobile-Menu-Icon .icon-bar:nth-child(1) {
        transform: rotatez(-45deg) translate(-6px, 6px);
        transform-origin: bottom;
    }

    .show-effect .Mobile-Menu-Icon .icon-bar:nth-child(2) {
        transform-origin: top;
        transform: rotatez(-45deg);
        width: 0;
        opacity: 0;

    }

    .show-effect .Mobile-Menu-Icon .icon-bar:nth-child(3) {
        transform-origin: bottom;
        transform: translate(-2px, -6px) rotatez(45deg);
    }

    .menu .nav.nav-pills {
        margin-right: 0px !IMPORTANT;
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        height: 100%;
    }

    .Main-Menu .nav.nav-pills > li {
        text-align: right;
        width: 100%;
        margin: 0px;
        /* padding: 8px 0; */
    }

    .header__Menu .nav > li > a {
        display: block;
        padding: 8px 0 !important;
        margin-bottom: 0;
    }

    .header__Menu .nav > li:not(:last-child) > a {
        border: unset;
        border-bottom: 1px dashed #E1E1E1;
        margin-left: 0;

    }

    .nav.nav-pills {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        width: 100%;
        padding: 0 15px;

    }

    .header .menu {
        height: 100%;
        justify-content: flex-start !important;
        align-items: center;
        line-height: normal;
        display: flex;
    }

    .headerCtgList__Return {
        width: calc(100% - 30px);
        position: absolute;
        bottom: calc(100% - 50px);
        transform: translate(110%);
        transition: var(--transition);
        z-index: 1001;
        padding: 1.5rem 1.5rem 0.5rem 0rem;
        border-bottom: 2px solid var(--mc3);
        color: #616161;
        background: var(--white);
    }

    .headerCtgList__Return.active {
        transform: translate(0);
    }

    #MENU .header__Tools__Item {
        margin-right: 0;
        margin-left: 1rem;
        padding: 0.5rem;
        border: solid 1px #e7e7e7;
        border-radius: var(--border-radius-sm);
        display: flex;
        align-items: center;
    }

    .header__Tools__Item .WbIcon {
        background: #616161;
    }


    .header__ProductCtg .SCat-Main > li {
        padding: 1rem 0rem;
        padding-left: 0.5rem !important;
    }

    #MENU .page__Item.active {
        color: var(--mc1);
    }

    header .header__ProductCtg .SCat-Main > li.SCat-have-sub-menu > ul.SCat-sub-menu {
        position: fixed !important;
        z-index: 1000 !important;
        width: 100% !important;
        height: calc(100vh - 200px) !important;
        top: 200px !important;
        right: 0;
        transform: translateX(100%);
        background-color: var(--white);
        color: var(--gray1);
        opacity: 0 !important;
        visibility: hidden !important;
        padding: 4rem 15px 0rem;
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        overflow: auto;
    }

    .header__ProductCtg .SCat-Main > li.SCat-have-sub-menu.active > ul.SCat-sub-menu {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .header__ProductCtg .SCat-Main > li.SCat-have-sub-menu > ul.SCat-sub-menu > li {
        list-style: none;
        padding: 1rem 0rem;
        border-top: dashed 1px var(--mc3);
    }

    .header__ProductCtg .SCat-Main > li.SCat-have-sub-menu > ul.SCat-sub-menu > li:not(:first-of-type) {}


    .AjaxMiniCartWrapper .icon-cart {
        width: 2rem;
        height: 2rem;
    }

}