/* Live search suggestions under the header search box. */

.nx-header__search {
	position: relative;
}

.nx-suggest {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 160;
	min-width: 260px;
	margin: 0.25rem 0 0;
	padding: 0.25rem;
	list-style: none;
	background: var(--nx-base);
	border: 1px solid var(--nx-border);
	border-radius: var(--nx-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.nx-suggest[hidden] {
	display: none;
}

.nx-suggest__item a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.4rem;
	color: var(--nx-text);
	text-decoration: none;
	border-radius: var(--nx-radius);
}

.nx-suggest__item a:hover,
.nx-suggest__item a:focus-visible {
	background: var(--nx-surface);
}

.nx-suggest__item img {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--nx-radius);
}

.nx-suggest__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nx-suggest__title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nx-suggest__price {
	color: var(--nx-muted);
	font-size: 0.875rem;
}

.nx-suggest__empty {
	padding: 0.5rem;
	color: var(--nx-muted);
}
