/* Product search autosuggest dropdown */

.woocommerce-product-search {
	position: relative;
}

.jade-search-suggestions {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 999;
	margin-top: 4px;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 400px;
	overflow-y: auto;
	text-align: left;
}

.jade-search-suggestions.is-visible {
	display: block;
}

.jade-search-suggestions__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: #222222;
	border-bottom: 1px solid #f2f2f2;
	transition: background-color 0.15s ease;
}

.jade-search-suggestions__item:last-child {
	border-bottom: none;
}

.jade-search-suggestions__item:hover,
.jade-search-suggestions__item:focus {
	background-color: #fdf1f6; /* light tint, adjust to match site branding */
}

.jade-search-suggestions__img {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
	background: #f4f4f4;
}

.jade-search-suggestions__img--placeholder {
	display: inline-block;
}

.jade-search-suggestions__text {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.jade-search-suggestions__title {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jade-search-suggestions__price {
	font-size: 13px;
	color: #E91E8C; /* matches the pink header accent, adjust as needed */
	font-weight: 600;
}

.jade-search-suggestions__empty {
	padding: 14px;
	font-size: 13px;
	color: #777777;
	text-align: center;
}
