@media (max-width: 767px) {
    header .buttons a svg:not(header .buttons a.xleb-header-action svg), header .buttons a svg *:not(header .buttons a.xleb-header-action svg *) {
        fill: var(--mainColor);
    }
}

@media(min-width:992px){
    .logo-container .logo svg{
        height: 22px;
    }

    .logo-container .desktop-menu .menu-icon{
        position: relative;
        display: block;
        width: 24px;
        height: 24px;
        margin: 0 auto;
    }

    .logo-container .desktop-menu .menu-icon .line{
        position: absolute;
        left: 0;
        display: block;
        width: 24px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    }

    #menu-osnovnoe li{
        line-height: unset;
        margin-top: unset;
        margin-bottom: unset;
    }

    #menu-osnovnoe li a{
        font-size: var(--textSsize);
        margin-top: var(--textStopT);
        margin-bottom: var(--textSbottomT);
        line-height: var(--textSheightT);
        color: var(--contentPrimaryColor);
    }


    .logo-container .desktop-menu .menu-icon .line-1{
        top: 3px;
    }

    .logo-container .desktop-menu .menu-icon .line-2{
        top: 11px;
    }

    .logo-container .desktop-menu .menu-icon .line-3{
        top: 19px;
    }

    .logo-container .desktop-menu.open .line-3{
        transform: translateY(-9px) rotate(-45deg);
    }

    .logo-container .desktop-menu.open .line-1{
        transform: translateY(8px) rotate(45deg);
    }

    .logo-container .desktop-menu.open .line-2{
        opacity: 0;
    }

    header:has(.desktop-menu) .header-nav-menu{
        display: none;
    }

    header:has(.desktop-menu.open) .header-nav-menu{
        display: block;
        padding-top: var(--gapX6);
    }

    header .header-nav-menu .textS.social p{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--gapX2);
    }

    header .header-nav-menu .vc_row.vc_inner .vc_column_container{
        flex-direction: column;
        gap: unset;
        align-items: start;
        justify-content: start;
    }

    header:has(.desktop-menu.open) .header-nav-menu{
    position: absolute;
    background: #fffbf6;
    top: 68px;
    height: fit-content;
    width: var(--containerWidth);
    padding-left: var(--outsideGap);
    padding-right: var(--outsideGap);
    /* padding-top: var(--outsideGap); */
    padding-bottom: var(--outsideGap);
    }

    header .header-nav-menu .vc_column_container{
        flex-direction: column;
    }

    header .header-nav-menu .vc_column_container ul{
        flex-direction: column;
    }
}

header .buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

@media (min-width: 768px) {
    header {
        padding-top: var(--gapX5);
        padding-bottom: var(--gapX5);
    }
}

header>div:not(.vc_row), header .vc_column_container {
    align-items: center;
}

header .xleb-header-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    color: var(--contentPrimaryColor, #0A2753);
    background: transparent;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

header .xleb-header-action .xleb-header-action__icon,
header .xleb-header-action .xleb-header-action__icon path {
    display: block !important;
    width: 24px;
    height: 24px;
    fill: transparent;
    overflow: visible;
}

@media(max-width:991px){
    header .xleb-header-action {
        width: 22px;
        height: 22px;
    }

    header .xleb-header-action .xleb-header-action__icon,
    header .xleb-header-action .xleb-header-action__icon path {
        width: 22px;
        height: 22px;
    }

    .logo :is(img,svg){
        height: 16px;
    }

    .xleb-header-action.desktop{
        display: none;
    }
    
    header .mobile-burger .menu-icon .line{
        height: 2px;
        background: var(--primary500);
    }

    header .mobile-burger .menu-icon .line-2{
        top: 11px;
    }

    header .mobile-burger .menu-icon .line-3{
        top: 19px;
    }

    header .mobile-burger .menu-icon{
        width: 22px;
        height: 22px;
    }

    header .mobile-burger{
        padding: unset;
    }

    header .mobile-burger.opened .line-3{
        transform: translateY(-7px) rotate(-45deg) scale(1.2, 0.9);
    }

    header .mobile-burger.opened .line{
        background: var(--primaryOpacity500);
    }
}

header .xleb-header-action .xleb-header-action__icon path[fill-rule="evenodd"]{
    fill: var(--contentPrimaryColor);
}

header .xleb-header-action.is-active .xleb-header-action__icon{
    fill: var(--contentPrimaryColor);
}

header .xleb-header-action__icon--heart {
    width: 24px;
    height: 24px;
    fill: transparent;
    stroke: var(--contentPrimaryColor);
    stroke-width: 1.2px;
}

header .xleb-header-action--wishlist.is-active .xleb-header-action__icon--heart,
header .xleb-header-action--wishlist.is-active .xleb-header-action__icon--heart path {
    fill: var(--primary500);
    stroke: var(--primary500);
}

header .xleb-header-action--cart .xleb-header-action__cart-fill,
header .xleb-header-action--wishlist .xleb-header-action__icon-heart,
header .xleb-header-action--wishlist .xleb-header-action__icon-heart path {
    fill: transparent;
}

header .xleb-header-action--cart.is-active .xleb-header-action__cart-fill {
    fill: var(--primary500);
}

/* header .xleb-header-action--cart.is-active .xleb-header-action__icon--cart {
    opacity: 0;
}

header .xleb-header-action--cart.is-active::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 5px;
    width: 18px;
    height: 17px;
    background: currentColor;
    clip-path: polygon(9% 100%, 91% 100%, 80% 0, 20% 0);
} */

/* header .xleb-header-action--cart.is-active::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 1px;
    width: 10px;
    height: 8px;
    border: 1.2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
} */

header .xleb-header-action__count {
    position: absolute;
    z-index: 1;
    left: 47%;
    top: 45%;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    transform: translate(-50%, -38%);
    pointer-events: none;
}

header .xleb-header-action--wishlist .xleb-header-action__count {
    background: transparent;
    transform: translate(-50%, -45%);
}

header .xleb-header-action--cart .xleb-header-action__count {
    background: transparent;
    transform: translate(-50%, -10%);
}

.xcat-cart-popup[hidden] {
    display: none;
}

.xcat-cart-popup {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    color: var(--contentPrimaryColor, #0A2753);
}

.xcat-cart-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.xcat-cart-popup__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(50%, 100%);
    height: 100%;
    margin-left: auto;
    background: #fffbf6;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    padding: var(--gapX8) var(--gapX9) 0 var(--gapX9);
}

.xcat-cart-popup__summary.textL p+p{
    margin-top: unset;
}

.xcat-cart-popup.is-open .xcat-cart-popup__overlay {
    opacity: 1;
}

.xcat-cart-popup.is-open .xcat-cart-popup__panel {
    transform: translateX(0);
}

.xcat-cart-popup__header,
.xcat-cart-popup__footer {
    flex: 0 0 auto;
    padding: var(--gapX5, 24px) var(--gapX6, 32px);
}

.xcat-cart-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--dividerDefault, rgba(10, 39, 83, 0.16));
}

.xcat-cart-popup__header h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
}

.xcat-cart-popup__close {
    position: relative;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    color: currentColor;
    background: transparent;
    cursor: pointer;
}

.xcat-cart-popup__close::before,
.xcat-cart-popup__close::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 15px;
    width: 18px;
    height: 1px;
    background: currentColor;
}

.xcat-cart-popup__close::before {
    transform: rotate(45deg);
}

.xcat-cart-popup__close::after {
    transform: rotate(-45deg);
}

.xcat-cart-popup-item__remove {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    color: rgba(10, 39, 83, 0.42);
    background: transparent;
    cursor: pointer;
}

.xcat-cart-popup-item__remove::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 5h14M8 5V3.75C8 3.34 8.34 3 8.75 3h2.5c.41 0 .75.34.75.75V5m3.5 0-.62 10.03c-.05.82-.73 1.47-1.55 1.47H6.67c-.82 0-1.5-.65-1.55-1.47L4.5 5m3.5 3.25v5m4-5v5' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3 5h14M8 5V3.75C8 3.34 8.34 3 8.75 3h2.5c.41 0 .75.34.75.75V5m3.5 0-.62 10.03c-.05.82-.73 1.47-1.55 1.47H6.67c-.82 0-1.5-.65-1.55-1.47L4.5 5m3.5 3.25v5m4-5v5' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.xcat-cart-popup__body {
    /* flex: 1 1 auto; */
    min-height: 0;
    height: fit-content;
    overflow-y: auto;
    padding: var(--gapX5, 24px) var(--gapX6, 32px);
}

.xcat-cart-popup__state {
    padding: var(--gapX6, 32px) 0;
    color: rgba(10, 39, 83, 0.7);
    font-size: 16px;
    line-height: 1.4;
}

.xcat-cart-popup-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: var(--gapX2, 12px);
    padding: 0 0 var(--gapX4, 20px);
    border-bottom: 1px solid var(--primary-opacity-300, rgba(10, 39, 83, 0.25));
}

.xcat-cart-popup-item + .xcat-cart-popup-item {
    padding-top: var(--gapX4, 20px);
}

.xcat-cart-popup-item__image {
    display: block;
    flex: 0 0 182px;
    width: 182px;
    height: 182px;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #FCF5EC; 
}

.xcat-cart-popup-item__image img,
.xcat-cart-popup-item__image span {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.xcat-cart-popup-item__content {
    display: flex;
    min-width: 0;
    min-height: 182px;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
}

.xcat-cart-popup-item__main {
    display: flex;
    flex-direction: column;
    gap: var(--gapX3, 16px);
    min-width: 0;
}

.xcat-cart-popup-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--gapX3, 16px);
    width: 100%;
}

.xcat-cart-popup-item__title {
    min-width: 0;
    max-width: 448px;
    color: currentColor;
    font-size: var(--textMsize, 19px);
    line-height: var(--textMheightT, 24px);
    font-weight: 500;
    text-decoration: none;
    word-break: break-word;
}

.xcat-cart-popup-item__meta {
    width: 100%;
    color: var(--contentPrimaryColor, #0A2753);
    font-size: var(--textSsize, 16px);
    line-height: var(--textSheightT, 20px);
    font-weight: 400;
    word-break: break-word;
}

.xcat-cart-popup-item__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gapX3, 16px);
    width: 100%;
}

.xcat-cart-popup-item__qty {
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--contentPrimaryColor, #0A2753);
    font-size: var(--textMsize, 19px);
    line-height: var(--textMheightT, 24px);
}

.xcat-cart-popup-item__qty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 36px;
    padding: 0;
    border: 0;
    color: rgba(10, 39, 83, 0.64);
    background: transparent;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.xcat-cart-popup-item__qty input {
    width: 40px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--contentPrimaryColor, #0A2753);
    background: transparent;
    font: inherit;
    line-height: inherit;
    text-align: center;
    appearance: textfield;
}

.xcat-cart-popup-item__qty input::-webkit-outer-spin-button,
.xcat-cart-popup-item__qty input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.xcat-cart-popup-item__price {
    flex: 0 0 auto;
    color: var(--contentPrimaryColor, #0A2753);
    font-size: var(--textMsize, 19px);
    line-height: var(--textMheightT, 24px);
    font-weight: 500;
    white-space: nowrap;
}

.xcat-cart-popup__footer {
    /* border-top: 1px solid var(--dividerDefault, rgba(10, 39, 83, 0.16)); */
    background: #fffbf6;
}

.xcat-cart-popup__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gapX4, 20px);
    margin-bottom: var(--gapX4, 20px);
    font-size: 18px;
    line-height: 1.2;
}

.xcat-cart-popup__checkout {
    width: 100%;
}

.xcat-cart-popup-open {
    overflow: hidden;
}

.xcat-product-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: var(--radiusS, 4px);
    color: var(--contentPrimaryColor, #0A2753);
    background: transparent;
    cursor: pointer;
}

.xcat-product-wishlist-btn svg {
    width: 22px;
    height: 20px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.2px;
    overflow: visible;
}

.xcat-product-wishlist-btn.is-active svg {
    fill: currentColor;
}

@media(max-width:991px){
    .header-nav-menu{
        display: none !important;
    }

    header .logo-container .desktop-menu{
        display: none;
    }
}

@media(max-width:767px){
    .xcat-cart-popup {
        align-items: stretch;
        justify-content: center;
    }

    .xcat-cart-popup__overlay {
        display: none;
    }

    .xcat-cart-popup__panel {
        width: 100%;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: 28px 16px 0;
        border-radius: 0;
        overflow-y: auto;
        transform: translateY(100%);
    }

    .xcat-cart-popup.is-open .xcat-cart-popup__panel {
        transform: translateY(0);
    }

    .xcat-cart-popup__header {
        width: 100%;
        padding: 0 0 20px;
        border-bottom: 0;
    }

    .xcat-cart-popup__header h2 {
        font-size: var(--titleXXSsize, 18px);
        line-height: var(--titleXXSheightT, 22px);
        font-weight: 400;
    }

    .xcat-cart-popup__close {
        width: 20px;
        height: 20px;
        color: rgba(10, 39, 83, 0.55);
    }

    .xcat-cart-popup__close::before,
    .xcat-cart-popup__close::after {
        left: 3px;
        top: 9px;
        width: 14px;
    }

    .xcat-cart-popup__body {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 20px 0 0;
        border-top: 1px solid rgba(10, 39, 83, 0.25);
        overflow: visible;
    }

    .xcat-cart-popup__state {
        padding: 0 0 20px;
        font-size: 14px;
        line-height: 18px;
    }

    .xcat-cart-popup-item {
        gap: 16px;
        width: 100%;
        min-height: 127px;
        padding: 0 0 20px;
    }

    .xcat-cart-popup-item + .xcat-cart-popup-item {
        padding-top: 0;
    }

    .xcat-cart-popup-item__image {
        flex-basis: 107px;
        width: 107px;
        height: 107px;
    }

    .xcat-cart-popup-item__content {
        min-height: 107px;
        align-self: stretch;
    }

    .xcat-cart-popup-item__main {
        gap: 16px;
    }

    .xcat-cart-popup-item__head {
        flex-direction: column;
        gap: 12px;
    }

    .xcat-cart-popup-item__title,
    .xcat-cart-popup-item__price,
    .xcat-cart-popup-item__qty input {
        font-size: var(--textMsize, 16px);
        line-height: var(--textMheightT, 20px);
    }

    .xcat-cart-popup-item__title,
    .xcat-cart-popup-item__price {
        font-weight: 500;
    }

    .xcat-cart-popup-item__price {
        white-space: normal;
    }

    .xcat-cart-popup-item__meta {
        font-size: var(--textSsize, 14px);
        line-height: var(--textSheightT, 16px);
    }

    .xcat-cart-popup-item__meta--article {
        display: none;
    }

    .xcat-cart-popup-item__bottom {
        margin-top: 16px;
    }

    .xcat-cart-popup-item__qty-button {
        width: 14px;
        height: 24px;
        font-size: 16px;
        line-height: 1;
    }

    .xcat-cart-popup-item__qty input {
        width: 36px;
        height: 24px;
    }

    .xcat-cart-popup-item__remove {
        width: 20px;
        height: 20px;
    }

    .xcat-cart-popup__footer {
        width: calc(100% + 32px);
        margin: 0 -16px;
        padding: 28px 0px 32px;
        background: #fffbf6;
    }

    .xcat-cart-popup__summary {
        gap: 16px;
        margin-bottom: 24px;
        font-size: var(--textLsize, 18px);
        line-height: var(--textLheightT, 22px);
    }

    .xcat-cart-popup__summary p {
        margin: 0;
        white-space: nowrap;
    }
    .xcat-cart-popup__footer .vc_row {
        display: flex;
        gap: 8px;
        width: 100%;
        margin: 0;
    }

    .xcat-cart-popup__footer .vc_col-sm-6,
    .xcat-cart-popup__footer .vc_col-xs-6 {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
    }

    .xcat-cart-popup__checkout {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 4px;
        font-size: var(--textSsize, 14px);
        line-height: var(--textSheightT, 16px);
        white-space: nowrap;
    }

    .btn.outlined.medium.xcat-cart-popup__checkout{
        font-size: var(--textSsize);
    }
}
