/* ===== Filters sidebar component ===== */

.mkf-sidebar {
  background: var(--mkf-surface);
  border: 1px solid var(--mkf-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mkf-sidebar__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

/* Заголовки групп (Бренд / Страна / Цена...) */
.mkf-filter > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Общие поля фильтров */
.mkf-filter input[type="text"],
.mkf-filter input[type="number"],
.mkf-filter select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--mkf-input-border);
  background: var(--mkf-input);
  color: var(--mkf-on-surface);
  box-sizing: border-box;
}

/* Чекбоксы / радио не растягиваем */
.mkf-filter input[type="checkbox"],
.mkf-filter input[type="radio"] {
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
}

/* Цена: 2 поля в строку */
.mkf-filter__row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.mkf-filter__row input[type="number"],
.mkf-filter__row input[type="text"] {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
}

.mkf-filter__row input::placeholder {
  color: var(--mkf-muted);
  opacity: 0.8;
}

/* Inline-фильтр (например "В наличии") */
.mkf-filter--inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mkf-filter-hint {
  color: var(--mkf-muted);
  font-size: 12px;
}

/* Действия */
.mkf-filter__actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

/* ===== Smart filters (характеристики) ===== */

.mkf-filter-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--mkf-border-subtle, #e5e7eb);
}

.mkf-filter-section-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}

.mkf-filter-block {
  margin-bottom: 10px;
}

.mkf-filter-block-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mkf-filter-block-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Чекбокс-лейбл */
.mkf-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.mkf-checkbox input[type="checkbox"] {
  accent-color: var(--mkf-accent, #2563eb);
}

/* ===== "Показать ещё" ===== */
.mkf-more-toggle { display: none; }

.mkf-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--mkf-accent, #2563eb);
  user-select: none;
  margin-top: 6px;
}

.mkf-more-btn:hover { text-decoration: underline; }

.mkf-more-btn::after {
  content: "▾";
  opacity: .75;
  transform: translateY(-1px);
}

.mkf-more-content {
  display: none;
  margin-top: 6px;
  flex-direction: column;
  gap: 2px;
}

.mkf-more-toggle:checked + .mkf-more-btn::after {
  content: "▴";
}

.mkf-more-toggle:checked + .mkf-more-btn + .mkf-more-content {
  display: flex;
}
