/* Фільтри списку товарів (розділ каталогу й пошук). Окремий файл: підключається лише на цих сторінках. */

/* блок фільтра: заголовок-перемикач, під ним значення з лічильниками */
.fblock { border-top: 1px solid var(--line-2); padding: 12px 0 4px; margin-top: 12px; }
.fblock > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; padding-bottom: 8px; user-select: none; }
.fblock > summary::-webkit-details-marker { display: none; }
.fblock > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3); transform: rotate(45deg); margin: 0 4px 3px auto; transition: transform .15s; }
.fblock[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.fblock > summary i { font-style: normal; font-weight: 500; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #fff; display: inline-grid; place-items: center; }
.fblock label { align-items: center; }
.fblock label:has(input:checked) span { font-weight: 500; }

/* обране — чипами над товарами; кожен знімається окремо */
.fchips { margin-bottom: 14px; }
.fchips .chip { display: inline-flex; align-items: center; gap: 6px; }
.fchips .chip b { font-weight: 400; opacity: .7; }
.fchips .chip:not(.on) { color: var(--blue); border-color: transparent; background: none; padding-left: 4px; }

.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); }

@media (max-width: 1024px) {
  .fblock:first-of-type { border-top: 0; }
  .filters .filter .fblock { background: none; padding-inline: 0; }
}

/* «Як обрати…» під товарами розділу (app/group_texts.py) */
.group-about { max-width: 760px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.group-about h2 { font-size: 20px; margin: 0 0 12px; }
