/* =====================================================================
   Tamborim – Busca Melhorada
   ===================================================================== */

:root {
	--tb-ouro: #f5c518;
	--tb-ouro-escuro: #d9ab00;
	--tb-preto: #111111;
	--tb-cinza: #2a2a2a;
	--tb-borda: #e6e6e6;
	--tb-texto: #222222;
	--tb-texto-suave: #6b6b6b;
}

/* ---------------------------------------------------------------------
   1. Campo de pesquisa do cabeçalho
   O bloco .top_bar_right estava absoluto com 53% de largura e cobria
   o item "Contato" do menu. Agora ele fica encostado à direita, com a
   largura do próprio campo.
   --------------------------------------------------------------------- */
@media only screen and (min-width: 768px) {
	html body #Top_bar .top_bar_right.top_bar_right {
		position: absolute;
		top: 0;
		bottom: 0;
		left: auto;
		right: 20px;
		width: auto;
		max-height: none;
		height: 100%;
		padding: 0;
		background: transparent;
		display: flex;
		align-items: center;
		z-index: 5;
	}

	html body #Top_bar .top_bar_right.top_bar_right::before {
		display: none;
	}

	body #Top_bar .top_bar_right .top_bar_right_wrapper {
		display: flex;
		align-items: center;
		height: auto;
		padding: 0;
	}
}

body #Top_bar .top-bar-right-input {
	display: flex;
	align-items: center;
}

body #Top_bar .top-bar-search-form {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

body #Top_bar .top-bar-search-form > svg {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	pointer-events: none;
	z-index: 2;
}

body #Top_bar .top-bar-search-form > svg .path {
	stroke: #bdbdbd;
	transition: stroke .2s;
}

body #Top_bar .top_bar_right .top-bar-right-input input.field,
body #Top_bar .top-bar-search-form input.field {
	width: clamp(190px, 22vw, 300px);
	height: 40px;
	margin: 0;
	padding: 0 16px 0 40px;
	border: 1px solid #3a3a3a;
	border-radius: 999px;
	background: var(--tb-cinza);
	color: #ffffff;
	font-size: 14px;
	line-height: 40px;
	box-shadow: none;
	transition: border-color .2s, background-color .2s, width .25s, box-shadow .2s;
}

body #Top_bar .top-bar-search-form input.field::placeholder {
	color: #a8a8a8;
	opacity: 1;
}

body #Top_bar .top-bar-search-form input.field:focus {
	outline: none;
	border-color: var(--tb-ouro);
	background: #1c1c1c;
	box-shadow: 0 0 0 3px rgba(245, 197, 24, .25);
}

@media only screen and (min-width: 1240px) {
	body #Top_bar .top-bar-search-form input.field:focus {
		width: 340px;
	}
}

body #Top_bar .top-bar-search-form:focus-within > svg .path {
	stroke: var(--tb-ouro);
}

/* Caixa de sugestões (live search do BeTheme) */
body #Top_bar .top_bar_right .mfn-live-search-box {
	top: calc(100% + 8px);
	right: 0;
	left: auto;
	width: 380px;
	max-width: calc(100vw - 40px);
	border-radius: 12px;
	border: 1px solid var(--tb-borda);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
	overflow: hidden;
}

body #Top_bar .mfn-live-search-box .button {
	display: block;
	margin: 10px;
	border-radius: 8px;
	background: var(--tb-ouro);
	color: var(--tb-preto);
	text-align: center;
	font-weight: 700;
}

/* Tablets: o menu ocupa mais espaço, o campo encolhe */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
	body #Top_bar .top_bar_right .top-bar-right-input input.field,
	body #Top_bar .top-bar-search-form input.field {
		width: 170px;
	}
}

/* Celular: campo ocupa a linha inteira, sem cobrir o logo */
@media only screen and (max-width: 767px) {
	body #Top_bar .top-bar-search-form input.field {
		width: 100%;
		height: 38px;
		line-height: 38px;
	}
}

/* ---------------------------------------------------------------------
   2. Página de resultados
   --------------------------------------------------------------------- */
.tb-busca .section {
	padding: 28px 0 60px;
}

.tb-busca-hero {
	max-width: 760px;
	margin: 0 auto 36px;
	text-align: center;
}

.tb-busca-form {
	position: relative;
	display: flex;
	align-items: stretch;
	margin: 0 0 12px;
	border: 2px solid var(--tb-preto);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow .2s, border-color .2s;
}

.tb-busca-form:focus-within {
	border-color: var(--tb-ouro-escuro);
	box-shadow: 0 0 0 4px rgba(245, 197, 24, .3);
}

.tb-busca-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	color: var(--tb-texto-suave);
	pointer-events: none;
}

.tb-busca-form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 56px;
	margin: 0 !important;
	padding: 0 16px 0 54px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--tb-texto);
	font-size: 17px;
}

.tb-busca-form input[type="search"]:focus {
	outline: none;
}

.tb-busca-form button {
	flex-shrink: 0;
	margin: 0;
	padding: 0 30px;
	border: 0;
	border-radius: 0;
	background: var(--tb-preto);
	color: var(--tb-ouro);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}

.tb-busca-form button:hover,
.tb-busca-form button:focus-visible {
	background: var(--tb-ouro);
	color: var(--tb-preto);
}

.tb-busca-resumo {
	margin: 0;
	color: var(--tb-texto-suave);
	font-size: 15px;
}

.tb-busca-resumo strong {
	color: var(--tb-texto);
}

/* Blocos e títulos */
.tb-busca-bloco {
	margin: 0 0 56px;
}

.tb-busca-cabecalho {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 24px;
	border-bottom: 1px solid var(--tb-borda);
}

.tb-busca-titulo {
	position: relative;
	margin: 0;
	padding-bottom: 12px;
	font-size: 24px;
	line-height: 1.25;
}

.tb-busca-titulo::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 64px;
	height: 3px;
	background: var(--tb-ouro);
}

.tb-busca-contador,
.tb-busca-ver-mais {
	padding-bottom: 14px;
	font-size: 14px;
	white-space: nowrap;
}

.tb-busca-contador {
	color: var(--tb-texto-suave);
}

.tb-busca .tb-busca-ver-mais {
	color: var(--tb-texto);
	font-weight: 700;
	text-decoration: none;
}

.tb-busca .tb-busca-ver-mais:hover {
	color: var(--tb-ouro-escuro);
}

/* Grade de produtos: cards uniformes */
.tb-busca ul.products li.product {
	display: flex;
	flex-direction: column;
	padding: 14px;
	border: 1px solid var(--tb-borda);
	border-radius: 12px;
	background: #fff;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}

.tb-busca ul.products li.product:hover {
	border-color: transparent;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
	transform: translateY(-2px);
}

.tb-busca ul.products li.product img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
}

/* Paginação dos produtos */
.tb-busca-paginacao {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 32px 0 0;
}

.tb-busca .tb-busca-paginacao .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--tb-borda);
	border-radius: 999px;
	background: #fff;
	color: var(--tb-texto);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}

.tb-busca .tb-busca-paginacao .page-numbers.dots {
	min-width: 0;
	padding: 0 4px;
	border-color: transparent;
}

.tb-busca .tb-busca-paginacao .page-numbers.current {
	border-color: var(--tb-preto);
	background: var(--tb-preto);
	color: var(--tb-ouro);
}

.tb-busca .tb-busca-paginacao a.page-numbers:hover {
	border-color: var(--tb-ouro);
	background: var(--tb-ouro);
	color: var(--tb-preto);
}

/* Dicas e conteúdos (blog/páginas) */
.tb-busca-conteudos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.tb-busca .tb-busca-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--tb-borda);
	border-radius: 12px;
	background: #fff;
	color: var(--tb-texto);
	text-decoration: none;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}

.tb-busca .tb-busca-card:hover {
	border-color: transparent;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
	transform: translateY(-2px);
}

.tb-busca-card-img {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f2f2f2;
}

.tb-busca-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s;
}

.tb-busca-card:hover .tb-busca-card-img img {
	transform: scale(1.04);
}

.tb-busca-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--tb-preto);
	color: var(--tb-ouro);
	font-size: 40px;
}

.tb-busca-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}

.tb-busca-card-body em {
	color: var(--tb-ouro-escuro);
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tb-busca-card-body strong {
	font-size: 17px;
	line-height: 1.3;
}

.tb-busca-card-body small {
	color: var(--tb-texto-suave);
	font-size: 14px;
	line-height: 1.5;
}

.tb-busca-card-link {
	margin-top: auto;
	padding-top: 6px;
	color: var(--tb-texto);
	font-size: 14px;
	font-weight: 700;
}

.tb-busca-card:hover .tb-busca-card-link {
	color: var(--tb-ouro-escuro);
}

/* Sem resultados */
.tb-busca-vazio {
	max-width: 760px;
	margin: 0 auto 56px;
	padding: 32px;
	border-radius: 16px;
	background: #f7f7f7;
	text-align: center;
}

.tb-busca-vazio h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

.tb-busca-vazio p {
	margin: 0 0 20px;
	color: var(--tb-texto-suave);
}

.tb-busca-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.tb-busca .tb-busca-chips a {
	padding: 8px 16px;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	background: #fff;
	color: var(--tb-texto);
	font-size: 14px;
	text-decoration: none;
	transition: background-color .2s, border-color .2s;
}

.tb-busca .tb-busca-chips a:hover {
	border-color: var(--tb-ouro);
	background: var(--tb-ouro);
	color: var(--tb-preto);
}

/* CTA WhatsApp */
.tb-busca-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin: 8px 0 0;
	padding: 32px 36px;
	border-radius: 18px;
	background: var(--tb-preto);
	background-image: radial-gradient(circle at 100% 0%, rgba(245, 197, 24, .18), transparent 55%);
	color: #fff;
}

.tb-busca-cta-texto {
	display: flex;
	align-items: center;
	gap: 20px;
}

.tb-busca-cta-icone {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
}

.tb-busca-cta-icone svg {
	width: 36px;
	height: 36px;
}

.tb-busca-cta h2 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 26px;
	line-height: 1.2;
}

.tb-busca-cta p {
	max-width: 560px;
	margin: 0;
	color: #cfcfcf;
	font-size: 15px;
	line-height: 1.5;
}

.tb-busca .tb-busca-cta-botao {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	padding: 16px 28px;
	border-radius: 999px;
	background: var(--tb-ouro);
	color: var(--tb-preto);
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(245, 197, 24, .3);
	transition: transform .2s, background-color .2s, box-shadow .2s;
}

.tb-busca .tb-busca-cta-botao:hover {
	background: #ffd84a;
	color: var(--tb-preto);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(245, 197, 24, .4);
}

/* Responsivo */
@media only screen and (max-width: 1023px) {
	.tb-busca-conteudos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tb-busca-cta {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media only screen and (max-width: 767px) {
	.tb-busca .section {
		padding: 20px 0 40px;
	}

	.tb-busca-form input[type="search"] {
		height: 50px;
		font-size: 16px;
	}

	.tb-busca-form button {
		padding: 0 18px;
	}

	.tb-busca-titulo {
		font-size: 20px;
	}

	.tb-busca-conteudos {
		grid-template-columns: 1fr;
	}

	.tb-busca-cta {
		padding: 26px 22px;
		text-align: center;
		align-items: stretch;
	}

	.tb-busca-cta-texto {
		flex-direction: column;
	}

	.tb-busca-cta h2 {
		font-size: 22px;
	}

	.tb-busca .tb-busca-cta-botao {
		width: 100%;
	}
}
