/* =========================================================================
 * Tamborim – Ajustes da Página Inicial
 * ====================================================================== */

/* ---------- Seção: Últimos posts do blog ---------- */
.tb-blog-home {
	--tb-gold: #f1ca00;
	--tb-gold-dark: #b89a00;
	--tb-ink: #1d1d1d;
	--tb-muted: #5f5f5f;
	--tb-line: #e6e6e6;
	background: #fafafa;
	border-top: 1px solid var(--tb-line);
	padding: 72px 0 80px;
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	clear: both;
}

.tb-blog-home__inner {
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.tb-blog-home__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 36px;
}

.tb-blog-home__eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tb-gold-dark);
	margin-bottom: 8px;
}

.tb-blog-home__title {
	margin: 0 0 8px;
	font-size: 36px;
	line-height: 1.15;
	font-weight: 700;
	color: var(--tb-ink);
}

.tb-blog-home__sub {
	margin: 0;
	max-width: 620px;
	color: var(--tb-muted);
	font-size: 16px;
	line-height: 1.55;
}

.tb-blog-home__all {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 6px;
	background: var(--tb-ink);
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}

.tb-blog-home__all:hover,
.tb-blog-home__all:focus-visible {
	background: var(--tb-gold);
	color: var(--tb-ink) !important;
}

.tb-blog-home__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.tb-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tb-line);
	border-radius: 10px;
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}

.tb-blog-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
}

.tb-blog-card__media {
	display: block;
	aspect-ratio: 16 / 9; /* mesma proporção das capas (768x432): nada é cortado */
	background: #eee;
	overflow: hidden;
}

.tb-blog-card__media img,
.tb-blog-card__placeholder {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform .35s;
}

.tb-blog-card__placeholder {
	background: linear-gradient(135deg, #1d1d1d, #3a3a3a);
}

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

.tb-blog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.tb-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 13px;
	color: var(--tb-muted);
	margin-bottom: 10px;
}

.tb-blog-card__cat {
	background: #fff6c2;
	color: #6b5800;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
}

.tb-blog-card__title {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
}

.tb-blog-card__title a {
	color: var(--tb-ink) !important;
	text-decoration: none !important;
}

.tb-blog-card__title a:hover {
	color: var(--tb-gold-dark) !important;
}

.tb-blog-card__excerpt {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--tb-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tb-blog-card__more {
	margin-top: auto;
	font-weight: 700;
	font-size: 15px;
	color: var(--tb-ink) !important;
	text-decoration: none !important;
	border-bottom: 2px solid var(--tb-gold);
	align-self: flex-start;
	padding-bottom: 2px;
}

.tb-blog-card__more:hover {
	color: var(--tb-gold-dark) !important;
}

.tb-blog-home a:focus-visible {
	outline: 3px solid var(--tb-gold);
	outline-offset: 3px;
}

@media (max-width: 1100px) {
	.tb-blog-home__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.tb-blog-home { padding: 48px 0 56px; }
	.tb-blog-home__inner { padding: 0 16px; }
	.tb-blog-home__head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
	.tb-blog-home__title { font-size: 28px; }
	.tb-blog-home__sub { font-size: 15px; }
	.tb-blog-home__grid {
		/* Carrossel horizontal no celular: economiza rolagem */
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		margin: 0 -16px;
		padding: 0 16px 8px;
		-webkit-overflow-scrolling: touch;
	}
	.tb-blog-card { flex: 0 0 82%; scroll-snap-align: start; }
	.tb-blog-card:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tb-blog-card,
	.tb-blog-card__media img { transition: none; }
}

/* =========================================================================
 * Botões compartilhados
 * ====================================================================== */
.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 8px;
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
	box-sizing: border-box;
}
.tb-btn:hover { transform: translateY(-1px); }
.tb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tb-btn--gold { background: #f1ca00; color: #1d1d1d !important; }
.tb-btn--gold:hover { background: #ffd91a; }
.tb-btn--wa { background: transparent; color: #fff !important; border: 2px solid #25d366; }
.tb-btn--wa svg { color: #25d366; }
.tb-btn--wa:hover { background: #25d366; }
.tb-btn--wa:hover svg { color: #fff; }

/* =========================================================================
 * [tamborim_hero]
 * ====================================================================== */
.tb-hero {
	background: #1f1f1f radial-gradient(ellipse at 75% 40%, #3a3a3a 0%, #1f1f1f 60%);
	color: #fff;
	overflow: hidden;
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.tb-hero__inner {
	max-width: 1220px;
	margin: 0 auto;
	padding: 56px 20px;
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: 40px;
	box-sizing: border-box;
}
.tb-hero__logo { display: block; width: 176px; height: auto; margin-bottom: 18px; }
.tb-hero__since {
	margin: 0 0 6px !important;
	font-family: Lobster, Georgia, serif;
	font-size: 30px;
	line-height: 1.2;
	color: #f1ca00;
}
.tb-hero__title {
	margin: 0 0 16px !important;
	font-size: 46px !important;
	line-height: 1.1 !important;
	font-weight: 800 !important;
	color: #fff !important;
	letter-spacing: -.01em;
}
.tb-hero__lead {
	margin: 0 0 28px !important;
	max-width: 520px;
	font-size: 18px;
	line-height: 1.6;
	color: #cfcfcf;
}
.tb-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.tb-hero__media { text-align: center; }
.tb-hero__media img { width: 100%; max-width: 520px; height: auto; }

@media (max-width: 900px) {
	.tb-hero__inner { grid-template-columns: 1fr; padding: 36px 16px 8px; gap: 8px; }
	.tb-hero__title { font-size: 32px !important; }
	.tb-hero__lead { font-size: 16px; margin-bottom: 22px !important; }
	.tb-hero__ctas .tb-btn { flex: 1 1 100%; }
	.tb-hero__media img { max-width: 240px; margin-top: 12px; }
	.tb-hero__logo { width: 140px; }
}

/* =========================================================================
 * [tamborim_confianca]
 * ====================================================================== */
.tb-trust {
	background: #fff;
	border-bottom: 1px solid #ececec;
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.tb-trust__list {
	list-style: none !important;
	max-width: 1220px;
	margin: 0 auto !important;
	padding: 22px 20px !important;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	box-sizing: border-box;
}
.tb-trust__item { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tb-trust__item,
.tb-trust__link {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #1d1d1d !important;
	text-decoration: none !important;
}
.tb-trust__icon {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff6c2;
	color: #8a7300;
}
.tb-trust__txt { display: flex; flex-direction: column; line-height: 1.35; }
.tb-trust__txt strong { font-size: 16px; font-weight: 700; }
.tb-trust__txt span { font-size: 14px; color: #5f5f5f; }
.tb-trust__link:hover strong { color: #128c7e; }

@media (max-width: 1000px) {
	.tb-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
}
@media (max-width: 480px) {
	.tb-trust__list { padding: 18px 16px !important; gap: 14px 10px; }
	.tb-trust__icon { width: 40px; height: 40px; }
	.tb-trust__icon svg { width: 22px; height: 22px; }
	.tb-trust__item, .tb-trust__link { gap: 10px; align-items: flex-start; }
	.tb-trust__txt strong { font-size: 14px; }
	.tb-trust__txt span { font-size: 12.5px; }
}

/* =========================================================================
 * [tamborim_em_alta]
 * ====================================================================== */
.tb-hot {
	background: #fff;
	padding: 72px 0 80px;
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	clear: both;
}
.tb-hot__inner { max-width: 1220px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.tb-hot__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.tb-hot__title { margin: 0 0 8px !important; font-size: 36px !important; line-height: 1.15 !important; font-weight: 700; color: #1d1d1d !important; }
.tb-hot__sub { margin: 0 !important; max-width: 620px; color: #5f5f5f; font-size: 16px; line-height: 1.55; }
.tb-hot__label {
	margin: 0 0 16px !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #5f5f5f !important;
}

/* Categorias */
.tb-hot__cats {
	list-style: none !important;
	margin: 0 0 44px !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}
.tb-hot__cats li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.tb-hot-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%;
	padding: 16px 12px 18px;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	background: #fafafa;
	text-decoration: none !important;
	transition: border-color .2s, box-shadow .2s, transform .2s;
	box-sizing: border-box;
}
.tb-hot-cat:hover { border-color: #f1ca00; box-shadow: 0 8px 22px rgba(0,0,0,.07); transform: translateY(-2px); }
.tb-hot-cat__img {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
}
.tb-hot-cat__img img { width: 80% !important; height: 80% !important; object-fit: contain; }
.tb-hot-cat__name { font-size: 15px; font-weight: 700; color: #1d1d1d; line-height: 1.3; }
.tb-hot-cat__count { margin-top: 4px; font-size: 13px; color: #6b6b6b; }

/* Produtos */
.tb-hot__grid {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.tb-prod {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s, transform .2s;
}
.tb-prod:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-3px); }
.tb-prod__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; padding: 14px; box-sizing: border-box; }
.tb-prod__media img { width: 100% !important; height: 100% !important; object-fit: contain; }
.tb-prod__rank,
.tb-prod__sale {
	position: absolute;
	top: 10px;
	z-index: 1;
	padding: 4px 9px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
}
.tb-prod__rank { left: 10px; background: #1d1d1d; color: #f1ca00; }
.tb-prod__sale { right: 10px; background: #f1ca00; color: #1d1d1d; text-transform: uppercase; }
.tb-prod__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; border-top: 1px solid #f0f0f0; }
.tb-prod__cat { font-size: 12px; font-weight: 700; color: #8a7300; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.tb-prod__title { margin: 0 0 10px !important; font-size: 15px !important; line-height: 1.4 !important; font-weight: 700 !important; }
.tb-prod__title a {
	color: #1d1d1d !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tb-prod__price { margin-bottom: 14px; font-size: 18px; font-weight: 800; color: #1d1d1d; }
.tb-prod__price del { font-size: 13px; font-weight: 400; color: #8a8a8a; margin-right: 6px; }
.tb-prod__price ins { text-decoration: none; }
.tb-prod__btn {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 8px;
	background: #1d1d1d;
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	transition: background .2s, color .2s;
}
.tb-prod__btn:hover { background: #f1ca00; color: #1d1d1d !important; }
.tb-hot a:focus-visible { outline: 3px solid #f1ca00; outline-offset: 3px; }

@media (max-width: 1100px) {
	.tb-hot__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tb-hot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.tb-hot { padding: 48px 0 56px; }
	.tb-hot__inner { padding: 0 16px; }
	.tb-hot__head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
	.tb-hot__title { font-size: 28px !important; }
	.tb-hot__sub { font-size: 15px; }
	/* Categorias viram uma fileira que desliza para o lado */
	.tb-hot__cats {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 10px;
		margin: 0 -16px 36px !important;
		padding: 0 16px 6px !important;
	}
	.tb-hot__cats li { flex: 0 0 128px; scroll-snap-align: start; }
	.tb-hot-cat__img { width: 72px; height: 72px; }
	.tb-hot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tb-prod__body { padding: 12px; }
	.tb-prod__title { font-size: 14px !important; }
	.tb-prod__price { font-size: 16px; }
	.tb-prod:hover, .tb-hot-cat:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.tb-btn, .tb-prod, .tb-hot-cat { transition: none; }
}

/* =========================================================================
 * Seções do Muffin Builder que só carregam um shortcode do plugin
 * (classe "tb-shortcode-section"): largura total, sem espaçamentos do tema.
 * ====================================================================== */
.mcb-section.tb-shortcode-section {
	padding: 0 !important;
	background: none !important;
}
.tb-shortcode-section .section_wrapper,
.tb-shortcode-section .mcb-section-inner {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
.tb-shortcode-section .mcb-wrap,
.tb-shortcode-section .mcb-wrap-inner,
.tb-shortcode-section .mcb-column,
.tb-shortcode-section .mcb-column-inner,
.tb-shortcode-section .column_attr {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
