/* Aroma – live product search */
.aroma-ls-host { position: relative; }

.aroma-ls {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline: 0;
	z-index: 1000;
	max-height: min(62vh, 520px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	border: 1px solid rgba(15, 27, 25, .1);
	border-radius: 14px;
	box-shadow: 0 18px 48px -18px rgba(15, 27, 25, .35);
	padding: 6px;
	text-align: start;
	font: inherit;
	color: #0f1b19;
	animation: aroma-ls-in .16s ease-out;
}
.aroma-ls[hidden] { display: none; }

@keyframes aroma-ls-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}

.aroma-ls__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 10px;
	color: inherit !important;
	text-decoration: none !important;
	transition: background-color .12s;
}
.aroma-ls__item:hover,
.aroma-ls__item.is-active { background: #f4efe7; }
.aroma-ls__item.is-out { opacity: .6; }

.aroma-ls__img {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	background: #f4efe7;
}

.aroma-ls__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.aroma-ls__name {
	font-size: 15px;
	line-height: 1.35;
	font-weight: 400;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aroma-ls__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: 13px;
	color: rgba(15, 27, 25, .6);
}
.aroma-ls__price { color: #0f1b19; font-weight: 500; }
.aroma-ls__sku { direction: ltr; unicode-bidi: isolate; }

.aroma-ls__all {
	display: block;
	margin-top: 4px;
	padding: 11px 10px;
	border-top: 1px solid rgba(15, 27, 25, .08);
	text-align: center;
	font-size: 14px;
	letter-spacing: .02em;
	color: #0f1b19 !important;
	text-decoration: none !important;
	border-radius: 0 0 10px 10px;
}
.aroma-ls__all:hover { background: #f4efe7; }

.aroma-ls__none {
	padding: 16px 12px;
	text-align: center;
	font-size: 14px;
	color: rgba(15, 27, 25, .6);
}

/* thin loading line under the field */
.aroma-ls-host.is-loading::after {
	content: "";
	position: absolute;
	inset-inline: 12px;
	bottom: -3px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, rgba(15, 27, 25, .45), transparent);
	background-size: 50% 100%;
	background-repeat: no-repeat;
	animation: aroma-ls-load 1s linear infinite;
}
@keyframes aroma-ls-load {
	from { background-position: -50% 0; }
	to   { background-position: 150% 0; }
}

@media (max-width: 849px) {
	.aroma-ls { max-height: 55vh; }
	.aroma-ls__img { flex-basis: 44px; width: 44px; height: 44px; }
	.aroma-ls__name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.aroma-ls { animation: none; }
	.aroma-ls-host.is-loading::after { animation: none; }
}
