/* === TEXTURA — автоматическая раскраска бейджей NEW / SALE / % / HALLOWEEN / 11.11 === */

/* Общий стиль меток */
.t-store__card__mark,
.t-store__card__badge,
.t-product__badge,
.t-store__prod-popup__badge {
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff !important;
  background: rgba(120,120,120,0.5);
  border: none !important;
  transition: all 0.2s ease-in-out;
}

/* Эффект при наведении */
.t-store__card__mark:hover,
.t-store__card__badge:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Цвета по типам */
.badge--new {
  background-color: #9BAE82 !important;  /* хаки-зелёный */
  color: #ffffff !important;
}
.badge--sale {
  background-color: #7A3E3E !important;  /* винно-красный */
  color: #ffffff !important;
}
.badge--discount {
  background-color: #A9C7CF !important;  /* голубой */
  color: #ffffff !important;
}
/* HALLOWEEN */
.badge--halloween {
  background-color: #FF7A1A !important;  /* яркий оранжевый */
  color: #ffffff !important;
}
/* 11.11 — ярко-красный */
.badge--november {
  background-color: #E03131 !important;  /* насыщенный красный */
  color: #ffffff !important;
}

/* Позиция бейджа */
.t-store__card__mark-wrapper {
  top: 10px !important;
  left: 10px !important;
}

@media (max-width: 640px) {
  .t-store__card__mark,
  .t-store__card__badge {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* === TEXTURA — типографика каталога и карточки товара === */

/* ---------- КАТАЛОГ ---------- */
.t-store__card__title,
.t-store__card__titletext,
.t-store__card__titlewrapper,
.t-store__card__title .js-store-prod-name,
.t-store__card .js-store-prod-name {
  font-family: "TildaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #222222;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 8px;
}

.t-store__card__price,
.t-store__card__price-value,
.t-store__card__price-wrapper,
.t-store__card__price .js-store-prod-price {
  font-family: "TildaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  color: #222222;
  text-align: center;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .t-store__card__title,
  .t-store__card__titletext,
  .t-store__card__titlewrapper,
  .t-store__card__title .js-store-prod-name,
  .t-store__card .js-store-prod-name {
    font-size: 15px;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 6px;
  }
  .t-store__card__price,
  .t-store__card__price-value,
  .t-store__card__price-wrapper,
  .t-store__card__price .js-store-prod-price {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* ---------- КАРТОЧКА ТОВАРА ---------- */
.t-store__prod-title,
.t-product__title,
.t-store__prod-popup__title,
.js-product-name {
  font-family: "TildaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  color: #111111;
  margin: 0 0 12px 0;
}

.t-store__prod-price__current,
.t-product__price-value,
.js-product-price,
.t-store__prod-popup__price-value {
  font-family: "TildaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: #111111;
  margin: 0 0 16px 0;
  display: inline-block;
}

.t-store__prod-text,
.t-product__descr,
.t-product__text,
.t-store__prod-popup__descr,
.t-store__prod-popup__text {
  font-family: "TildaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  max-width: 600px;
}

.t-store__prod-text p,
.t-product__descr p,
.t-product__text p,
.t-store__prod-popup__descr p,
.t-store__prod-popup__text p {
  margin: 0 0 12px 0;
}

/* ---------- МОБИЛЬНАЯ КАРТОЧКА ---------- */
@media (max-width: 640px) {
  .t-store__prod-title,
  .t-product__title,
  .t-store__prod-popup__title,
  .js-product-name {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .t-store__prod-price__current,
  .t-product__price-value,
  .js-product-price,
  .t-store__prod-popup__price-value {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 14px;
  }
  .t-store__prod-text,
  .t-product__descr,
  .t-product__text,
  .t-store__prod-popup__descr,
  .t-store__prod-popup__text {
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
  }
  .t-store__prod-text p,
  .t-product__descr p,
  .t-product__text p,
  .t-store__prod-popup__descr p,
  .t-store__prod-popup__text p {
    margin-bottom: 10px;
  }
}

/* ---------- КНОПКА "Добавить в корзину" ---------- */
.t-store__prod-btn,
.t-product__btn,
.t-store__prod-popup__btn,
.t-store__prod-popup__btn .t-btn,
.t-store__prod-btn .t-btn,
.t-product__btn .t-btn {
  font-family: "TildaSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .t-store__prod-btn,
  .t-product__btn,
  .t-store__prod-popup__btn,
  .t-store__prod-popup__btn .t-btn,
  .t-store__prod-btn .t-btn,
  .t-product__btn .t-btn {
    font-size: 16px;
    line-height: 1.3;
  }
}
