/****************************
  1. Карточки товара (каталог)
*****************************/
.t-store__card__textwrapper .js-store-prod-name {
  margin-top: -10px; /* подгон названия */
}

.t-store__card__price-wrapper > div:last-child {
  margin-top: -3px !important; /* выравнивание цены */
}


/****************************
  2. Кнопка "Избранное" (сердце)
*****************************/
.t1002__addBtn {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px;
  height: 40px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0;
  cursor: pointer;
  overflow: visible !important;
  transition: all 0.3s ease;
}

.t1002__addBtn svg {
  display: none !important; /* скрыть стандартную иконку */
}

.t1002__addBtn::before,
.t1002__addBtn::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: transparent center/contain no-repeat;
  transition: all 0.3s ease;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* серое сердце */
.t1002__addBtn:not(.t1002__addBtn_active)::after {
  background-image: url("https://static.tildacdn.com/tild3638-3436-4135-b133-303135333438/_.svg");
  opacity: 1;
}

/* красное сердце */
.t1002__addBtn.t1002__addBtn_active::before {
  background-image: url("https://static.tildacdn.com/tild6230-6665-4637-a137-383265303134/_.svg");
  opacity: 1;
}

/* скрыть серое при активном */
.t1002__addBtn.t1002__addBtn_active::after {
  opacity: 0;
}

/* hover-анимация */
.t1002__addBtn:hover::after,
.t1002__addBtn:hover::before {
  transform: translate(-50%, -50%) scale(1.05);
}


/****************************
  3. Кнопка "В корзину" в попапе
*****************************/
a.t-store__prod-popup__btn {
  min-width: 400px !important;
  background-color: #111 !important;
  border-radius: 0 !important;
  font: 400 16px 'Title', sans-serif !important;
  text-transform: lowercase !important;
  color: #fff !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* убираем вложенные таблицы */
a.t-store__prod-popup__btn table,
a.t-store__prod-popup__btn tbody,
a.t-store__prod-popup__btn tr,
a.t-store__prod-popup__btn td {
  all: unset !important;
  display: contents !important;
}

/* кнопка + иконка в строку */
.t-store__prod-popup__btn-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.t-store__prod-popup__btn {
  flex-shrink: 0 !important;
}

.t-store__prod-popup__name {
  color: #111 !important;
}


/****************************
  4. Корзина (sidebar и checkout)
*****************************/
.t706__sidebar-content,
.t706__sidebar-heading,
.t706__sidebar-content a,
.t706__sidebar-prodamount-label,
.t706__cartwin-prodamount-price,
.t706__cartwin-prodamount-currency,
.t706__product-title a,
.t706__cartwin-prodamount-label,
.t1002__wishlistwin-heading {
  font: 400 15px 'Title', sans-serif !important;
}

.t706__cartpage-heading {
  font: 300 15px 'Title', sans-serif !important;
  text-transform: uppercase !important;
}

.t1002__product-link {
  font: 300 15px 'Title', sans-serif !important;
}

/* кнопка "оформить заказ" (замена текста через псевдоэлемент) */
.t706__sidebar-continue,
button.t-submit {
  font: 400 15px 'Title', sans-serif !important;
  text-transform: lowercase !important;
  color: transparent !important;
  position: relative;
}

.t706__sidebar-continue::after,
button.t-submit::after {
  content: "оформить заказ";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff !important;
  pointer-events: none;
}

/* скрытие оригинального текста в кнопке */
button.t-submit span,
button.t-submit div {
  color: transparent !important;
}


/****************************
  5. Изображения и видео
*****************************/
.t1002__product-imgdiv,
.t706__product-imgdiv,
.nlm189-video-element {
  border-radius: 0 !important;
}


/****************************
  6. Dolyame (оплата частями)
*****************************/
.digi-dolyame-product,
.digi-dolyame-modal__content,
.digi-dolyame-modal__content *,
.digi-dolyame-checkout-description,
.digi-dolyame-checkout-description--desktop {
  border-radius: 0 !important;
}

.digi-dolyame-scheme__list-item:first-child 
.digi-dolyame-scheme__list-item__price::after {
  background-color: #CDE2FC !important;
}

a.digi-dolyame-modal__link {
  color: #CDE2FC !important;
}


/****************************
  7. Логотип в меню
*****************************/
.t450__logoimg {
  max-width: 50px; /* уменьшение в 2 раза */
}



/* ============================= */
/* ???? 2. ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ ВСЕХ БЛОКОВ ST315N */
/* ============================= */

/* Скрыть кнопку "Загрузить ещё" */
.js-store-load-more-btn {
  display: none !important;
}

/* Отступ под ценой */
.t-store__card .js-store-price-wrapper {
  margin-top: 2px !important;
}

/* Скрытие описания, SKU */
.t-store__card .js-store-prod-descr,
.t-store__card .js-store-prod-sku,
.t-store__card__sku {
  display: none;
}

/* Скрыть названия и подписи под кружками */
.t-store__card .t-product__option-title,
.t-store__card .t-product__option-title_image {
  display: none !important;
}

/* Показываем только "Цвет" и "Металл" */
.t-store__card .js-product-edition-option:not([data-edition-option-id="Цвет"]):not([data-edition-option-id="Металл"]) {
  display: none !important;
}

/* ✅ Внешняя рамка и размер кружков (label) — увеличено */
.t-store__card .t-product__option-item_buttons {
  width: 22px;
  height: 22px;
  border: 1px solid #CCC;
  border-radius: 50%;
  padding: 0;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

/* ✅ Внутренний цветной кружок — увеличен */
.t-store__card .t-product__option-checkmark_image,
.t-store__card .t-product__option-checkmark_color {
  width: 18px !important;
  height: 18px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* Активный кружок — тёмная обводка */
.t-store__card .t-product__option-item_active {
  border: 1px solid #333333 !important;
}

/* Удалить псевдоэлемент ::before от Tilda */
.t-product__option-input:checked + .t-product__option-checkmark_image::before,
.t-product__option-input:checked + .t-product__option-checkmark_color::before {
  content: none !important;
  display: none !important;
}