/* Search suggestions under the header search field (assets/js/search.js). */
.site-search { position: relative; }
.site-search.ps-open { z-index: 62; } /* field and panel stay bright above the shade */
.ps-shade { position: fixed; inset: 0; z-index: 61; background: rgba(22, 24, 27, .35); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.ps-shade.is-on { opacity: 1; visibility: visible; }
.site-search.ps-open input[type="search"] { border-bottom-left-radius: 0; }
.ps-panel {
	position: absolute; top: 100%; left: 0; z-index: 60; display: flex; gap: 0;
	width: max(100%, 720px); max-width: min(920px, calc(100vw - 32px));
	max-height: min(78vh, 640px); overflow-y: auto; overscroll-behavior: contain;
	background: var(--white); border: 1px solid var(--field); border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 18px 40px rgba(22, 24, 27, .16);
}
.ps-panel[hidden] { display: none; }
.ps-col { min-width: 0; padding: 10px 0; }
.ps-col--main { flex: 1 1 auto; }
.ps-col--side { flex: 0 0 250px; border-left: 1px solid var(--line); background: var(--surface); }
.ps-head { margin: 6px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ps-item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.ps-item:hover, .ps-item.is-active { background: var(--surface); color: var(--ink); }
.ps-col--side .ps-item:hover, .ps-col--side .ps-item.is-active { background: var(--white); }
.ps-img { flex: 0 0 56px; height: 56px; border-radius: 8px; background: var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ps-img img { width: 56px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.ps-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ps-brand { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ps-brand em { font-style: normal; color: var(--red); }
.ps-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-name mark { background: none; color: var(--red); }
.ps-avail { font-size: 12px; margin-top: 2px; }
.ps-ok { color: var(--green); font-weight: 600; }
.ps-order { color: #8a5a00; }
.ps-out { color: var(--muted); }
.ps-price { flex: 0 0 auto; text-align: right; font-weight: 700; font-size: 15px; white-space: nowrap; display: flex; flex-direction: column; }
.ps-price s { font-weight: 400; font-size: 12px; color: var(--muted); }
.ps-cat { justify-content: space-between; font-size: 15px; padding-top: 7px; padding-bottom: 7px; }
.ps-cat b { font-weight: 600; }
.ps-cat i { font-style: normal; color: var(--faint); font-size: 18px; line-height: 1; }
.ps-all { font-weight: 600; color: var(--red); margin-top: 4px; }
.ps-all:hover, .ps-all.is-active { color: var(--red-dark); }
.ps-none { margin: 10px 16px 4px; font-weight: 600; }
.ps-close {
	position: absolute; top: 8px; right: 8px; z-index: 2; height: 36px; padding: 0 16px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(22, 24, 27, .12);
}
.ps-close:hover { border-color: var(--ink); }
.ps-help { margin: 0 16px 10px; font-size: 14px; color: var(--text); max-width: 52ch; }

@media (max-width: 900px) {
	.ps-panel { flex-direction: column; width: 100%; max-width: none; max-height: 70vh; }
	.ps-col--side { flex: 0 0 auto; border-left: 0; border-top: 1px solid var(--line); }
	/* stays in the corner while the list scrolls */
	.ps-close { position: sticky; top: 6px; right: auto; align-self: flex-end; flex: 0 0 auto; margin: 8px 8px -48px 0; height: 40px; }
	.ps-item { padding-left: 12px; padding-right: 12px; }
	.ps-img, .ps-img img { flex-basis: 48px; width: 48px; height: 48px; }
	.ps-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
