// Header v16

.header-v16,
.header-v17 {
    @media (min-width:1200px) and (max-width: 1479px) {
        .desktop-header {
            &.e-con>.e-con-inner{
                --content-width:1200px;
            }
        }
    }

    .search {
        display: none;
        position: absolute;
        top: 100%;
        z-index: 1;

        &.mas-collapsed {
            display: block !important;    
        }
    }

    .header-icon__cart {
        > .dropdown-menu-mini-cart {
            right: -30px !important;

            @media (min-width:768px) {
                right: 0px !important;
            }

            @media (max-width:400px) {
                width: 290px !important;
            }
        }
    }

    @media (max-width: 1199px) {
        .mobile-header {
            .mas-hamburger-menu ul li.menu-item-has-children:hover > .dropdown-menu ul {
                margin-left: 0;
            }

            .handheld-header-menu.header-menu .yamm-sm-fw .dropdown-menu {
                padding-top: 0;
            }

            .off-canvas-nav {
                .handheld.collapse.show ul.mas-elementor-nav-menu  {
                    padding-top: 0;
                }
            }

            .badge {
                display: inline-block;
                padding: 2px 11px;
                color: var(--bs-white);
                border-radius: 20px;
                font-size: 12px;
                font-weight: 500;
                min-width: 82px;
                line-height: 2;
                margin-left: 10px;

                &.red {
                    background-color: var(--bs-red);
                }

                &.green {
                    background-color: #44b81b;
                }
            }

            .menu-item-has-children {
                > .dropdown-menu {
                    background-color: #f6f4f4 !important;

                    li {
                        background-color: transparent !important;
                    }
                }

                &:not(.yamm-fw,.yamm-sm-fw) {
                    > .dropdown-menu {
                        padding-top: 0;

                        > li > a {
                            padding: 0 1.387em !important;
                        }
                    }
                }
            }

            .yamm-fw {
                .elementor-element {
                    padding-top: 0;
                }

                .elementor-widget-container,
                .elementor-element,
                .dropdown-menu a {
                    padding: 0;                    
                }

                .elementor-element.nav-title {
                    padding-top: 18px;
                    padding-bottom: 18px;
                    border-bottom: 1px solid #e3e9ef;
                }

                > .dropdown-menu {
                    padding-top: 0;

                    > li {
                        :where(.elementor > .elementor-element > .e-con-inner > .elementor-element) {
                            gap: 0;

                            @media (min-width:768px) {
                                --width: 100%;
                            }
                        }

                        :where(.elementor > .elementor-element > .e-con-inner) {
                            @media (min-width:768px) {
                                flex-wrap: wrap;
                            }
                        }
                    }
                }

                .dropdown-menu a {
                    line-height: 2.2;
                }
            }

            .yamm-sm-fw {
                .dropdown-menu > li > a {
                    padding: 0 1.387em !important;
                }

                &.dropdown .dropdown-toggle[data-bs-toggle=dropdown]:not([data-hover=dropdown])+.dropdown-menu .dropdown-menu {
                    visibility: visible;
                    opacity: 1;
                    transform: translateY(-0px) !important;
                    margin: 0;
                }

                .relative {
                    background-image: none !important;
                    padding: 10px 0 !important;
                    min-height: 0;
                    border-width: 0;

                    .stretched-link {
                        display: none;
                    }
                }

                > .dropdown-menu {
                    background-color: #f6f4f4 !important;

                    &,.yamm-content {
                        padding-top: 0;
                    }


                    > li {
                        :where(.elementor > .elementor-element > .e-con-inner > .elementor-element) {
                            @media (min-width:768px) {
                                --width: 100%;
                            }
                        }

                        :where(.elementor > .elementor-element > .e-con-inner) {
                            @media (min-width:768px) {
                                flex-wrap: wrap;
                                display: flex;
                            }
                        }
                    }

                    .yamm-content {
                        .elementor-icon-list-item:first-child {
                            border-width: 0;
                        }

                        .dropdown-menu {
                            padding: 20px;
                            border-radius: 0;
                            border-bottom: 1px solid #e3e9ef;

                            &,li {
                                background-color: transparent !important;
                            }

                            ul li>a,
                            ul li a {
                                border-width: 0;
                                line-height: 2.2;
                                padding: 0;
                            }

                            .elementor-element {
                                padding: 0;
                            }
                        }
                    }

                    > .menu-item {
                        background-color: transparent !important;

                        a {
                            span {
                                span,br {
                                    display: none;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    .primary-nav {
        .mas-elementor-nav-menu>.menu-item-has-children:hover>a[data-hover=dropdown]::before, 
        .mas-elementor-nav-menu>.menu-item-has-children>.dropdown-toggle.show::before,
        .mas-elementor-nav-menu> .menu-item:is(:hover) >.nav-link::before {
            content: " ";
            height: 14px;
            width: 100%;
            top: 100%;
            left: 0;
            border-bottom: 4px solid var(--bs-ec-primary);
        }

        .dropdown-toggle::after {
            display: none;
        }

        .header-menu > li > a {
            padding: 6px 14px;

            @media (min-width:1480px) {
                padding: 6px 21.3px;
            }
        }

        .yamm-sm-fw {
            > .dropdown-menu {
                background-color: #f9f9f9;
                width: 353px !important;
                border-radius: 0 0 14px 14px !important;
                box-shadow: 6.642px 15.649px 49px 0px rgba(0, 0, 0, 0.15);
                padding-top: 16px !important;
                min-height: 530px;
            }

            &.active {
                position: static;
            }

            &:not(.active) > .dropdown-menu {
                overflow: hidden;
            }

            .dropdown:hover .dropdown-item[data-hover=dropdown]+.dropdown-menu {
                opacity: 1;
                visibility: visible;
                transform: translateY(0) !important;
            }

            .dropdown-item[data-hover=dropdown]+.dropdown-menu {
                transform: translateY(0) !important;
                top: 0 !important;
                box-shadow: 40px 20px 30px 0px rgba(0, 0, 0, 0.11);
                //box-shadow: 6.642px 15.649px 49px 0px rgba(0, 0, 0, 0.15);
            }

            > .yamm-content:is(:hover) {
                > .dropdown-menu {
                    border-bottom-right-radius: 0 !important;
                }
            }

            .yamm-content {
                position: static;

                > .dropdown-menu {
                    min-width: 707px !important;
                    padding: 0;
                    border-radius: 0 0 14px 0  !important;
                    max-height: 530px;
                    overflow: hidden;

                    .elementor-icon-list-item {
                        a {
                            font-weight: 700 !important;
                        }
                        
                        .badge {
                            position: relative;
                            top: -3px;
                            left: -3px;
                        }
                    }
                }

                > .dropdown-item {
                    display: flex;
                    gap: 26px;
                    padding: 9px 30px 9px 40px !important;

                    &::after {
                        content: "";
                        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="11px" height="10px"><path fill-rule="evenodd" stroke="rgb(0, 0, 0)" stroke-width="0px" stroke-linecap="butt" stroke-linejoin="miter" fill="rgb(51, 62, 72)" d="M10.504,5.016 L6.180,9.729 L4.957,8.396 L7.286,5.857 L0.206,5.857 L0.206,3.972 L7.113,3.972 L4.957,1.621 L6.180,0.288 L9.559,3.972 L9.720,3.972 L9.720,4.147 L10.504,5.002 L10.498,5.009 L10.504,5.016 Z"/></svg>');
                        background-repeat: no-repeat;
                        width: 11px;
                        height: 10px;
                        opacity: 0;
                    }

                    span {
                        display: block;
                    }

                    > span {
                        max-width: 250px;

                        span {
                            font-size: 12px;
                            font-weight: 400;
                            line-height: 1.5;
                            padding-top: 1px;
                            color: #616b73;
                        }
                    }
                }

                &:is(:hover, :focus) {
                    > .dropdown-item {
                        &::after {
                            opacity: 1;
                            margin-top: 2px;
                            margin-right: -10px;
                        }
                    }

                    > .dropdown-item {
                        background-color: var(--bs-white);
                    }
                }
            }
        }

        .mas-elementor-nav-menu {
            align-items: stretch;
            position: relative;

            .dropdown-menu {
                .menu-item:not(.yamm-fw) {
                    .nav-link {
                        font-weight: normal !important;
                    }
                }

                .view-all-menu {
                    margin-top: 74px;
        
                    &.menu-item:not(.yamm-fw) .nav-link {
                        font-weight: 700 !important;
                        padding: 10px 40px !important;
                    }

                    .nav-link {
                        &:is(:hover) {
                            background-color:var(--bs-white);
                        }
                    }
                }
            }

            .menu-item.yamm-sm-fw .yamm-content.menu-item {
                .nav-link {
                    font-weight: 700 !important;
                    line-height: 2;
                }

                &:not(:first-child) {
                    > .nav-link {
                        padding-top: 8px !important;
                    }
                }
            }

            > .menu-item {
                display: flex;

                &:is(:hover) {
                    >.nav-link {
                        position: relative;

                        &::before {
                            position: absolute;
                        }
                    }
                }
            }
        }

        &,
        .header-menu .menu-item-has-children.yamm-fw {
            position: static;
        }

        .nav-link {
            > span {
                display: flex;
                align-items: center;
            }
        }

        .badge {
            display: inline-block;
            padding: 2px 11px;
            color: var(--bs-white);
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            min-width: 82px;
            line-height: 2;
            margin-left: 10px;

            &.red {
                background-color: var(--bs-red);
            }

            &.green {
                background-color: #44b81b;
            }
        }

        @media (min-width: 1200px) {
            .yamm-fw {
                .dropdown-menu {
                    width: 1060px;
                }

                .dropdown-menu,
                &.dropdown .dropdown-toggle[data-bs-toggle=dropdown]:not([data-hover=dropdown])+.dropdown-menu {
                    transform: translate(-50%, 0px) !important;
                    left: 50% !important;
                }
            }

            .dropdown:hover .dropdown-toggle[data-hover=dropdown]+.dropdown-menu,
            .dropdown .dropdown-toggle[data-bs-toggle=dropdown].show:not([data-hover=dropdown])+.dropdown-menu, 
            .dropdown .dropdown-toggle[data-bs-toggle=dropdown].show:not([data-hover=dropdown])+.dropdown-menu .dropdown-submenu.open>.dropdown-menu {
                transform: translate(-50%, 15px) !important;
            }

            .dropdown:not(.yamm-fw):hover .dropdown-toggle[data-hover=dropdown]+.dropdown-menu {
                transform: translate(0, 15px) !important;
            }

            .yamm-sm-fw.active.dropdown:hover .dropdown-toggle[data-hover=dropdown]+.dropdown-menu {
                transform: translate(calc(100% - 538px), 15px) !important;
                border-bottom-right-radius: 0 !important;
            }
        }
    }
}

.header-v16 {
    @media (min-width:1200px) {
        .desktop-header {
            min-height: 76px;
            flex-direction: row !important;

            > .e-con-inner {
                align-self: center !important;
            }
        }
    }

    .header-icon__cart {
        margin-bottom: -3px;

        @media (min-width:1200px) {
            .cart-items-total-price {
                font-size: 15px;
                font-weight: 600;
                position: relative;
                top: 2px;
            }
        
            .woocommerce-Price-currencySymbol {
                vertical-align: top;
                font-size: xx-small;
                margin-right: 6px;
                top: -3px;
                position: relative;
                right: -1px;
            }
        
            .dropdown-menu-mini-cart {
                right:0 !important;
            }
        }

        .ec-shopping-bag {
            width: 42px;
            height: 42px;
            align-items: center;
            display: inline-flex;
            justify-content: center;
            background-color: var(--e-global-color-primary);
            border-radius: 50%;
            margin-right: 10px;
            font-size: 23px;
        }

        .cart-items-count  {
            background-color:#fff;
            border:1px solid var(--e-global-color-primary);
            color:#333E48;
            width: 20px;
            height: 20px;
            top: -3px;
            left: 27px;
            font-weight: 500;
            font-size: 11px;
        }

        .ec-shopping-bag {
            color:#333E48;

            &::before {
                margin-top:2px;
            }
        }
    }

    .primary-nav {
        .mas-elementor-nav-menu>.menu-item-has-children:hover>a[data-hover=dropdown]::before, 
        .mas-elementor-nav-menu>.menu-item-has-children>.dropdown-toggle.show::before,
        .mas-elementor-nav-menu> .menu-item:is(:hover) >.nav-link::before {
            content: " ";
            height: 14px;
            width: 100%;
            top: 100%;
            left: 0;
            border-bottom: 4px solid var(--bs-ec-primary);
        }

        .dropdown-toggle::after {
            display: none;
        }

        .header-menu > li > a {
            padding: 6px 14px;

            @media (min-width:1480px) {
                padding: 6px 21.3px;
            }
        }

        .yamm-sm-fw {
            > .dropdown-menu {
                background-color: #f9f9f9;
                width: 353px !important;
                border-radius: 0 0 14px 14px !important;
                box-shadow: 6.642px 15.649px 49px 0px rgba(0, 0, 0, 0.15);
                padding-top: 16px !important;
                min-height: 530px;
            }

            &.active {
                position: static;
            }

            &:not(.active) > .dropdown-menu {
                overflow: hidden;
            }

            .dropdown:hover .dropdown-item[data-hover=dropdown]+.dropdown-menu {
                opacity: 1;
                visibility: visible;
                transform: translateY(0) !important;
            }

            .dropdown-item[data-hover=dropdown]+.dropdown-menu {
                transform: translateY(0) !important;
                top: 0 !important;
                box-shadow: 40px 20px 30px 0px rgba(0, 0, 0, 0.11);
                //box-shadow: 6.642px 15.649px 49px 0px rgba(0, 0, 0, 0.15);
            }

            > .yamm-content:is(:hover) {
                > .dropdown-menu {
                    border-bottom-right-radius: 0 !important;
                }
            }

            .yamm-content {
                position: static;

                > .dropdown-menu {
                    min-width: 707px !important;
                    padding: 0;
                    border-radius: 0 0 14px 0  !important;
                    max-height: 530px;
                    overflow: hidden;

                    .elementor-icon-list-item {
                        a {
                            font-weight: 700 !important;
                        }
                        
                        .badge {
                            position: relative;
                            top: -3px;
                            left: -3px;
                        }
                    }
                }

                > .dropdown-item {
                    display: flex;
                    gap: 26px;
                    padding: 9px 30px 9px 40px !important;

                    &::after {
                        content: "";
                        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="11px" height="10px"><path fill-rule="evenodd" stroke="rgb(0, 0, 0)" stroke-width="0px" stroke-linecap="butt" stroke-linejoin="miter" fill="rgb(51, 62, 72)" d="M10.504,5.016 L6.180,9.729 L4.957,8.396 L7.286,5.857 L0.206,5.857 L0.206,3.972 L7.113,3.972 L4.957,1.621 L6.180,0.288 L9.559,3.972 L9.720,3.972 L9.720,4.147 L10.504,5.002 L10.498,5.009 L10.504,5.016 Z"/></svg>');
                        background-repeat: no-repeat;
                        width: 11px;
                        height: 10px;
                        opacity: 0;
                    }

                    span {
                        display: block;
                    }

                    > span {
                        max-width: 250px;

                        span {
                            font-size: 12px;
                            font-weight: 400;
                            line-height: 1.5;
                            padding-top: 1px;
                            color: #616b73;
                        }
                    }
                }

                &:is(:hover, :focus) {
                    > .dropdown-item {
                        &::after {
                            opacity: 1;
                            margin-top: 2px;
                            margin-right: -10px;
                        }
                    }

                    > .dropdown-item {
                        background-color: var(--bs-white);
                    }
                }
            }
        }

        .mas-elementor-nav-menu {
            align-items: stretch;
            position: relative;

            .dropdown-menu {
                .menu-item:not(.yamm-fw) {
                    .nav-link {
                        font-weight: normal !important;
                    }
                }

                .view-all-menu {
                    margin-top: 74px;
        
                    &.menu-item:not(.yamm-fw) .nav-link {
                        font-weight: 700 !important;
                        padding: 10px 40px !important;
                    }

                    .nav-link {
                        &:is(:hover) {
                            background-color:var(--bs-white);
                        }
                    }
                }
            }

            .menu-item.yamm-sm-fw .yamm-content.menu-item {
                .nav-link {
                    font-weight: 700 !important;
                    line-height: 2;
                }

                &:not(:first-child) {
                    > .nav-link {
                        padding-top: 8px !important;
                    }
                }
            }

            > .menu-item {
                display: flex;

                &:is(:hover) {
                    >.nav-link {
                        position: relative;

                        &::before {
                            position: absolute;
                        }
                    }
                }
            }
        }

        &,
        .header-menu .menu-item-has-children.yamm-fw {
            position: static;
        }

        .nav-link {
            > span {
                display: flex;
                align-items: center;
            }
        }

        .badge {
            display: inline-block;
            padding: 2px 11px;
            color: var(--bs-white);
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            min-width: 82px;
            line-height: 2;
            margin-left: 10px;

            &.red {
                background-color: var(--bs-red);
            }

            &.green {
                background-color: #44b81b;
            }
        }

        @media (min-width: 1200px) {
            .yamm-fw {
                .dropdown-menu {
                    width: 1060px;
                }

                .dropdown-menu,
                &.dropdown .dropdown-toggle[data-bs-toggle=dropdown]:not([data-hover=dropdown])+.dropdown-menu {
                    transform: translate(-50%, 0px) !important;
                    left: 50% !important;
                }
            }

            .dropdown:hover .dropdown-toggle[data-hover=dropdown]+.dropdown-menu,
            .dropdown .dropdown-toggle[data-bs-toggle=dropdown].show:not([data-hover=dropdown])+.dropdown-menu, 
            .dropdown .dropdown-toggle[data-bs-toggle=dropdown].show:not([data-hover=dropdown])+.dropdown-menu .dropdown-submenu.open>.dropdown-menu {
                transform: translate(-50%, 15px) !important;
            }

            .dropdown:not(.yamm-fw):hover .dropdown-toggle[data-hover=dropdown]+.dropdown-menu {
                transform: translate(0, 15px) !important;
            }

            .yamm-sm-fw.active.dropdown:hover .dropdown-toggle[data-hover=dropdown]+.dropdown-menu {
                transform: translate(calc(100% - 538px), 15px) !important;
                border-bottom-right-radius: 0 !important;
            }
        }
    }
}

.view-all-menu {
    span {
        &::after {
            content: "";
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="11px" height="10px"><path fill-rule="evenodd" stroke="rgb(0, 0, 0)" stroke-width="0px" stroke-linecap="butt" stroke-linejoin="miter" fill="rgb(51, 62, 72)" d="M10.504,5.016 L6.180,9.729 L4.957,8.396 L7.286,5.857 L0.206,5.857 L0.206,3.972 L7.113,3.972 L4.957,1.621 L6.180,0.288 L9.559,3.972 L9.720,3.972 L9.720,4.147 L10.504,5.002 L10.498,5.009 L10.504,5.016 Z"/></svg>');
            background-repeat: no-repeat;
            width: 11px;
            height: 10px;
            margin-left: 14px;
        }
    }
}