/* Panel de sugerencias del buscador en vivo (spec §6.3). */
.nm-search {
	position: relative;
}

.nm-suggest {
	position: absolute;
	top: calc(100% + 6px);
	right: -1.5px;
	left: -1.5px;
	z-index: 60;
	overflow: hidden;
	border: 1px solid var(--nm-line);
	border-radius: 6px;
	background: var(--nm-white);
	box-shadow: 0 22px 40px -16px rgba(27, 29, 104, 0.35);
}

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

.nm-suggest-list {
	/* Alto suficiente para productos + categorías + marcas sin cortar un grupo a mitad (el título
	   "Marcas" quedaba solo al borde, con su resultado oculto bajo el scroll). */
	max-height: min(75vh, 560px);
	margin: 0;
	padding: 8px;
	overflow-y: auto;
	list-style: none;
}

.nm-suggest-group {
	margin: 10px 6px 4px;
	color: var(--nm-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nm-suggest-group:first-child {
	margin-top: 2px;
}

.nm-suggest-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px;
	border-radius: 5px;
	color: var(--nm-ink);
	text-decoration: none;
}

.nm-suggest-option[aria-selected="true"] .nm-suggest-link {
	background: var(--nm-soft);
	border-left: 3px solid var(--nm-navy);
	color: var(--nm-navy);
	padding-left: 3px;
}

.nm-suggest-img {
	flex: none;
	width: 48px;
	height: 48px;
	border: 1px solid var(--nm-line);
	border-radius: var(--nm-radius);
	background: var(--nm-white);
	object-fit: contain;
}

.nm-suggest-info {
	display: grid;
	flex: 1;
	min-width: 0;
}

.nm-suggest-name {
	font-size: var(--nm-fs-12);
	font-weight: 600;
	line-height: 1.3;
}

.nm-suggest-stock {
	color: var(--nm-muted);
	font-size: 11px;
}

.nm-suggest-prices {
	display: grid;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.nm-suggest-price {
	font-size: var(--nm-fs-14);
	font-weight: 800;
}

.nm-suggest-tier {
	color: var(--nm-red);
	font-size: 11px;
	font-weight: 700;
}

.nm-suggest-count {
	margin-left: auto;
	color: var(--nm-muted);
	font-size: var(--nm-fs-12);
}

.nm-suggest-empty {
	padding: 10px 6px;
	color: var(--nm-muted);
}

.nm-suggest-all {
	display: block;
	padding: 10px 14px;
	border-top: 1px solid var(--nm-line);
	color: var(--nm-navy);
	font-size: var(--nm-fs-13);
	font-weight: 700;
	text-decoration: none;
}

.nm-suggest-all:hover {
	background: var(--nm-soft);
}
