/* 1. ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ СЧЕТЧИКОВ КОРЗИНЫ И ИЗБРАННОГО */
.custom-cart-count,
.custom-wishlist-count {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    background-color: #505050;
    color: #E2E2E2;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0px;
    position: absolute;
    top: 0px;
    right: 15px;
    
    /* Скрываем по умолчанию */
    display: none !important;
}

/* Отступы на мобилке */
@media (max-width: 639px) {
    .custom-cart-count,
    .custom-wishlist-count {
        top: px !important;
        right: 7px !important;
    }
}

/* Когда внутри есть текст — показываем */
.custom-cart-count:not(:empty),
.custom-wishlist-count:not(:empty) {
    display: inline-flex !important;
}


/* ===== 2. АДАПТИВНЫЕ ХЛЕБНЫЕ КРОШКИ ===== */

/* ---------- БАЗОВЫЕ НАСТРОЙКИ (для самых маленьких экранов) ---------- */

.t-catalog__breadcrumbs.js-catalog-breadcrumbs.t-descr.t-descr_xxs {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 0px !important;
    color: #2E2E2E !important;
}

.t-catalog__breadcrumbs a,
.t-catalog__breadcrumbs span {
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
}

/* Цвет ссылок в хлебных крошках */
.t-catalog__breadcrumbs a {
    color: #2E2E2E !important;
    text-decoration: none !important;
}

/* Цвет ссылок при наведении */
.t-catalog__breadcrumbs a:hover {
    color: #2E2E2E !important;
}

/* Цвет активного/текущего элемента (последняя крошка) */
.t-catalog__breadcrumbs span {
    color: #2E2E2E !important;
}


/* ---------- БРЕЙКПОИНТ 640px ---------- */
@media (min-width: 640px) {
    .t-catalog__breadcrumbs.js-catalog-breadcrumbs.t-descr.t-descr_xxs {
        font-size: 14px !important;
        letter-spacing: 0px !important;
    }
}


/* ---------- БРЕЙКПОИНТ 960px ---------- */
@media (min-width: 960px) {
    .t-catalog__breadcrumbs.js-catalog-breadcrumbs.t-descr.t-descr_xxs {
        font-size: 15px !important;
        letter-spacing: 0px !important;
    }
}


/* ---------- БРЕЙКПОИНТ 1200px ---------- */
@media (min-width: 1200px) {
    .t-catalog__breadcrumbs.js-catalog-breadcrumbs.t-descr.t-descr_xxs {
        font-size: 16px !important;
        letter-spacing: 0px !important;
    }
}


/* ---------- БРЕЙКПОИНТ 1600px ---------- */
@media (min-width: 1600px) {
    .t-catalog__breadcrumbs.js-catalog-breadcrumbs.t-descr.t-descr_xxs {
        font-size: 18px !important;
        letter-spacing: 0px !important;
    }
}


/* ===== 3.1. СТИЛИ ДЛЯ ТАБОВ В КАРТОЧКАХ ТОВАРОВ ===== */

/* ---------- БАЗОВЫЕ НАСТРОЙКИ (для самых маленьких экранов) ---------- */

/* 1. Названия табов (кнопки) — базовый размер для 360px */
.t-catalog__tabs__item-title.t-name,
.t-catalog__tabs__item-title.t-name_xs,
.t-catalog__tabs__item-title {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

/* 2. Содержимое табов (текст внутри) — базовый размер для 360px */
.t-catalog__tabs__content.t-descr,
.t-catalog__tabs__content.t-descr_xxs,
.t-catalog__tabs__content * {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}


/* ---------- БРЕЙКПОИНТ 640px ---------- */
@media (min-width: 640px) {
    .t-catalog__tabs__item-title.t-name,
    .t-catalog__tabs__item-title.t-name_xs,
    .t-catalog__tabs__item-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .t-catalog__tabs__content.t-descr,
    .t-catalog__tabs__content.t-descr_xxs,
    .t-catalog__tabs__content * {
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}


/* ---------- БРЕЙКПОИНТ 960px ---------- */
@media (min-width: 960px) {
    .t-catalog__tabs__item-title.t-name,
    .t-catalog__tabs__item-title.t-name_xs,
    .t-catalog__tabs__item-title {
        font-size: 17px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .t-catalog__tabs__content.t-descr,
    .t-catalog__tabs__content.t-descr_xxs,
    .t-catalog__tabs__content * {
        font-size: 15px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}


/* ---------- БРЕЙКПОИНТ 1200px ---------- */
@media (min-width: 1200px) {
    .t-catalog__tabs__item-title.t-name,
    .t-catalog__tabs__item-title.t-name_xs,
    .t-catalog__tabs__item-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .t-catalog__tabs__content.t-descr,
    .t-catalog__tabs__content.t-descr_xxs,
    .t-catalog__tabs__content * {
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}


/* ---------- БРЕЙКПОИНТ 1600px ---------- */
@media (min-width: 1600px) {
    .t-catalog__tabs__item-title.t-name,
    .t-catalog__tabs__item-title.t-name_xs,
    .t-catalog__tabs__item-title {
        font-size: 20px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .t-catalog__tabs__content.t-descr,
    .t-catalog__tabs__content.t-descr_xxs,
    .t-catalog__tabs__content * {
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}

/* ===== 3.2. СТИЛИ ДЛЯ СВОЙСТВ ТОВАРА В КАРТОЧКЕ ===== */

/* ---------- БАЗОВЫЕ НАСТРОЙКИ (для самых маленьких экранов) ---------- */

/* ---------- НАЗВАНИЯ СВОЙСТВ (js-product-edition-option-name) ---------- */

.js-product-edition-option-name.t-product__option-title.t-typography__options.t-descr.t-descr_xxs {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}


/* ---------- РАДИОКНОПКИ (текст рядом с кнопками) ---------- */

.t-product__option-title.t-product__option-title_radio.t-product__option-title_simple.t-typography__options.t-descr.t-descr_xxs {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}


/* ---------- БРЕЙКПОИНТ 640px ---------- */
@media (min-width: 640px) {
    .js-product-edition-option-name.t-product__option-title.t-typography__options.t-descr.t-descr_xxs {
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .t-product__option-title.t-product__option-title_radio.t-product__option-title_simple.t-typography__options.t-descr.t-descr_xxs {
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}


/* ---------- БРЕЙКПОИНТ 960px ---------- */
@media (min-width: 960px) {
    .js-product-edition-option-name.t-product__option-title.t-typography__options.t-descr.t-descr_xxs {
        font-size: 17px !important; 
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .t-product__option-title.t-product__option-title_radio.t-product__option-title_simple.t-typography__options.t-descr.t-descr_xxs {
        font-size: 15px !important; 
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}


/* ---------- БРЕЙКПОИНТ 1200px ---------- */
@media (min-width: 1200px) {
    .js-product-edition-option-name.t-product__option-title.t-typography__options.t-descr.t-descr_xxs {
        font-size: 18px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .t-product__option-title.t-product__option-title_radio.t-product__option-title_simple.t-typography__options.t-descr.t-descr_xxs {
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}


/* ---------- БРЕЙКПОИНТ 1600px ---------- */
@media (min-width: 1600px) {
    .js-product-edition-option-name.t-product__option-title.t-typography__options.t-descr.t-descr_xxs {
        font-size: 20px !important; 
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .t-product__option-title.t-product__option-title_radio.t-product__option-title_simple.t-typography__options.t-descr.t-descr_xxs {
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
    }
}


/* 3.2. ===== ОТСТУП МЕЖДУ СВОЙСТВАМИ И ЦЕНОЙ ===== */

.js-product-controls-wrapper {
    margin-top: 30px !important;
}


/* ===== 4. КАСТОМИЗАЦИЯ ОКНА ИЗБРАННОГО (БЛОК ST110) ===== */

.t1002__wishlistwin-content {
    background-color: #373737 !important;
    box-shadow: 0 0px 0px rgba(0,0,0,0) !important;
    border: none !important;
    border-radius: 0px !important;
}

.t1002__wishlistwin-title {
    background-color: transparent !important;
    color: #FFFFFF !important;
}

.t1002__wishlistwin-content,
.t1002__wishlistwin-content .t-descr,
.t1002__wishlistwin-content .t-name,
.t1002__wishlistwin-content .t1002__wishlistwin-product-title,
.t1002__wishlistwin-content .t1002__wishlistwin-product-descr,
.t1002__wishlistwin-content .t1002__wishlistwin-product-price {
    color: #FFFFFF !important;
}

/* ===== ЛИНИЯ ПОД ЗАГОЛОВКОМ ===== */
.t1002__wishlistwin-title-line,
.t1002__wishlistwin-title .t-divider,
.t1002__wishlistwin-title-line {
    background-color: #FFFFFF !important;  /* Цвет линии */
    border-color: #FFFFFF !important;       /* Цвет для border (если линия через border) */
    opacity: 1 !important;                 /* Полная непрозрачность */
}

/* Альтернативный вариант — если линия сделана через border-bottom */
.t1002__wishlistwin-title {
    border-bottom: 2px solid #FFFFFF !important; /* Белая линия под заголовком */
}

/* ===== КРЕСТИК ЗАКРЫТИЯ ИЗБРАННОГО ===== */
.t1002__wishlistwin-close-icon,
.t1002__wishlistwin-close-icon svg,
.t1002__wishlistwin-close-icon path,
.t1002__wishlistwin-close-icon * {
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
    color: #FFFFFF !important;
}


/* ===== НАЗВАНИЕ ТОВАРА В ИЗБРАННОМ – ЖИРНОСТЬ И РАЗМЕР ===== */

.t1002__product-link {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important; 
    line-height: 1.1 !important;
}

/* Для мобилок */
@media (max-width: 639px) {
    .t1002__product-link {
        font-size: 17px !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
    }
}


/* ===== НАЗВАНИЕ СВОЙСТВА ТОВАРА В ИЗБРАННОМ ===== */

/* Мобилки (базовый) — усиленный селектор */
.t1002__product-title__option,
.t1002__product-title__option.t-descr,
.t1002__product-title__option.t-descr_xxs,
.t1002__product-title__option span,
.t1002__product-title__option .t-descr {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

/* Десктопы (от 960px) */
@media (min-width: 960px) {
    .t1002__product-title__option,
    .t1002__product-title__option.t-descr,
    .t1002__product-title__option.t-descr_xxs,
    .t1002__product-title__option span,
    .t1002__product-title__option .t-descr {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }
}


/* ===== КРЕСТИКИ УДАЛЕНИЯ КАК  — ДЕЛАЕМ БЕЛЫМИ ===== */

/* Способ 1: Через фильтр (превращает в белый) */
.t1002__product-del img,
img.t1002__product-del,
.t1002__product-del img[src*="del"],
.t1002__product-del img[src*="remove"],
.t1002__product-del img[src*="close"] {
    filter: brightness(0) saturate(100%) invert(1) !important;
}


/* ===== 5. КАСТОМИЗАЦИЯ КОРЗИНЫ (БЛОК ST100) ТЕМНАЯ===== */

/* Основной фон окна корзины */
.t706__cartwin-content {
    background-color: #2E2E2E !important;
    border: 1px solid #467000 !important;
    border-radius: 10px !important;
    box-shadow: 0 0px 0px rgba(0,0,0,0) !important;
}

/* Фон шапки корзины */
.t706__cartwin-head {
    background-color: transparent !important;
    border-bottom: 1px solid #505050 !important;
}

/* Фон нижней части (итоговая сумма) */
.t706__cartwin-bottom {
    background-color: #2E2E2E !important;
    border-top: 1px solid #505050 !important;
}

/* Фон контейнера с товарами */
.t706__cartwin-products-wrap {
    background-color: transparent !important;
}

/* ===== ПОЛЯ ДЛЯ ВВОДА В КОРЗИНЕ ===== */

.t706__cartwin-content .t-input,
.t706__cartwin-content input[type="text"],
.t706__cartwin-content input[type="email"],
.t706__cartwin-content input[type="tel"],
.t706__cartwin-content textarea {
    background-color: #373737 !important;
    border: 1px solid #505050 !important;
    color: #FFFFFF !important;
    border-radius: 6px !important;
}

/* ===== ПОЛЕ ТЕЛЕФОНА — УБИРАЕМ ОБВОДКУ ===== */
.t-input.t-input-phonemask,
.t706__cartwin-content .t-input.t-input-phonemask {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.t706__cartwin-content .t-input::placeholder,
.t706__cartwin-content input::placeholder {
    color: #999999 !important;
}

/* ===== ВСЕ ТЕКСТЫ В КОРЗИНЕ ===== */

.t706__cartwin-content,
.t706__cartwin-content .t-descr,
.t706__cartwin-content .t-name,
.t706__cartwin-content .t706__cartwin-totalamount-info_label,
.t706__cartwin-content .t706__cartwin-totalamount-info_amount,
.t706__cartwin-content .t706__cartwin-product-title,
.t706__cartwin-content .t706__cartwin-product-descr,
.t706__cartwin-content .t706__cartwin-product-price,
.t706__cartwin-content .t706__cartwin-product-quantity {
    color: #FFFFFF !important;
}

/* ===== КОЛИЧЕСТВО ТОВАРА (ЦИФРА) ===== */
.t706__product-quantity,
.t706__product-quantity input,
.t706__product-quantity span,
.t706__product-quantity-value {
    color: #FFFFFF !important;
    background-color: transparent !important;
}

/* ===== ЧЕК-БОКСЫ В КОРЗИНЕ ===== */

.t706__cartwin-content input[type="checkbox"] {
    accent-color: #467000 !important;
    filter: brightness(0) invert(1) !important;
}

.t706__cartwin-content .t-checkbox__box,
.t706__cartwin-content .t-checkbox__indicator {
    background-color: #373737 !important;
    border: 1px solid #FFFFFF !important;
}

.t706__cartwin-content .t-checkbox__label,
.t706__cartwin-content .t-checkbox__text,
.t706__cartwin-content label {
    color: #E2E2E2 !important;
}


/* ===== ТЕКСТ ЧЕК-БОКСОВ В КОРЗИНЕ ===== */

/* Мобилки (базовый) */
.t706__cartwin-content .t-checkbox__label,
.t706__cartwin-content .t-checkbox__text,
.t706__cartwin-content label {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
}

/* Десктопы */
@media (min-width: 960px) {
    .t706__cartwin-content .t-checkbox__label,
    .t706__cartwin-content .t-checkbox__text,
    .t706__cartwin-content label {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }
}



/* ===== НАЗВАНИЕ ТОВАРА В КОРЗИНЕ – ЖИРНОСТЬ И РАЗМЕР ===== */

/* Базовые настройки для десктопов */
.t706__product-title,
.t706__cartwin-product-title,
.t706__product-title.t-descr.t-descr_sm {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important; 
    line-height: 1.1 !important;
}

/* Для мобилок (до 639px) */
@media (max-width: 639px) {
    .t706__product-title,
    .t706__cartwin-product-title,
    .t706__product-title.t-descr.t-descr_sm {
        font-size: 17px !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
    }
}

/* ===== НАЗВАНИЕ СВОЙСТВА ТОВАРА В КОРЗИНЕ ===== */

/* Мобилки (базовый) */
.t706__product-title__option {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

/* Десктопы */
@media (min-width: 960px) {
    .t706__product-title__option {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }
}

/* ===== ИТОГОВАЯ СУММА ===== */

.t706__cartwin-totalamount-content,
.t706__cartwin-totalamount-info .t706__cartwin-totalamount-amount {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
}

/* ===== РАДИОКНОПКА В КОРЗИНЕ (УНИВЕРСАЛЬНЫЙ) ===== */

/* Все радиокнопки в корзине */
.t706__cartwin-content .t-radio__indicator {
    border-color: #505050 !important;
    background-color: transparent !important;
}

/* Активная радиокнопка */
.t706__cartwin-content .t-radio__input:checked + .t-radio__indicator,
.t706__cartwin-content .t-radio__indicator.t-radio__indicator_checked {
    border-color: #FFFFFF !important;
    background-color: #FFFFFF !important;
}

/* Внутренняя точка */
.t706__cartwin-content .t-radio__indicator::after {
    background-color: #FFFFFF !important;
} 

/* ===== ТЕКСТОВЫЕ ПОЛЯ В КОРЗИНЕ (t-text) ===== */

/* Мобилки (базовый) — усиленный селектор */
.t706__cartwin-content .t-text,
.t706__cartwin-content .t-text_sm,
.t706__cartwin-content .t-text_md,
.t706__cartwin-content .t-text_lg,
.t706__cartwin-content .t-text_xs,
.t706__cartwin-content span.t-text,
.t706__cartwin-content div.t-text,
.t706__cartwin-content p.t-text {
    font-family: 'NunitoSans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #FFFFFF !important;
}

/* Десктопы (от 960px) */
@media (min-width: 960px) {
    .t706__cartwin-content .t-text,
    .t706__cartwin-content .t-text_sm,
    .t706__cartwin-content .t-text_md,
    .t706__cartwin-content .t-text_lg,
    .t706__cartwin-content .t-text_xs,
    .t706__cartwin-content span.t-text,
    .t706__cartwin-content div.t-text,
    .t706__cartwin-content p.t-text {
        font-size: 16px !important;
        line-height: 1.2 !important;
        color: #FFFFFF !important;
    }
} 



/* ===== 7. ВЫРАВНИВАНИЕ КНОПОК В КАРТОЧКЕ ТОВАРА ПО ШИРИНЕ ===== */

/* Контейнер кнопок */
.t-store__card__btns {
    display: flex !important;
    flex-wrap: wrap !important; /* Разрешаем перенос на новую строку */
    gap: 8px !important;        /* Отступ между кнопками */
    width: 100% !important;
}

/* Сами кнопки */
.t-catalog__card__btn {
    flex: 1 1 auto !important;  /* Кнопка занимает столько места, сколько нужно */
    min-width: 120px !important; /* Минимальная ширина кнопки (чтобы не съехала в ноль) */
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Если кнопка перенеслась на новую строку — растягиваем её на всю ширину */
.t-catalog__card__btn:last-child:nth-child(odd) {
    flex: 1 1 100% !important;  /* Последняя кнопка, если она одна в строке, растягивается на 100% */
}

/* ===== 8. КАСТОМНАЯ КНОПКА ЗАКРЫТИЯ КОРЗИНЫ ===== */
/* ===== 8.1. СКРЫВАЕМ СТАНДАРТНУЮ КНОПКУ ЗАКРЫТИЯ ===== */

.t706__close.t706__cartwin-close,
.t706__cartwin-close,
.t706__cartwin-close-wrapper,
.t706__cartwin-close-btn,
.t706__cartwin-close-icon,
.t706__cartwin-close-btn-icon,
.t706__cartwin-close img,
.t706__cartwin-close svg,
[class*="cartwin-close"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}


/* ===== 8.2. КАСТОМНАЯ КНОПКА ЗАКРЫТИЯ ===== */

/* По умолчанию кнопка скрыта */
.custom-cart-close-btn {
    display: none !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 999999 !important; /* Очень высокий приоритет */
    width: 60px !important;
    height: 60px !important;
    background-color: #467000 !important;
    border: 2px solid #467000 !important;
    border-radius: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Показываем кнопку, только когда корзина открыта */
body.t706__body_cartwinshowed .custom-cart-close-btn {
    display: flex !important;
}

/* Крестик через псевдоэлементы */
.custom-cart-close-btn::before,
.custom-cart-close-btn::after {
    content: '' !important;
    position: absolute !important;
    width: 24px !important;
    height: 2px !important;
    background-color: #FFFFFF !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
}

.custom-cart-close-btn::before {
    transform: rotate(45deg) !important;
}

.custom-cart-close-btn::after {
    transform: rotate(-45deg) !important;
}

/* При наведении */
.custom-cart-close-btn:hover {
    background-color: transparent !important;
    border-color: #467000 !important;
}

.custom-cart-close-btn:hover::before,
.custom-cart-close-btn:hover::after {
    background-color: #467000 !important;
}

/* ===== ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (до 639px) ===== */
@media (max-width: 639px) {
    .custom-cart-close-btn {
        width: 50px !important;
        height: 50px !important;
        top: 2px !important;
        right: 2px !important;
    }
    
    .custom-cart-close-btn::before,
    .custom-cart-close-btn::after {
        width: 20px !important;
    }
}

/* ===== 9. КАСТОМНАЯ КНОПКА ЗАКРЫТИЯ ИЗБРАННОГО ===== */

/* ===== 9.1. СКРЫВАЕМ СТАНДАРТНУЮ КНОПКУ ЗАКРЫТИЯ ИЗБРАННОГО ===== */

.t1002__close-button.t1002__wishlistwin-close-wrapper,
.t1002__wishlistwin-close,
.t1002__wishlistwin-close-wrapper,
.t1002__wishlistwin-close-btn,
.t1002__wishlistwin-close-icon,
.t1002__wishlistwin-close-btn-icon,
.t1002__wishlistwin-close img,
.t1002__wishlistwin-close svg,
.t1002__close-button,                           /* ← Добавила твой класс отдельно */
.t1002__wishlistwin-close-button,               /* ← И возможные вариации */
[class*="wishlistwin-close"],
[class*="close-button"] {                       /* ← Универсальный перехват */
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    z-index: -9999 !important;
}
/* ===== 9.2. КАСТОМНАЯ КНОПКА ЗАКРЫТИЯ ИЗБРАННОГО ===== */

/* По умолчанию кнопка скрыта */
.custom-wishlist-close-btn {
    display: none !important;
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999999 !important; /* Повышаем до максимума */
    width: 60px !important;
    height: 60px !important;
    background-color: #467000 !important;
    border: 2px solid #467000 !important;
    border-radius: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important; /* Чтобы точно реагировала на клик */
}

/* Показываем кнопку, только когда избранное открыто */
body.t1002__body_wishlistwinshowed .custom-wishlist-close-btn {
    display: flex !important;
}

/* Крестик через псевдоэлементы */
.custom-wishlist-close-btn::before,
.custom-wishlist-close-btn::after {
    content: '' !important;
    position: absolute !important;
    width: 24px !important;
    height: 2px !important;
    background-color: #FFFFFF !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
}

.custom-wishlist-close-btn::before {
    transform: rotate(45deg) !important;
}

.custom-wishlist-close-btn::after {
    transform: rotate(-45deg) !important;
}

/* При наведении */
.custom-wishlist-close-btn:hover {
    background-color: transparent !important;
    border-color: #467000 !important;
}

.custom-wishlist-close-btn:hover::before,
.custom-wishlist-close-btn:hover::after {
    background-color: #467000 !important;
}

/* ===== ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (до 639px) ===== */
@media (max-width: 639px) {
    .custom-wishlist-close-btn {
        width: 50px !important;
        height: 50px !important;
        top: 2px !important;
        right: 2px !important;
        z-index: 9999999 !important;
    }
    
    .custom-wishlist-close-btn::before,
    .custom-wishlist-close-btn::after {
        width: 20px !important;
    }
}
/* Принудительно поднимаем кнопку над всеми слоями */
.custom-wishlist-close-btn {
    z-index: 2147483647 !important; /* Максимально возможное значение */
}

/* И проверяем, что у окошка избранного z-index ниже */
.t1002__wishlistwin-content {
    z-index: 99999 !important; /* Убедимся, что окошко ниже кнопки */
}


