/* Biobeauty Config — modul „Filtre" (BIOBE-172). Sursa: handofful Claude Design
   (filtre/biobeauty-filtre-corp_1.html), cu fonturile site-ului. */

/* Titlul „Filtrare" al sidebarului vechi e inlocuit de titlul blocului („Filtre"). */
body #secondary.widget-area.bbf-host::before { content: none !important; display: none !important; }

/* Desktop: chenarul, raza si paddingul sunt ale blocului .bbf; containerul temei ramane gol. */
@media (min-width: 993px) {
  body #secondary.widget-area.bbf-host { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
}
/* Mobil: blocul sta in panoul de filtre al temei, care are deja fundal si padding. */
@media (max-width: 992px) {
  body #secondary.widget-area.bbf-host .bbf { padding: 0; border: 0; border-radius: 0; background: none; }
  /* loc pentru X-ul de inchidere al panoului (40px, in coltul din dreapta sus) */
  body #secondary.widget-area.bbf-host .bbf-head { padding-right: 32px; }
}

.bbf {
  --bbf-blue: #002FA7;
  --bbf-ink: #111111;
  --bbf-text: #222222;
  --bbf-muted: #5C5C5C;
  --bbf-line: #E6E6E6;
  --bbf-border: #CFCFCF;
  --bbf-tint: #E9EEFA;
  --bbf-sans: 'Silka-Medium', sans-serif;
  --bbf-sans-bold: 'Silka-Bold', 'Silka-Medium', sans-serif;
  --bbf-serif: Novela, serif;

  box-sizing: border-box;
  padding: 20px 20px 8px;
  border: 1px solid #DDDDDD;
  border-radius: 12px;
  background: #FEFEFE;
  color: var(--bbf-text);
  font-family: var(--bbf-serif);
  font-size: 15px;
  line-height: 20px;
}
.bbf *, .bbf *::before, .bbf *::after { box-sizing: border-box; }
.bbf [hidden] { display: none !important; }
.bbf :focus-visible { outline: 2px solid var(--bbf-blue); outline-offset: 2px; }
.bbf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* antet */
.bbf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding-bottom: 12px; }
.bbf-title { margin: 0; font-family: var(--bbf-sans-bold); font-weight: 700; font-size: 20px; line-height: 28px; color: var(--bbf-ink); }
.bbf-result { font-size: 14px; color: var(--bbf-muted); white-space: nowrap; }
.bbf-reset { margin-left: auto; padding: 8px 0; font-family: var(--bbf-sans); font-weight: 500; font-size: 13px; color: var(--bbf-blue); text-decoration: underline; text-underline-offset: 3px; }

/* filtre active */
.bbf-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px; }
.bbf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 8px 4px 12px; border: 0; border-radius: 999px; background: var(--bbf-tint); color: var(--bbf-blue); font-family: var(--bbf-sans); font-weight: 500; font-size: 13px; line-height: 18px; text-align: left; cursor: pointer; }
.bbf-chip:hover { background: #DCE4F7; }
.bbf-chip svg { flex: none; }

/* grupuri */
.bbf-group { border-top: 1px solid var(--bbf-line); }
.bbf-group > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; list-style: none; cursor: pointer; font-family: var(--bbf-sans-bold); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bbf-ink); }
.bbf-group > summary::-webkit-details-marker { display: none; }
.bbf-chev { margin-left: auto; transition: transform .15s; }
.bbf-group[open] > summary .bbf-chev { transform: rotate(180deg); }
.bbf-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bbf-blue); color: #fff; font-size: 11px; letter-spacing: 0; }
.bbf-body { padding: 0 0 12px; }
.bbf-body--pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 16px; }
/* 3 coloane ca in handoff; pe sidebar ingust (sub ~210px) coboara la 2, ca eticheta sa nu se rupa */
.bbf-body--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(66px, calc((100% - 12px) / 3)), 1fr)); gap: 6px; padding: 0 0 16px; }

/* categorie (navigare) */
.bbf-current { margin-left: auto; font-family: var(--bbf-serif); font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--bbf-blue); }
.bbf-current + .bbf-chev { margin-left: 0; }
.bbf-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 0 0 14px; }
.bbf-cats a { display: flex; align-items: center; gap: 6px; min-height: 30px; font-size: 14px; line-height: 18px; color: var(--bbf-text); text-decoration: none; }
.bbf-cats a:hover { color: var(--bbf-blue); }
.bbf-cats a[aria-current="page"],
.bbf-cats a[aria-current="page"]:hover { align-self: center; justify-self: start; min-height: 26px; margin-left: -10px; padding: 0 10px; border-radius: 999px; background: var(--bbf-blue); color: #fff; }

/* etichete tip „pill" */
.bbf-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 4px 10px; border: 1px solid var(--bbf-border); border-radius: 999px; background: #fff; color: var(--bbf-text); font-family: var(--bbf-serif); font-size: 13px; line-height: 18px; text-decoration: none; cursor: pointer; }
.bbf-pill:hover { border-color: var(--bbf-blue); }
.bbf-pill small { font-size: 11px; opacity: .72; }
.bbf-pill[aria-pressed="true"],
.bbf-sr:checked + .bbf-pill { border-color: var(--bbf-blue); background: var(--bbf-blue); color: #fff; }
.bbf-sr:focus-visible + .bbf-pill { outline: 2px solid var(--bbf-blue); outline-offset: 2px; }
.bbf-body--pills label { display: inline-flex; }
.bbf-body--grid label { display: block; }
.bbf-body--grid .bbf-pill { width: 100%; padding: 4px; white-space: nowrap; }

/* liste cu bife */
.bbf-check { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; cursor: pointer; }
.bbf-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--bbf-blue); cursor: pointer; }
.bbf-check span { flex: 1; min-width: 0; }
.bbf-count { font-weight: 400; font-size: 12px; color: var(--bbf-muted); }

/* brand */
.bbf-search { position: relative; margin-bottom: 6px; }
.bbf-search svg { position: absolute; left: 12px; top: 12px; pointer-events: none; }
.bbf input.bbf-input { width: 100%; height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--bbf-border); border-radius: 8px; background: #fff; box-shadow: none; color: var(--bbf-text); font-family: var(--bbf-serif); font-size: 15px; line-height: normal; }
.bbf-input::placeholder { color: #6B6B6B; }
.bbf .bbf-search input.bbf-input { padding-left: 36px; font-size: 14px; }
.bbf-empty { margin: 8px 0; font-size: 14px; color: var(--bbf-muted); }
.bbf-more { min-height: 40px; padding: 0; border: 0; background: none; color: var(--bbf-blue); font-family: var(--bbf-sans); font-weight: 500; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* pret */
.bbf-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bbf .bbf-price input.bbf-input { height: 36px; font-size: 14px; }
.bbf-price label { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; font-size: 13px; color: var(--bbf-muted); }
.bbf-presets { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 6px; }

/* incarcare: dupa un clic pe filtru, pana vine pagina noua (aceeasi estompare ca grila de pe /promotii/) */
ul.products { transition: opacity .15s ease; }
body.bbf-loading ul.products { opacity: .45; pointer-events: none; }
body.bbf-loading .bbf { pointer-events: none; }
body.bbf-loading .bbf-chips,
body.bbf-loading .bbf-group { opacity: .55; transition: opacity .15s ease; }
body.bbf-loading .bbf-title::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 10px; vertical-align: -1px; border: 2px solid rgba(5, 9, 26, .25); border-top-color: #05091A; border-radius: 50%; animation: bbf-spin .6s linear infinite; }
@keyframes bbf-spin { to { rotate: 1turn; } }

@media (prefers-reduced-motion: reduce) { .bbf * { transition: none !important; } }
