/**
 * Стили страницы категории каталога (product-category).
 * Хлебные крошки, заголовок, подкатегории, таблица товаров.
 */

.page-category-content {
  padding-bottom: 2rem;
}

/* Хлебные крошки */
.page-category-content .breadcrumbs {
  padding: 8px 0;
  font-size: 12px;
  color: #9ca3af;
}

.page-category-content .breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-category-content .breadcrumbs__item {
  display: flex;
  align-items: center;
}

.page-category-content .breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
  font-weight: 400;
}

.page-category-content .breadcrumbs a:hover {
  color: #f0cf4c;
}

.page-category-content .breadcrumbs__sep {
  color: #d1d5db;
  margin: 0 4px;
  font-size: 8px;
  display: flex;
  align-items: center;
}

.page-category-content .breadcrumbs .breadcrumb_last {
  color: #374151;
  font-weight: 500;
}

/* Блок категории */
.woo-category {
  padding: 24px 0 40px;
}

/* Утилиты для разметки (как в примере) */
.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.ms-4 {
  margin-inline-start: 1rem;
}

/* Новый дизайн заголовка категории */
._block-group__head {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

._block-group__head-left {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 28% - 24px);
}

._block-title-wrapper {
  margin-bottom: 12px;
}

._block-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.aluminumrolled__listing-products-shown {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
}

.aluminumrolled__listing-descr {
  margin-top: 16px;
}

.aluminumrolled__listing-descr-content {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  transition: max-height 0.3s ease;
  max-height: 44px;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  min-width: 0;
}

.aluminumrolled__listing-descr-content p,
.aluminumrolled__listing-descr-content li,
.aluminumrolled__listing-descr-content h2 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.aluminumrolled__listing-descr-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.aluminumrolled__listing-descr.is-expanded .aluminumrolled__listing-descr-content {
  max-height: none;
}

.aluminumrolled__listing-descr-content h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: #1a1a1a;
}

.aluminumrolled__listing-descr-content h2:first-child {
  margin-top: 0;
}

.aluminumrolled__listing-descr-content p {
  margin: 0 0 12px;
}

.aluminumrolled__listing-descr-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.aluminumrolled__listing-descr-content li {
  margin-bottom: 4px;
}

.aluminumrolled__listing-descr-toggle {
  margin-top: 8px;
  padding: 0;
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.aluminumrolled__listing-descr-toggle:hover {
  color: #f0cf4c;
}

/* Конверсионный блок справа */
.conversion {
  flex: 0 0 28%;
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
  height: fit-content;
  border: 1px solid #e5e7eb;
}

.conversion ul,
.conversion__features {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.conversion ul li,
.conversion__features li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #4b5563;
}

.conversion ul li::before,
.conversion__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
  font-size: 11px;
}

.conversion__bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}

.conversion__online {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.conversion__online-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.conversion__online p {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}

.conversion__contacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.conversion__contacts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

.conversion__contacts a:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.conversion__contacts a .fa-whatsapp {
  color: #25D366;
}

.conversion__contacts a .fa-telegram-plane {
  color: #0088cc;
}

/* Адаптивность */
@media (max-width: 992px) {
  ._block-group__head {
    flex-direction: column;
  }

  ._block-group__head-left,
  .conversion {
    flex: 1;
    width: 100%;
    max-width: 100%;
  }
}

/* Старые стили для обратной совместимости */
.category-head {
  margin-bottom: 24px;
}

.category-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.category-products-count {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--color-text-muted, #6b7280);
}

.category-description {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.category-description p {
  margin: 0 0 8px;
}

/* Подкатегории — карточки с изображением справа */
.subcategories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px 16px;
  margin-bottom: 32px;
}

/* Карточка подкатегории: при наведении только бордюр желтый, фон не меняется */
.subcategories-list .catalog-category {
  padding: 12px 16px;
  margin-bottom: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.subcategories-list .catalog-category:hover {
  border-color: #f0cf4c;
}

.catalog-category--item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: border-color 0.2s ease;
}

.catalog-category--item:hover {
  border-color: #f0cf4c;
}

.catalog-category-img {
  flex-shrink: 0;
}

.subcategories-list .catalog-category .catalog-category-img {
  order: 0;
}

.catalog_category__item_img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.catalog-category-name {
  flex: 1;
}

.subcategories-list .catalog-category .catalog-category-name {
  order: 0;
}

.catalog-category-name a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  display: block;
}

.catalog-category-name a:hover {
  color: #1a1a1a;
}

/* Таблица товаров */
.products-table-wrapper {
  overflow-x: auto;
  margin-top: 24px;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.products-table thead td {
  padding: 12px 16px;
  background: #f3f4f6;
  font-weight: 600;
  border-bottom: 2px solid var(--color-border, #e5e7eb);
}

.products-table tbody tr {
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.products-table tbody tr:hover {
  background: #fafafa;
}

.products-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}

.td-product-img .cart__img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

.td-product-title a {
  color: var(--color-text);
  text-decoration: none;
}

.td-product-title a:hover {
  color: var(--color-accent, #f0cf4c);
  text-decoration: underline;
}

.td-product-price .card-line__price-current {
  font-weight: 600;
  white-space: nowrap;
}

.btn-buy {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-accent, #f0cf4c);
  color: #1a1a1a;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-buy:hover {
  opacity: 0.9;
}

.products-table tfoot td {
  padding: 16px;
  border-top: 1px solid var(--color-border, #e5e7eb);
  background: #f9fafb;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.category-empty {
  padding: 24px 0;
  color: var(--color-text-muted);
}

/* ==================== ФИЛЬТРЫ ==================== */

/* Верхние фильтры */
.filters__top {
  margin-bottom: 24px;
}

.filters__top form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-wrapper {
  position: relative;
}

/* На мобилке показываем только .filter-header (со стрелкой), блок с плюсом скрыт (breakpoint как в шаблоне) */
@media (max-width: 768px) {
  .filters__top .filter-wrapper>.filter {
    display: none !important;
  }

  .filters__top .filter-wrapper>.filter-header {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .filters__top .filter-wrapper>.filter-header {
    display: none !important;
  }
}

.filter {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter:hover {
  border-color: #f0cf4c;
}

.filter__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter__label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
}

.filter__btn-add {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #9ca3af;
  font-size: 14px;
  transition: color 0.2s ease;
}

.filter__btn-add:hover {
  color: #f0cf4c;
}

/* Выпадающее меню фильтра */
.filter-collapse {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  margin-top: 8px;
  min-width: 280px;
}

.filter-collapse.show {
  display: block;
}

.filter-dropdown {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.filter-dropdown__inner {
  padding: 16px;
}

.filter-dropdown__title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.filter-dropdown__search {
  margin-bottom: 12px;
}

.filter-dropdown__search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.filter-dropdown__search-input:focus {
  border-color: #f0cf4c;
}

.filter-dropdown__list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-checkbox:hover {
  border-color: #f0cf4c;
  background: rgba(240, 207, 76, 0.05);
}

.filter-checkbox__input {
  width: 14px;
  height: 14px;
  accent-color: #f0cf4c;
}

.filter-checkbox__value {
  font-size: 12px;
  color: #374151;
  white-space: nowrap;
}

.filter-dropdown__no-results {
  font-size: 13px;
  color: #9ca3af;
  padding: 12px;
  text-align: center;
  width: 100%;
}

.filter-dropdown__foot {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  text-align: center;
}

.filter-dropdown__btn {
  background: #f0cf4c;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-dropdown__btn:hover {
  background: #e0bf3c;
}

/* Фильтры в шапке таблицы */
.td-filter {
  background: #f9fafb;
  padding: 12px 8px;
}

.td-filter__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.td-filter__label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.td-filter__open {
  cursor: pointer;
  color: #9ca3af;
  font-size: 10px;
  transition: color 0.2s ease;
}

.td-filter__open:hover {
  color: #f0cf4c;
}

/* Скролл для списка */
.filter-scroll::-webkit-scrollbar {
  width: 4px;
}

.filter-scroll::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 2px;
}

.filter-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.filter-scroll::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Адаптивность */
@media (max-width: 768px) {
  .filters__top form {
    gap: 8px;
  }

  .filter {
    padding: 8px 12px;
  }

  .filter__label {
    font-size: 13px;
  }

  .filter-collapse {
    position: fixed;
    top: auto;
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-width: auto;
  }
}

/* ==================== СЕКЦИЯ ОБРАТНОЙ СВЯЗИ ==================== */

.request {
  padding: 40px 0;
}

.request .background-section {
  background: linear-gradient(135deg, #31353d 0%, #3a3f48 100%);
  border-radius: 16px;
  padding: 40px 0;
}

.contact-managers__content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 0 32px;
}

.contact-managers__text {
  flex: 0 0 38%;
  color: #fff;
}

.contact-managers__text h2 {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.contact-managers__text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-managers__links-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-managers__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
}

.contact-managers__link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.contact-managers__link i.fa-whatsapp {
  color: #25D366;
}

.contact-managers__link i.fa-telegram-plane {
  color: #0088cc;
}

/* Форма */
.contact-managers__form {
  flex: 1;
}

.contact-managers__form-fields-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.callback__label {
  position: relative;
  display: block;
}

.callback__label:nth-child(3),
.callback__textaria {
  grid-column: span 2;
}

.callback__input,
.callback__textarea {
  width: 100%;
  padding: 12px 12px 12px 44px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  transition: all 0.3s;
}

.callback__input::placeholder,
.callback__textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.callback__input:focus,
.callback__textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.callback__textarea {
  min-height: 100px;
  resize: vertical;
}

.callback__label .icon,
.callback__textaria .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.callback__textaria .icon {
  top: 22px;
  transform: none;
}

.form__error {
  display: none;
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
}

.contact-managers__form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}

.callback__file {
  position: relative;
}

.callback__file_input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.callback__file_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.callback__file_button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.callback__file_span {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
}

.callback__file_span.active {
  display: flex;
}

.callback__submit {
  padding: 12px 32px;
  background: #f0cf4c;
  border: none;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.callback__submit:hover {
  background: #e0bf3c;
  transform: translateY(-2px);
}

.checkbox__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox__input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #f0cf4c;
}

.checkbox__txt {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.4;
}

.checkbox__txt a {
  color: #f0cf4c;
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 992px) {
  .contact-managers__content {
    flex-direction: column;
    gap: 32px;
    padding: 0 20px;
  }

  .contact-managers__text {
    flex: 1;
    text-align: center;
  }

  .contact-managers__text h2 {
    font-size: 22px;
  }

  .contact-managers__links-wrapper {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .request {
    padding: 24px 0;
  }

  .request .background-section {
    border-radius: 12px;
    padding: 24px 0;
  }

  .contact-managers__content {
    gap: 24px;
    padding: 0 16px;
  }

  .contact-managers__text {
    text-align: left;
  }

  .contact-managers__links-wrapper {
    justify-content: flex-start;
  }

  .contact-managers__text h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .contact-managers__text p {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .contact-managers__form-fields-wrapper {
    grid-template-columns: 1fr;
  }

  .callback__label:nth-child(3),
  .callback__textaria {
    grid-column: span 1;
  }

  .contact-managers__form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .callback__submit {
    width: 100%;
  }
}


/* ==================== SEO-блок: Смотрите также ==================== */

.tags-second {
  padding: 40px 0;
  background: #f8fafc;
  margin-top: 40px;
}

.tags-second__title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  text-align: left;
}

.tags-second__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.tags-second__item {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tags-second__item:hover {
  border-color: #f0cf4c;
  color: #1a1a1a;
  background: #fffbeb;
}

/* Адаптивность */
@media (max-width: 768px) {
  .tags-second {
    padding: 24px 0;
    margin-top: 24px;
  }

  .tags-second__title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .tags-second__list {
    gap: 8px;
  }

  .tags-second__item {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Блок «Компании, которые нам доверяют» на странице категории */
.clients--after-form {
  padding: 48px 0 56px;
}

.clients__title.section-title {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 60px;
  text-transform: uppercase;
  padding-bottom: 32px;
  margin: 0 0 0 0;
}

.clients__slider {
  overflow: hidden;
}

.clients__swiper-container {
  padding: 20px 0;
}

.clients__slide {
  width: auto;
}

.clients__img {
  width: 180px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.clients__img img {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.25s ease;
}

.clients__img:hover img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .clients--after-form {
    padding-top: 0;
    padding-bottom: 0;
  }

  .clients__title.section-title {
    font-size: 28px;
    line-height: 1.3;
  }
}