:root {
    --CatMenuHeight: 45vh
}

.ecommerceNav {
    -position: relative;
}

.CategoriesMenu {
    display: none;
    top: 100%;
    right: 0;
    left: 0;
}


.CategoriesMenu :where(ul, li) {
    list-style-type: none;
    margin: 0;
    cursor: pointer;
    line-height: 2.5;
}

.CategoriesMenu .navbar-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow: 0px 0px 5px -3px #a1a1a1;
}

.CategoriesMenu .navbar-nav>li+.ThisCatAll {
    visibility: hidden;
    opacity: 0;
}

.CategoriesMenu .navbar-nav>li:hover+.ThisCatAll {
    visibility: visible;
    opacity: 1;
}

.CategoriesMenu .navbar-nav .dropdown .dropdown-toggle {}

.CategoriesMenu .navbar-nav>.dropdown:hover>.dropdown-toggle+.dropdown-menu {
    opacity: 1;
    visibility: visible
}

.CategoriesMenu .navbar-nav>.dropdown>.dropdown-menu {
    position: absolute;
    top: calc(100% - 3px);
    right: 0;
    left: 0;

    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 20%;

    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all ease-in-out 0.4s;
    height: auto;
    background-color: white;
    border-top: solid 1px #e7e7e7;
    padding: 12px 16px;
    box-shadow: 0px 1px 5px -3px #a1a1a1;
}

.CategoriesMenu a {
    display: block
}

.CategoriesMenu .AllProducts a {
    color: var(--White)
}

.CategoriesMenu .ThisCatAll {
    bottom: 1rem;
    left: 1rem;
}

.header-content-wrap {
    display: flex;
    align-items: center;
}

.MenuIcon {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-size: 16px;
    cursor: pointer;

    svg {
        width: 16px;
        height: 16px;
        stroke: #000;
    }
}

.MenuIcon .l_2 {
    top: 5px
}

.MenuIcon .l_3 {
    bottom: 0;
    top: auto
}

.MenuButton {
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    display: flex;
    align-items: center;
}


.main-items {
    width: inherit;

    >a {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        padding: 16px 0;

        &:after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            left: 0;
            height: 3px;
            background-color: var(--accent-color);
            transition: all 0.3s ease;
            -webkit-transition: all 0.3s ease;
            -moz-transition: all 0.3s ease;
            -ms-transition: all 0.3s ease;
            -o-transition: all 0.3s ease;
            opacity: 0;
        }

        .cat-logo {
            width: 80px;
            height: 80px;
            max-width: 100%;
            border-radius: 50%;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            -ms-border-radius: 50%;
            -o-border-radius: 50%;
        }

        span {
            display: block;
            margin-top: 8px;
            font-size: 0.9rem;
            color: #000;
            transition: all 0.3s ease;
            -webkit-transition: all 0.3s ease;
            -moz-transition: all 0.3s ease;
            -ms-transition: all 0.3s ease;
            -o-transition: all 0.3s ease;
        }

    }

    &:hover {
        >a {
            &:after {
                opacity: 1;
            }

            span {
                font-weight: bold;
            }
        }
    }

    ul {
        li {
            a {
                color: #000;

                &:hover {
                    font-weight: bold;
                }
            }
        }
    }
}