/* ===== Кнопка "В корзину": hover + click ===== */

html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn,
html body #allrecords a.js-catalog-prod-btn2 {
    border: 1px solid #000000 !important;
    border-radius: 4px !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1);
    transition: background-color 0.35s ease,
                border-color 0.35s ease,
                color 0.35s ease,
                box-shadow 0.35s ease,
                transform 0.15s ease,
                opacity 0.35s ease !important;
}

html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn:hover,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn:hover,
html body #allrecords a.js-catalog-prod-btn2:hover,
html body #allrecords .t-store__card__btns-wrapper a.t-btnflex_type_button2:hover,
html body #allrecords .t-catalog__card__btns-wrapper a.t-btnflex_type_button2:hover {
    border: 1px solid transparent !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: transparent !important;
    background-color: #FF2E2E !important;
    background: #FF2E2E !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 20px -6px rgba(255, 46, 46, 0.45) !important;
    transform: translateY(-2px) scale(1.02);
    opacity: 0.95 !important;
}

html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn:active,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn:active,
html body #allrecords a.js-catalog-prod-btn2:active {
    transform: translateY(0) scale(0.96) !important;
    box-shadow: 0 2px 8px -2px rgba(255, 46, 46, 0.35) !important;
    background-color: #E01F1F !important;
    background: #E01F1F !important;
    border-color: transparent !important;
    opacity: 1 !important;
    transition: transform 0.08s ease, box-shadow 0.08s ease,
                background-color 0.08s ease !important;
}

html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn .t-btnflex__text,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn .t-btnflex__text,
html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn .t-catalog__card__btntext,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn .t-catalog__card__btntext {
    transition: color 0.35s ease !important;
}

html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn:hover .t-btnflex__text,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn:hover .t-btnflex__text,
html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn:hover .t-catalog__card__btntext,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn:hover .t-catalog__card__btntext,
html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn:active .t-btnflex__text,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn:active .t-btnflex__text {
    color: #FFFFFF !important;
}

html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn svg,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn svg {
    transition: fill 0.35s ease, stroke 0.35s ease !important;
}

html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn:hover svg,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn:hover svg,
html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn:hover svg path,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn:hover svg path,
html body #allrecords a.t-btnflex_type_button2.t-catalog__card__btn:active svg,
html body #allrecords a.t-btnflex_type_button2.t-store__card__btn:active svg {
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* ============================================================
   ФОТО ТОВАРОВ — ПОСТОЯННОЕ СКРУГЛЕНИЕ 16PX
   Исправлено: радиус есть И на самой картинке, И на обёртке.
   Без clip-path и isolation, чтобы не вмешиваться в слои Tilda.
   ============================================================ */

/* Обёртки карточек: неподвижная скруглённая рамка */
html body #allrecords .t-store__card__imgwrapper,
html body #allrecords .t-catalog__card__imgwrapper,
html body #allrecords .js-product-img-wrapper,
html body #allrecords .t776__imgwrapper,
html body #allrecords .t778__imgwrapper,
html body #allrecords .t786__imgwrapper {
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Сами фотографии: Tilda может рисовать их фоном или тегом img */
html body #allrecords .js-product .t-store__card__bgimg,
html body #allrecords .js-product .t-store__card__bgimg_second,
html body #allrecords .js-product .t-store__card__img,
html body #allrecords .js-product .t-store__card__img_second,
html body #allrecords .js-product .t-catalog__card__bgimg,
html body #allrecords .js-product .t-catalog__card__img,
html body #allrecords .js-product .t776__bgimg,
html body #allrecords .js-product .t778__bgimg,
html body #allrecords .js-product .t786__bgimg,
html body #allrecords .js-product img.js-product-img {
    border-radius: 16px !important;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1),
                filter .5s ease, opacity .1s linear !important;
    transform: scale(1);
    transform-origin: center center;
}

/* Плавное увеличение только на устройствах с настоящим наведением */
@media (hover: hover) {
    html body #allrecords .js-product:hover .t-store__card__bgimg,
    html body #allrecords .js-product:hover .t-store__card__img,
    html body #allrecords .js-product:hover .t-catalog__card__bgimg,
    html body #allrecords .js-product:hover .t-catalog__card__img,
    html body #allrecords .js-product:hover .t776__bgimg,
    html body #allrecords .js-product:hover .t778__bgimg,
    html body #allrecords .js-product:hover .t786__bgimg,
    html body #allrecords .js-product:hover img.js-product-img {
        transform: scale(1.08) !important;
        filter: brightness(1.03) !important;
        border-radius: 16px !important;
    }
}
