/**
 * Buscador AJAX propio del tema OzadoInmed.
 * Diseño neutro, prepara para que ajustes colores/tipografía según el resto del sitio.
 */

.ozado-search-form {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ozado-search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	padding: 8px 14px;
	border: 1px solid #d9d9d9;
	border-right: 0;
	border-radius: 8px 0 0 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.4;
	color: #222;
	outline: none;
	box-sizing: border-box;
}

.ozado-search-input:focus {
	border-color: #888;
}

/**
 * Anular regla global del tema (style.css:1103-1108) que aplica
 * border turquesa + box-shadow azul + background blanco con !important
 * a TODOS los <input> en hover/focus. Solo aplica al buscador propio.
 */
.ozado-search-input,
.ozado-search-input:hover,
.ozado-search-input:focus,
.ozado-search-input:focus-visible {
	border: 1px solid #d9d9d9 !important;
	border-right: 0 !important;
	box-shadow: none !important;
	background: #fff !important;
	outline: none !important;
}

.ozado-search-input:focus {
	border-color: #888 !important;
	border-right: 0 !important;
}

.ozado-search-submit {
	flex: 0 0 auto;
	height: 40px;
	min-width: 84px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	border: 1px solid var(--theme-color-1, #00abb8);
	background: var(--theme-color-1, #00abb8);
	color: #fff;
	cursor: pointer;
	border-radius: 0 8px 8px 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	box-sizing: border-box;
	transition: filter .15s ease, background-color .15s ease;
}

.ozado-search-submit:hover,
.ozado-search-submit:focus {
	filter: brightness(.92);
	color: #fff;
}

.ozado-search-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 9999;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.ozado-search-results[hidden] {
	display: none;
}

.ozado-search-status {
	padding: 12px 14px;
	color: #666;
	font-size: 13px;
	text-align: center;
}

.ozado-search-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ozado-search-item {
	border-bottom: 1px solid #f0f0f0;
}

.ozado-search-item:last-child {
	border-bottom: 0;
}

.ozado-search-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	text-decoration: none;
	color: #222;
	transition: background-color .15s ease;
}

.ozado-search-link:hover,
.ozado-search-link:focus {
	background: #fafafa;
	color: #222;
}

.ozado-search-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 3px;
	background: #f5f5f5;
}

.ozado-search-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.ozado-search-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #222;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ozado-search-cat {
	font-size: 11px;
	color: #888;
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.ozado-search-price {
	font-size: 13px;
	color: #333;
	margin-top: 4px;
	font-weight: 600;
}

.ozado-search-price del {
	opacity: .5;
	font-weight: 400;
	margin-right: 6px;
}

.ozado-search-viewall {
	background: #fafafa;
}

.ozado-search-viewall a {
	display: block;
	padding: 10px 12px;
	font-size: 13px;
	text-align: center;
	text-decoration: none;
	color: #444;
	font-weight: 500;
}

.ozado-search-viewall a:hover {
	color: #222;
	background: #f0f0f0;
}

@media (max-width: 768px) {
	.ozado-search-input {
		font-size: 16px; /* evita zoom-in iOS */
		height: 42px;
	}

	.ozado-search-submit {
		height: 42px;
		min-width: 72px;
		padding: 0 14px;
	}

	.ozado-search-thumb {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
	}

	.ozado-search-title {
		font-size: 13px;
	}
}
