

html.product-menu-open,
body.product-menu-open {
    overflow: hidden;
    width: 100%;
}

body.product-menu-open {
    position: fixed;
    left: 0;
    right: 0;
}

.header {
    position: relative;
}

.js-product-menu-toggle.active {
    color: var(--primary);
}

.product_menu {
    display: none;
}

@media all and (min-width: 1025px) {
    .header {
        overflow-x: clip;
        overflow-y: visible;
    }

    .product_menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 200;
        background: #fff;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
    }

    .product_menu.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .product_menu:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: min(0px, calc(665px - 50vw));
        background: var(--primary);
        right: 100%;
    }

    .product_menu:after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: min(0px, calc(665px - 50vw));
        background: #fff;
        left: 100%;
    }
}

@media all and (max-width: 1024px) {
    .product_menu.is-open {
        display: block;
    }
}

.product_menu__cats {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

@media all and (min-width: 1025px) {
    .product_menu__cats {
        width: 320px;
        padding: 32px 32px !important;
        background: var(--primary);
        height: 100%;
        max-height: calc(100vh - var(--v-header-height, 151px));
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
    }

    .product_menu__cats::-webkit-scrollbar {
        width: 6px;
    }

    .product_menu__cats::-webkit-scrollbar-track {
        background: transparent;
    }

    .product_menu__cats::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.4);
        border-radius: 3px;
    }
}

.product_menu__cat-item {
    height: auto !important;
    padding: 0 !important;
    list-style: none;
}

.product_menu__cat-item:last-child {
    border-bottom: none;
}

@media all and (max-width: 1024px) {
    .product_menu__cat-item {
        border-bottom-color: var(--gray-1);
    }
}

.product_menu .product_menu__cat {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 8px 0 !important;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px !important;
    line-height: 163% !important;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.product_menu .product_menu__cat:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 16px;
    border-bottom: 1px solid rgba(19, 15, 38, 0.19);
}

.product_menu__cat-item:hover > .product_menu__cat,
.product_menu__cat-item.is-active > .product_menu__cat {
    background: #000;
    padding-left: 10px !important;
}

@media all and (max-width: 1024px) {
    .product_menu .product_menu__cat {
        padding: 14px 20px !important;
        color: var(--black) !important;
    }
}

@media all and (max-width: 1024px) {

    .product_menu__cat-item:hover > .product_menu__cat,
    .product_menu__cat-item.is-active > .product_menu__cat {
    }
}

.product_menu__cat-arrow {
    flex: 0 0 auto;
    margin-left: 12px;
    color: #fff;
    opacity: 0.85;
    transition: transform 0.15s;
}

@media all and (max-width: 1024px) {
    .product_menu__cat-arrow {
        color: var(--gray);
        transform: rotate(90deg);
    }
}

.product_menu__cat-item.is-active>.product_menu__cat .product_menu__cat-arrow {
    transform: translateX(2px);
}

@media all and (max-width: 1024px) {
    .product_menu__cat-item.is-active>.product_menu__cat .product_menu__cat-arrow {
        transform: rotate(90deg);
    }
}

.product_menu__sub-panel {
    display: none;
}

@media all and (min-width: 1025px) {
    .product_menu__sub-panel {
        position: absolute;
        left: 320px;
        top: 0;
        right: 0;
        background: #fff;
        height: 100%;
        max-height: calc(100vh - var(--v-header-height, 151px));
        padding: 32px 48px;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    }

    .product_menu__sub-panel::-webkit-scrollbar {
        width: 6px;
    }

    .product_menu__sub-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    .product_menu__sub-panel::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    .product_menu__sub-panel.is-active {
        display: block;
    }

    /* пока открыт 4-й уровень, скролл 3-го уровня под ним отключаем — свой скролл
       и без того есть у .product_menu__level4 */
    .product_menu__sub-panel.level4-open {
        overflow: hidden;
    }
}

@media all and (max-width: 1024px) {
    .product_menu__sub-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 201;
        background: #fff;
        overflow-y: auto;
        padding: 0;
        transform: translateX(110%);
        transition: transform 0.25s ease;
        display: block;
    }

    .product_menu__sub-panel.is-active {
        transform: translateX(0);
    }

    .product_menu__sub-panel.level4-open {
        overflow: hidden;
    }
}

.product_menu__sub-back {
    display: none;
}

@media all and (max-width: 1024px) {
    .product_menu__sub-back {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 16px 20px;
        border: none;
        border-bottom: 1px solid var(--gray-1);
        background: none;
        font-family: var(--font-family);
        font-weight: 600;
        font-size: 16px;
        color: var(--black);
        text-align: left;
        cursor: pointer;
    }

    .product_menu__sub-back svg {
        color: var(--gray);
    }
}

.product_menu__sub-list {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.product_menu__sub-list li {
    height: auto !important;
    padding: 0 !important;
    margin: 0;
    list-style: none;
}

@media all and (max-width: 1024px) {
    .product_menu__sub-list {
        padding: 16px 20px !important;
    }
}

.product_menu__sub-list--columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
}

@media all and (max-width: 1024px) {
    .product_menu__sub-list--columns {
        display: flex !important;
    }
}


.product_menu__item.has_sub4 > .product_menu__link {
    cursor: pointer;
}

.product_menu__level4 {
    display: none;
}

.product_menu__level4-back {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 163%;
    color: #42919e;
    text-align: left;
    cursor: pointer;
}

.product_menu__level4-back svg {
    color: #616161;
}

@media all and (min-width: 1025px) {
    .product_menu__level4.is-active {
        display: block;
        position: absolute;
        z-index: 1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 32px 48px;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    }

    .product_menu__level4.is-active::-webkit-scrollbar {
        width: 6px;
    }

    .product_menu__level4.is-active::-webkit-scrollbar-track {
        background: transparent;
    }

    .product_menu__level4.is-active::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }
}

@media all and (max-width: 1024px) {
    .product_menu__level4.is-active {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 202;
        background: #fff;
        overflow-y: auto;
    }

    .product_menu__level4-back {
        margin: 0;
        padding: 16px 20px;
        border-bottom: 1px solid var(--gray-1);
    }
}


.product_menu .product_menu__link {
    display: inline-block !important;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px !important;
    line-height: 2 !important;
    color: #000 !important;
    text-decoration: none !important;
    position: relative;
    padding: 4px 22px;
    transition: all .3s;
}

@media all and (max-width: 1024px) {
    .product_menu .product_menu__link {
        font-size: 16px !important;
        padding: 10px 22px !important;
    }
}

.product_menu .product_menu__link:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    margin: auto;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #000;
}

.product_menu .product_menu__link:hover {
    color: var(--primary) !important;
    text-decoration: none !important;
    -webkit-text-stroke: 1px var(--primary);
}

.product_menu-backdrop {
    position: fixed;
    top: var(--v-header-height, 151px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 199;
    background: rgba(31, 26, 23, 0.4);
    display: none;
}

.product_menu-backdrop.is-open {
    display: block;
}
