/* ==============================
   ИСПРАВЛЕНИЕ ОТСТУПОВ
   ============================== */

/* 1. Убираем ВСЕ отступы внутри инфо-блока */
.t-store__card__info > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 2. Затем добавляем ТОЛЬКО необходимые отступы */
.t-store__card__info {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

/* НАЗВАНИЕ - меньше отступ снизу */
.t-store__card__title {
  margin-bottom: -15px !important;
  line-height: 1.15 !important;
  max-height: 30px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ВАЖНО: Поднимаем ВЕСЬ блок с ценой и сплитом */
.js-store-price-wrapper {
  margin-top: 10px !important;
  margin-bottom: -10px !important;
  min-height: 10px !important;
}

/* ЦЕНА внутри контейнера - без отступов */
.t-store__card__price {
  margin-top: 3px !important;
  margin-bottom: 20px !important;
  padding: 0px !important;
  line-height: 40px !important;
}

/* СПЛИТ - поднимаем ближе к названию */
.js-store-price-wrapper yandex-pay-badge,
.t-store__card__price yandex-pay-badge {
  margin-top: -15px !important;
  margin-bottom: 0 !important;
  display: block !important;
  transform: scale(0.6) !important;
  transform-origin: left top !important;
}

/* Варианты - поднимаем выше */
.t-store__card__options {
  margin-top: -20px !important;
}

/* 3. Мобильная версия */
@media (max-width: 768px) {
  .t-store__card__title {
    margin-bottom: -23px !important;
    max-height: 38px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  .js-store-price-wrapper {
    margin-top: -10px !important;
    margin-bottom: -10px !important;
    min-height: 18px !important;
  }
  
  .js-store-price-wrapper yandex-pay-badge,
  .t-store__card__price yandex-pay-badge {
    margin-top: -26px !important;
    transform: scale(0.55) !important;
  }
  
  .t-store__card__options {
    margin-top: -15px !important;
  }
}

/* 4. Для карточки товара в попапе (модальном окне) */
.t-store__prod-popup__text {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.t-store__prod-popup__price {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* 5. Гарантия, что изображения не пострадают */
.t-store__card__img,
.t-store__card__img img,
.t-store__card__img-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}

/* ========== ШРИФТЫ ========== */
.t-store__card__title,
.t-store__card__price-item,
.t-notification__text,
.t-store__notification-text {
  font-family: "Mulish", sans-serif !important;
}

/* ========== КАТАЛОГ ========== */
.t-store__card {
  cursor: pointer;
  position: relative !important;
}

.t-store__card__info {
  padding-bottom: 0 !important;
}

.t951__grid-cont .t-store__card-list {
  row-gap: 15px !important;
}

.t-store__card__title {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-weight: 400 !important;
  font-size: 16px !important;
}

.t-store__card__price-item {
  font-weight: 500 !important;
  font-size: 15px !important;
}

/* Скрыть кнопки "В корзину" в каталоге */
.t951 .t-store__card__btn,
.t951 .t-store__card__addbtn {
  display: none !important;
}

/* ========== ИЗБРАННОЕ ========== */
.t1002__addBtn {
  display: none !important;
}

.t-store__card__favorite-btn {
  position: absolute !important;
  top: 10px !important;
  right: 28px !important;
  width: 45px !important;
  height: 48px !important;
  background: url('https://static.tildacdn.com/tild3963-3935-4761-a263-383836383161/4545_no_shad.svg') no-repeat center !important;
  background-size: contain !important;
  cursor: pointer !important;
  z-index: 100 !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s ease, filter 0.2s ease !important;
  display: block !important;
}

.t-store__card__favorite-btn:hover {
  opacity: 1 !important;
}

.t-store__card__favorite-btn.active {
  filter: invert(34%) sepia(51%) saturate(1389%) hue-rotate(334deg) brightness(89%) contrast(90%) !important;
  opacity: 1 !important;
}

.t1002__addBtn:hover,
.t1002__addBtn_active {
  background: transparent !important;
}

.t1002__addBtn::before,
.t1002__addBtn::after {
  display: none !important;
}

/* ========== ИКОНКИ В ШАПКЕ ========== */
.t-menuwidgeticons__img_wishlisticon svg,
.t-menuwidgeticons__img_carticon svg {
  opacity: 0 !important;
  visibility: hidden !important;
}

.t-menuwidgeticons__img_wishlisticon {
  background: url('https://static.tildacdn.com/tild6266-6233-4736-b862-393736343430/favourite.svg') no-repeat center !important;
  background-size: 33px 33px !important;
  min-width: 33px !important;
  min-height: 33px !important;
}

.t-menuwidgeticons__img_carticon {
  background: url('https://static.tildacdn.com/tild6534-3731-4037-b731-326338386534/bag.svg') no-repeat center !important;
  background-size: 33px 33px !important;
  min-width: 33px !important;
  min-height: 33px !important;
}

/* ================================
   2. СДВИГАЕМ ВСЕ ИКОНКИ БЛИЖЕ К МЕНЮ
   ================================ */
.t-menuwidgeticons {
  margin-left: -50px !important;
}

.t-menuwidgeticons {
  transform: translateX(-50px) !important;
}

.t-menuwidgeticons__img_wishlisticon {
  margin-right: -28px !important;
}

.t-menuwidgeticons__img_carticon {
  margin-left: -50px !important;
}

/* ========== СОЦСЕТИ В ШАПКЕ: 33px ========== */
.t-sociallinks,
.t-sociallinks__wrapper {
  gap: 10px !important;
}

.t-sociallinks__item svg {
  width: 19px !important;
  height: 19px !important;
}

/* ========== СДВИГ СОЦСЕТЕЙ БЛИЖЕ К МЕНЮ ========== */
.t-header__row .t-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.t-header__row .t-col:first-child,
.t-header__row .t-col:last-child {
  display: flex !important;
  align-items: center !important;
}

.t-sociallinks {
  margin-right: -7px !important;
}

/* ========== СКРЫТЬ КНОПКИ В ЛЮБОМ КАТАЛОГЕ ========== */
.t-store__card__btn,
.t-store__card__addbtn,
.t-store__card-actions {
  display: none !important;
}

/* ========== ОТСТУП МЕЖДУ ЦЕНОЙ И СПЛИТОМ (ДЕСКТОП) ========== */
@media (min-width: 960px) {
  .js-store-price-wrapper yandex-pay-badge {
    margin-top: -15px !important;
    display: block !important;
  }
}

/* ========== ОТСТУП В КАРТОЧКЕ ТОВАРА (МОБИЛЬНАЯ И ДЕСКТОП) ========== */
.t-store__prod-popup__price yandex-pay-badge {
  display: block !important;
  margin-top: 3px !important;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ: сдвигаем к углу ========== */
@media (max-width: 768px) {
  .t-store__card__favorite-btn {
    top: 3px !important;
    right: 14px !important;
    width: 30px !important;
    height: 33px !important;
  }
}

/* ==============================
   ФИКС ДЛЯ УВЕДОМЛЕНИЙ TILDA
   ============================== */

/* Уведомления об избранном */
.t1002__bubble-container,
.t1002__bubble {
  background-color: #af4630 !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(175, 70, 48, 0.4) !important;
}

.t1002__bubble-text {
  color: white !important;
  font-family: "Mulish", sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

.t1002__bubble-icon svg {
  fill: white !important;
  stroke: white !important;
  color: white !important;
}

.t1002__bubble-tail {
  border-top-color: #af4630 !important;
}

/* Уведомления о корзине */
.t706__bubble-container,
.t706__bubble {
  background-color: #af4630 !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(175, 70, 48, 0.4) !important;
}

.t706__bubble-text {
  color: white !important;
  font-family: "Mulish", sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

.t706__bubble-icon svg {
  fill: white !important;
  stroke: white !important;
  color: white !important;
}

.t706__bubble-tail {
  border-top-color: #af4630 !important;
}

/* Автоскрытие через 2 секунды */
.t1002__bubble-container,
.t706__bubble-container {
  animation: hideBubble 2.3s forwards !important;
}

@keyframes hideBubble {
  0% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); visibility: hidden; }
}

/* Мобильная версия */
@media (max-width: 768px) {
  .t1002__bubble-container,
  .t706__bubble-container {
    max-width: 90% !important;
    margin: 0 auto !important;
    left: 5% !important;
    right: 5% !important;
  }
  
  .t1002__bubble-text,
  .t706__bubble-text {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }
}