/* Скрыть только кнопку корзины, но оставить работу корзины */
.t706__carticon {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Кнопка "Загрузить ещё" */
.t-store__load-more-btn {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;

    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;

    text-transform: uppercase;
    transition: all 0.25s ease;
}

/* Hover для кнопки "Загрузить ещё" */
.t-store__load-more-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Кнопка "Таблица размеров" внутри карточки товара */
.size-btn {
    display: inline-block !important;
    padding: 10px 20px !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;

    background-color: #ffffff !important;
    color: #000000 !important;

    border: 1px solid #000000 !important;
    border-radius: 0 !important;

    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;

    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;

    min-width: 260px !important;
    box-sizing: border-box !important;

    transition: all 0.25s ease !important;
}

/* Hover для кнопки "Таблица размеров" */
.size-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

/* Поп-ап таблицы размеров */
.size-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999999;
}

/* Открытое состояние поп-апа */
.size-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Затемнение фона за поп-апом */
.size-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

/* Контейнер поп-апа без белого фона */
.size-popup__box {
    position: relative;
    z-index: 2;

    width: auto;
    max-width: 90vw;
    max-height: 90vh;

    padding: 0;
    margin: 0;

    background: transparent;
    border: none;
    box-shadow: none;

    animation: sizePopupFade 0.25s ease;
}

/* Картинка таблицы размеров */
.size-popup__box img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
}

/* Крестик закрытия поверх картинки */
.size-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: rgba(255, 255, 255, 0.85) !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;

    color: #000000 !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;

    transition: all 0.25s ease !important;
}

/* Hover для крестика */
.size-popup__close:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Плавное появление поп-апа */
@keyframes sizePopupFade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптация поп-апа под телефон */
@media screen and (max-width: 640px) {
    .size-btn {
        width: 100% !important;
        min-width: 0 !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    .size-popup__box img {
        max-width: 96vw;
        max-height: 88vh;
    }

    .size-popup__close {
        top: 10px;
        right: 10px;

        width: 36px;
        height: 36px;

        font-size: 26px;
    }
}
/* Центрирование поп-апа таблицы размеров на мобильной версии */
@media screen and (max-width: 640px) {
    .size-popup {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        width: 100vw !important;
        height: 100vh !important;

        display: none;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;
    }

    .size-popup.active {
        display: flex !important;
    }

    .size-popup__box {
        position: relative !important;

        width: 100vw !important;
        max-width: 100vw !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 auto !important;
        padding: 0 !important;

        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .size-popup__box img {
        display: block !important;

        width: 88vw !important;
        max-width: 88vw !important;
        max-height: 86vh !important;

        height: auto !important;
        margin: 0 auto !important;
    }

    .size-popup__close {
        position: absolute !important;
        top: 10px !important;
        right: calc(4vw + 10px) !important;
        z-index: 10 !important;
    }
}
/* Отображение описания товара из 1С */
.js-store-prod-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    color: #000000 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;

    white-space: pre-line !important;
}

/* Кнопка "Таблица размеров" не должна наследовать переносы текста */
.js-store-prod-text .size-btn {
    white-space: normal !important;
}
/* Описание товара из 1С */
.js-store-prod-text {
    display: block !important;
    white-space: pre-line !important;

    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    color: #000000 !important;
}
