/* Search suggestions dropdown
 *
 * Rendered by assets/js/search.js under the header + drawer search fields.
 * Each row: product thumbnail + name + price, plus a "see all results" foot.
 */

.bollaert-suggest {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 3000;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	box-shadow: var(--wp--preset--shadow--elevated);
	overflow: hidden auto;
	max-height: min(70vh, 460px);
	/* Brand-coloured scrollbar (Firefox) */
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--brand) var(--wp--preset--color--brand-tint);
}

/* Brand-coloured scrollbar (WebKit/Blink) */
.bollaert-suggest::-webkit-scrollbar {
	width: 10px;
}

.bollaert-suggest::-webkit-scrollbar-track {
	background: var(--wp--preset--color--brand-tint);
	border-radius: 0 14px 14px 0;
}

.bollaert-suggest::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--brand);
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--brand-tint);
}

.bollaert-suggest::-webkit-scrollbar-thumb:hover {
	background: var(--wp--preset--color--brand-dark);
}

.bollaert-suggest[hidden] {
	display: none;
}

.bollaert-suggest__item {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
	text-decoration: none;
	color: var(--wp--preset--color--text);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.bollaert-suggest__item:last-of-type {
	border-bottom: 0;
}

.bollaert-suggest__item:hover,
.bollaert-suggest__item.is-active {
	background: var(--wp--preset--color--brand-tint);
}

.bollaert-suggest__media {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: var(--wp--preset--color--brand-bg);
}

.bollaert-suggest__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bollaert-suggest__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bollaert-suggest__name {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bollaert-suggest__price {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	color: var(--wp--preset--color--text);
}

.bollaert-suggest__price del {
	margin-left: 0.35em;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
}

.bollaert-suggest__price ins {
	text-decoration: none;
	background: none;
}

.bollaert-suggest__price small {
	display: none;
}

.bollaert-suggest__all {
	display: block;
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
	text-align: center;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--brand);
	text-decoration: none;
	background: var(--wp--preset--color--brand-bg);
	border-top: 1px solid var(--wp--preset--color--border);
}

.bollaert-suggest__all:hover,
.bollaert-suggest__all.is-active {
	background: var(--wp--preset--color--brand-tint);
}

.bollaert-suggest__empty,
.bollaert-suggest__loading {
	padding: var(--wp--preset--spacing--4);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}
