
/* ТЕПЛОЦЕХ — единое оформление управления каталогом */

.brands.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
}

.brands.filters [data-brand-filter] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #d9cdd0;
  border-radius: 9px;
  background: #fff;
  color: #343038;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.brands.filters [data-brand-filter]:hover {
  border-color: #812b43;
  color: #812b43;
}

.brands.filters [data-brand-filter].active,
.brands.filters [data-brand-filter][aria-pressed="true"] {
  background: #812b43;
  border-color: #812b43;
  color: #fff;
}

[data-model-search] {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #ded8db;
  border-radius: 10px;
  background: #fff;
  color: #28242a;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

[data-model-search]:focus {
  border-color: #812b43;
  box-shadow: 0 0 0 3px rgba(129,43,67,.1);
}

.tc-load-more {
  justify-content: center;
  margin: 28px 0 36px;
}

.tc-load-more .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  min-width: 220px;
  padding: 12px 26px;
  border: 1px solid #812b43;
  border-radius: 10px;
  background: #812b43;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.tc-load-more .btn:hover {
  background: #682036;
  color: #fff;
}

.tc-load-more .btn:active {
  transform: scale(.98);
}

@media (max-width: 640px) {
  .brands.filters {
    gap: 7px;
    margin: 12px 0 16px;
  }

  .brands.filters [data-brand-filter] {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 12px;
  }

  [data-model-search] {
    max-width: 100%;
    min-height: 42px;
    font-size: 14px;
  }

  .tc-load-more .btn {
    width: 100%;
    max-width: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands.filters [data-brand-filter],
  .tc-load-more .btn {
    transition: none;
  }
}


/* Единое мобильное оформление всех категорий */

.brands.filters,
.brands.filters [data-brand-filter] {
  box-sizing: border-box;
}

.brands.filters [data-brand-filter],
.brands.filters [data-brand-filter].active,
.brands.filters [data-brand-filter][aria-pressed="true"] {
  min-height: 38px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.brands.filters [data-brand-filter].active,
.brands.filters [data-brand-filter][aria-pressed="true"] {
  background: #812b43 !important;
  border-color: #812b43 !important;
  color: #fff !important;
}

[data-model-search] {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 440px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  line-height: 22px !important;
}

@media (max-width: 640px) {
  .brands.filters {
    gap: 8px !important;
  }

  .brands.filters [data-brand-filter] {
    min-height: 36px !important;
    padding: 7px 11px !important;
    font-size: 12px !important;
  }

  [data-model-search] {
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}


/* TC COMPACT SEARCH AND BACK BUTTON */

/* Компактная кнопка возврата */
.teploceh-back-catalog {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 8px 15px !important;
  margin: 0 0 18px !important;
  background: #fff !important;
  color: #812b43 !important;
  border: 1px solid #e5dce0 !important;
  border-radius: 11px !important;
  box-shadow: 0 4px 12px rgba(45,30,35,.09) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  transition: box-shadow .2s, transform .2s !important;
}

.teploceh-back-catalog:hover {
  box-shadow: 0 6px 16px rgba(45,30,35,.14) !important;
  transform: translateY(-1px);
}

/* Убираем громоздкую рамку вокруг поиска */
.catalog-app .tools {
  margin: 12px 0 16px !important;
}

.catalog-app .tools .tool {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 440px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #555 !important;
}

.catalog-app .tools .tool:focus-within {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Аккуратное поле поиска с мягкой тенью */
.catalog-app [data-model-search] {
  display: block !important;
  width: 100% !important;
  max-width: 440px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  margin: 0 !important;
  border: 1px solid #e4dfe1 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #292529 !important;
  box-shadow: 0 3px 12px rgba(45,30,35,.07) !important;
  outline: none !important;
  font-size: 14px !important;
  line-height: 22px !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
}

.catalog-app [data-model-search]:focus {
  border-color: #c9bdc2 !important;
  box-shadow: 0 4px 14px rgba(45,30,35,.11) !important;
  outline: none !important;
}

@media (max-width: 640px) {
  .catalog-app .tools .tool,
  .catalog-app [data-model-search] {
    max-width: 100% !important;
  }

  .teploceh-back-catalog {
    font-size: 12px !important;
    padding: 8px 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teploceh-back-catalog {
    transition: none !important;
  }
}


/* TC EXTRA SMALL BACK BUTTON */
.teploceh-back-catalog {
  width: fit-content !important;
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 5px 10px !important;
  margin: 0 0 14px !important;
  font-size: 11px !important;
  line-height: 18px !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 9px rgba(45,30,35,.10) !important;
}


/* TC FINAL COMPACT BACK LINK */
html body a.teploceh-back-catalog {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  max-width: max-content !important;
  min-width: 0 !important;
  height: 32px !important;
  min-height: 0 !important;
  padding: 0 11px !important;
  margin: 0 0 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  border: 1px solid #e5dce0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #812b43 !important;
  box-shadow: 0 3px 10px rgba(45,30,35,.12) !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}


/* TC MOBILE CATEGORY NAV FIX 20261111 */
@media screen and (max-width: 767px) {
  body main.catalog-products #tc-all-categories-227 {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }

  body main.catalog-products #tc-all-categories-227 a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    max-width: 190px !important;
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 10px !important;
  }
}


/* TC CATEGORY NAV DIRECT FIX 20261111 */
@media screen and (max-width: 767px) {
  html body #tc-all-categories-227 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 0 10px !important;
    margin: 0 0 14px !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
  }

  html body #tc-all-categories-227 a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 175px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 6px 11px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 9px !important;
  }
}


/* TC ACTUAL CATEGORY BUTTONS FIX */
@media (max-width: 767px) {
  html body nav.categories.catalog-compact-categories {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
  }

  html body nav.categories.catalog-compact-categories > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 160px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 5px 10px !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 9px !important;
  }
}
