/* The suggestion list of the header search. */

.search_form_header[data-nxt-search-suggest] {
	position: relative;
}

.nxt_search_suggest_list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 1000;
	min-width: 280px;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	padding: 6px 0;
	text-align: left;
}

.nxt_search_suggest_list[hidden] {
	display: none;
}

.nxt_search_suggest_row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 14px;
	color: #1d1d1b;
	text-decoration: none;
}

.nxt_search_suggest_row:hover,
.nxt_search_suggest_row.nxt_search_suggest_active {
	background: #f2f2f2;
}

.nxt_search_suggest_row img,
.nxt_search_suggest_noimage {
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	object-fit: contain;
}

/* A page row: a small list icon in place of the product photo, and a lower row. */
.nxt_search_suggest_pageicon {
	flex: 0 0 50px;
	height: 28px;
	background: center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%236b6b6b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E");
}

.nxt_search_suggest_group + .nxt_search_suggest_group {
	border-top: 1px solid #ececec;
	margin-top: 4px;
	padding-top: 4px;
}

.nxt_search_suggest_heading {
	padding: 4px 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b6b6b;
}

.nxt_search_suggest_name {
	font-size: 14px;
	line-height: 1.3;
}

.nxt_search_suggest_text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nxt_search_suggest_price {
	font-size: 13px;
	font-weight: 600;
	color: #1d1d1b;
}

.nxt_search_suggest_empty {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 10px 14px;
	font-size: 14px;
}

.nxt_search_suggest_empty a {
	text-decoration: underline;
}

/* The link stays at the bottom of a long list, so the visitor sees it with no scroll. */
.nxt_search_suggest_more {
	position: sticky;
	bottom: -6px;
	display: block;
	padding: 10px 14px;
	background: #fff;
	border-top: 1px solid #ececec;
	font-size: 14px;
	text-decoration: underline;
	color: #1d1d1b;
}
