/* --- Второстепенная кнопка — стилизация под кнопку "Купить" --- */
.js-store-prod-text a:first-of-type {
    display: flex !important;            /* чтобы текст и иконка выравнивались */
    align-items: center !important;      /* центрирование по вертикали */
    justify-content: center !important;  /* центрирование по горизонтали */
    gap: 10px !important;                /* отступ между иконкой и текстом */
    
    font-family: 'Montserrat', sans-serif !important; /* шрифт как в кнопке "Купить" */
    font-weight: 600 !important;         /* SemiBold */
    font-size: 14px !important;          /* размер шрифта как в кнопке "Купить" */
    
    height: 48px !important;             /* высота кнопки как у "Купить" */
    line-height: 1 !important;
    
    padding: 0 20px !important;          /* горизонтальные отступы */
    border-radius: 8px !important;       /* скругление как у основной кнопки */
    transition: all 0.3s ease !important;
    
    background-color: #ffffff !important; /* дефолтный фон */
    color: #5F6755 !important;           /* дефолтный цвет текста */
    border: 1px solid #5F6755 !important;
}

/* Иконка */
.js-store-prod-text a:first-of-type:before {
    content: ""; /* обязательно */ 
    display: inline-block;
    width: 20px !important;              /* размер иконки */
    height: 20px !important;
    margin: 0 10px 0 0 !important;       /* отступ справа */
    vertical-align: middle !important;
    background-image: url('https://static.tildacdn.com/tild3334-6265-4362-b461-663238386433/___.svg');
}

/* Hover-состояние */
.js-store-prod-text a:first-of-type:hover {
    background-color: #5F6755 !important;
    color: #ffffff !important;
    border-color: #5F6755 !important;
}

.js-store-prod-text a:first-of-type:hover:before {
    filter: brightness(0) invert(1) !important; /* иконка светлая при hover */
}

/* --- Мобильная версия: кнопка на всю ширину --- */
@media screen and (max-width: 768px) {
    .js-store-prod-text a:first-of-type {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}






/* Артикул в каталоге товаров */
.t-store__card .t-store__card__sku {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px;
    font-weight: 500; /* Medium */
    color: #6A725E !important;
}





/* Кнопка "Купить" в попапе товара — дефолтное состояние */
.t-store__prod-popup__btn-wrapper .t-btnflex.t-btnflex_type_button {
    display: flex !important;             /* flex-контейнер */
    align-items: center;                  /* центрируем по вертикали */
    justify-content: center;              /* центрируем по горизонтали */
    gap: 8px;
    height: 48px !important;
    /* отступ между иконкой и текстом */
    
    background-color: #6A725E !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    border-radius: 8px;
    transition: 
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.3s ease;
}

/* Текст кнопки */
.t-store__prod-popup__btn-wrapper .t-btnflex__text {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

/* Иконка кнопки */
.t-store__prod-popup__btn-wrapper .t-btnflex__icon {
    display: inline-block;
    filter: brightness(0) invert(1); /* белая */
    width: 20px;                     /* размер иконки */
    height: 20px;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Hover-состояние */
@media (hover:hover) {
    .t-store__prod-popup__btn-wrapper .t-btnflex.t-btnflex_type_button:hover {
        background-color: #ffffff !important;
        color: #6A725E !important;
        border-color: #6A725E !important;
    }

    .t-store__prod-popup__btn-wrapper .t-btnflex.t-btnflex_type_button:hover .t-btnflex__text {
        color: #6A725E !important;
    }

    .t-store__prod-popup__btn-wrapper .t-btnflex.t-btnflex_type_button:hover .t-btnflex__icon {
        filter: none; /* иконка становится зелёной */
        opacity: 1;
    }
}

/* Press/active-состояние */
.t-store__prod-popup__btn-wrapper .t-btnflex.t-btnflex_type_button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) inset;
}


/* Мобильная версия кнопки "Купить" на странице товара */
@media (max-width: 768px) {
    .t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important; /* центрирует всё */
        width: 100% !important;
        gap: 8px; /* расстояние между иконкой и текстом */
        box-sizing: border-box;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Иконка */
    .t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn .t-btnflex__icon {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0;
        filter: brightness(0) invert(1); /* белая */
    }

    /* Таблица — превращаем в блок и центрируем текст */
    .t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn table {
        display: block !important;
        width: auto !important;
        height: auto !important;
    }

    .t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn table td {
        display: inline-block !important;
        text-align: center !important;
        padding: 0 !important;
    }

    .t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn .t-btnflex__text {
        display: inline-block !important;
        font-family: 'Montserrat', sans-serif !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        vertical-align: middle;
    }
}









/* Иконки избранного */

/* Выравнивание кнопок в попапе */
.t-store__prod-popup__btn-wrapper {
    align-items: center;
    gap: 10px;
}

/* Псевдоэлементы для иконок */
a.t1002__addBtn::before,
a.t1002__addBtn::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: all 0.4s ease-in-out;
}

/* Дефолтная иконка */
a.t1002__addBtn:not(.t1002__addBtn_active)::after {
    background-image: url("https://static.tildacdn.com/tild3938-3863-4430-a638-396465373862/_.svg");
    opacity: 1;
}

/* Скрываем дефолтную при active */
a.t1002__addBtn.t1002__addBtn_active::after {
    opacity: 0;
}

/* Active / hover иконка */
a.t1002__addBtn:not(.t1002__addBtn_active)::before {
    opacity: 0;
}

a.t1002__addBtn.t1002__addBtn_active::before {
    background-image: url("https://static.tildacdn.com/tild3434-3735-4532-b663-313634653334/_.svg");
    opacity: 1;
}

/* Hover */
a.t1002__addBtn:hover::after {
    background-image: url("https://static.tildacdn.com/tild3434-3735-4532-b663-313634653334/_.svg");
    opacity: 1;
}

/* Прячем стандартный SVG */
.t1002__addBtn svg {
    display: none;
}

/* Кнопка избранного */
.t1002__addBtn {
    width: 46px;
    height: 46px;
    border-radius: 14px !important;
    background: #ffffff !important;
    transition: all 0.4s ease-in-out;
    position: relative;
}

/* Hover-состояние кнопки */
.t1002__addBtn:hover {
    border-radius: 60px !important;
    background: #ffffff !important;
}

/* Active-состояние */
.t1002__addBtn_active {
    background-color: #ffffff !important;
}

/* Мобилка */
@media all and (max-width: 640px) {
    .t-store__prod__quantity {
        margin: 0 !important;
    }
}




/* Плашка метки whitebox слева */
.t-store__card .nlm-badge {
    position: absolute !important;
    left: 10px !important;       /* отступ слева */
    top: 10px !important;        /* отступ сверху */
    right: auto !important;      /* убираем правый отступ */
    z-index: 10 !important;      /* поверх других элементов */
}







@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

/* Только фильтр "Тип" */
.t951__sidebar-wrapper [data-filter-name="charact:8626038"] 
.t-store__filter__title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-style: medium !important;
}

