@media (max-width: 1024px) {

.mctgx-wrapper {
    position: relative;
    display: inline-block;
}

.mctgx-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    color: #4C5B70;
    background-color: #ffffff;
    padding: 10px 16px;
    border: 1px solid #4C5B70;
    border-radius: 50px;
    cursor: pointer;
    line-height: 1;
}

.mctgx-trigger-btn__icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.mctgx-trigger-btn__icon svg {
    display: block;
}

.mctgx-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99998;
}

.mctgx-overlay--visible {
    opacity: 1;
    visibility: visible;
}

.mctgx-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    background: #F8F7F2;
    color: var(--global-palette3, #333);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99999;
    overflow: hidden;
}

.mctgx-panel--open {
    transform: translateX(0);
}

.mctgx-close,
.mctgx-back {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #4C5B70;
    box-shadow: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: color 0.2s ease;
}

.mctgx-close:focus-visible,
.mctgx-back:focus-visible {
    outline: 2px solid #4C5B70;
    outline-offset: 2px;
}

.mctgx-panel__window-1 {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #F8F7F2;
}

.mctgx-panel__header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 2px solid #ffffff;
}

.mctgx-panel__heading {
    margin: 0;
    padding: 16px;
    border-bottom: 2px solid #ffffff;
    flex-shrink: 0;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

.mctgx-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.mctgx-cat {
    border-bottom: 2px solid #ffffff;
    padding: 0;
}

.mctgx-cat__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    padding: 12px 16px;
    box-sizing: border-box;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mctgx-cat__title {
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: 1.2;
}

.mctgx-cat__arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8F9D68;
    height: 35px;
    width: 35px;
    transition: color 0.2s ease;
}

.mctgx-cat__arrow svg {
    display: block;
    width: 35px;
    height: 35px;
}

.mctgx-cat__link:hover,
.mctgx-cat__link:focus {
    background-color: #4C5B70;
    color: #fff;
}

.mctgx-cat__link:hover .mctgx-cat__title,
.mctgx-cat__link:focus .mctgx-cat__title {
    color: #fff;
}

.mctgx-cat__link:hover .mctgx-cat__arrow,
.mctgx-cat__link:focus .mctgx-cat__arrow {
    color: #fff;
}

/* Активная (текущая) категория — подсветка */
.mctgx-cat--current > .mctgx-cat__link {
    background-color: #4C5B70;
    color: #fff;
}

.mctgx-cat--current > .mctgx-cat__link .mctgx-cat__title {
    color: #fff;
}

.mctgx-cat--current > .mctgx-cat__link .mctgx-cat__arrow {
    color: #fff;
}

/* Ссылка «Все товары» в окне 1 — зелёный фон, белый текст */
.mctgx-view-all--window-1 {
    display: block;
    padding: 12px 16px;
    background: #8F9D68;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    flex-shrink: 0;
}

.mctgx-view-all--window-1:hover {
    background: #4C5B70;
}

.mctgx-view-all--window-1 .mctgx-view-all__title {
    color: #ffffff;
}

.mctgx-panel__window-2 {
    position: absolute;
    inset: 0;
    background: #F8F7F2;
    color: var(--global-palette3, #333);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mctgx-panel--window-2 .mctgx-panel__window-2 {
    transform: translateX(0);
}

.mctgx-panel__header-2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 14px;
    border-bottom: 2px solid #ffffff;
    flex-shrink: 0;
}

.mctgx-window-2__title {
    margin: 0;
    padding: 16px;
    border-bottom: 2px solid #ffffff;
    flex-shrink: 0;
    white-space: normal;
    word-break: break-word;
}

/* Ссылка «Все товары» в окне 2 — зелёный фон, белый текст */
.mctgx-view-all {
    display: block;
    padding: 12px 16px;
    background: #8F9D68;
    text-decoration: none;
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    flex-shrink: 0;
}

.mctgx-view-all:hover {
    background: #4C5B70;
}

.mctgx-view-all__title {
    margin: 0;
    padding: 0;
    color: #ffffff;
}

.mctgx-window-2__body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.mctgx-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mctgx-submenu li {
    border-bottom: 2px solid #ffffff;
}

.mctgx-submenu li a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--global-palette3, #333);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mctgx-submenu__title {
    margin: 0;
    padding: 0;
    color: inherit;
}

.mctgx-submenu li a:hover,
.mctgx-submenu li a:focus {
    background-color: #4C5B70;
    color: #fff;
}

.mctgx-submenu li a:hover .mctgx-submenu__title,
.mctgx-submenu li a:focus .mctgx-submenu__title {
    color: #fff;
}

} /* @media (max-width: 1024px) */