/* ============================================================
   WooCommerce Omnisearch v5.0 — Search Bar & Results Styles
   ============================================================ */

/* ── Search Bar Container ─────────────────────────────────── */
.woo-omnisearch-glass-container {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.woo-omnisearch-glass-form {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid #ddd;
	border-radius: 50px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.woo-omnisearch-glass-form:focus-within {
	border-color: #2271b1;
	box-shadow: 0 3px 18px rgba(34, 113, 177, 0.2);
}

.woo-omnisearch-glass-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	padding: 14px 20px;
	font-size: 15px;
	color: #333;
	font-family: inherit;
	min-width: 0;
}

.woo-omnisearch-glass-input::placeholder {
	color: #aaa;
}

.woo-omnisearch-glass-button {
	background: #2271b1;
	border: none;
	cursor: pointer;
	padding: 10px 18px;
	margin: 5px;
	border-radius: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.woo-omnisearch-glass-button:hover {
	background: #135e96;
}

.woo-omnisearch-glass-button svg {
	width: 18px;
	height: 18px;
	stroke: #fff;
}

/* ── Live-Search Dropdown ─────────────────────────────────── */
.woo-omnisearch-dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	z-index: 9999;
	overflow: hidden;
	animation: omni-fade-in 0.15s ease;
}

@keyframes omni-fade-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.woo-omnisearch-dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	text-decoration: none;
	color: #333;
	border-bottom: 1px solid #f5f5f5;
	transition: background 0.15s ease;
}

.woo-omnisearch-dropdown-item:last-of-type {
	border-bottom: none;
}

.woo-omnisearch-dropdown-item:hover {
	background: #f7f9fc;
	color: #2271b1;
}

.woo-omnisearch-dropdown-item img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 6px;
	flex-shrink: 0;
	border: 1px solid #eee;
}

.woo-omnisearch-dropdown-info {
	flex: 1;
	min-width: 0;
}

.woo-omnisearch-dropdown-title {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.woo-omnisearch-dropdown-price {
	font-size: 12px;
	color: #666;
	margin-top: 2px;
}

.woo-omnisearch-dropdown-footer {
	display: block;
	padding: 10px 16px;
	background: #f7f9fc;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #2271b1;
	text-decoration: none;
	border-top: 1px solid #e8e8e8;
	transition: background 0.15s ease;
}

.woo-omnisearch-dropdown-footer:hover {
	background: #eaf2fb;
}

.woo-omnisearch-dropdown-empty {
	padding: 16px;
	text-align: center;
	color: #888;
	font-size: 13px;
}

.woo-omnisearch-dropdown-spinner {
	padding: 14px;
	text-align: center;
	color: #aaa;
	font-size: 12px;
}

/* ── Results Page ─────────────────────────────────────────── */
.woo-omnisearch-results-page {
	width: 100%;
}

.woo-omnisearch-results-header {
	margin-bottom: 20px;
}

.woo-omnisearch-results-header h2 {
	font-size: 22px;
	font-weight: 600;
	color: #333;
	margin: 0 0 6px;
}

.woo-omnisearch-results-header h2 em {
	color: #2271b1;
	font-style: normal;
}

.woo-omnisearch-count {
	color: #666;
	font-size: 14px;
	margin: 0;
}

.woo-omnisearch-notice {
	padding: 16px 20px;
	background: #f7f9fc;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	color: #555;
	margin: 20px 0;
}

.woo-omnisearch-pagination {
	margin-top: 32px;
	text-align: center;
}

.woo-omnisearch-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 3px;
	border-radius: 6px;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.2s ease;
}

.woo-omnisearch-pagination .page-numbers.current,
.woo-omnisearch-pagination .page-numbers:hover {
	background: #2271b1;
	color: #fff;
}
