/* pebro Live-Suche - Vorschlagsliste unter dem Suchfeld (Markup: frontend/js/suche.js).
   Wird beim Tippen sehr oft aktualisiert -> keine Animation beim Aktualisieren und bei Tastatur-Navigation,
   nur ein kurzes Einblenden beim Öffnen. */

/* NOVA-Typeahead hat keine Vorschläge - seinen leeren Kasten und den grauen Ergänzungstext ausblenden */
.pbs-huelle .tt-menu, .pbs-huelle .tt-hint { display: none !important; }

.pbs-huelle { position: relative; }
.pbs-box { --pbs-schwarz: #111; --pbs-grau: #6f6f6f; --pbs-linie: #ececec; --pbs-flaeche: #f7f6f4; --pbs-akzent: #E87100;
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1050; min-width: 380px; max-height: min(70vh, 640px); overflow-y: auto;
  padding: 8px; background: #fff; border: 1px solid var(--pbs-linie); border-radius: 14px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.22);
  font-family: Poppins, "Open Sans", system-ui, sans-serif; text-align: left; }
.pbs-box[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .pbs-offen .pbs-box { animation: pbs-ein 120ms cubic-bezier(.23, 1, .32, 1); }
}
@keyframes pbs-ein { from { opacity: 0; transform: translateY(-4px); } }
.pbs-box.ist-ladend { opacity: .65; }

.pbs-kopf { padding: 10px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pbs-grau); }
.pbs-auch { margin-left: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; color: var(--pbs-grau); }
.pbs-kategorien { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 6px; }
.pbs-kategorie { padding: 7px 12px; border-radius: 999px; background: var(--pbs-flaeche); color: var(--pbs-schwarz) !important; font-size: 14px;
  text-decoration: none !important; }
.pbs-kategorie.ist-aktiv { background: var(--pbs-schwarz); color: #fff !important; }
.pbs-kategorie.ist-aktiv mark { color: #fff; }

.pbs-artikel { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 10px;
  color: var(--pbs-schwarz) !important; text-decoration: none !important; }
.pbs-artikel.ist-aktiv { background: var(--pbs-flaeche); }
.pbs-bild { width: 52px; height: 52px; border-radius: 8px; background: var(--pbs-flaeche); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pbs-bild img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 120ms ease-out; }
.pbs-bild.ist-bereit img { opacity: 1; }
/* Armbänder: hochkant angeschnitten wie die Farb-Swatches der Produktseite (Bandende mit Prägung, Naht, Lochung) */
.pbs-bild.ist-band { --pbs-band-w: 44px; position: relative; display: block; width: var(--pbs-band-w); height: 76px; margin: 0 4px; }
.pbs-bild.ist-band img { position: absolute; top: 6px; left: 0; width: auto; max-width: none; height: var(--pbs-band-w); object-fit: initial;
  transform-origin: 0 0; transform: rotate(-90deg) translateX(-73%); }
.pbs-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pbs-name { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pbs-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--pbs-grau); font-variant-numeric: tabular-nums; }
.pbs-enter { color: var(--pbs-akzent); font-weight: 600; }
.pbs-artikel.ist-exakt { box-shadow: inset 0 0 0 1.5px var(--pbs-akzent); }
.pbs-preis { font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pbs-box mark { padding: 0; background: none; color: var(--pbs-schwarz); font-weight: 600; box-shadow: inset 0 -2px 0 rgba(232, 113, 0, .45); }

.pbs-alternativen { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--pbs-linie); }
.pbs-artikel--alt .pbs-name { font-size: 14px; }
.pbs-sofort { color: #1f8a4c; }
.pbs-sofort::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
/* Lieferstatus: gelb = kommt wieder, rot = Auslauf (Punkt wie die Breiten-Kacheln der Produktseite) */
.pbs-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.pbs-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pbs-status--kommt { color: #a16207; }
.pbs-status--kommt::before { background: #f5b800; }
.pbs-status--aus { color: #b42318; }
.pbs-status--aus::before { background: #e5322d; }
.pbs-kopf--hinweis { color: #1f8a4c; }
.pbs-leer { padding: 14px 10px; font-size: 14px; color: var(--pbs-grau); }
.pbs-alle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 6px; padding: 12px 10px; border: 0;
  border-top: 1px solid var(--pbs-linie); border-radius: 0 0 8px 8px; background: none; color: var(--pbs-schwarz); font-size: 14px; font-weight: 500;
  text-align: left; cursor: pointer; transition: transform 160ms ease-out; }
@media (hover: hover) and (pointer: fine) { .pbs-alle:hover { color: var(--pbs-akzent); } }
.pbs-alle:active { transform: scale(.98); }

@media (max-width: 991.98px) {
  .pbs-box { position: fixed; top: auto; left: 8px; right: 8px; min-width: 0; margin-top: 6px; max-height: 70vh; }
  .pbs-huelle .pbs-box { position: absolute; left: 0; right: 0; }
  .pbs-artikel { grid-template-columns: 44px minmax(0, 1fr); }
  .pbs-bild { width: 44px; height: 44px; }
  .pbs-bild.ist-band { --pbs-band-w: 36px; height: 64px; }
  .pbs-preis { grid-column: 2; justify-self: start; font-size: 13px; }
}
