/* Подборки /complects/: таблица сравнения, фото установок, пагинация и «Показать ещё» (12.10.2026). Подключает сниппет cityStock. */
.sf_content table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 15px; line-height: 1.35; }
.sf_content th, .sf_content td { border: 1px solid #e1e3e6; padding: 9px 12px; text-align: left; vertical-align: middle; }
.sf_content thead th { background: #f3f4f6; font-weight: 600; color: #0b1e2d; }
.sf_content tbody tr:nth-child(even) td { background: #fafbfc; }
.sf_content td:first-child { font-weight: 600; white-space: nowrap; }
.sf_content td:last-child, .sf_content th:last-child { white-space: nowrap; }
@media (max-width: 760px) {
  .sf_content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  .sf_content th, .sf_content td { white-space: nowrap; padding: 8px 10px; }
}
.sf_content .works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 12px 0 22px; }
.sf_content .works figure { margin: 0; }
.sf_content .works img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; background: #f3f4f6; }
.sf_content .works figcaption { font-size: 13px; line-height: 1.35; color: #666; margin-top: 6px; }
@media (max-width: 800px) { .sf_content .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.cm-more-wrap { text-align: center; margin: 18px 0 8px; }
.cm-more { display: inline-block; min-width: 260px; padding: 14px 24px; border: 2px solid #0b1e2d; border-radius: 6px; background: #fff; color: #0b1e2d; font-size: 16px; font-weight: 600; cursor: pointer; }
.cm-more:hover { background: #0b1e2d; color: #fff; }
.cm-more[disabled] { opacity: .6; cursor: wait; }
.cm-more-info { display: block; font-size: 13px; color: #777; margin-top: 6px; }
.mse2_pagination .pagination { float: none !important; text-align: center; margin: 10px 0 24px; }
.mse2_pagination .pagination ul { display: flex !important; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0 !important; margin: 0 !important; list-style: none; float: none !important; }
.mse2_pagination .pagination li { margin: 0 !important; padding: 0 !important; border: 0 !important; float: none !important; background: none !important; width: auto !important; height: auto !important; line-height: normal !important; }
.mse2_pagination .pagination li a, .mse2_pagination .pagination li span, .mse2_pagination .pagination li.active { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; box-sizing: border-box; border: 1px solid #d5d8dc !important; border-radius: 6px; font-size: 16px; color: #0b1e2d !important; background: #fff; text-decoration: none; }
.mse2_pagination .pagination li a:hover { border-color: #0b1e2d !important; }
.mse2_pagination .pagination li.active { background: #0b1e2d !important; color: #fff !important; border-color: #0b1e2d !important; font-weight: 600; }
.mse2_pagination .pagination li.disabled span { border-color: transparent !important; min-width: 24px; }
/* Сетка каталога: ряды выравниваются сами (раньше float + скрипт высот, догруженные «Показать ещё» карточки ломали ряды) */
#mse2_results.items-outer { display: flex !important; flex-wrap: wrap; align-items: stretch; }
#mse2_results.items-outer > .item4 { float: none !important; display: flex; }
#mse2_results.items-outer > .item4 > .complect-tpl { display: flex; flex-direction: column; width: 100%; height: auto !important; }
#mse2_results .complect-tpl .title, #mse2_results .complect-tpl .price { height: auto !important; }
#mse2_results .complect-tpl .price { margin-top: auto; }
#mse2_results.items-outer > :not(.item4) { flex-basis: 100%; }
/* Строка уточнений рядом с фильтрами (сниппет complectChips), как у завода */
.cm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; background: #f3f4f6; border-radius: 6px; padding: 14px 18px; margin: 0 0 14px; font-size: 16px; }
.cm-chips b { color: #0b1e2d; font-weight: 600; margin-right: 2px; }
.cm-chips a { color: #1565c0; text-decoration: none; padding: 4px 0; }
.cm-chips a:hover { text-decoration: underline; }
@media (max-width: 640px) { .cm-chips { gap: 0 18px; padding: 6px 14px; font-size: 15px; } .cm-chips b { flex-basis: 100%; padding-top: 6px; } .cm-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; } }
/* 14.10.2026 (тестер): на телефоне пять строк уточнений занимали ~760 px — каждая строка теперь лента с прокруткой вбок */
@media (max-width: 640px) {
  .cm-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 14px; margin: 0 0 8px; }
  .cm-chips::-webkit-scrollbar { display: none; }
  .cm-chips b { flex: 0 0 auto; flex-basis: auto; padding-top: 0; white-space: nowrap; }
  .cm-chips a { flex: 0 0 auto; white-space: nowrap; }
  /* правый край гаснет — подсказка, что ленту можно листать (фронтендер, 14.10) */
  .cm-chips { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
}

/* 14.10.2026 (владелец): доп. строки уточнений (Цвет, Размер, Отделка, Стиль, Ещё) — в конце текста подборки */
.cm-extra { margin: 28px 0 8px; }
.cm-extra:empty { display: none; }

/* 16.10.2026 (GSC: CLS 0,31 на телефонах): фото карточек комплектов грузятся лениво с заглушкой 1x1,
   карточка росла при подгрузке и сдвигала страницу. Миниатюры все 200x420 — резервируем место заранее. */
.complect-tpl .cell img { display: block; width: 200px; max-width: 100%; height: auto; aspect-ratio: 200 / 420; object-fit: contain; margin: 0 auto; }
