/* =========================================================================
   BERMARO – pelletgrill.rocks – FILTER v1 (29.10.2026)
   Aussehen des Filter-Systems (Kategorien + Suche), Vorbild B2C-Shop.
   Wirkt nur, wenn <html> die Klassen "bm-pgr" und "bm-pgr-filter" hat.
   ========================================================================= */

/* ---------- ausgeblendete Ceres-Teile ---------- */
html.bm-pgr.bm-pgr-filter .bm-pf-alt { display: none !important; }

/* Ceres-Leisten sofort ausblenden (noch bevor das Skript läuft), damit nichts springt */
html.bm-pgr.bm-pgr-filter body.page-category .widget-item-sorting,
html.bm-pgr.bm-pgr-filter body.page-category .widget-items-per-page,
html.bm-pgr.bm-pgr-filter body.page-category .widget-pagination,
html.bm-pgr.bm-pgr-filter body.page-category .widget-selected-filter,
html.bm-pgr.bm-pgr-filter body.page-category .widget-filter-manufacturer {
  visibility: hidden;
  /* Sicherheitsnetz: läuft das Skript nicht, erscheinen die Teile nach 4 s wieder */
  animation: bmPfNotfall 0s linear 4s forwards;
}
html.bm-pgr.bm-pgr-filter.bm-pf-bereit body.page-category .widget-filter-manufacturer { visibility: visible; }
@keyframes bmPfNotfall { to { visibility: visible; max-height: none; overflow: visible; } }

/* Handy: Filterliste schon vor dem Skript zugeklappt (gleiches Sicherheitsnetz) */
@media (max-width: 767px) {
  html.bm-pgr.bm-pgr-filter:not(.bm-pf-bereit) body.page-category .widget-filter-base {
    max-height: 0;
    overflow: hidden;
    animation: bmPfNotfall 0s linear 4s forwards;
  }
}

/* ---------- Kopf "Auswahl eingrenzen" ---------- */
html.bm-pgr.bm-pgr-filter .bm-pf-kopf { margin: 14px 0 0; }
html.bm-pgr.bm-pgr-filter .bm-pf-knopf {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: var(--pg-rot);
  color: #fff;
  font-family: "BM Oswald", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  cursor: default;
  text-align: left;
}
html.bm-pgr.bm-pgr-filter .bm-pf-k-icon { display: inline-flex; color: var(--pg-glut); }
html.bm-pgr.bm-pgr-filter .bm-pf-k-mobil,
html.bm-pgr.bm-pgr-filter .bm-pf-k-zahl,
html.bm-pgr.bm-pgr-filter .bm-pf-k-pfeil { display: none; }
html.bm-pgr.bm-pgr-filter .bm-pf-kopf.bm-pf-blitz .bm-pf-knopf { animation: bmPfBlitz 1.5s ease; }
@keyframes bmPfBlitz {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0); }
  30% { box-shadow: 0 0 0 6px rgba(242, 140, 40, .55); }
}

/* gewählte Filter */
html.bm-pgr.bm-pgr-filter .bm-pf-gewaehlt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  background: #fff6ef;
  border: 2px solid var(--pg-rot);
  border-top: 0;
  border-bottom: 1px solid #f0d9cc;
}
html.bm-pgr.bm-pgr-filter .bm-pf-schild {
  border: 1px solid var(--pg-rot);
  background: #fff;
  color: var(--pg-rot-d);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}
html.bm-pgr.bm-pgr-filter .bm-pf-schild:hover { background: var(--pg-rot); color: #fff; }
html.bm-pgr.bm-pgr-filter .bm-pf-alle {
  border: 0;
  background: none;
  color: var(--pg-grau);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 3px 4px;
}

/* ---------- Filtergruppen-Rahmen ---------- */
html.bm-pgr.bm-pgr-filter .bm-pf-spalte .widget-filter-base.bm-pf-w {
  background: #fff;
  border-left: 2px solid var(--pg-rot);
  border-right: 2px solid var(--pg-rot);
  margin: 0 !important;
  padding: 0 !important;
}
html.bm-pgr.bm-pgr-filter .bm-pf-spalte .widget-filter-base.bm-pf-letzt {
  border-bottom: 2px solid var(--pg-rot);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  margin-bottom: 16px !important;
}
html.bm-pgr.bm-pgr-filter .bm-pf-spalte .widget-filter-base .widget-inner { padding: 0 !important; }

/* eine Gruppe */
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #eee7e1 !important;
  background: transparent !important;
}
html.bm-pgr.bm-pgr-filter .widget-filter-base.bm-pf-letzt .bm-pf-gruppe:last-child { border-bottom: 0 !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe > .title {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 11px 14px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: var(--pg-text) !important;
  cursor: pointer;
  user-select: none;
  line-height: 1.3 !important;
}
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe > .title:hover { background: #faf6f2; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe > .title:focus-visible { outline: 2px solid var(--pg-glut); outline-offset: -2px; }
html.bm-pgr.bm-pgr-filter .bm-pf-anz { font-weight: 400; font-size: 12px; color: var(--pg-grau); }
html.bm-pgr.bm-pgr-filter .bm-pf-pfeil {
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--pg-rot);
  border-bottom: 2.5px solid var(--pg-rot);
  transform: rotate(-45deg);
  transition: transform .15s;
  flex: none;
}
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe.bm-pf-auf .bm-pf-pfeil { transform: rotate(45deg); margin-top: -4px; }

/* zugeklappt: alles außer Titel ausblenden */
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe:not(.bm-pf-auf) > *:not(.title) { display: none !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe.bm-pf-auf { padding-bottom: 10px !important; }

/* Optionen */
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-wrapper { padding: 0 14px; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check { margin: 0 !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-label {
  display: block;
  padding: 5px 8px 5px 26px !important;
  margin: 0 !important;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  font-size: 14px;
  color: var(--pg-text);
  background: transparent !important;
}
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-label::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #c9bfb6;
  border-radius: 4px;
  background: #fff;
}
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-label:hover { background: #faf1ea !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-label .flex-grow-1::before { display: none !important; } /* Ceres-Haken weg, wir haben ein eigenes Kästchen */
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-input:checked + .form-check-label,
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-label.bg-appearance { color: var(--pg-rot-d); font-weight: 700; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-label.bg-appearance::before,
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-input:checked + .form-check-label::before {
  border-color: var(--pg-rot);
  background: var(--pg-rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .filter-badge {
  background: #f1ece7 !important;
  color: var(--pg-grau) !important;
  border-radius: 999px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  min-width: 26px;
  text-align: center;
  line-height: 20px;
  height: 20px;
  border: 0 !important;
}

/* Preis */
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .item-filter-price { display: flex; gap: 6px; padding: 4px 14px 0; flex-wrap: nowrap; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .item-filter-price .input-group { flex: 1 1 0; min-width: 0; margin: 0 !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .item-filter-price .input-group-text { border-radius: 8px 0 0 8px; padding: 4px 8px; background: #f4f2ef; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .item-filter-price .form-control { border-radius: 0 8px 8px 0; padding: 4px 8px; height: 34px; }
html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .item-filter-price .btn { border-radius: 8px; height: 34px; padding: 0 12px; background: var(--pg-rot) !important; border-color: var(--pg-rot) !important; color: #fff !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-preis-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; margin-top: -2px; border-bottom: 1px solid #eee7e1; }
html.bm-pgr.bm-pgr-filter .bm-pf-preis-chips.bm-pf-zu { display: none; }
html.bm-pgr.bm-pgr-filter .bm-pf-preis-chip {
  border: 1px solid #d9cfc6;
  background: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--pg-text);
}
html.bm-pgr.bm-pgr-filter .bm-pf-preis-chip:hover { border-color: var(--pg-rot); color: var(--pg-rot-d); }
html.bm-pgr.bm-pgr-filter .bm-pf-preis-chip.bm-aktiv { background: var(--pg-rot); border-color: var(--pg-rot); color: #fff; font-weight: 600; }
/* Preis-Gruppe: der Rahmenstrich kommt von den Chips */
html.bm-pgr.bm-pgr-filter .widget-filter-price .bm-pf-gruppe { border-bottom: 0 !important; }
html.bm-pgr.bm-pgr-filter .widget-filter-price .bm-pf-gruppe:not(.bm-pf-auf) { border-bottom: 1px solid #eee7e1 !important; }

/* ---------- Filterspalte am PC mitlaufen lassen ---------- */
@media (min-width: 768px) {
  html.bm-pgr.bm-pgr-filter .bm-pf-innen.bm-pf-sticky {
    position: sticky;
    top: var(--bm-pf-oben, 170px);
    max-height: calc(100vh - var(--bm-pf-oben, 170px) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 4px;
    padding-bottom: 8px;
  }
}

/* ---------- Leiste über den Artikeln ---------- */
html.bm-pgr.bm-pgr-filter .bm-pf-leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 14px 0 12px;
  padding: 0 2px 12px;
  border-bottom: 1px solid #eee7e1;
}
html.bm-pgr.bm-pgr-filter .bm-pf-anzahl { display: flex; align-items: baseline; gap: 10px; }
html.bm-pgr.bm-pgr-filter .bm-pf-anzahl b { font-family: "BM Oswald", "Arial Narrow", Arial, sans-serif; font-weight: 600; font-size: 20px; color: var(--pg-text); }
html.bm-pgr.bm-pgr-filter .bm-pf-anzahl span { font-size: 13px; color: var(--pg-grau); }
html.bm-pgr.bm-pgr-filter .bm-pf-steuer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html.bm-pgr.bm-pgr-filter .bm-pf-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 1px solid #ddd3ca;
  border-radius: 999px;
  padding: 0 4px 0 14px;
  background: #fff;
  font-size: 13px;
  color: var(--pg-grau);
}
html.bm-pgr.bm-pgr-filter .bm-pf-sort select {
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--pg-text);
  font-size: 13px;
  padding: 7px 6px;
  cursor: pointer;
  outline-offset: 2px;
  max-width: 220px;
}
html.bm-pgr.bm-pgr-filter .bm-pf-seg {
  display: flex;
  align-items: center;
  border: 1px solid #ddd3ca;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  font-size: 13px;
}
html.bm-pgr.bm-pgr-filter .bm-pf-seg span { padding: 0 10px 0 14px; color: var(--pg-grau); }
html.bm-pgr.bm-pgr-filter .bm-pf-seg button {
  border: 0;
  border-left: 1px solid #eee7e1;
  background: #fff;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--pg-text);
}
html.bm-pgr.bm-pgr-filter .bm-pf-seg button:hover { background: #faf1ea; }
html.bm-pgr.bm-pgr-filter .bm-pf-seg button.bm-aktiv { background: var(--pg-rot); color: #fff; cursor: default; }

/* ---------- Unterkategorien als runde Knöpfe ---------- */
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat { margin-bottom: 14px !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat .row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat .row > [class*="col"] { flex: none !important; max-width: none !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat a { text-decoration: none !important; display: block; }
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat .nav-item {
  border: 1.5px solid var(--pg-rot) !important;
  background: #fff !important;
  border-radius: 999px !important;
  min-height: 0 !important;
  height: auto !important;
  transition: background .12s;
}
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat .nav-item img,
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat .nav-item .nav-img { display: none !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat .nav-text { padding: 6px 14px !important; background: transparent !important; border-radius: 999px; }
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat .nav-text span { color: var(--pg-rot-d) !important; font-weight: 600; font-size: 13px; overflow: visible; }
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat a:hover .nav-item { background: var(--pg-rot) !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-unterkat a:hover .nav-text span { color: #fff !important; }

/* ---------- Seitennavigation unten ---------- */
html.bm-pgr.bm-pgr-filter .bm-pf-unten { margin: 22px 0 30px; text-align: center; }
html.bm-pgr.bm-pgr-filter .bm-pf-navi { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
html.bm-pgr.bm-pgr-filter .bm-pf-nk,
html.bm-pgr.bm-pgr-filter .bm-pf-luecke {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
html.bm-pgr.bm-pgr-filter a.bm-pf-nk { border: 1px solid #ddd3ca; background: #fff; color: var(--pg-text) !important; text-decoration: none !important; }
html.bm-pgr.bm-pgr-filter a.bm-pf-nk:hover { border-color: var(--pg-rot); color: var(--pg-rot-d) !important; }
html.bm-pgr.bm-pgr-filter .bm-pf-nk.bm-aktiv { background: var(--pg-rot); color: #fff; }
html.bm-pgr.bm-pgr-filter .bm-pf-nk.bm-aus { color: #c9bfb6; border: 1px solid #eee7e1; }
html.bm-pgr.bm-pgr-filter .bm-pf-luecke { min-width: 20px; padding: 0; color: var(--pg-grau); }
html.bm-pgr.bm-pgr-filter .bm-pf-navi-info { margin-top: 8px; font-size: 13px; color: var(--pg-grau); }

/* ---------- Lade-Anzeige nach Klick ---------- */
html.bm-pgr.bm-pgr-filter.bm-pf-laedt .widget-item-grid { opacity: .45; transition: opacity .2s; pointer-events: none; }
html.bm-pgr.bm-pgr-filter.bm-pf-laedt body { cursor: progress; }

/* ---------- Hinweis-Blase ---------- */
html.bm-pgr.bm-pgr-filter .bm-pf-blase {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1035;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  width: calc(100% - 200px);
  padding: 10px 12px 10px 18px;
  background: var(--pg-rot);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 14px;
  line-height: 1.35;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
html.bm-pgr.bm-pgr-filter .bm-pf-blase.bm-da { transform: translate(-50%, 0); opacity: 1; }
html.bm-pgr.bm-pgr-filter .bm-pf-b-pfeil { font-size: 22px; font-weight: 700; color: #ffd6b0; }
html.bm-pgr.bm-pgr-filter .bm-pf-b-text { flex: 1; }
html.bm-pgr.bm-pgr-filter .bm-pf-b-los {
  border: 0;
  background: #fff;
  color: var(--pg-rot-d);
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
html.bm-pgr.bm-pgr-filter .bm-pf-b-zu { border: 0; background: none; color: #fff; font-size: 16px; cursor: pointer; padding: 4px 6px; }
html.bm-pgr.bm-pgr-mob-auf .bm-pf-blase { display: none; }

/* ---------- Handy: Spalten untereinander ---------- */
@media (max-width: 767px) {
  html.bm-pgr.bm-pgr-filter .bm-pf-kopf { margin: 4px 0 6px; }
  html.bm-pgr.bm-pgr-filter .bm-pf-knopf {
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 12px rgba(199, 64, 35, .3);
  }
  html.bm-pgr.bm-pgr-filter .bm-pf-k-icon { color: #fff; }
  html.bm-pgr.bm-pgr-filter .bm-pf-k-titel { display: none; }
  html.bm-pgr.bm-pgr-filter .bm-pf-k-mobil { display: inline; font-weight: 700; padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, .5); }
  html.bm-pgr.bm-pgr-filter .bm-pf-k-zahl { display: inline; font-weight: 400; }
  html.bm-pgr.bm-pgr-filter .bm-pf-k-pfeil {
    display: block;
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    transition: transform .15s;
  }
  html.bm-pgr.bm-pgr-filter .bm-pf-offen .bm-pf-k-pfeil { transform: rotate(45deg); margin-top: -4px; }
  html.bm-pgr.bm-pgr-filter .bm-pf-gewaehlt { border: 0; background: transparent; padding: 8px 2px 4px; }

  /* zugeklappt: Filtergruppen weg, Artikel kommen sofort */
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte:not(.bm-pf-offen) .widget-filter-base,
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte:not(.bm-pf-offen) .bm-pf-preis-chips { display: none !important; }
  /* aufgeklappt: Kasten unter dem Knopf */
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte.bm-pf-offen .widget-filter-base.bm-pf-w { border-radius: 0; }
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte.bm-pf-offen .widget-filter-base.bm-pf-w:not(.bm-pf-letzt) { border-bottom: 0; }
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte.bm-pf-offen .bm-pf-kopf + .widget-filter-base.bm-pf-w,
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte.bm-pf-offen .bm-pf-w:first-of-type { border-top: 2px solid var(--pg-rot); border-radius: 12px 12px 0 0; }
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte.bm-pf-offen .widget-filter-base.bm-pf-letzt { border-radius: 0 0 12px 12px; }
  html.bm-pgr.bm-pgr-filter .bm-pf-gruppe > .title { padding: 13px 14px !important; }
  html.bm-pgr.bm-pgr-filter .bm-pf-gruppe .form-check-label { padding-top: 8px !important; padding-bottom: 8px !important; }

  /* Ceres-Abstände in der Spalte verkleinern */
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte { padding-bottom: 0 !important; }

  /* Leiste */
  html.bm-pgr.bm-pgr-filter .bm-pf-leiste { margin-top: 6px; }
  html.bm-pgr.bm-pgr-filter .bm-pf-steuer { width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 8px; }
  html.bm-pgr.bm-pgr-filter .bm-pf-sort { padding-left: 10px; min-width: 0; flex: 1 1 auto; }
  html.bm-pgr.bm-pgr-filter .bm-pf-sort span { display: none; }
  html.bm-pgr.bm-pgr-filter .bm-pf-sort select { max-width: none; width: 100%; }
  html.bm-pgr.bm-pgr-filter .bm-pf-seg { flex: none; }
  html.bm-pgr.bm-pgr-filter .bm-pf-seg span { display: none; }
  html.bm-pgr.bm-pgr-filter .bm-pf-seg button:first-of-type { border-left: 0; }

  /* Unterkategorien: eine Zeile zum Wischen */
  html.bm-pgr.bm-pgr-filter .bm-pf-unterkat .row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px !important; scrollbar-width: none; }
  html.bm-pgr.bm-pgr-filter .bm-pf-unterkat .row::-webkit-scrollbar { display: none; }

  /* Blase: über dem Chat-Knopf, links bündig */
  html.bm-pgr.bm-pgr-filter .bm-pf-blase {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 86px;
    border-radius: 16px;
    transform: translateY(160%);
    font-size: 13px;
    gap: 8px;
    padding: 10px 10px 10px 14px;
  }
  html.bm-pgr.bm-pgr-filter .bm-pf-blase.bm-da { transform: translateY(0); }
  html.bm-pgr.bm-pgr-filter .bm-pf-b-pfeil { display: none; }
  html.bm-pgr.bm-pgr-filter .bm-pf-b-los { padding: 7px 10px; font-size: 13px; }
}

/* Drucken: Filter weg */
@media print {
  html.bm-pgr.bm-pgr-filter .bm-pf-kopf,
  html.bm-pgr.bm-pgr-filter .bm-pf-blase,
  html.bm-pgr.bm-pgr-filter .bm-pf-leiste .bm-pf-steuer { display: none !important; }
}

/* =========================================================================
   30.10.2026: Raster wie im B2C-Shop – schmale Filterspalte, 6 Artikel pro
   Reihe, alle Kacheln gleich hoch (Titel 3 Zeilen, Preis unten bündig)
   ========================================================================= */
@media (min-width: 1200px) {
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte { flex: 0 0 270px !important; max-width: 270px !important; }
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte ~ .widget-inner { flex: 1 1 0% !important; max-width: calc(100% - 270px) !important; }
  html.bm-pgr.bm-pgr-filter .widget-item-grid .row > li { flex: 0 0 16.6667% !important; max-width: 16.6667% !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte { flex: 0 0 240px !important; max-width: 240px !important; }
  html.bm-pgr.bm-pgr-filter .bm-pf-spalte ~ .widget-inner { flex: 1 1 0% !important; max-width: calc(100% - 240px) !important; }
  html.bm-pgr.bm-pgr-filter .widget-item-grid .row > li { flex: 0 0 25% !important; max-width: 25% !important; }
}
/* gleich hohe Kacheln (nur PC/Tablet – am Handy bleibt die Ceres-Listenansicht) */
@media (min-width: 768px) {
html.bm-pgr.bm-pgr-filter .widget-item-grid .row > li { display: flex !important; padding: 5px !important; }
html.bm-pgr.bm-pgr-filter .widget-item-grid .cmp-product-thumb {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  transform: none !important;
  margin: 0 !important;
}
html.bm-pgr.bm-pgr-filter .widget-item-grid .cmp-product-thumb > div { display: flex; flex-direction: column; flex: 1 1 auto; }
html.bm-pgr.bm-pgr-filter .widget-item-grid .cmp-product-thumb .thumb-content {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  padding: 10px 12px 12px !important;
}
html.bm-pgr.bm-pgr-filter .widget-item-grid .cmp-product-thumb .thumb-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px !important;
  line-height: 1.35 !important;
  min-height: calc(1.35em * 3);
  margin-bottom: 6px;
}
html.bm-pgr.bm-pgr-filter .widget-item-grid .cmp-product-thumb .thumb-meta { margin-top: auto !important; }
html.bm-pgr.bm-pgr-filter .widget-item-grid .cmp-product-thumb .thumb-meta .price { font-size: 16px !important; }
html.bm-pgr.bm-pgr-filter .widget-item-grid .cmp-product-thumb .category-unit-price,
html.bm-pgr.bm-pgr-filter .widget-item-grid .cmp-product-thumb .vat { font-size: 11px !important; }
html.bm-pgr.bm-pgr-filter .widget-item-grid .cmp-product-thumb:hover { border-color: var(--pg-rot) !important; }
}

/* 30.10.2026: Handy – Hinweis-Blase weg (Filter-Knopf steht direkt oben, Blase kollidierte mit dem Chat-Hinweis) */
@media (max-width: 767px) { html.bm-pgr.bm-pgr-filter .bm-pf-blase { display: none !important; } }
/* Tablet: Kopf "Auswahl eingrenzen" in einer Zeile */
@media (min-width: 768px) and (max-width: 1199px) { html.bm-pgr.bm-pgr-filter .bm-pf-knopf { font-size: 15px; padding: 11px 12px; gap: 8px; } }
