/* AI Semantic Search — dropdown. Inherits the theme's font; adjust colours to match the site. */
.aisearch-box {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1050;
	margin-top: 4px;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	background: #fff;
	color: #222;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	font: inherit;
	text-align: left;
}

.aisearch-box[hidden] {
	display: none;
}

.aisearch-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
}

.aisearch-item:hover,
.aisearch-item.is-active {
	background: #f4f6f8;
	color: inherit;
	text-decoration: none;
}

.aisearch-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.aisearch-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.aisearch-name {
	font-size: 14px;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.aisearch-price {
	font-size: 14px;
	font-weight: 600;
}

.aisearch-special {
	color: #c62828;
	margin-right: 6px;
}

.aisearch-old {
	color: #888;
	font-weight: 400;
}

.aisearch-status,
.aisearch-all {
	display: block;
	padding: 10px 12px;
	font-size: 14px;
}

.aisearch-status {
	color: #666;
}

.aisearch-all {
	text-align: center;
	font-weight: 600;
}

.aisearch-all:focus-visible,
.aisearch-item:focus-visible {
	outline: 2px solid #1e6fd9;
	outline-offset: -2px;
}
