/* =========================
   Основное тело сайта
========================= */

html, body {
    overflow: auto !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
}


/* =========================
   Попапы Тильды
   (без конфликтов с корзиной)
========================= */

.t-popup,
.t-popup_show,
.t-popup__container,
.t-popup__scrollable,
.t-store__prod-popup,
.t-store__prod-popup__scrollable {
    overflow: auto !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.t-popup::-webkit-scrollbar,
.t-popup_show::-webkit-scrollbar,
.t-popup__container::-webkit-scrollbar,
.t-popup__scrollable::-webkit-scrollbar,
.t-store__prod-popup::-webkit-scrollbar,
.t-store__prod-popup__scrollable::-webkit-scrollbar {
    display: none !important;
}


/* Не ломаем встроенные стили Тильды */
.t-popup__scrollable[style],
.t-store__prod-popup__scrollable[style] {
    overflow: auto !important;
}


/* =========================
   КОРЗИНА T706
   фикс прокрутки товаров
========================= */

.t706 {
    overflow: hidden !important;
}


.t706__sidebar {
    overflow: hidden !important;
}


.t706__sidebar-content {
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}


/* Заголовок */
.t706__sidebar-top {
    flex: 0 0 auto !important;
}


/* Список товаров */
.t706__sidebar-products {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}


/* Скролл товаров скрытый, но рабочий */
.t706__sidebar-products::-webkit-scrollbar {
    width: 0;
    height: 0;
}


/* Сумма */
.t706__cartwin-totalamount-wrap {
    flex: 0 0 auto !important;
}


/* Нижняя кнопка */
.t706__sidebar-bottom {
    flex: 0 0 auto !important;
    position: relative !important;
}


/* Убираем дубль суммы */
.t706__sidebar-prodamount-wrap {
    display: none !important;
}


/* =========================
   Подключение Inter
========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');



/* =========================
   Разделитель
========================= */

.my-micro-sep {
  position: relative;
  width: 100%;
  background: #2d2d2d;
  box-sizing: border-box;
  padding: 16px 0;
  overflow: visible;
  margin-top: 40px;
}


.my-micro-sep__line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 5000px;
  height: 1px;
  background: #515151;
  z-index: 0;
}


.my-micro-sep__line--top {
  top: 0;
}


.my-micro-sep__line--bottom {
  bottom: 0;
}


.my-micro-sep__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1px 2px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}


.my-micro-sep__text {
  text-align: left;
  color: #515151;
  font-size: 14px;
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.7px;
  white-space: nowrap;
}



/* =========================
   Поиск Tilda
========================= */

.t-search-widget__header {
    box-shadow: 0 0 0 0 rgba(0,0,0,0) !important;
}


.t-search-widget__popup {
    background: #2d2d2d !important;
}


.t-search-widget__clear-icon {
    display: none !important;
}


.t-search-widget__result_product-img {
    border: none !important;
}


.t-search-widget__query-result {
    color: #989899 !important;
}


.t-search-widget__result_product-desc {
    display: none;
}


.t-name_xs {
    margin-left: 0 !important;
    color: #fff;
}


.t-descr_xs {
    color: #fff;
    font-weight: 400 !important;
}


.t-btn_sm {
    font-family: 'Inter' !important;
    font-weight: 400;
}


.t-search-widget__loadmore-btn {
    border: 1px solid #4c4c4c !important;
    background-color: #383838 !important;
}


.t-text {
    color: #666666 !important;
}


.t-search-widget__pagination-active {
    background-color: #2d2d2d !important;
}



/* =========================
   Доп. настройки
========================= */

.t396__artboard {
    cursor: default !important;
}

/* =====================================================================
   КОРЗИНА НА ВСЮ СТРАНИЦУ (.t706__cartpage): правки, чтобы кнопка оформления была видна
   Добавлено 24.10.2026. Прежние правила выше не менялись.
   1) Телефон и планшет: нижний отступ, чтобы кнопка не пряталась под плашкой cookie
   2) Планшет: форма не закрепляется (position: sticky), кнопка не уезжает за экран
   3) Заметная тонкая полоса прокрутки в корзине (раньше не было видно, что окно прокручивается)
   ===================================================================== */
/* 0) ГЛАВНАЯ ПРИЧИНА. Скрипт автомасштаба stautoScale (в HTML-блоке главной) ставит zoom на каждый блок страницы,
      в том числе на корзину (блок 706). Из-за этого на ширине 768 корзина раздувалась в 1,44 раза,
      на экране 1920 пикселей и шире тоже в 1,44, на Android-телефонах (около 412) в 1,16, и нижняя часть
      с кнопкой оформления оказывалась за краем экрана. Для корзины масштаб отключаем. */
.t-rec[data-record-type="706"] {
  zoom: 1 !important;
}

@media screen and (max-width: 960px) {
  .t706__cartpage-content {
    margin-bottom: 200px !important;
  }
  .t706__cartpage-form-wrapper,
  .t706__cartpage-info-wrapper {
    position: static !important;
  }
}

.t706__cartpage {
  scrollbar-width: thin;
  scrollbar-color: #CDC09E rgba(0, 0, 0, 0.08);
}
.t706__cartpage::-webkit-scrollbar {
  display: block !important;
  width: 8px;
}
.t706__cartpage::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
}
.t706__cartpage::-webkit-scrollbar-thumb {
  background: #CDC09E;
  border-radius: 4px;
}

/* Пустая корзина (добавлено 24.10.2026):
   текст «Корзина пуста» и подписи белым на тёмном фоне, кнопка «Заказать» скрыта, пока в корзине нет товаров.
   Если браузер старый и не понимает :has(), кнопка просто останется видна, как раньше. */
.t706__cartpage-products_empty,
.t706__sidebar-prodamount-label,
.t706__cartwin-prodamount-price,
.t706__cartwin-prodamount-currency {
  color: #fff !important;
}
.t706__sidebar-content:has(.t706__cartpage-products_empty) .t706__sidebar-bottom {
  display: none !important;
}
.t706__cartpage:has(.t706__cartpage-products_empty) .t706__cartpage-open-form-wrap {
  display: none !important;
}
