@charset "UTF-8";
/* =====================================================
   cat_catalog.css — Каталог: layout и фильтры
   Путь: /css2/cat_catalog.css
   Группа конфигуратора: css_каталоги (1-й в группе)
   Содержит: 
     .title / .title__header — заголовок категории
     .goods / .goods__* — контейнер списка товаров
     .selection-of-goods — блок фильтров
     .seo-text — SEO-текст под товарами
   Зависимости: all_base.css (группа css_общие, загружается раньше)
   Версия: 2.1 — modern design, better spacing, cleaner look
   ===================================================== */

/* ═══ ЗАГОЛОВОК КАТЕГОРИИ ═══ */

.title {
  background: linear-gradient(135deg, #3a5894 0%, #4a68a8 100%);
  border-radius: 12px;
  margin: 0 auto 16px;
  max-width: 1200px;
  width: 100%;
  padding: 2px;
  position: relative;
  overflow: hidden;
}

.title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(120, 150, 220, 0.1), transparent);
  pointer-events: none;
}

.title__header {
  text-align: center;
  color: #fff;
  margin: 0;
  padding: 20px 16px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ═══ КОНТЕЙНЕР ТОВАРОВ (.goods) ═══ */

.goods {
  display: grid;
  padding: 16px;
  margin: 0 auto 0;
  background: linear-gradient(135deg, #4a68a8 0%, #3a5894 100%);
  border-radius: 12px;
  border: 1px solid rgba(120, 150, 220, 0.2);
  max-width: 1200px;
  width: 100%;
  color: #d8dff0;
  align-content: start;
  box-shadow: 0 2px 12px rgba(50, 70, 120, 0.2);
}

.goods__header {
  text-align: center;
  color: rgb(210 220 240);
  font-size: 18px;
  padding: 16px 0 20px;
  margin: 0;
  font-weight: 500;
}

.goods__header_ba { color: #f5f8fd; font-size: 21px; padding: 0 5px; }
.goods__header_id2 { color: #73db77; font-size: 18px; }
.goods__header_low { padding-bottom: 3px; }

.goods__header-comment {
  text-align: center;
  font-size: 15px;
  margin: 0;
  padding: 10px 0 25px;
  color: #00d909;
  font-weight: bold;
  max-width: 700px;
  justify-self: center;
}

.goods__header-comment_kn {
  font-size: 15px;
  border: 1px solid rgba(120, 150, 220, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  background: #319935;
  text-decoration: none;
}

/* ─── Кнопка сброса фильтров ─── */
.goods__reset {
  padding: 6px 14px;
  margin-top: -12px;
  z-index: 100;
  border-radius: 6px;
  color: #3a5894;
  border: 1px solid rgba(120, 150, 220, 0.3);
  background: #e8edff;
  width: max-content;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  height: auto;
}
.goods__reset::after {
  content: 'Сброс фильтров';
}
.goods__reset:hover {
  background: #5e7de1;
  color: #fff;
  border-color: #5e7de1;
}

/* ═══ ФИЛЬТРЫ (.selection-of-goods) ═══ */

.selection-of-goods {
  list-style-type: none;
  margin: 0;
  padding: 0 0 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(min-content, auto));
  box-sizing: border-box;
}

.selection-of-goods__characteristics {
  background: rgba(120, 150, 220, 0.08);
  display: grid;
  grid-template-rows: min-content;
  border: 1px solid rgba(120, 150, 220, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.selection-of-goods__feature-name {
  margin: 0;
  text-decoration: none;
  padding: 6px 8px;
  font-weight: 600;
  color: #e8edff;
  background: rgba(120, 150, 220, 0.15);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.selection-of-goods__feature-values {
  list-style-type: none;
  margin: 0;
  padding: 4px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(auto-fit, minmax(18px, 1fr));
  min-height: 150px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  gap: 2px;
}

/* Чекбоксы фильтра */
.selection-of-goods__label {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(120, 150, 220, 0.25);
  cursor: pointer;
  padding: 4px 8px;
  color: #e8edff;
  display: flex;
  align-items: center;
  z-index: 10;
  border-radius: 4px;
  line-height: 1.3;
  box-sizing: border-box;
  font-size: 12px;
  background: rgba(120, 150, 220, 0.12);
  transition: all 0.15s ease;
}
.selection-of-goods__label:hover {
  background: rgba(120, 150, 220, 0.25);
  border-color: rgba(120, 150, 220, 0.4);
}

/* Нажатое состояние */
.selection-of-goods__feature-value_pressed {
  background: rgba(120, 150, 220, 0.35);
  border-color: #5e7de1;
  box-shadow: inset 0 0 0 1px rgba(120, 150, 220, 0.3);
}
.selection-of-goods__feature-value_pressed:hover {
  background: rgba(120, 150, 220, 0.45);
}

.selection-of-goods__feature-value_button:hover { background: none; }
.selection-of-goods__input { margin: 0 5px; cursor: pointer; display: none; }

/* Недоступный фильтр */
.page__button-unavailable {
  border: 1px solid transparent;
  background: transparent;
  cursor: default;
  color: #8a96b8;
  opacity: 0.5;
}
.page__button-unavailable:hover {
  border-color: transparent;
  background: transparent;
}

/* ═══ SEO-ТЕКСТ ═══ */

.seo-text {
  padding: 24px 16px;
  color: #d8dff0;
  font-size: 15px;
  line-height: 1.7;
}
.seo-text p { margin: 0 0 12px; }

/* ═══ АДАПТИВ ═══ */

@media (max-width: 820px) {
  .goods {
    margin: 0;
    padding: 8px;
    border-radius: 0;
    border: 0;
  }
}

@media (max-width: 540px) {
  .goods { border: none; padding: 4px; border-radius: 0; margin: 0; }
  .goods__header { font-size: 16px; }
  .selection-of-goods { font-size: 12px; gap: 2px; }
  .goods__reset { margin-top: -16px; font-size: 12px; }
  .title__header { font-size: 1.25rem; padding: 16px 12px; }
}

@media (max-width: 360px) {
  .title__header { font-size: 1.1rem; padding: 12px 8px; }
  .goods__header { font-size: 15px; padding: 12px 5px; }
  .selection-of-goods { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 240px) {
  .title__header { font-size: 1rem; padding: 10px 5px; }
  .goods__header { font-size: 14px; padding: 8px; }
  .selection-of-goods { grid-template-columns: repeat(2, 1fr); }
}
