// Navigation

.main-navigation {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: @gray-lighter;
    position: relative;
}

.main-navigation-mobile {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background-color: @gray-lighter;
    position: relative;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.menu--dropdown {
    background-color: @gray-lightest;
    box-shadow: 0 3px 6px rgba(0,0,0,.175);
    z-index: @z-index-top;
    position: absolute;
    top: 100%;
    left: 0px;
    display: none;
    line-height: 1.4;
    min-width: 100%;
    padding: @reflex-cell-spacing-md 0;
    margin-top: @menu-item-padding-size;
    
    .header-menu__link + & {
        margin-top: 0;
    }

    .search .search__field {
        border-radius: 0;
    }
}

.menu--dropdown-right {
    .menu--dropdown;
    left: auto;
    right: 0;
}

.menu--sign-in {
    padding: @reflex-cell-spacing-lg;
    min-width: 180px;
}

.menu__item {
    position: relative;
    padding: 0;
    margin: 0;
    color: @font-color;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu__item--icon {
    padding: 0 0.5em;
}

.menu__item:hover:not(.menu__item--top-level, .menu__item--clean) {
    background-color: @gray-light;

    > .menu__link {
        color: @font-color;
    }
}

.menu__item:hover:not(.menu__item--top-level) {
    > .menu__link {
        color: @font-color;
    }
}

.menu__item--clean:hover {
    background-color: transparent;
}

.menu__item--horizontal {
    float: left;
}

.menu__item--top-level {
    float: left;
    border-top: 3px solid @gray-lighter;
    border-bottom: 3px solid @gray-lighter;
    text-align: center;
}

.menu__item--top-level.menu__item:hover {
    border-bottom: 3px solid @font-color;

    > .menu__link {
        color: @font-color;
    }
}

.menu__item--fixed-width {
    width: 240px;
    float: left;
}

.menu__item--top-level.menu__item--active {
    border-bottom: 3px solid @font-color;

    > .menu__link {
        color: @font-color;
    }
}

.menu__link {
    display: block;
    text-decoration: none;
    white-space: nowrap;
    padding: 16px @reflex-cell-spacing-md;
    font-size: @font-size;
    color: @font-color;
    cursor: pointer;
    float: left;
    line-height: 30px;

    &.menu__link--icon {
        margin-bottom: 0;
        line-height: 33px;
        color: @font-color;
        text-align-last: center;
        position: relative;
    }
}

.menu__link--condensed {
    padding: 0 @reflex-cell-spacing-md;
}

.is-dropdown::after {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f107';
    display: inline-block;
    line-height: 42px; 
    padding-right: @reflex-cell-spacing-md;
}

.is-dropdown--no-icon::after {
    font-family: "";
    content: '';
    padding: 0;
}

.is-dropdown:hover > .menu--dropdown,
.is-dropdown--active > .menu--dropdown {
    display: block;
}

.menu--dropleft {
    background-color: @gray-lightest;
    box-shadow: 0 3px 6px rgba(0,0,0,.175);
    z-index: @z-index-8;
    position: absolute;
    top: -@reflex-cell-spacing-md;
    display: none;
    left: 100%;
    padding: @reflex-cell-spacing-md 0;
}

.is-dropleft::after {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f105';
    padding: 0.5em 1em;
    font-size: 14px; 
}

.is-dropleft:hover > .menu--dropleft {
    display: block;
}

.menu-dropdown__link {
    width: 100%;
    padding: 1em;
    font-size: @font-size;
    float: left;
    display: block;
    text-decoration: none;
    white-space: normal;
    font-size: @font-size;
    color: @font-color;
    padding: @reflex-cell-spacing-md @reflex-cell-spacing-lg;
    cursor: pointer;
}
.menu-dropdown__link,
.mega-menu__link {
    &.menu__link--disabled {
        cursor: default;
    }
}

.menu-dropdown__item {
    display: block;
    text-decoration: none;
    white-space: nowrap;
    color: @font-color;
    cursor: pointer;
    padding: @reflex-cell-spacing-md;
    line-height: 1.4;
    text-align: left;
}

.menu-dropdown__item--link:hover {
    text-decoration: underline;
}

//Mega menu

.menu__item--mega {
    position: static;
    text-align: left;
    text-align-last: unset;
}

.mega-menu {
    background-color: @gray-lightest;
    z-index: @z-index-top;
    position: absolute;
    top: 100%;
    left: @reflex-cell-spacing-lg;
    display: none;
    box-shadow: 0 3px 6px rgba(0,0,0,.175);
    width: calc(100% - (2 * @reflex-cell-spacing-lg));
    max-width: 1280px;
}

.mega-menu__list-wrap {
    padding: 0 @reflex-cell-spacing-md;
    margin-bottom: @reflex-cell-spacing-lg;
    text-align-last: unset;
}

.mega-menu__grid .grid__col-md-3:nth-child(4n) .mega-menu__list-wrap {
    border-right: 0;
}

.mega-menu .menu {
    margin-bottom: 0;
}

.mega-menu__list-image {
    margin-bottom: @reflex-cell-spacing-md;
}

.mega-menu__header-container {
    margin: 0 @reflex-cell-spacing-md;
}

.mega-menu__header-container__text {
    display: block;
    text-decoration: none;
    font-size: @font-size;
    color: @font-color;
    margin-top: 0;
    padding: @reflex-cell-spacing-md;
    line-height: 1.2;
    cursor: default;
}

.mega-menu__header-container__text--link {
    cursor: pointer
}

.mega-menu__link {
    font-size: @font-size;
    cursor: pointer;
    float: left;
    display: block;
    text-decoration: none;
    white-space: normal;
    font-size: @font-size;
    color: @font-color;
    cursor: pointer;
    margin: 0 2px; 
    padding: @reflex-cell-spacing-md @reflex-cell-spacing-lg;
    width: 100%;
}

.is-mega::after {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    content: '\f107';
    display: inline-block;
    line-height: 42px; 
    padding-right: @reflex-cell-spacing-md;
    float: right;
}

.is-mega:hover > .mega-menu {
    display: block;
}

.mega-menu__promotion-image {
    padding: (@reflex-cell-spacing-lg + @reflex-cell-spacing-sm);
}


.left-navigation {
    margin-bottom: @reflex-cell-spacing-lg;
}

.left-navigation__item {
    display: flex;
    padding-top: @reflex-cell-spacing-md;
    padding-bottom: @reflex-cell-spacing-md;
    border-bottom: 1px @gray-light solid;

    &:first-child {
        border-top: 1px @gray-light solid;
    }
}