/* ===========================
   TG Mini App ONLY (не влияет на веб)
   =========================== */

html[data-tg="1"], html[data-tg="1"] body{
  background:#fff !important;
  color:#111 !important;
}

/* Контейнер магазина */
html[data-tg="1"] .t-store,
html[data-tg="1"] .t-store__grid,
html[data-tg="1"] .t-store__parts-switch-wrapper{
  background:#fff !important;
}

/* Тексты карточек (точечно, без тотального "*" чтобы не ломать веб) */
html[data-tg="1"] .t-store__card__title,
html[data-tg="1"] .t-store__card__text,
html[data-tg="1"] .t-store__card__price,
html[data-tg="1"] .t-store__card__descr,
html[data-tg="1"] .t-store__card__option,
html[data-tg="1"] .t-store__prod__title,
html[data-tg="1"] .t-store__prod__price,
html[data-tg="1"] .t-store__prod__description{
  color:#111 !important;
}

/* Категории/табы */
html[data-tg="1"] .t-store__filter__btn,
html[data-tg="1"] .t-store__filter__item{
  background:#fff !important;
  color:#111 !important;
  border:1px solid rgba(0,0,0,.18) !important;
}

html[data-tg="1"] .t-store__filter__btn.t-active,
html[data-tg="1"] .t-store__filter__item.t-active{
  background:#2F3E34 !important;
  color:#fff !important;
  border-color:#2F3E34 !important;
}

/* Счетчик количества (внутри карточки) — чтобы цифры не пропадали */
html[data-tg="1"] .t-store__qty input,
html[data-tg="1"] .t-store__qty,
html[data-tg="1"] .t-store__qty *{
  color:#111 !important;
}

html[data-tg="1"] .t-store__qty input{
  background:#fff !important;
  border:1px solid rgba(0,0,0,.25) !important;
}

/* Кнопки +/- в счетчике */
html[data-tg="1"] .t-store__qty__btn,
html[data-tg="1"] .t-store__qty__btn *{
  color:#111 !important;
}

/* ===========================
   FIX: Иконка корзины + бейдж (счетчик) — чтобы не пропадал
   =========================== */

/* На всякий: снимаем любые скрытия */
html[data-tg="1"] .t-store__carticon,
html[data-tg="1"] [class*="carticon"],
html[data-tg="1"] [class*="t-store__cart"]{
  opacity:1 !important;
  visibility:visible !important;
}

/* Бейдж/счетчик — разные варианты классов Тильды */
html[data-tg="1"] .t-store__carticon-counter,
html[data-tg="1"] .t-store__carticon__counter,
html[data-tg="1"] .t-store__carticon__badge,
html[data-tg="1"] [class*="carticon"] [class*="counter"],
html[data-tg="1"] [class*="carticon"] [class*="badge"]{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:18px !important;
  height:18px !important;
  padding:0 6px !important;
  border-radius:999px !important;
  background:#ff3b30 !important;
  color:#fff !important;
  font-weight:700 !important;
  line-height:18px !important;
  opacity:1 !important;
  visibility:visible !important;
}

/* Цифра внутри бейджа */
html[data-tg="1"] .t-store__carticon-counter *,
html[data-tg="1"] .t-store__carticon__counter *,
html[data-tg="1"] .t-store__carticon__badge *{
  color:#fff !important;
}

/* Если иконка корзины svg “вдруг” стала белой/пропала — принудим заливку */
html[data-tg="1"] .t-store__carticon svg,
html[data-tg="1"] [class*="carticon"] svg{
  fill:#111 !important;
  stroke:#111 !important;
}