/*  menu */
nav {
    justify-content: flex-start;
    position: relative;
    z-index: 150;
}
.menu {
    margin: 0 0 44px;
}
.menu__cat {
    list-style-type: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}
.menu-item {
    display: inline-block;
    line-height: 32px;
    margin-right: 56px;
}
.menu-item:last-child {
    margin-right: 0;
}
.menu-item li {
    font: 16px/24px 'Montserrat';
    font-weight: 500;
}

.menu .menu-item a,
.menu__link {
    padding: 8px 0 8px 0;
    color: #fff;
    text-decoration: none;
}
.menu .menu-item a:hover,
.menu__link:hover {
    color: #b5d13f;
    text-decoration: none;
}
.cat {
    padding: 8px 40px 8px 16px;
    margin-right: 24px;
    background: linear-gradient(180deg, #D4F150 0%, #78AB15 100%);
    border-radius: 8px;
    color: #101010;
    cursor: pointer;
    position: relative;
}
.cat::after {
    background-image: url(/wp-content/themes/goodfood/img/common/menu__arrow.svg);
    background-position: 0 50%;
    background-repeat: no-repeat;
    position: absolute;
    right: 16px;
    top: 0;
    height: 40px;
    width: 16px;
    content: '';
}
/*  end of menu */

/* dropdown */
.nav-dropdown {
    position: absolute;
    display: none;
    z-index: 200;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .15);
    background: #f5f5f5;
    list-style-type: none;
    padding: 8px 0;
    margin: 0;
    top: calc(100% - 44px);
}
.controls .nav-dropdown {
    top: calc(100% - 4px);
}
.nav-dropdown-left {
    left: 16px;
    border-radius: 0 16px 16px 16px;
}
.nav-dropdown-right {
    right: 16px;
    border-radius: 16px 0 16px 16px;
}
.nav-dropdown li.menu-itemm,
.nav-dropdown li {
    padding: 12px 24px;
    font: 14px/24px 'Montserrat';
    font-weight: 500;
    color: #101010;
    text-align: left;
    box-sizing: border-box;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
    display: block;
    position: relative;
}
.controls .nav-dropdown li:last-child::before {
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: rgba(180, 180, 180, .85);
    content: '';
}
.nav-dropdown li.nav-dropdown__active {
    border-left: 8px solid #B5D13F;
    padding-left: 16px;
}
.nav-dropdown li a {
    color: #101010;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #B5D13F;
    position: absolute;
    right: 0;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: transparent;
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0;
    transform: rotate(-405deg);
}
@media all and (max-width: 480px) {
    nav {
        z-index: 700;
    }
    .menu__cat {
        position: relative;
        padding: 0 24px;
    }
    .menu-button-container {
        position: absolute;
        top: -96px;
        right: 24px;
        z-index: 100;
        color: #B5D13F;
        display: flex;
    }
    .menu > li {
        margin: 0 1rem;
        overflow: hidden;
    }
    .menu-button-container {
        display: flex;
        padding-right: 56px;
    }

    .page-main .menu,
    .menu {
        display: block;
        list-style-type: none;
        padding: 0;
        position: absolute;
        top: 0;
        margin-top: -8px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        display: flex;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    #menu-toggle:checked ~ .menu li {
        border: 0;
        height: 2.5em;
        padding: 8px 24px;
        justify-content: left;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
        background: #101010;
    }
    #menu-toggle ~ .menu > li:last-child {
        padding-bottom: 16px;
    }
    #menu-toggle:checked ~ .menu li:last-child {
        border-bottom: 2px solid #444;
    }
    .nav-dropdown {
        top: calc(100% - 4px);
        left: 40px;
    }
}