/* Waslli EG — Live product search dropdown.
 * Overrides the base .product-search overflow:hidden so the results box
 * can escape the form. */

form.product-search { position: relative; overflow: visible; }
.site-header { z-index: 100; }
.waslli-ls-results {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	inset-inline-end: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	max-height: 480px;
	overflow-y: auto;
	z-index: 999;
	display: none;
	padding: 6px;
}
.waslli-ls-results.is-open { display: block; }
.waslli-ls-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px;
	border-radius: 10px;
	text-decoration: none;
	color: #0f172a;
	transition: background 0.15s;
}
.waslli-ls-item + .waslli-ls-item { margin-top: 2px; }
.waslli-ls-item:hover,
.waslli-ls-item:focus { background: #f4faf7; outline: none; }
.waslli-ls-item__img {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
}
.waslli-ls-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.waslli-ls-item__body { flex: 1; min-width: 0; }
.waslli-ls-item__title {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #005135;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}
.waslli-ls-item__meta {
	display: flex;
	gap: 10px;
	font-size: 12px;
	color: #64748b;
	margin-top: 3px;
	align-items: center;
	flex-wrap: wrap;
}
.waslli-ls-item__sku { direction: ltr; font-family: monospace; }
.waslli-ls-item__price { color: #00B77A; font-weight: 700; }
.waslli-ls-item__price .amount { color: #00B77A; }
.waslli-ls-item__stock--out { color: #dc2626; font-size: 11px; }
.waslli-ls-empty,
.waslli-ls-loading {
	padding: 22px 14px;
	text-align: center;
	color: #64748b;
	font-size: 13.5px;
}
.waslli-ls-viewall {
	display: block;
	text-align: center;
	padding: 10px;
	margin-top: 4px;
	border-top: 1px solid #eef2f0;
	color: #005135;
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none;
}
.waslli-ls-viewall:hover { background: #f4faf7; border-radius: 0 0 10px 10px; }
@media (max-width: 480px) {
	.waslli-ls-results { max-height: 60vh; }
	.waslli-ls-item__img { width: 44px; height: 44px; }
	.waslli-ls-item__title { font-size: 13px; }
}
