/* Живой поиск (inc/wc-search.php + assets/js/search.js) */
.pb-ls { background: #fff; color: var(--pb-ink); font-size: 15px; }
.pb-ls--float {
	position: fixed; z-index: 160; max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
	border-radius: 24px; padding: 8px; box-shadow: 0 20px 48px rgba(32, 32, 32, .16);
}
.pb-ls--inline { margin-top: 10px; border-radius: 20px; padding: 6px; max-height: 50vh; overflow-y: auto; }
.pb-ls[hidden] { display: none !important; }
.pb-ls.is-loading { opacity: .7; }
.pb-ls a { color: var(--pb-ink); text-decoration: none; }
.pb-ls a:hover { text-decoration: none; }
.pb-ls mark { background: var(--pb-blue-soft); color: inherit; border-radius: 4px; padding: 0 1px; }

.pb-ls__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 8px 10px; border-bottom: 1px solid var(--pb-line); margin-bottom: 4px; }
.pb-ls__cat {
	display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: var(--pb-pill);
	background: var(--pb-bg); font-size: 14px; font-weight: 500; transition: background .15s, color .15s;
}
.pb-ls__cat .pb-ls__n { font-size: 12px; color: var(--pb-muted); }
.pb-ls__cat:hover, .pb-ls__cat.is-active { background: var(--pb-blue); color: #fff; }
.pb-ls__cat:hover .pb-ls__n, .pb-ls__cat.is-active .pb-ls__n { color: rgba(255, 255, 255, .85); }

.pb-ls__items { display: flex; flex-direction: column; }
.pb-ls__item {
	display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; transition: background .12s;
}
.pb-ls__item:hover, .pb-ls__item.is-active { background: var(--pb-bg); }
.pb-ls__img { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--pb-bg); }
.pb-ls__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-ls__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-ls__title { font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pb-ls__sku { font-size: 12px; color: var(--pb-muted); }
.pb-ls__price { flex: none; font-weight: 600; white-space: nowrap; }

.pb-ls__all {
	display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 6px 4px 2px; border-radius: var(--pb-pill);
	background: var(--pb-bg2); font-weight: 600; font-size: 14px; transition: background .15s, color .15s;
}
.pb-ls__all:hover, .pb-ls__all.is-active { background: var(--pb-blue); color: #fff; }
.pb-ls__empty { padding: 14px 12px; color: var(--pb-muted); font-size: 14px; }
/* Пока под полем есть результаты — прячем подсказки листа/меню, идущие следом */
.pb-ls--inline:not([hidden]) ~ * { display: none !important; }
