/* TMIX_2511 — низ карточки товара + кнопка «Ещё товары» / «Показать ещё».
   v2, 25.11.2026. Подключать последним через /local/tmix_2511.php (хук не меняется).
   Не трогает тексты .tmx-stores, .tmx-st--c (склад) и .tmx-eta-more («Нужно больше?»).
   v2: сплошной белый низ (без серой полосы #f1f5f9) до тёмного футера;
   на десктопе верх блоков «В корзину» / «Забрать в магазине» равен верху фото. */

/* ========== 1. Низ: отзывы / карта / «Ранее вы смотрели» — сплошной белый до тёмного футера ==========
   v1 красил #footer и .viewed_* в #f1f5f9. На карточке это сливалось с серым #content.wraps,
   но на /contacts/stores/ (белый контент + карта) давало серую полосу над «Ранее вы смотрели».
   На карточке #content.wraps серый (#f1f5f9) по дизайну верхней части (фото / цена) —
   низ от #tmx-sec красим в белый на всю ширину, чтобы шва с белым футером не было.
   Главную (#content, отступы секций) не перекрашиваем; серый футер главной из v1 снимаем,
   «Ранее вы смотрели» снова на белом, как до v1. */

html body:not(.tmix-dark-mode) #footer {
  background: #fff !important;
}
html body:not(.tmix-dark-mode) #footer .viewed_product_block,
html body:not(.tmix-dark-mode) #footer .viewed_product_block .viewed-wrapper,
html body:not(.tmix-dark-mode) #footer .viewed_product_block .maxwidth-theme,
html body:not(.tmix-dark-mode) #footer .viewed_product_block .wrapper_inner,
html body:not(.tmix-dark-mode) #footer .viewed_product_block .container {
  background: #fff !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
html body:not(.tmix-dark-mode) #footer .viewed_product_block {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
html body:not(.tmix-dark-mode) #footer .viewed_product_block .viewed-wrapper {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
/* class catalog_page висит на .wrapper1, не на body. 16 px между отзывами и «Ранее вы смотрели». */
html body .wrapper1.catalog_page .wrapper_inner,
html body .catalog_page .wrapper_inner {
  padding-bottom: 16px !important;
}
html.tmix-cb #tmx-sec.tmx-sec,
html.tmix-cb .section-content-wrapper > .tmx-sec:last-child {
  margin-bottom: 0 !important;
}

/* Карточка: секция отзывов и 16 px под ней — белые на всю ширину, иначе серый #content даёт шов. */
html.tmix-cb:not(.tmix-home):not(.tmix-dark-mode) #tmx-sec.tmx-sec,
html.tmix-cb:not(.tmix-home):not(.tmix-dark-mode) .section-content-wrapper > .tmx-sec:last-child {
  background: #fff !important;
  position: relative;
  z-index: 0;
}
html.tmix-cb:not(.tmix-home):not(.tmix-dark-mode) #tmx-sec.tmx-sec::before,
html.tmix-cb:not(.tmix-home):not(.tmix-dark-mode) .section-content-wrapper > .tmx-sec:last-child::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 0;
  bottom: -16px;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #fff;
}

/* Якоря «Характеристики / Описание / Отзывы»: в card_b фон var(--tmx-bg)=#f1f5f9 + margin-top 20px — серая полоса над белым низом. */
html.tmix-cb:not(.tmix-home):not(.tmix-dark-mode) .tmx-anch {
  background: #fff !important;
}
html.tmix-cb:not(.tmix-home):not(.tmix-dark-mode) .tmx-anch::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -24px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #fff;
}

@media (max-width: 767px) {
  html body:not(.tmix-dark-mode) #footer .viewed_product_block .viewed-wrapper {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
}

/* ========== 2. «Ещё товары ↓» на главной: из тонкой ссылки — кнопка как «В корзину» / «Перейти в каталог» ========== */
html body .tb-more:not(#tm):not(#tm2),
html.tmix-home:not(.tmix-dark-mode) body#main .tmix-best .tb-more.tb-more:not(#tm):not(#tm2) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 16px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
}
html body .tb-morebtn:not(#tm):not(#tm2),
html body button.tb-morebtn:not(#tm):not(#tm2) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 0 24px !important;
  margin: 0 !important;
  background: #0a1128 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .25px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
html body .tb-morebtn:not(#tm):not(#tm2) .tb-morebtn__t,
html body .tb-morebtn:not(#tm):not(#tm2) .tb-morebtn__s {
  color: #fff !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  background: transparent !important;
}
html body .tb-morebtn:not(#tm):not(#tm2):hover,
html body .tb-morebtn:not(#tm):not(#tm2):focus,
html body .tb-morebtn:not(#tm):not(#tm2):active {
  background: #131c38 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* «Ещё товары» → следующий блок («Готовимся к зиме»): было 32px / 20px */
html.tmix-home.tmix-best3-on:not(.tmix-dark-mode) body#main .tmix-best .tb3-ribs:not(#tm):not(#tm2) {
  margin-top: 16px !important;
}

@media (max-width: 767px) {
  html body .tb-morebtn:not(#tm):not(#tm2) { min-height: 44px !important; }
}

/* ========== 3. «Показать ещё» в каталоге: та же кнопка, без серой плашки на всю ширину ========== */
html body .ajax_load_btn:not(#tm):not(#tm2) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 16px 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}
html body .ajax_load_btn .more_text_ajax:not(#tm):not(#tm2),
html body span.more_text_ajax.font_upper_md:not(#tm):not(#tm2) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 0 24px !important;
  margin: 0 !important;
  background: #0a1128 !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .25px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer;
}
html body .ajax_load_btn .more_text_ajax:not(#tm):not(#tm2):hover,
html body span.more_text_ajax.font_upper_md:not(#tm):not(#tm2):hover {
  background: #131c38 !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  html body .ajax_load_btn .more_text_ajax:not(#tm):not(#tm2) { min-height: 44px !important; }
}

/* ========== 4. Десктоп: верх правой колонки (корзина / «Забрать в магазине») = верх фото ==========
   .two_columns имеет padding-top:20px (Aspro), а .product-side — нет: цена и самовывоз
   на 20px выше белой карточки фото. На мобилке (<992) padding-top у two_columns уже 0. */
@media (min-width: 992px) {
  html.tmix-cb.tmix-cb-built .product-container .two_columns {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  html.tmix-cb.tmix-cb-built .product-container .right_info {
    padding-top: 0 !important;
  }
}
