/* ==========================================================================
   BEANABOX — глобальные стили
   Подключение: Настройки сайта → SEO → HTML для всех страниц:
   
   ========================================================================== */

body {
  font-family: 'Gilroy', sans-serif !important;
  color: #222222;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   ГЛАВНЫЙ ЗАГОЛОВОК (H1) — блок T997 на первом экране
   ========================================================================== */
.t997__title {
  font-size: 52px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  font-family: 'Gilroy', sans-serif !important;
}

/* ==========================================================================
   H1 — внутренние страницы + страницы товаров (Store и Catalog)
   ========================================================================== */
.h1,
.t050__title,
.t-title_xl,
.t-title_xxl,
.t-store__prod-popup__name,
.t-catalog__prod-popup__name {
  font-size: 40px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  font-family: 'Gilroy', sans-serif !important;
}

/* ==========================================================================
   ЗАГОЛОВКИ СЕКЦИЙ (H2)
   ========================================================================== */
.t-section__title,
.t486__title {
  font-size: 42px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  font-family: 'Gilroy', sans-serif !important;
}

/* ==========================================================================
   ПОДЗАГОЛОВКИ КАРТОЧЕК (H3) — Store + Catalog + инфо-блоки
   ========================================================================== */
.t-heading_lg,
.t1106__title,
.t1066__heading,
.t997__card-title,
.t-store__card__title,
.t-catalog__card .t-typography__title,
.t-catalog__relevants__title,
.t-feed__post-title {
  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  font-family: 'Gilroy', sans-serif !important;
}

/* ==========================================================================
   LEAD TEXT — описания секций
   ========================================================================== */
.t-section__descr,
.t486__descr,
.t997__descr {
  font-size: 20px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  font-family: 'Gilroy', sans-serif !important;
}

/* ==========================================================================
   BODY TEXT — карточки, описания, страницы товаров
   ========================================================================== */
.t-descr_sm,
.t1106__text,
.t1066__descr,
.t997__card-desc,
.t-store__card__descr,
.t-catalog__card .t-typography__descr,
.t-store__prod-popup__text,
.t-store__prod-popup__text p,
.t-store__prod-popup__text li,
.t-store__prod-popup__text ul,
.t-catalog__prod-popup__text,
.t-catalog__prod-popup__text p,
.t-catalog__prod-popup__text li,
.t-catalog__prod-popup__text ul,
.t390__descr,
.t-feed__post-descr {
  font-size: 16px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  font-family: 'Gilroy', sans-serif !important;
  color: #4d4d4d !important;
}

.t-input-title {
  font-size: 16px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  font-family: 'Gilroy', sans-serif !important;
}

.t997__card-desc,
.t1050__col .t-descr_sm {
  color: #ffffff !important;
}

/* ==========================================================================
   ЦЕНЫ — Store + Catalog
   ========================================================================== */
.t-store__card__price,
.t-store__card__price-value,
.t-store__prod-popup__price,
.t-store__prod-popup__price-value,
.t-catalog__card__price,
.t-catalog__card__price-value,
.t-catalog__prod-popup__price,
.t-catalog__prod-popup__price-value {
  font-family: 'Gilroy', sans-serif !important;
  font-weight: 700 !important;
}

.t-store__prod-popup__price-value,
.t-catalog__prod-popup__price-value {
  font-size: 24px !important;
  color: #5b901a !important;
}

/* ==========================================================================
   SKU, БРЕНД, ХАРАКТЕРИСТИКИ — страницы товаров
   ========================================================================== */
.t-store__prod-popup__brand,
.t-store__prod-popup__sku,
.t-store__prod-popup__text .js-store-prod-charcs,
.t-catalog__prod-popup__brand,
.t-catalog__prod-popup__sku,
.t-catalog__prod-popup__text .js-catalog-prod-charcs {
  font-family: 'Gilroy', sans-serif !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #4d4d4d !important;
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.t-btn,
.t-submit,
.t-btntext,
.t-feed__parts-switch-btn,
.t-store__card__btn,
.t-store__prod-popup__btn,
.t-catalog__card__btn,
.t-catalog__prod-popup__btn,
.t-btnflex {
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  font-family: 'Gilroy', sans-serif !important;
}

/* ==========================================================================
   КАТАЛОГ ST340 — карточки, фильтры, сайдбар
   ========================================================================== */
.t-catalog__card {
  border-radius: 15px !important;
  overflow: hidden;
}

.t-catalog__card__imgwrapper,
.t-catalog__card__imgwrapper img {
  border-radius: 15px 15px 0 0 !important;
}

.t-catalog__card__btn,
.t-catalog__prod-popup__btn,
.t-btnflex.t-btnflex_type_button {
  border-radius: 10px !important;
}

.t-catalog__prod-popup__container,
.t-catalog__sidebar,
.t-catalog__filter,
.t-catalog__sort,
.t-catalog__parts-switch-btn,
.t-catalog__prod-popup__close-txt {
  font-family: 'Gilroy', sans-serif !important;
}

/* Каталог green-coffee-catalog (rec2482704613) */
#rec2482704613 .t-catalog__card {
  border-radius: 15px !important;
}

#rec2482704613 .t-catalog__card__btn,
#rec2482704613 .t-catalog__prod-popup__btn,
#rec2482704613 .t-btnflex.t-btnflex_type_button {
  border-radius: 10px !important;
}

/* Фон только на страницах товаров green-coffee-catalog */
body:has(#allrecords[data-product-page="y"][data-tilda-page-alias="green-coffee-catalog"]),
body.t-body:has(#allrecords[data-product-page="y"][data-tilda-page-alias="green-coffee-catalog"]) {
  background-color: #f3f3f3 !important;
}

#allrecords[data-product-page="y"][data-tilda-page-alias="green-coffee-catalog"] {
  background-color: #f3f3f3 !important;
}

/* Контейнер карточки товара */
#allrecords[data-product-page="y"][data-tilda-page-alias="green-coffee-catalog"]
  .t-catalog__prod-snippet__container {
  background-color: #f3f3f3 !important;
}
/* Фон для корневых /tproduct/ (без alias), page 72197065 */
body:has(#allrecords[data-product-page="y"][data-tilda-page-id="72197065"]),
body.t-body:has(#allrecords[data-product-page="y"][data-tilda-page-id="72197065"]) {
  background-color: #f3f3f3 !important;
}

#allrecords[data-product-page="y"][data-tilda-page-id="72197065"] {
  background-color: #f3f3f3 !important;
}


/* ==========================================================================
   STORE ST100 — карточки каталога (старый блок)
   ========================================================================== */
.t-store__card {
  border-radius: 15px !important;
  overflow: hidden;
}

.t-store__card__btn,
.t-store__prod-popup__btn {
  border-radius: 10px !important;
}

/* ==========================================================================
   СТРАНИЦА ТОВАРА /tproduct/ — Store (автогенерируемая)
   Классы: t-store__prod-popup__*, js-store-product
   ========================================================================== */
.t-store__prod-snippet__container,
.t-store__product-snippet {
  font-family: 'Gilroy', sans-serif !important;
}

.t-store__prod-popup__info {
  font-family: 'Gilroy', sans-serif !important;
}

.t-store__prod-popup__slider {
  border-radius: 15px !important;
  overflow: hidden;
}

.t-store .t-popup__close {
  border-radius: 10px !important;
}

/* Кнопки «Заказать» внутри описания товара (inline в HTML товара) */
.t-store__prod-popup__text a[style*="background-color"],
.t-catalog__prod-popup__text a[style*="background-color"] {
  font-family: 'Gilroy', sans-serif !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   СТРАНИЦА ТОВАРА — Catalog (как Ninety Plus)
   Классы: t-catalog__prod-popup__*, js-catalog-product
   ========================================================================== */
.t-catalog__prod-snippet__container,
.t-catalog__product-snippet {
  font-family: 'Gilroy', sans-serif !important;
}

.t-catalog__prod-popup__info {
  font-family: 'Gilroy', sans-serif !important;
}

.t-catalog__prod-popup__slider {
  border-radius: 15px !important;
  overflow: hidden;
}

.t-catalog .t-popup__close {
  border-radius: 10px !important;
  background-color: #f3f3f3 !important;
}

.t-catalog__prod-popup__close-txt {
  color: #1c8400 !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   МЕЛКИЙ ТЕКСТ — футер, формы
   ========================================================================== */
.t-form__bottom-text,
.t389__copyright,
.t389__list_item a {
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  font-family: 'Gilroy', sans-serif !important;
}

/* ==========================================================================
   ZERO BLOCK
   ========================================================================== */
.tn-elem[data-elem-type="text"] h1,
.tn-elem[data-elem-type="text"] h2,
.tn-elem[data-elem-type="text"] h3 {
  font-weight: 800 !important;
  font-family: 'Gilroy', sans-serif !important;
}

/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (< 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .t997__title {
    font-size: 36px !important;
  }

  .h1,
  .t050__title,
  .t-title_xl,
  .t-title_xxl,
  .t-store__prod-popup__name,
  .t-catalog__prod-popup__name {
    font-size: 28px !important;
  }

  .t-section__title,
  .t486__title {
    font-size: 30px !important;
  }

  .t-heading_lg,
  .t1106__title,
  .t1066__heading,
  .t997__card-title,
  .t-store__card__title,
  .t-catalog__card .t-typography__title,
  .t-catalog__relevants__title,
  .t-feed__post-title {
    font-size: 20px !important;
  }

  .t-section__descr,
  .t486__descr,
  .t997__descr {
    font-size: 16px !important;
  }

  .t-descr_sm,
  .t1106__text,
  .t1066__descr,
  .t997__card-desc,
  .t-store__card__descr,
  .t-catalog__card .t-typography__descr,
  .t-store__prod-popup__text,
  .t-store__prod-popup__text p,
  .t-catalog__prod-popup__text,
  .t-catalog__prod-popup__text p,
  .t390__descr,
  .t-input-title,
  .t-feed__post-descr {
    font-size: 14px !important;
  }

  .t-store__prod-popup__price-value,
  .t-catalog__prod-popup__price-value {
    font-size: 20px !important;
  }

  .t-form__bottom-text,
  .t389__copyright,
  .t389__list_item a {
    font-size: 12px !important;
  }
}
