#search input.sphinx-active {
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

#search {
	position: relative;
}

.sphinxsearch-autocomplete {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	min-width: 350px;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
	z-index: 1000;
	max-height: 650px;
	overflow-y: auto;
}

.sphinxsearch-section-header {
	display: block;
	padding: 10px 15px;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	background: #f5f5f5;
	color: #666;
	border-bottom: 1px solid #eee;
}

.sphinxsearch-item {
	display: flex;
	align-items: center;
	padding: 10px 15px;
	border-bottom: 1px solid #eee;
	text-decoration: none;
	color: #333;
	transition: background 0.2s;
	min-height: 60px;
}

.sphinxsearch-item:last-child {
	border-bottom: none;
}

.sphinxsearch-item:hover,
.sphinxsearch-item.sphinx-hover {
	background: #f8f8f8;
	text-decoration: none;
	color: #23527c;
}

.sphinxsearch-item img {
	width: 50px;
	height: 50px;
	object-fit: contain;
	margin-right: 15px;
	flex-shrink: 0;
	border: 1px solid #eee;
	border-radius: 3px;
	background: #fff;
}

.sphinxsearch-info {
	flex: 1;
	min-width: 0;
}

.sphinxsearch-name {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	margin-bottom: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sphinxsearch-price {
	display: block;
	font-weight: bold;
	font-size: 14px;
	color: #c00;
}

.sphinxsearch-category-item {
	display: block;
	padding: 10px 15px;
	border-bottom: 1px solid #eee;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	transition: background 0.2s;
}

.sphinxsearch-category-item:hover,
.sphinxsearch-category-item.sphinx-hover {
	background: #f8f8f8;
	text-decoration: none;
	color: #23527c;
}

.sphinxsearch-category-item:last-child {
	border-bottom: none;
}

.sphinxsearch-viewall {
	display: block;
	padding: 12px 15px;
	text-align: center;
	font-weight: bold;
	font-size: 13px;
	background: #f5f5f5;
	color: #337ab7;
	text-decoration: none;
	border-top: 1px solid #eee;
}

.sphinxsearch-viewall:hover,
.sphinxsearch-viewall.sphinx-hover {
	background: #eee;
	text-decoration: none;
	color: #23527c;
}

.sphinxsearch-noresults {
	padding: 20px 15px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

.sphinx-suggestion {
	padding: 15px;
	background: #fffbe6;
	border: 1px solid #ffe58f;
	border-radius: 4px;
	margin-bottom: 20px;
}

.sphinx-suggestion a {
	font-weight: bold;
}
