/* ---------- hidden technical catalog block ---------- */
@font-face {
    font-family: "Selfles Oswald Medium";
    src: url("https://static.tildacdn.com/tild6163-3130-4832-a261-306538633136/Oswald-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

#rec2310894021 {
    position: absolute !important;
    left: -99999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* ---------- product page: pre-hide technical meta before JS ---------- */

.t-store__prod-popup__info .t-store__prod-popup__sku,
.t-store__prod-popup__info .t-store__prod__sku,
.t-store__prod-popup__info .js-product-sku,
.t-store__prod-popup__info .t-store__prod-popup__properties,
.t-store__prod-popup__info .t-store__prod__properties,
.t-store__prod-popup__info .t-store__prod-popup__charcs,
.t-store__prod-popup__info .t-store__prod__charcs,
.t-store__prod-popup__info .js-store-prod-all-charcs,
.t-store__prod-popup__info .js-store-prod-dimensions,
.t-store__prod-popup__info .js-store-prod-weight,
.t-store__prod-snippet__info .t-store__prod-popup__sku,
.t-store__prod-snippet__info .t-store__prod__sku,
.t-store__prod-snippet__info .js-product-sku,
.t-store__prod-snippet__info .t-store__prod-popup__properties,
.t-store__prod-snippet__info .t-store__prod__properties,
.t-store__prod-snippet__info .t-store__prod-popup__charcs,
.t-store__prod-snippet__info .t-store__prod__charcs,
.t-store__prod-snippet__info .js-store-prod-all-charcs,
.t-store__prod-snippet__info .js-store-prod-dimensions,
.t-store__prod-snippet__info .js-store-prod-weight,
.t-store__prod__info .t-store__prod-popup__sku,
.t-store__prod__info .t-store__prod__sku,
.t-store__prod__info .js-product-sku,
.t-store__prod__info .t-store__prod-popup__properties,
.t-store__prod__info .t-store__prod__properties,
.t-store__prod__info .t-store__prod-popup__charcs,
.t-store__prod__info .t-store__prod__charcs,
.t-store__prod__info .js-store-prod-all-charcs,
.t-store__prod__info .js-store-prod-dimensions,
.t-store__prod__info .js-store-prod-weight {
    display: none !important;
}

/* ---------- product options: colors and sizes ---------- */
.selfles-product-options {
    margin: 12px 0 18px !important;
    max-width: 498px !important;
    font-family: "Inter", Arial, sans-serif !important;
}

.selfles-product-options__row {
    margin-bottom: 12px !important;
}

.selfles-product-options__label {
    display: none !important;
}

.selfles-product-options__select {
    display: inline-block !important;
    width: auto !important;
    min-width: 96px !important;
    max-width: 180px !important;
    height: 28px !important;
    padding: 0 28px 0 8px !important;
    border: 1px solid #BDBDBD !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    color: #373737 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 28px !important;
    font-weight: 400 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image:
            linear-gradient(45deg, transparent 50%, #EE413C 50%),
            linear-gradient(135deg, #EE413C 50%, transparent 50%) !important;
    background-position:
            calc(100% - 13px) 11px,
            calc(100% - 8px) 11px !important;
    background-size: 5px 5px, 5px 5px !important;
    background-repeat: no-repeat !important;
}

.selfles-product-options__select:focus {
    outline: none !important;
    box-shadow: none !important;
}

.selfles-product-options__colors {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    cursor: default !important;
    max-width: 498px !important;
}

.selfles-product-options__color {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 4px !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    position: relative !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* ---------- manifest-built related cards ---------- */
html:not([data-selfles-related-ready="1"]) .selfles-related-generated__row {
    visibility: hidden !important;
}

body.selfles-product-page .t-store__relevants__container .js-store-empty-part-msg,
body.selfles-product-page .t-store__relevants__container .t-store__empty-part-msg,
body.selfles-product-page .t-store__relevants__container .t-store__empty-part-msg-cont,
body.selfles-product-page .t-store__relevants__container .t-store__empty-part-msg-wrapper,
body.selfles-product-page .t-store__relevants__container .js-store-error-msg,
body.selfles-product-page .t-store__relevants__container .t-store__error-msg,
body.selfles-product-page .t-store__relevants__container .t-store__error-msg-cont {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.selfles-related-card {
    box-sizing: border-box !important;
}

.selfles-related-card__link {
    display: block !important;
    color: inherit !important;
    text-decoration: none !important;
}

.selfles-related-card__imgwrapper {
    position: relative !important;
    overflow: hidden !important;
    background: #F4F4F4 !important;
}

.selfles-related-card__img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.selfles-related-card__textwrapper {
    padding-top: 18px !important;
}

.selfles-related-card__title,
.selfles-related-card__price-wrapper,
.selfles-related-card__price {
    font-family: "Inter", Arial, sans-serif !important;
}

.selfles-product-options__color.is-active {
    border-color: #EE413C !important;
    border-width: 2px !important;
    box-shadow: none !important;
}

.selfles-product-options__color.is-disabled {
    opacity: .3 !important;
    cursor: not-allowed !important;
}

body .selfles-product-options__colors button.swatch.selfles-product-options__color {
    position: relative !important;
    overflow: visible !important;
}

body .selfles-product-options__colors button.swatch.selfles-product-options__color::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 145% !important;
    height: 1.5px !important;
    background: rgba(55, 55, 55, .55) !important;
    border-radius: 999px !important;
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(0) !important;
    transform-origin: center center !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

body .selfles-product-options__colors button.swatch.selfles-product-options__color:disabled::after,
body .selfles-product-options__colors button.swatch.selfles-product-options__color[aria-disabled="true"]::after,
body .selfles-product-options__colors button.swatch.selfles-product-options__color[data-unavailable="true"]::after,
body .selfles-product-options__colors button.swatch.selfles-product-options__color.is-disabled::after {
    transform: translate(-50%, -50%) rotate(-45deg) scaleX(1) !important;
}

.selfles-product-options__color-inner {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 2px !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06) !important;
    box-sizing: border-box !important;
}

/* ---------- product page layout ---------- */
.selfles-product-main-layout__info .t-store__prod__sku,
.selfles-product-main-layout__info .t-store__prod-popup__sku,
.selfles-product-main-layout__info .js-product-sku {
    display: none !important;
}

.selfles-product-main-layout__info .t-store__prod__option-title,
.selfles-product-main-layout__info .t-store__prod-popup__option-title,
.selfles-product-main-layout__info .t-product__option-title,
.selfles-product-main-layout__info .t-store__prod__properties,
.selfles-product-main-layout__info .t-store__prod-popup__properties {
    display: none !important;
}

.selfles-product-main-layout__info .t-descr,
.selfles-product-main-layout__info .t-store__prod__descr,
.selfles-product-main-layout__info .t-store__prod-popup__descr,
.selfles-product-main-layout__info .js-store-prod-text {
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #373737 !important;
}

.selfles-buy-zone {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-top: 16px !important;
    gap: 0 !important;
}

.selfles-buy-zone > .t-store__prod__quantity,
.selfles-buy-zone > .t-store__prod-popup__quantity,
.selfles-buy-zone > .js-store-prod-quantity {
    order: 1 !important;
    margin: 0 0 6px 0 !important;
}

.selfles-buy-zone > .js-store-price-wrapper,
.selfles-buy-zone > .t-store__prod-popup__price-wrapper,
.selfles-buy-zone > .t-store__prod__price-wrapper {
    order: 2 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.selfles-buy-zone > .t-store__prod-popup__btn-wrapper,
.selfles-buy-zone > .t-store__prod__btn-wrapper,
.selfles-buy-zone > .js-store-prod-popup-buy-btn-wrapper {
    order: 3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.selfles-buy-zone .t-store__prod__quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 18px !important;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.selfles-buy-zone .t-store__prod__quantity__minus-wrapper,
.selfles-buy-zone .t-store__prod__quantity__plus-wrapper {
    width: 20px !important;
    height: 30px !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.selfles-buy-zone .t-store__prod__quantity__minus,
.selfles-buy-zone .t-store__prod__quantity__plus {
    width: 20px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 1 !important;
    background: transparent !important;
}

.selfles-buy-zone .t-store__prod__quantity__minus::before {
    content: "\2212" !important;
    color: #e35749 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

.selfles-buy-zone .t-store__prod__quantity__plus::before {
    content: "+" !important;
    color: #e35749 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

.selfles-buy-zone .t-store__prod__quantity__minus::after,
.selfles-buy-zone .t-store__prod__quantity__plus::after {
    display: none !important;
    content: none !important;
}

.selfles-buy-zone .t-store__prod__quantity-input {
    width: 24px !important;
    min-width: 24px !important;
    height: 28px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #222 !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 28px !important;
    text-align: center !important;
    box-shadow: none !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}

.selfles-buy-zone .t-store__prod__quantity-input::-webkit-outer-spin-button,
.selfles-buy-zone .t-store__prod__quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.selfles-buy-zone .t-store__prod-popup__price,
.selfles-buy-zone .t-store__prod__price,
.selfles-buy-zone .js-store-prod-price {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 8px !important;
    font-family: "Selfles Oswald Medium", "Oswald", Arial, sans-serif !important;
    color: #EE413C !important;
    font-size: 64px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.selfles-buy-zone .t-store__prod-popup__price-value,
.selfles-buy-zone .js-store-prod-price-val,
.selfles-buy-zone .js-product-price {
    order: 1 !important;
    font-family: "Selfles Oswald Medium", "Oswald", Arial, sans-serif !important;
    font-weight: 500 !important;
}

.selfles-buy-zone .t-store__prod-popup__price-currency,
.selfles-buy-zone .t-store__prod__price-currency {
    order: 2 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.selfles-buy-zone .t-store__prod-popup__price-currency::before,
.selfles-buy-zone .t-store__prod__price-currency::before {
    content: "\20BD" !important;
    display: inline-block !important;
    font-family: "Selfles Oswald Medium", "Oswald", Arial, sans-serif !important;
    font-size: 64px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    color: #EE413C !important;
}

.selfles-buy-zone .t-store__prod-popup__btn,
.selfles-buy-zone .t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn,
.selfles-buy-zone .t-store__prod__btn,
.selfles-buy-zone .t-btn {
    width: 150px !important;
    height: 42px !important;
    border-radius: 80px !important;
    background-color: #EE413C !important;
    background: #EE413C !important;
    border-color: #EE413C !important;
    color: #fff !important;
    border: none !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: lowercase !important;
    box-shadow: none !important;
}

.selfles-buy-zone .t-store__prod-popup__btn *,
.selfles-buy-zone .t-store__prod__btn *,
.selfles-buy-zone .t-btn * {
    color: #fff !important;
}

.t-store__prod__slider .t-slds__thumbsbullet,
.t-store__prod-popup__slider .t-slds__thumbsbullet {
    width: 84px !important;
    height: 84px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.t-store__prod__slider .t-slds__thumbsbullet .t-slds__bgimg,
.t-store__prod-popup__slider .t-slds__thumbsbullet .t-slds__bgimg {
    width: 100% !important;
    height: 100% !important;
    padding-bottom: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.t-store__prod__slider .t-slds__thumbsbullet-wrapper,
.t-store__prod-popup__slider .t-slds__thumbsbullet-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 18px auto 0 !important;
}

.t-store__relevants__title {
    margin-top: 120px !important;
    padding-top: 0 !important;
}

.t-store__card .t-store__card__price-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
}

.t-store__card .t-store__card__price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.t-store__card .t-store__card__sold-out-msg,
.t-store__card .js-store-prod-sold-out {
    width: 100% !important;
    flex-basis: 100% !important;
    order: 10 !important;
    margin-top: 2px !important;
    line-height: 1.2 !important;
}

@media (max-width: 960px) {
    body .selfles-product-main-layout {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body .selfles-product-main-layout__gallery {
        width: 100% !important;
        max-width: none !important;
    }

    body .selfles-product-main-layout__gallery .t-store__prod__slider,
    body .selfles-product-main-layout__gallery .t-store__prod-popup__slider,
    body .selfles-product-main-layout__gallery .t-slds,
    body .selfles-product-main-layout__gallery .t-slds__main,
    body .selfles-product-main-layout__gallery .t-slds__container {
        width: 100% !important;
        max-width: none !important;
    }

    body .selfles-product-main-layout__gallery .t-slds__item,
    body .selfles-product-main-layout__gallery .t-slds__wrapper {
        height: auto !important;
        max-height: none !important;
    }

    body .selfles-product-main-layout__gallery .t-slds__bgimg,
    body .selfles-product-main-layout__gallery .js-product-img,
    body .selfles-product-main-layout__gallery .t-bgimg {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 832 / 580 !important;
        padding-bottom: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    body .selfles-product-main-layout__info {
        width: auto !important;
        max-width: none !important;
    }

    .selfles-product-main-layout__info .t-store__prod__title,
    .selfles-product-main-layout__info .t-store__prod-popup__title,
    .selfles-product-main-layout__info .t-store__prod__name,
    .selfles-product-main-layout__info .t-store__prod-popup__name,
    .selfles-product-main-layout__info .js-product-name,
    .selfles-product-main-layout__info .t-title {
        font-size: 34px !important;
    }

    .selfles-product-options__select {
        width: auto !important;
        max-width: 100% !important;
    }

    .t-store__prod__slider .t-slds__thumbsbullet,
    .t-store__prod-popup__slider .t-slds__thumbsbullet {
        width: 78px !important;
        height: 78px !important;
    }
}

/* Страница товара: единый стиль заголовка */
.selfles-product-main-layout__info .t-store__prod__title,
.selfles-product-main-layout__info .t-store__prod-popup__title,
.selfles-product-main-layout__info .t-store__prod__name,
.selfles-product-main-layout__info .t-store__prod-popup__name,
.selfles-product-main-layout__info .js-product-name,
.selfles-product-main-layout__info .t-title,
.t-store__prod-snippet h1,
.t-store__prod-popup h1,
.t-store__prod-snippet__title,
.t-store__prod-popup__title,
.t-store__prod-snippet__name,
.t-store__prod-popup__name,
.t-store__prod-snippet .js-store-prod-name,
.t-store__prod-popup .js-store-prod-name {
    font-family: "Selfles Oswald Medium", "Oswald", Arial, sans-serif !important;
    font-size: clamp(30px, calc(26px + 0.4166667vw), 34px) !important;
    line-height: 1.05 !important;
    font-weight: 500 !important;
    color: #EE413C !important;
    text-transform: uppercase !important;
    letter-spacing: 0.01em !important;
    margin: 0 0 14px 0 !important;
    max-width: 430px !important;
}

.selfles-product-main-layout__info h1.js-store-prod-name,
.selfles-product-main-layout__info h1.js-product-name,
.selfles-product-main-layout__info h1.t-store__prod-popup__name,
.selfles-product-main-layout__info h1.t-store__prod__name,
.t-store__prod-popup h1.js-store-prod-name,
.t-store__prod-snippet h1.js-store-prod-name {
    font-size: 32px !important;
    line-height: 1.05 !important;
}

@media screen and (max-width: 480px) {
    .selfles-product-main-layout__info .t-store__prod__title,
    .selfles-product-main-layout__info .t-store__prod-popup__title,
    .selfles-product-main-layout__info .t-store__prod__name,
    .selfles-product-main-layout__info .t-store__prod-popup__name,
    .selfles-product-main-layout__info .js-product-name,
    .selfles-product-main-layout__info .t-title,
    .t-store__prod-snippet h1,
    .t-store__prod-popup h1,
    .t-store__prod-snippet__title,
    .t-store__prod-popup__title,
    .t-store__prod-snippet__name,
    .t-store__prod-popup__name,
    .t-store__prod-snippet .js-store-prod-name,
    .t-store__prod-popup .js-store-prod-name {
        font-size: 32px !important;
    }
}

.t706 .t-checkbox__control,
.t706 .t-radio__control {
    color: #373737 !important;
}

/* Скрытие текста "Способ доставки" в корзине */
.t706 #field-title_4815024106535 {
    display: none;
}

/* Выаод текста ошибки под полем ввода в корзине */
.t706 .t-input-block {
    position: relative;
}

.t706 .t-input-block.t-input-custom-error::after {
    content: "\041f\043e\0436\0430\043b\0443\0439\0441\0442\0430, \0443\043a\0430\0436\0438\0442\0435 \0424\0418\041e \043a\043e\0440\0440\0435\043a\0442\043d\043e";
    position: absolute;
    bottom: -16px;
    left: 0;
    font: 700 14px/1 'Inter', Arial, sans-serif;
    color: #ee413b;
}


/* Цвет кнопки "вернуться в каталог" */
.t-store__prod-popup__close-txt,
.t-store__prod-popup__close-txt-wr,
.t-store__prod-popup__close-txt-wr *,
.js-store-close-text {
    color: #ee413b !important;
}

/* Цвет крестика X */
.t-popup__close-icon rect,
.t-popup__close-icon path,
.t-popup__close-icon g {
    fill: #ee413b !important;
    stroke: #ee413b !important;
}

/* На случай, если крестик отрисован не svg, а линиями */
.t-popup__close::before,
.t-popup__close::after,
.t-popup__close-wrapper::before,
.t-popup__close-wrapper::after {
    background-color: #ee413b !important;
}

/* ===== БЛОК "С ЭТИМ ТОВАРОМ БЕРУТ" ===== */

/* Заголовок блока */
.t-store__relevants__title,
.t-store:has(.js-product-relevant) .t-store__title,
.t-store:has(.js-product-relevant) h2,
.t-store:has(.js-product-relevant) h3 {
    text-align: center !important;
    font-family: "Oswald", sans-serif !important;
    font-size: 42px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    color: #EE413C !important;
    text-transform: uppercase !important;
    margin: 0 0 22px !important;
}

.t-store__relevants__title {
    margin-top: 120px !important;
    margin-bottom: 22px !important;
    padding-top: 0 !important;
}

/* Контейнер карточек */
div:has(> .js-product-relevant.t-store__card) {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 36px !important;
    flex-wrap: nowrap !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
}

/* Карточка */
.js-product-relevant.t-store__card {
    float: none !important;
    display: block !important;
    width: 380px !important;
    max-width: 380px !important;
    flex: 0 0 380px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Картинка */
.js-product-relevant .t-store__card__imgwrapper,
.js-product-relevant .t-store__card__imgwrapper_1-1 {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background: #efefef !important;
    margin-bottom: 14px !important;
}

.js-product-relevant .t-store__card__bgimg,
.js-product-relevant .t-store__card__bgimg_second,
.js-product-relevant .t-store__card__img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Обертки текста */
.js-product-relevant .t-store__card__wrap_txt-and-btns,
.js-product-relevant .store__card__wrap_txt-and-opts {
    margin: 0 !important;
    padding: 0 !important;
}

/* Название и цена в одну строку */
.js-product-relevant .t-store__card__textwrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.js-product-relevant .t-store__card__title {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: #EE413C !important;
    font-family: "Inter", sans-serif !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0 !important;

    -webkit-line-clamp: 1 !important;
    max-height: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.js-product-relevant .t-store__card__price-wrapper {
    display: flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.js-product-relevant .t-store__card__price,
.js-product-relevant .t-store__card__price-value,
.js-product-relevant .t-store__card__price-currency {
    color: #EE413C !important;
    font-family: "Inter", sans-serif !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Скрываем лишнее */
.js-product-relevant .t-store__card__sku,
.js-product-relevant .t-store__card__descr,
.js-product-relevant .t-store__card__sold-out-msg,
.js-product-relevant .t-store__card__btns-wrapper,
.js-product-relevant .t-store__card__mark-wrapper {
    display: none !important;
}

/* ===== SELFLES: каталог — название и цена в одну строку ===== */

/* Каталог: отступ между фото и названием/ценой */
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__imgwrapper,
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__imgwrapper_1-1,
.t-store__card:not(.js-product-relevant) .t-store__card__imgwrapper,
.t-store__card:not(.js-product-relevant) .t-store__card__imgwrapper_1-1 {
    margin-bottom: 16px !important;
}

.js-product.t-store__card:not(.js-product-relevant) .t-store__card__wrap_txt-and-btns,
.js-product.t-store__card:not(.js-product-relevant) .store__card__wrap_txt-and-opts,
.t-store__card:not(.js-product-relevant) .t-store__card__wrap_txt-and-btns,
.t-store__card:not(.js-product-relevant) .store__card__wrap_txt-and-opts {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.js-product.t-store__card:not(.js-product-relevant) .t-store__card__textwrapper,
.t-store__card:not(.js-product-relevant) .t-store__card__textwrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Название слева */
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__title,
.js-product.t-store__card:not(.js-product-relevant) .js-product-name,
.t-store__card:not(.js-product-relevant) .t-store__card__title,
.t-store__card:not(.js-product-relevant) .js-product-name {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    font-family: "Inter", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    color: #EE413C !important;
    text-transform: none !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: none !important;
}

/* Цена справа */
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__price-wrapper,
.t-store__card:not(.js-product-relevant) .t-store__card__price-wrapper {
    display: flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

/* Стиль цены */
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__price,
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__price-value,
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__price-currency,
.t-store__card:not(.js-product-relevant) .t-store__card__price,
.t-store__card:not(.js-product-relevant) .t-store__card__price-value,
.t-store__card:not(.js-product-relevant) .t-store__card__price-currency {
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #EE413C !important;
    margin: 0 !important;
    padding: 0 !important;
}

:root {
    --FillingColor: #EE413C;
}

@media only screen and (min-width: 480px) {
    .hover-fill-text,
    .hover-fill-text:before {
        opacity: 0;
        transform: translateX(-100%);
        transition: opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s;
        transition-delay: 0.7s;
    }

    .link-filling .tn-atom:hover .hover-fill-text,
    .link-filling .tn-atom:hover .hover-fill-text:before {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0s;
    }

    @keyframes anim-in-text {
        0% {
            transform: translateX(100%);
        }

        100% {
            transform: translateX(0);
        }
    }

    @keyframes anim-in-layer {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(0);
        }
    }

    @keyframes anim-out-text {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-100%);
        }
    }

    @keyframes anim-out-layer {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(100%);
        }
    }

    .link-filling {
        pointer-events: none;
    }

    .link-filling a {
        pointer-events: all;
    }

    .link-filling .tn-atom {
        position: relative;
        display: block;
    }

    .hover-fill-text {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        display: inline-table;
        width: 100%;
        overflow: hidden;
        pointer-events: none;
        -webkit-animation: anim-out-layer 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
        animation: anim-out-layer 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .hover-fill-text:before {
        content: attr(data-text);
        color: var(--FillingColor);
        transform: translateX(100%);
        display: inline-table;
        text-shadow: 0 0 0 var(--FillingColor);
        width: 100%;
        -webkit-animation: anim-out-text 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
        animation: anim-out-text 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .link-filling .tn-atom:hover .hover-fill-text {
        transform: translateX(0);
        -webkit-animation: anim-in-layer 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
        animation: anim-in-layer 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .link-filling .tn-atom:hover .hover-fill-text:before {
        -webkit-animation: anim-in-text 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
        animation: anim-in-text 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    }
}

.t706__carticon-imgwrap {
    border-radius: 5px;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
    background-color: transparent !important;
    border: 0 solid transparent !important;
}

.fixed-zb-elem {
    position: fixed !important;
    right: 40px !important;
    bottom: 30px !important;
    top: auto !important;
    left: auto !important;
    z-index: 999999 !important;
    transform: none !important;
}

@media (max-width: 480px) {
    .fixed-zb-elem {
        right: 10px !important;
        bottom: 20px !important;
    }
}

/* ===== SELFLES: sold out product cards ===== */
.selfles-card-sold-out {
    cursor: default !important;
}

.selfles-card-sold-out a {
    pointer-events: none !important;
    cursor: default !important;
}

.selfles-card-sold-out .t-store__card__imgwrapper,
.selfles-card-sold-out .t-store__card__imgwrapper_1-1 {
    position: relative !important;
}

.selfles-card-sold-out .t-store__card__imgwrapper::after,
.selfles-card-sold-out .t-store__card__imgwrapper_1-1::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(255, 255, 255, 0.16) !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

.selfles-card-sold-out .t-store__card__imgwrapper::before,
.selfles-card-sold-out .t-store__card__imgwrapper_1-1::before {
    content: "" !important;
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 6 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 0 16px !important;
    border-radius: 80px !important;
    background: #fff !important;
    color: #EE413C !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    letter-spacing: 0 !important;
    pointer-events: none !important;
}

.selfles-card-sold-out .t-store__card__title,
.selfles-card-sold-out .js-product-name,
.selfles-card-sold-out .t-store__card__price,
.selfles-card-sold-out .t-store__card__price-value,
.selfles-card-sold-out .t-store__card__price-currency {
    color: #9A9A9A !important;
}

.selfles-card-sold-out .js-store-prod-sold-out,
.selfles-card-sold-out .t-store__card__sold-out-msg {
    display: none !important;
}

/* ===== SELFLES: sold out product cards override ===== */
.selfles-card-sold-out.t-store__card {
    cursor: default !important;
}

.selfles-card-sold-out.t-store__card a {
    pointer-events: none !important;
    cursor: default !important;
}

.selfles-card-sold-out.t-store__card .t-store__card__imgwrapper,
.selfles-card-sold-out.t-store__card .t-store__card__imgwrapper_1-1 {
    position: relative !important;
    overflow: hidden !important;
}

.selfles-card-sold-out.t-store__card .t-store__card__bgimg,
.selfles-card-sold-out.t-store__card .t-store__card__bgimg_second,
.selfles-card-sold-out.t-store__card .js-product-img {
    position: absolute !important;
    z-index: 1 !important;
}

.selfles-card-sold-out.t-store__card .t-store__card__imgwrapper::after,
.selfles-card-sold-out.t-store__card .t-store__card__imgwrapper_1-1::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    background: rgba(255, 255, 255, 0.5) !important;
    background: #FFFFFF80 !important;
    pointer-events: none !important;
}

.selfles-card-sold-out.t-store__card .t-store__card__imgwrapper::before,
.selfles-card-sold-out.t-store__card .t-store__card__imgwrapper_1-1::before {
    content: "" !important;
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 6 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 28px !important;
    padding: 0 16px !important;
    border-radius: 80px !important;

    background: #fff !important;
    color: #EE413C !important;

    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    letter-spacing: 0 !important;

    pointer-events: none !important;
}

.selfles-card-sold-out.t-store__card .t-store__card__title,
.selfles-card-sold-out.t-store__card .js-product-name,
.selfles-card-sold-out.t-store__card .t-store__card__price,
.selfles-card-sold-out.t-store__card .t-store__card__price-value,
.selfles-card-sold-out.t-store__card .js-product-price,
.selfles-card-sold-out.t-store__card .t-store__card__price-currency {
    color: #969696 !important;
}

.selfles-card-sold-out.t-store__card .js-store-prod-sold-out,
.selfles-card-sold-out.t-store__card .t-store__card__sold-out-msg {
    display: none !important;
}

/* ===== SELFLES: final sold out catalog override ===== */
.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__title,
.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .js-product-name,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__title,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .js-product-name {
    color: #969696 !important;
}

.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price-wrapper,
.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price,
.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price-value,
.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .js-product-price,
.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price-currency,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price-wrapper,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price-value,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .js-product-price,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price-currency {
    color: #969696 !important;
}

.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price *,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__price * {
    color: #969696 !important;
}

.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper,
.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper_1-1,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper_1-1 {
    position: relative !important;
    overflow: hidden !important;
}

.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper::after,
.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper_1-1::after,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper::after,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper_1-1::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    background: rgba(255, 255, 255, 0.65) !important;
    pointer-events: none !important;
}

.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper::before,
.js-product.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper_1-1::before,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper::before,
.t-store__card.selfles-card-sold-out:not(.js-product-relevant) .t-store__card__imgwrapper_1-1::before {
    z-index: 21 !important;
}

.selfles-product-main-layout__info .js-store-prod-all-text,
.t-store__prod-popup .js-store-prod-all-text,
.t-store__prod-snippet .js-store-prod-all-text {
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.t-store__relevants-grid-cont,
.js-store-relevants-grid-cont {
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.t-store__relevants-grid-cont .t-store__card-list,
.js-store-relevants-grid-cont .t-store__card-list,
div:has(> .js-product-relevant.t-store__card) {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .t-store__relevants-grid-cont,
    .js-store-relevants-grid-cont {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
}

@media (min-width: 1440px) {
    .t-store__relevants__container > .t-container {
        width: auto !important;
        max-width: none !important;
        margin-left: 60px !important;
        margin-right: 60px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .t-store__relevants__container > .t-container > .t-col {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    .t-store__relevants__container .t-store__scroll-icon-wrapper {
        display: none !important;
    }

    .t-store__relevants-grid-cont,
    .js-store-relevants-grid-cont {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .t-store__relevants-grid-cont .t-store__card-list,
    .js-store-relevants-grid-cont .t-store__card-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: stretch !important;
        align-items: flex-start !important;
        gap: 36px !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;

        overflow: visible !important;
        scrollbar-width: auto !important;
        box-sizing: border-box !important;
    }

    .t-store__relevants-grid-cont .js-product-relevant.t-store__card,
    .js-store-relevants-grid-cont .js-product-relevant.t-store__card {
        display: block !important;
        float: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: 1 1 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .selfles-related-prev,
    .selfles-related-next {
        display: none !important;
    }
}

.selfles-buy-zone .t-store__prod-popup__btn-wrapper,
.selfles-buy-zone .t-store__prod__btn-wrapper,
.selfles-buy-zone .js-store-prod-popup-buy-btn-wrapper {
    width: 185px !important;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.selfles-buy-zone .t-store__prod-popup__btn,
.selfles-buy-zone .t-store__prod__btn,
.selfles-buy-zone .js-store-prod-popup-buy-btn,
.selfles-buy-zone .t-btn {
    width: 185px !important;
    min-width: 185px !important;
    max-width: 185px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.t-store__relevants__title,
.t-store:has(.js-product-relevant) .t-store__title,
.t-store:has(.js-product-relevant) h2,
.t-store:has(.js-product-relevant) h3 {
    font-size: 48px !important;
    margin-top: 80px !important;
    margin-bottom: 16px !important;
}

.t-store__relevants__title {
    margin-top: 80px !important;
    margin-bottom: 16px !important;
    padding-top: 0 !important;
}

/* ===== SELFLES: final sold out override for catalog and related cards ===== */
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1 {
    position: relative !important;
    overflow: hidden !important;
}

.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::after,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::after,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::after,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    background: rgba(255, 255, 255, 0.65) !important;
    pointer-events: none !important;
}

.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::before,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::before,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::before,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::before {
    content: "" !important;
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 21 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 0 16px !important;
    border-radius: 80px !important;
    background: #fff !important;
    color: #EE413C !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    pointer-events: none !important;
}

.js-product.t-store__card.selfles-card-sold-out .t-store__card__title,
.js-product.t-store__card.selfles-card-sold-out .js-product-name,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__price,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__price-value,
.js-product.t-store__card.selfles-card-sold-out .js-product-price,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__price-currency,
.t-store__card.selfles-card-sold-out .t-store__card__title,
.t-store__card.selfles-card-sold-out .js-product-name,
.t-store__card.selfles-card-sold-out .t-store__card__price,
.t-store__card.selfles-card-sold-out .t-store__card__price-value,
.t-store__card.selfles-card-sold-out .js-product-price,
.t-store__card.selfles-card-sold-out .t-store__card__price-currency {
    color: #969696 !important;
}

.js-product.t-store__card.selfles-card-sold-out .js-store-prod-sold-out,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__sold-out-msg,
.t-store__card.selfles-card-sold-out .js-store-prod-sold-out,
.t-store__card.selfles-card-sold-out .t-store__card__sold-out-msg {
    display: none !important;
}

.js-product.t-store__card.selfles-card-sold-out a,
.t-store__card.selfles-card-sold-out a {
    pointer-events: none !important;
    cursor: default !important;
}

@media (min-width: 1440px) {
    .t-store__relevants-grid-cont .t-store__card-list[data-selfles-related-count="1"],
    .js-store-relevants-grid-cont .t-store__card-list[data-selfles-related-count="1"],
    div[data-selfles-related-count="1"]:has(> .js-product-relevant.t-store__card) {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }

    .t-store__relevants-grid-cont .t-store__card-list[data-selfles-related-count="2"],
    .js-store-relevants-grid-cont .t-store__card-list[data-selfles-related-count="2"],
    div[data-selfles-related-count="2"]:has(> .js-product-relevant.t-store__card) {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 72px !important;
    }

    .t-store__relevants-grid-cont .t-store__card-list[data-selfles-related-count="1"] > .js-product-relevant.t-store__card,
    .js-store-relevants-grid-cont .t-store__card-list[data-selfles-related-count="1"] > .js-product-relevant.t-store__card,
    div[data-selfles-related-count="1"] > .js-product-relevant.t-store__card,
    .t-store__relevants-grid-cont .t-store__card-list[data-selfles-related-count="2"] > .js-product-relevant.t-store__card,
    .js-store-relevants-grid-cont .t-store__card-list[data-selfles-related-count="2"] > .js-product-relevant.t-store__card,
    div[data-selfles-related-count="2"] > .js-product-relevant.t-store__card {
        width: 576px !important;
        max-width: 576px !important;
        min-width: 576px !important;
        flex: 0 0 576px !important;
    }

    .t-store__relevants-grid-cont .t-store__card-list[data-selfles-related-count="1"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper,
    .t-store__relevants-grid-cont .t-store__card-list[data-selfles-related-count="1"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper_1-1,
    .js-store-relevants-grid-cont .t-store__card-list[data-selfles-related-count="1"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper,
    .js-store-relevants-grid-cont .t-store__card-list[data-selfles-related-count="1"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper_1-1,
    div[data-selfles-related-count="1"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper,
    div[data-selfles-related-count="1"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper_1-1,
    .t-store__relevants-grid-cont .t-store__card-list[data-selfles-related-count="2"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper,
    .t-store__relevants-grid-cont .t-store__card-list[data-selfles-related-count="2"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper_1-1,
    .js-store-relevants-grid-cont .t-store__card-list[data-selfles-related-count="2"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper,
    .js-store-relevants-grid-cont .t-store__card-list[data-selfles-related-count="2"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper_1-1,
    div[data-selfles-related-count="2"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper,
    div[data-selfles-related-count="2"] > .js-product-relevant.t-store__card .t-store__card__imgwrapper_1-1 {
        width: 576px !important;
        height: 576px !important;
        padding-bottom: 0 !important;
    }
}

/* ===== SELFLES: sold out fallback by inventory attribute ===== */
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper_1-1,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1 {
    position: relative !important;
    overflow: hidden !important;
}

.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper::after,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper_1-1::after,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::after,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    background: rgba(255, 255, 255, 0.65) !important;
    pointer-events: none !important;
}

.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper::before,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper_1-1::before,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::before,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::before {
    content: "" !important;
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 21 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 0 16px !important;
    border-radius: 80px !important;
    background: #fff !important;
    color: #EE413C !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    pointer-events: none !important;
}

.js-product.t-store__card[data-product-inv="0"] .t-store__card__title,
.js-product.t-store__card[data-product-inv="0"] .js-product-name,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__price,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__price-value,
.js-product.t-store__card[data-product-inv="0"] .js-product-price,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__price-currency,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__title,
.js-product.t-store__card.selfles-card-sold-out .js-product-name,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__price,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__price-value,
.js-product.t-store__card.selfles-card-sold-out .js-product-price,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__price-currency {
    color: #969696 !important;
}

.js-product.t-store__card[data-product-inv="0"] .js-store-prod-sold-out,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__sold-out-msg,
.js-product.t-store__card.selfles-card-sold-out .js-store-prod-sold-out,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__sold-out-msg {
    display: none !important;
}

.js-product.t-store__card[data-product-inv="0"] a,
.js-product.t-store__card.selfles-card-sold-out a {
    pointer-events: none !important;
    cursor: default !important;
}

body.selfles-product-page h1.js-store-prod-name.js-product-name.t-store__prod-popup__name,
body.selfles-product-page h1.js-store-prod-name.js-product-name.t-store__prod__name,
body.selfles-product-page h1.js-store-prod-name.js-product-name.t-store__prod-snippet__name,
body.selfles-product-page .selfles-product-main-layout__info h1.js-store-prod-name,
body.selfles-product-page .selfles-product-main-layout__info h1.js-product-name {
    font-size: 40px !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
}

body.selfles-product-page .selfles-product-options__row_size {
    margin-bottom: 20px !important;
}

body.selfles-product-page .selfles-product-options__row_color,
body.selfles-product-page .selfles-product-options__colors {
    margin-bottom: 30px !important;
}

body.selfles-product-page .selfles-product-main-layout__info .js-store-prod-all-text,
body.selfles-product-page .t-store__prod-popup__info .js-store-prod-all-text,
body.selfles-product-page .t-store__prod__info .js-store-prod-all-text,
body.selfles-product-page .t-store__prod-snippet__info .js-store-prod-all-text {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin-bottom: 25px !important;
}

body.selfles-product-page .selfles-buy-zone > .t-store__prod__quantity,
body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__quantity,
body.selfles-product-page .selfles-buy-zone > .js-store-prod-quantity,
body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__quantity,
body.selfles-product-page .selfles-buy-zone .js-store-prod-quantity {
    font-size: 24px !important;
    margin-bottom: 12px !important;
}

body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity-input {
    font-size: 24px !important;
    line-height: 30px !important;
}

body.selfles-product-page .selfles-buy-zone > .js-store-price-wrapper,
body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__price-wrapper,
body.selfles-product-page .selfles-buy-zone > .t-store__prod__price-wrapper,
body.selfles-product-page .selfles-buy-zone .js-store-price-wrapper.t-store__prod-popup__price-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod__price-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__price-wrapper {
    font-size: 72px !important;
    margin-bottom: 12px !important;
}

body.selfles-product-page .selfles-buy-zone .js-store-prod-price,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__price,
body.selfles-product-page .selfles-buy-zone .t-store__prod__price,
body.selfles-product-page .selfles-buy-zone .js-product-price,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__price-value,
body.selfles-product-page .selfles-buy-zone .t-store__prod__price-value,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__price-currency,
body.selfles-product-page .selfles-buy-zone .t-store__prod__price-currency {
    font-size: inherit !important;
    line-height: 1 !important;
}

body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__price-currency::before,
body.selfles-product-page .selfles-buy-zone .t-store__prod__price-currency::before {
    content: none !important;
    display: none !important;
}

body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__btn-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod__btn-wrapper,
body.selfles-product-page .selfles-buy-zone .js-store-prod-popup-buy-btn-wrapper {
    width: 184px !important;
    height: 64px !important;
    min-height: 64px !important;
}

body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__btn,
body.selfles-product-page .selfles-buy-zone .t-store__prod__btn,
body.selfles-product-page .selfles-buy-zone .js-store-prod-popup-buy-btn,
body.selfles-product-page .selfles-buy-zone .t-btn {
    width: 184px !important;
    min-width: 184px !important;
    max-width: 184px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    font-size: 20px !important;
}

body.selfles-product-page .selfles-buy-zone .js-store-prod-popup-buy-btn-txt,
body.selfles-product-page .selfles-buy-zone .t-btnflex__text {
    font-size: 20px !important;
    line-height: 1 !important;
}

body.selfles-product-page .t-store__relevants__title.t-uptitle.t-uptitle_xxl,
body.selfles-product-page .t-store__relevants__title {
    margin-top: 100px !important;
    font-size: 64px !important;
    line-height: 1 !important;
    margin-bottom: 32px !important;
}

/* SELFLES product page thumbnails safety reset */
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet,
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__bullet {
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;
    overflow: hidden !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet .t-slds__bgimg,
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper .t-slds__bgimg {
    width: 72px !important;
    height: 72px !important;
    min-height: 72px !important;
    padding-bottom: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__quantity-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__quantity-wrapper {
    display: flex !important;
    visibility: visible !important;
    margin-bottom: 12px !important;
}

.selfles-sold-out-badge {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 21 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 0 16px !important;
    border-radius: 80px !important;
    background: #fff !important;
    color: #EE413C !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    pointer-events: none !important;
}

.selfles-card-sold-out .t-store__card__imgwrapper::before,
.selfles-card-sold-out .t-store__card__imgwrapper_1-1::before,
.selfles-card-sold-out.t-store__card .t-store__card__imgwrapper::before,
.selfles-card-sold-out.t-store__card .t-store__card__imgwrapper_1-1::before,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::before,
.js-product.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::before,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::before,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::before,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper::before,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper_1-1::before {
    content: none !important;
    display: none !important;
}

/* ===== SELFLES: safe add-ons after rollback ===== */

/* /catalog: добавляем "от" перед ценой */
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__price::before,
.t-store__card:not(.js-product-relevant) .t-store__card__price::before {
    content: "\043e\0442" !important;
    display: inline-block !important;
    color: currentColor !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* плашка "нет в наличии" для каталога и рекомендаций */
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper_1-1,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1 {
    position: relative !important;
    overflow: hidden !important;
}

.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper::after,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper_1-1::after,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::after,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    background: rgba(255, 255, 255, 0.65) !important;
    pointer-events: none !important;
}

.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper::before,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__imgwrapper_1-1::before,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper::before,
.t-store__card.selfles-card-sold-out .t-store__card__imgwrapper_1-1::before,
.selfles-sold-out-badge {
    content: "\043d\0435\0442\0020\0432\0020\043d\0430\043b\0438\0447\0438\0438" !important;
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 21 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    border-radius: 80px !important;
    background: #fff !important;
    color: #EE413C !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: lowercase !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

/* если JS уже вставил span.selfles-sold-out-badge, не дублируем текст через ::before */
.t-store__card__imgwrapper:has(> .selfles-sold-out-badge)::before,
.t-store__card__imgwrapper_1-1:has(> .selfles-sold-out-badge)::before {
    content: none !important;
    display: none !important;
}

.js-product.t-store__card[data-product-inv="0"] .t-store__card__title,
.js-product.t-store__card[data-product-inv="0"] .js-product-name,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__price,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__price-value,
.js-product.t-store__card[data-product-inv="0"] .js-product-price,
.js-product.t-store__card[data-product-inv="0"] .t-store__card__price-currency,
.t-store__card.selfles-card-sold-out .t-store__card__title,
.t-store__card.selfles-card-sold-out .js-product-name,
.t-store__card.selfles-card-sold-out .t-store__card__price,
.t-store__card.selfles-card-sold-out .t-store__card__price-value,
.t-store__card.selfles-card-sold-out .js-product-price,
.t-store__card.selfles-card-sold-out .t-store__card__price-currency {
    color: #969696 !important;
}

.t-store__card.selfles-card-sold-out a {
    pointer-events: none !important;
    cursor: default !important;
}

/* ===== SELFLES: price prefix "от" for catalog + product recommendations ===== */

/* отключаем старый вариант через ::before, чтобы не было дубля "отот" */
.js-product-relevant .t-store__card__price::before,
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__price::before,
.t-store__card:not(.js-product-relevant) .t-store__card__price::before {
    content: none !important;
    display: none !important;
}

.selfles-card-price-prefix {
    display: inline-block !important;
    color: currentColor !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
}

/* ===== SELFLES: final price prefix for /catalog and product recommendations ===== */

/* старый JS-span больше не нужен */
.selfles-card-price-prefix {
    display: none !important;
}

/* /catalog + рекомендации на /catalog/tproduct */
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__price::before,
.t-store__card:not(.js-product-relevant) .t-store__card__price::before,
.js-product-relevant.t-store__card .t-store__card__price::before,
.t-store__card.js-product-relevant .t-store__card__price::before {
    content: "\043e\0442\00a0" !important;
    display: inline-block !important;
    color: currentColor !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
}

/* ===== SELFLES: mobile full card titles ===== */
@media screen and (max-width: 768px) {
    .js-product.t-store__card:not(.js-product-relevant) .t-store__card__textwrapper,
    .t-store__card:not(.js-product-relevant) .t-store__card__textwrapper,
    .js-product-relevant.t-store__card .t-store__card__textwrapper,
    .t-store__card.js-product-relevant .t-store__card__textwrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
    }

    .js-product.t-store__card:not(.js-product-relevant) .t-store__card__title,
    .js-product.t-store__card:not(.js-product-relevant) .js-product-name,
    .t-store__card:not(.js-product-relevant) .t-store__card__title,
    .t-store__card:not(.js-product-relevant) .js-product-name,
    .js-product-relevant.t-store__card .t-store__card__title,
    .js-product-relevant.t-store__card .js-product-name,
    .t-store__card.js-product-relevant .t-store__card__title,
    .t-store__card.js-product-relevant .js-product-name {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;

        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;

        height: auto !important;
        max-height: none !important;

        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    .js-product.t-store__card:not(.js-product-relevant) .t-store__card__price-wrapper,
    .t-store__card:not(.js-product-relevant) .t-store__card__price-wrapper,
    .js-product-relevant.t-store__card .t-store__card__price-wrapper,
    .t-store__card.js-product-relevant .t-store__card__price-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        align-self: flex-start !important;
        margin-top: 0 !important;
        white-space: nowrap !important;
    }
}

/* ===== SELFLES: product size buttons ===== */
.selfles-product-options__sizes {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    max-width: 498px !important;
}

.selfles-product-options__size {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 0 12px !important;
    border: 1px solid #D9D9D9 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #555 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.selfles-product-options__size.is-active {
    background: #EE413C !important;
    border-color: #EE413C !important;
    color: #fff !important;
}

.selfles-product-options__size:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ===== SELFLES: product details tabs ===== */
body.selfles-product-page .selfles-tilda-tabs-hidden:not(#allrecords):not(.t-records):not([data-hook="blocks-collection-content-node"]) {
    display: none !important;
}

body.selfles-product-page .selfles-product-details {
    width: 100% !important;
    max-width: var(--selfles-info-width, 430px) !important;
    margin: 28px 0 0 !important;
    border-top: 2px dashed #EE413C !important;
    font-family: "Inter", Arial, sans-serif !important;
    box-sizing: border-box !important;
}

body.selfles-product-page .selfles-product-details__item {
    border-bottom: 2px dashed #EE413C !important;
}

body.selfles-product-page .selfles-product-details__title {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 16px 34px 16px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #EE413C !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

body.selfles-product-page .selfles-product-details__title::after {
    content: "+" !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #EE413C !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

body.selfles-product-page .selfles-product-details__item.is-open .selfles-product-details__title::after {
    content: "\00D7" !important;
    font-size: 24px !important;
}

body.selfles-product-page .selfles-product-details__title:focus {
    outline: none !important;
    box-shadow: none !important;
}

body.selfles-product-page .selfles-product-details__body {
    display: none !important;
    padding: 0 0 18px !important;
    color: #373737 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    box-sizing: border-box !important;
}

body.selfles-product-page .selfles-product-details__item.is-open .selfles-product-details__body {
    display: block !important;
}

body.selfles-product-page .selfles-product-details__body,
body.selfles-product-page .selfles-product-details__body p,
body.selfles-product-page .selfles-product-details__body div,
body.selfles-product-page .selfles-product-details__body span,
body.selfles-product-page .selfles-product-details__body li {
    color: #373737 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
}

body.selfles-product-page .selfles-product-details__body p {
    margin: 0 0 10px !important;
}

body.selfles-product-page .selfles-product-details__body p:last-child {
    margin-bottom: 0 !important;
}

/* ===== SELFLES: product size buttons one row on desktop ===== */
@media screen and (min-width: 1440px) {
    body.selfles-product-page .selfles-product-options,
    body.selfles-product-page .selfles-product-options__sizes,
    body.selfles-product-page .selfles-product-options__colors {
        max-width: var(--selfles-info-width) !important;
    }

    body.selfles-product-page .selfles-product-options__sizes {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    body.selfles-product-page .selfles-product-options__size {
        flex: 0 0 auto !important;
        width: auto !important;
        height: 28px !important;
        padding: 0 10px !important;
        white-space: nowrap !important;
    }
}

/* ниже 1440 оставляем адаптивный перенос */
@media screen and (max-width: 1439px) {
    body.selfles-product-page .selfles-product-options__sizes {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        max-width: 100% !important;
    }
}

@media screen and (max-width: 480px) {
    body.selfles-product-page .selfles-product-options__sizes {
        gap: 6px !important;
    }

    body.selfles-product-page .selfles-product-options__size {
        padding: 0 9px !important;
        font-size: 12px !important;
    }

    body.selfles-product-page .selfles-product-details {
        max-width: 100% !important;
    }

    body.selfles-product-page .selfles-product-details__title {
        min-height: 48px !important;
        font-size: 14px !important;
    }

    body.selfles-product-page .selfles-product-details__body,
    body.selfles-product-page .selfles-product-details__body p,
    body.selfles-product-page .selfles-product-details__body div,
    body.selfles-product-page .selfles-product-details__body span,
    body.selfles-product-page .selfles-product-details__body li {
        font-size: 14px !important;
    }
}

/* ===== SELFLES: product buy zone layout like mockup ===== */
body.selfles-product-page .selfles-buy-zone {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-areas:
        "price price"
        "qty btn" !important;
    column-gap: 32px !important;
    row-gap: 14px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 430px !important;
    margin-top: 18px !important;
}

body.selfles-product-page .selfles-buy-zone > .js-store-price-wrapper,
body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__price-wrapper,
body.selfles-product-page .selfles-buy-zone > .t-store__prod__price-wrapper,
body.selfles-product-page .selfles-buy-zone .js-store-price-wrapper.t-store__prod-popup__price-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod__price-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__price-wrapper {
    grid-area: price !important;
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 52px !important;
    line-height: 1 !important;
}

body.selfles-product-page .selfles-buy-zone > .t-store__prod__quantity,
body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__quantity,
body.selfles-product-page .selfles-buy-zone > .js-store-prod-quantity,
body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__quantity-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__quantity,
body.selfles-product-page .selfles-buy-zone .js-store-prod-quantity,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__quantity-wrapper {
    grid-area: qty !important;
    order: 2 !important;
    justify-self: start !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: 94px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__btn-wrapper,
body.selfles-product-page .selfles-buy-zone > .t-store__prod__btn-wrapper,
body.selfles-product-page .selfles-buy-zone > .js-store-prod-popup-buy-btn-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__btn-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod__btn-wrapper,
body.selfles-product-page .selfles-buy-zone .js-store-prod-popup-buy-btn-wrapper {
    grid-area: btn !important;
    order: 3 !important;
    justify-self: stretch !important;
    align-self: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__btn,
body.selfles-product-page .selfles-buy-zone .t-store__prod__btn,
body.selfles-product-page .selfles-buy-zone .js-store-prod-popup-buy-btn,
body.selfles-product-page .selfles-buy-zone .t-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    border-radius: 80px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.selfles-product-page .selfles-buy-zone .js-store-prod-price,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__price,
body.selfles-product-page .selfles-buy-zone .t-store__prod__price,
body.selfles-product-page .selfles-buy-zone .js-product-price,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__price-value,
body.selfles-product-page .selfles-buy-zone .t-store__prod__price-value,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__price-currency,
body.selfles-product-page .selfles-buy-zone .t-store__prod__price-currency {
    font-size: inherit !important;
    line-height: 1 !important;
}

@media screen and (max-width: 360px) {
    body.selfles-product-page .selfles-buy-zone {
        column-gap: 20px !important;
        max-width: 100% !important;
    }

    body.selfles-product-page .selfles-buy-zone > .js-store-price-wrapper,
    body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__price-wrapper,
    body.selfles-product-page .selfles-buy-zone > .t-store__prod__price-wrapper {
        font-size: 46px !important;
    }
}
/* ===== SELFLES: quantity align + thicker plus/minus ===== */
body.selfles-product-page .selfles-buy-zone > .t-store__prod__quantity,
body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__quantity,
body.selfles-product-page .selfles-buy-zone > .js-store-prod-quantity,
body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__quantity-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__quantity,
body.selfles-product-page .selfles-buy-zone .js-store-prod-quantity,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__quantity-wrapper {
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* внутренние элементы счетчика тоже по центру */
body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity__minus-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity__plus-wrapper,
body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity-input {
    height: 64px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* делаем + и - потолще */
body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity__minus::before,
body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity__plus::before {
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* чуть аккуратнее цифра количества */
body.selfles-product-page .selfles-buy-zone .t-store__prod__quantity-input {
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.t-store__prod__quantity__minus-wrapper .t-store__prod__quantity__plus{
    font-weight: 900 !important;
}

/* ===== SELFLES: product text alignment fix ===== */
body.selfles-product-page .selfles-product-main-layout__info,
body.selfles-product-page .selfles-product-main-layout__info h1,
body.selfles-product-page .selfles-product-main-layout__info .js-store-prod-all-text,
body.selfles-product-page .selfles-product-main-layout__info .t-store__prod__descr,
body.selfles-product-page .selfles-product-main-layout__info .t-store__prod-popup__descr,
body.selfles-product-page .selfles-product-main-layout__info .js-store-prod-text,
body.selfles-product-page .selfles-product-details,
body.selfles-product-page .selfles-product-details__body,
body.selfles-product-page .selfles-product-details__body p,
body.selfles-product-page .selfles-product-details__body div,
body.selfles-product-page .selfles-product-details__body span,
body.selfles-product-page .selfles-product-details__body li {
    text-align: left !important;
}

body.selfles-product-page .selfles-product-options,
body.selfles-product-page .selfles-product-options__colors,
body.selfles-product-page .selfles-product-options__sizes {
    text-align: left !important;
    justify-content: flex-start !important;
}

body.selfles-product-page .selfles-buy-zone .t-btn,
body.selfles-product-page .selfles-buy-zone .t-btn *,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__btn,
body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__btn * {
    text-align: center !important;
}

/* ===== SELFLES: desktop product page viewport fit fix ===== */
@media (min-width: 961px) {
    body.selfles-product-page .selfles-product-main-layout {
        --selfles-page-pad: 20px;
        width: calc(100vw - var(--selfles-page-pad) * 2) !important;
        max-width: calc(100vw - var(--selfles-page-pad) * 2) !important;
        margin-left: calc((100% - 100vw) / 2 + var(--selfles-page-pad)) !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        justify-content: start !important;
        text-align: left !important;
        overflow: visible !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery,
    body.selfles-product-page .selfles-product-main-layout__info {
        min-width: 0 !important;
        text-align: left !important;
    }
}

/* ===== SELFLES: stable product layout ===== */
body.selfles-product-page {
    overflow-x: hidden !important;
}

body.selfles-product-page .selfles-product-fluid-container.t-container,
body.selfles-product-page .t-store__prod-snippet__container > .t-container,
body.selfles-product-page .t-store__prod-popup__container > .t-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

body.selfles-product-page .selfles-product-main-layout,
body.selfles-product-page .selfles-product-main-layout * {
    box-sizing: border-box !important;
}

body.selfles-product-page .selfles-product-main-layout {
    --selfles-page-pad: clamp(16px, 2vw, 20px);
    --selfles-product-gap: clamp(28px, 2.6vw, 50px);
    --selfles-info-width: clamp(400px, 27vw, 430px);
    --selfles-layout-width: calc(100vw - var(--selfles-page-pad) * 2);
    --selfles-gallery-width: min(1120px, calc(var(--selfles-layout-width) - var(--selfles-product-gap) - var(--selfles-info-width)));
    --selfles-gallery-height: min(calc(var(--selfles-gallery-width) * 0.697321), calc(100vh - 180px));
    display: grid !important;
    grid-template-columns: minmax(0, var(--selfles-gallery-width)) minmax(0, var(--selfles-info-width)) !important;
    column-gap: var(--selfles-product-gap) !important;
    align-items: start !important;
    justify-content: start !important;
    width: var(--selfles-layout-width) !important;
    max-width: var(--selfles-layout-width) !important;
    margin-left: var(--selfles-page-pad) !important;
    margin-right: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    text-align: left !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery,
body.selfles-product-page .selfles-product-main-layout__info {
    float: none !important;
    min-width: 0 !important;
    text-align: left !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery {
    grid-column: 1 !important;
    width: var(--selfles-gallery-width) !important;
    max-width: var(--selfles-gallery-width) !important;
    justify-self: start !important;
    flex: 0 1 var(--selfles-gallery-width) !important;
}

body.selfles-product-page .selfles-product-main-layout__info {
    grid-column: 2 !important;
    width: var(--selfles-info-width) !important;
    max-width: var(--selfles-info-width) !important;
    justify-self: start !important;
    flex: 0 0 var(--selfles-info-width) !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-store__prod__slider,
body.selfles-product-page .selfles-product-main-layout__gallery .t-store__prod-popup__slider,
body.selfles-product-page .selfles-product-main-layout__gallery .t-store__prod-snippet__gallery,
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds {
    width: var(--selfles-gallery-width) !important;
    max-width: var(--selfles-gallery-width) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__main,
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__container {
    width: var(--selfles-gallery-width) !important;
    max-width: var(--selfles-gallery-width) !important;
    height: var(--selfles-gallery-height) !important;
    max-height: var(--selfles-gallery-height) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__items-wrapper {
    height: var(--selfles-gallery-height) !important;
    min-height: var(--selfles-gallery-height) !important;
    max-height: var(--selfles-gallery-height) !important;
    overflow: visible !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__item,
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__wrapper,
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__imgwrapper,
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__items-wrapper .t-slds__bgimg {
    width: var(--selfles-gallery-width) !important;
    max-width: var(--selfles-gallery-width) !important;
    height: var(--selfles-gallery-height) !important;
    max-height: var(--selfles-gallery-height) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__items-wrapper .t-slds__bgimg,
body.selfles-product-page .selfles-product-main-layout__gallery .js-product-img,
body.selfles-product-page .selfles-product-main-layout__gallery .t-bgimg {
    display: block !important;
    width: var(--selfles-gallery-width) !important;
    max-width: var(--selfles-gallery-width) !important;
    height: var(--selfles-gallery-height) !important;
    min-height: var(--selfles-gallery-height) !important;
    max-height: var(--selfles-gallery-height) !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding-bottom: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    width: var(--selfles-gallery-width) !important;
    max-width: var(--selfles-gallery-width) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 12px !important;
    overflow: visible !important;
    justify-content: flex-start !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet,
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__bullet {
    width: 72px !important;
    height: 72px !important;
    min-height: 72px !important;
    flex: 0 0 72px !important;
    overflow: hidden !important;
}

body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet .t-slds__bgimg,
body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper .t-slds__bgimg {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    padding-bottom: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

@media screen and (min-width: 1340px) and (max-width: 1599px) {
    body.selfles-product-page .selfles-product-main-layout {
        --selfles-page-pad: 36px;
        --selfles-info-width: 410px;
        --selfles-product-gap: 28px;
        --selfles-layout-width: calc(100vw - var(--selfles-page-pad) * 2);
        --selfles-gallery-width: min(940px, calc(var(--selfles-layout-width) - var(--selfles-info-width) - var(--selfles-product-gap)));
        --selfles-gallery-height: calc(var(--selfles-gallery-width) * 0.697321);
        grid-template-columns: minmax(0, var(--selfles-gallery-width)) minmax(0, var(--selfles-info-width)) !important;
        column-gap: var(--selfles-product-gap) !important;
        width: var(--selfles-layout-width) !important;
        max-width: var(--selfles-layout-width) !important;
        margin-left: var(--selfles-page-pad) !important;
        margin-right: var(--selfles-page-pad) !important;
        justify-content: start !important;
        align-items: start !important;
    }
}

@media screen and (min-width: 1600px) and (max-width: 1679px) {
    body.selfles-product-page .selfles-product-main-layout {
        --selfles-page-pad: 30px;
        --selfles-info-width: 410px;
        --selfles-product-gap: 36px;
        --selfles-layout-width: calc(100vw - var(--selfles-page-pad) * 2);
        --selfles-gallery-width: min(1000px, calc(var(--selfles-layout-width) - var(--selfles-info-width) - var(--selfles-product-gap)));
        --selfles-gallery-height: calc(var(--selfles-gallery-width) * 0.697321);
        width: var(--selfles-layout-width) !important;
        max-width: var(--selfles-layout-width) !important;
        margin-left: var(--selfles-page-pad) !important;
        margin-right: var(--selfles-page-pad) !important;
    }
}

@media screen and (max-width: 1339px) {
    body.selfles-product-page .selfles-product-main-layout {
        --selfles-page-pad: clamp(16px, 2.5vw, 30px);
        --selfles-layout-width: calc(100vw - var(--selfles-page-pad) * 2);
        --selfles-gallery-width: var(--selfles-layout-width);
        --selfles-gallery-height: min(calc(var(--selfles-gallery-width) * 0.697321), 560px);
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px 0 !important;
        width: var(--selfles-layout-width) !important;
        max-width: var(--selfles-layout-width) !important;
        margin-left: var(--selfles-page-pad) !important;
        margin-right: 0 !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery,
    body.selfles-product-page .selfles-product-main-layout__info {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 1 auto !important;
    }

    body.selfles-product-page .selfles-product-options,
    body.selfles-product-page .selfles-product-options__sizes,
    body.selfles-product-page .selfles-product-options__colors,
    body.selfles-product-page .selfles-buy-zone,
    body.selfles-product-page .selfles-product-details {
        max-width: 100% !important;
    }
}

@media screen and (max-width: 960px) {
    body.selfles-product-page .selfles-product-main-layout {
        --selfles-gallery-height: min(calc(var(--selfles-gallery-width) * 0.697321), 420px);
    }
}

@media screen and (max-width: 768px) {
    body.selfles-product-page .selfles-product-main-layout {
        --selfles-page-pad: 18px;
        --selfles-gallery-height: min(calc(var(--selfles-gallery-width) * 0.697321), 58vw);
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__bullet,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet .t-slds__bgimg,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper .t-slds__bgimg {
        width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        flex-basis: 54px !important;
    }
}

/* ===== SELFLES: при отсутствии счетчика прижимаем кнопку влево ===== */
body.selfles-product-page .selfles-buy-zone:not(:has(
    > .t-store__prod__quantity,
    > .t-store__prod-popup__quantity,
    > .js-store-prod-quantity,
    > .t-store__prod-popup__quantity-wrapper
)) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
        "price"
        "btn" !important;
    column-gap: 0 !important;
}

body.selfles-product-page .selfles-buy-zone:not(:has(
    > .t-store__prod__quantity,
    > .t-store__prod-popup__quantity,
    > .js-store-prod-quantity,
    > .t-store__prod-popup__quantity-wrapper
)) > .t-store__prod-popup__btn-wrapper,
body.selfles-product-page .selfles-buy-zone:not(:has(
    > .t-store__prod__quantity,
    > .t-store__prod-popup__quantity,
    > .js-store-prod-quantity,
    > .t-store__prod-popup__quantity-wrapper
)) > .t-store__prod__btn-wrapper,
body.selfles-product-page .selfles-buy-zone:not(:has(
    > .t-store__prod__quantity,
    > .t-store__prod-popup__quantity,
    > .js-store-prod-quantity,
    > .t-store__prod-popup__quantity-wrapper
)) > .js-store-prod-popup-buy-btn-wrapper {
    grid-area: btn !important;
    justify-self: start !important;
    margin-left: 0 !important;
}

@media screen and (max-width: 1679px) {
    body.selfles-product-page .selfles-product-options,
    body.selfles-product-page .selfles-product-options__sizes,
    body.selfles-product-page .selfles-product-options__colors {
        max-width: var(--selfles-info-width, 410px) !important;
    }

    body.selfles-product-page .selfles-product-options__sizes {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    body.selfles-product-page .selfles-product-options__size {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

@media screen and (min-width: 1680px) {
    body.selfles-product-page .selfles-product-options__sizes {
        flex-wrap: nowrap !important;
    }
}

@media screen and (max-width: 768px) {
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__bullet,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet .t-slds__bgimg,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper .t-slds__bgimg {
        width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        flex-basis: 54px !important;
    }

    body.selfles-product-page .selfles-product-main-layout__info h1.js-store-prod-name,
    body.selfles-product-page .selfles-product-main-layout__info h1.js-product-name {
        font-size: 28px !important;
        line-height: 1.08 !important;
        margin-bottom: 14px !important;
    }

    body.selfles-product-page .selfles-product-options__size {
        height: 26px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }

    body.selfles-product-page .selfles-product-options__row_size {
        margin-bottom: 12px !important;
    }

    body.selfles-product-page .selfles-product-options__row_color,
    body.selfles-product-page .selfles-product-options__colors {
        margin-bottom: 16px !important;
    }

    body.selfles-product-page .selfles-buy-zone {
        column-gap: 20px !important;
        row-gap: 10px !important;
    }

    body.selfles-product-page .selfles-buy-zone > .js-store-price-wrapper,
    body.selfles-product-page .selfles-buy-zone > .t-store__prod-popup__price-wrapper,
    body.selfles-product-page .selfles-buy-zone > .t-store__prod__price-wrapper {
        font-size: 48px !important;
    }

    body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__btn-wrapper,
    body.selfles-product-page .selfles-buy-zone .t-store__prod__btn-wrapper,
    body.selfles-product-page .selfles-buy-zone .js-store-prod-popup-buy-btn-wrapper,
    body.selfles-product-page .selfles-buy-zone .t-store__prod-popup__btn,
    body.selfles-product-page .selfles-buy-zone .t-store__prod__btn,
    body.selfles-product-page .selfles-buy-zone .js-store-prod-popup-buy-btn,
    body.selfles-product-page .selfles-buy-zone .t-btn {
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        font-size: 16px !important;
    }
}

/* ===== SELFLES: adaptive product thumbs padding ===== */

/* меньше 560px: убираем padding у превью */
@media screen and (max-width: 559px) {
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* больше 900px: добавляем padding у превью */
@media screen and (min-width: 901px) {
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet-wrapper {
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
    }
}
/* ===== SELFLES: make product image smaller near 1440 ===== */

@media screen and (min-width: 1340px) and (max-width: 1440px) {
    body.selfles-product-page .selfles-product-main-layout {
        --selfles-page-pad: 36px !important;
        --selfles-info-width: 410px !important;
        --selfles-product-gap: 28px !important;
        --selfles-layout-width: calc(100vw - var(--selfles-page-pad) * 2) !important;

        /* было примерно до 930-940px, делаем уже */
        --selfles-gallery-width: min(860px, calc(var(--selfles-layout-width) - var(--selfles-info-width) - var(--selfles-product-gap))) !important;
        --selfles-gallery-height: calc(var(--selfles-gallery-width) * 0.697321) !important;

        grid-template-columns: minmax(0, var(--selfles-gallery-width)) minmax(0, var(--selfles-info-width)) !important;
        column-gap: var(--selfles-product-gap) !important;

        width: var(--selfles-layout-width) !important;
        max-width: var(--selfles-layout-width) !important;
        margin-left: var(--selfles-page-pad) !important;
        margin-right: var(--selfles-page-pad) !important;
        justify-content: start !important;
    }
}

/* ===== SELFLES: smaller product gallery thumbs under 400px ===== */

@media screen and (max-width: 399px) {
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet-wrapper {
        gap: 6px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__bullet,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet {
        width: 52px !important;
        height: 52px !important;
        flex: 0 0 52px !important;
        margin: 0 !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet .t-slds__bgimg,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper .t-slds__bgimg,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet .t-slds__bgimg,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet .t-slds__bgimg {
        width: 52px !important;
        height: 52px !important;
        min-height: 52px !important;
        padding-bottom: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-border,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet-border,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet-border {
        inset: 0 !important;
        width: 52px !important;
        height: 52px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ===== SELFLES: even smaller product gallery thumbs under 375px ===== */

@media screen and (max-width: 376px) {
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet-wrapper {
        gap: 5px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__bullet,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        margin: 0 !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet .t-slds__bgimg,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper .t-slds__bgimg,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet .t-slds__bgimg,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet .t-slds__bgimg {
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding-bottom: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-border,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet-border,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet-border {
        inset: 0 !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ===== SELFLES: smallest product gallery thumbs around 325px ===== */

@media screen and (max-width: 325px) {
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet-wrapper,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet-wrapper {
        gap: 4px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__bullet,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        margin: 0 !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet .t-slds__bgimg,
    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-wrapper .t-slds__bgimg,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet .t-slds__bgimg,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet .t-slds__bgimg {
        width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding-bottom: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    body.selfles-product-page .selfles-product-main-layout__gallery .t-slds__thumbsbullet-border,
    body.selfles-product-page .t-store__prod__slider .t-slds__thumbsbullet-border,
    body.selfles-product-page .t-store__prod-popup__slider .t-slds__thumbsbullet-border {
        inset: 0 !important;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ===== SELFLES: related card titles only — no uppercase, no ellipsis ===== */
#allrecords .t-store__relevants__container .js-product-relevant.t-store__card .t-store__card__title,
#allrecords .t-store__relevants__container .js-product-relevant.t-store__card .js-product-name,
#allrecords .t-store__relevants__container .t-store__card.js-product-relevant .t-store__card__title,
#allrecords .t-store__relevants__container .t-store__card.js-product-relevant .js-product-name,
#allrecords .t-store__relevants__container .selfles-related-card__title {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;

    font-family: "Inter", Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    color: #EE413C !important;
    text-transform: none !important;
    letter-spacing: 0 !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    height: auto !important;
    max-height: none !important;

    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
}

#allrecords .t-store__relevants__container .js-product-relevant .t-store__card__textwrapper,
#allrecords .t-store__relevants__container .selfles-related-card__textwrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
}

#allrecords .t-store__relevants__container .js-product-relevant .t-store__card__price-wrapper,
#allrecords .t-store__relevants__container .selfles-related-card__price-wrapper {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

@media screen and (max-width: 768px) {
    #allrecords .t-store__relevants__container .js-product-relevant .t-store__card__textwrapper,
    #allrecords .t-store__relevants__container .selfles-related-card__textwrapper {
        flex-direction: column !important;
        gap: 4px !important;
    }
}

/* ===== SELFLES: mobile related title in one line ===== */
@media screen and (max-width: 961px) {
    body.selfles-product-page .t-store__relevants__title.t-uptitle.t-uptitle_xxl,
    body.selfles-product-page .t-store__relevants__title,
    #allrecords .t-store__relevants__title.t-uptitle.t-uptitle_xxl,
    #allrecords .t-store__relevants__title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;

        font-size: clamp(28px, 8.5vw, 56px) !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-align: center !important;
        letter-spacing: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    body.selfles-product-page .t-store__relevants__title.t-uptitle.t-uptitle_xxl,
    body.selfles-product-page .t-store__relevants__title,
    #allrecords .t-store__relevants__title.t-uptitle.t-uptitle_xxl,
    #allrecords .t-store__relevants__title {
        font-size: clamp(22px, 7.6vw, 40px) !important;
    }
}



/* ===== SELFLES: protected lowercase fragments in product titles ===== */
.selfles-title-no-uppercase {
    text-transform: none !important;
}

/* ===== SELFLES: catalog card titles + load more spacing ===== */

/* Названия карточек чуть меньше */
.js-product.t-store__card:not(.js-product-relevant) .t-store__card__title,
.js-product.t-store__card:not(.js-product-relevant) .js-product-name,
.t-store__card:not(.js-product-relevant) .t-store__card__title,
.t-store__card:not(.js-product-relevant) .js-product-name,
.js-product-relevant.t-store__card .t-store__card__title,
.js-product-relevant.t-store__card .js-product-name,
.t-store__card.js-product-relevant .t-store__card__title,
.t-store__card.js-product-relevant .js-product-name {
    font-size: 16px !important;
    line-height: 1.18 !important;
}

/* Load more: ближе к верхнему блоку, дальше от следующего */
@media screen and (max-width: 961px) {
    .t-store__load-more-btn-wrap,
    .js-store-load-more-btn-wrap,
    .t-store .t-store__load-more-btn-wrap,
    .t-store .js-store-load-more-btn-wrap {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        clear: both !important;

        margin-bottom: 100px !important;
        padding: 0 !important;
    }

    .t-store__load-more-btn,
    .js-store-load-more-btn {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* ===== SELFLES: keep catalog 3 columns at 769-961px ===== */

@media screen and (min-width: 769px) and (max-width: 961px) {
    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list > .js-product.t-store__card:not(.js-product-relevant),
    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list > .t-store__card:not(.js-product-relevant) {
        float: none !important;
        display: block !important;
        width: calc((100% - 40px) / 3) !important;
        max-width: calc((100% - 40px) / 3) !important;
        min-width: 0 !important;
        flex: 0 0 calc((100% - 40px) / 3) !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list > .t-clear,
    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list > .t-store__grid-separator {
        display: none !important;
    }

    #allrecords .t-store__load-more-btn-wrap,
    #allrecords .js-store-load-more-btn-wrap {
        padding-top: 0 !important;
        margin-bottom: 100px !important;
        padding-bottom: 0 !important;
    }
}

/* Цена карточек такого же размера, как название */
@media screen and (max-width: 961px) {
    .js-product.t-store__card:not(.js-product-relevant) .t-store__card__price,
    .js-product.t-store__card:not(.js-product-relevant) .t-store__card__price-value,
    .js-product.t-store__card:not(.js-product-relevant) .js-product-price,
    .js-product.t-store__card:not(.js-product-relevant) .t-store__card__price-currency,
    .t-store__card:not(.js-product-relevant) .t-store__card__price,
    .t-store__card:not(.js-product-relevant) .t-store__card__price-value,
    .t-store__card:not(.js-product-relevant) .js-product-price,
    .t-store__card:not(.js-product-relevant) .t-store__card__price-currency,
    .js-product-relevant.t-store__card .t-store__card__price,
    .js-product-relevant.t-store__card .t-store__card__price-value,
    .js-product-relevant.t-store__card .js-product-price,
    .js-product-relevant.t-store__card .t-store__card__price-currency,
    .t-store__card.js-product-relevant .t-store__card__price,
    .t-store__card.js-product-relevant .t-store__card__price-value,
    .t-store__card.js-product-relevant .js-product-price,
    .t-store__card.js-product-relevant .t-store__card__price-currency {
        font-size: 16px !important;
        line-height: 1.18 !important;
    }

    .js-product.t-store__card:not(.js-product-relevant) .t-store__card__price::before,
    .t-store__card:not(.js-product-relevant) .t-store__card__price::before,
    .js-product-relevant.t-store__card .t-store__card__price::before,
    .t-store__card.js-product-relevant .t-store__card__price::before {
        font-size: 16px !important;
        line-height: 1.18 !important;
    }
}

/* ===== SELFLES: mobile catalog compact spacing ===== */

@media screen and (max-width: 768px) {
    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 0 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list > .js-product.t-store__card:not(.js-product-relevant),
    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list > .t-store__card:not(.js-product-relevant) {
        float: none !important;
        width: calc((100% - 10px) / 2) !important;
        max-width: calc((100% - 10px) / 2) !important;
        flex: 0 0 calc((100% - 10px) / 2) !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list > .t-clear,
    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list > .t-store__grid-separator {
        display: none !important;
    }

    #allrecords .t-store__load-more-btn-wrap,
    #allrecords .js-store-load-more-btn-wrap,
    #allrecords .t-store .t-store__load-more-btn-wrap,
    #allrecords .t-store .js-store-load-more-btn-wrap {
        margin-top: 18px !important;
        margin-bottom: 56px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
        height: auto !important;
    }
}

/* ===== SELFLES: mobile catalog row gap after load more ===== */

@media screen and (max-width: 768px) {
    #allrecords .t-store .js-store-grid-cont.t-store__mobile-two-columns > .t-store__card-list {
        row-gap: 30px !important;
        column-gap: 10px !important;
        gap: 30px 10px !important;
    }

    #allrecords .t-store__load-more-btn-wrap,
    #allrecords .js-store-load-more-btn-wrap,
    #allrecords .t-store .t-store__load-more-btn-wrap,
    #allrecords .t-store .js-store-load-more-btn-wrap {
        margin-top: 24px !important;
        margin-bottom: 56px !important;
    }
}

/* ===== SELFLES: disabled product option buttons ===== */

.selfles-product-options button:disabled,
.selfles-product-options button[aria-disabled="true"],
.selfles-product-options button[data-unavailable="true"],
.selfles-product-options button.is-disabled {
    cursor: not-allowed !important;
    opacity: .38 !important;
    box-shadow: none !important;
}

/* Размеры */
.selfles-product-options__size:disabled,
.selfles-product-options__size[aria-disabled="true"],
.selfles-product-options__size[data-unavailable="true"],
.selfles-product-options__size.is-disabled,
.selfles-product-options__size.is-disabled.is-active {
    background: #F5F5F5 !important;
    border-color: #D9D9D9 !important;
    color: #9A9A9A !important;
    cursor: not-allowed !important;
    opacity: .55 !important;
    filter: grayscale(1) !important;
}

/* Чтобы при наведении disabled-размер не выглядел активным */
.selfles-product-options__size:disabled:hover,
.selfles-product-options__size[aria-disabled="true"]:hover,
.selfles-product-options__size[data-unavailable="true"]:hover,
.selfles-product-options__size.is-disabled:hover {
    background: #F5F5F5 !important;
    border-color: #D9D9D9 !important;
    color: #9A9A9A !important;
    cursor: not-allowed !important;
}

/* Цвета */
.selfles-product-options__color:disabled,
.selfles-product-options__color[aria-disabled="true"],
.selfles-product-options__color[data-unavailable="true"],
.selfles-product-options__color.is-disabled {
    cursor: not-allowed !important;
    opacity: .32 !important;
    filter: grayscale(.35) !important;
}
