/* =====================================================================
   search.css — dropdown de resultados da pesquisa de produtos (Fase 3)
   ---------------------------------------------------------------------
   Painel full-width logo abaixo da barra .top-search do tema.
   Alinhado com o kit: Manrope, cantos arredondados, sombra subtil,
   acento verde #3ea22b. NÃO altera o CSS estrutural da .top-search.
   ===================================================================== */

/* FIX (lupa): a barra de pesquisa abre FIXA no topo do VIEWPORT (não do topo
   do documento). Assim fica sempre visível mesmo com a página rolada e NÃO
   empurra o conteúdo. O bootsnav continua a fazer o slideToggle (display);
   só acrescentamos posicionamento. */
.top-search {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
}

.site-search-results {
	display: none;
	position: fixed;
	top: 60px;          /* altura da .top-search: padding 10+10 + input 40 */
	left: 0;
	right: 0;
	z-index: 9998;
	background: #fff;
	border-bottom: 3px solid #3ea22b;
	box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.28);
	font-family: 'Manrope', 'open_sans', -apple-system, BlinkMacSystemFont,
	             'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.site-search-results .ssr-inner {
	max-height: 420px;
	overflow-y: auto;
	padding: 8px 0;
}

/* ---- item de resultado ---- */
.site-search-results .ssr-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	text-decoration: none;
	color: #333;
	border-radius: 10px;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.site-search-results .ssr-item:hover,
.site-search-results .ssr-item:focus {
	background-color: #f4f8f2;
	transform: translateX(2px);
	text-decoration: none;
}

/* ---- miniatura ---- */
.site-search-results .ssr-thumb {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 8px;
	background-color: #f1f1f1;
	background-size: cover;
	background-position: center;
}
.site-search-results .ssr-thumb-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c1c1c1;
	font-size: 18px;
}

/* ---- texto ---- */
.site-search-results .ssr-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.site-search-results .ssr-title {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	color: #2b2b2b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.site-search-results .ssr-item:hover .ssr-title {
	color: #3ea22b;
}
.site-search-results .ssr-cat {
	font-size: 12px;
	color: #8b8b8b;
	margin-top: 1px;
}

/* ---- estados (loading / vazio) ---- */
.site-search-results .ssr-state {
	padding: 18px 16px;
	color: #8b8b8b;
	font-size: 14px;
	text-align: center;
}
.site-search-results .ssr-empty {
	color: #b6b6b6;
}

/* ---- spinner ---- */
.site-search-results .ssr-spinner {
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid rgba(62, 162, 43, 0.25);
	border-top-color: #3ea22b;
	border-radius: 50%;
	animation: ssrSpin 0.7s linear infinite;
}
@keyframes ssrSpin {
	to { transform: rotate(360deg); }
}
