/* =========================================================================
 * [tamborim_hero] – primeira dobra útil
 * ====================================================================== */
.tbh {
	--gold: #f1ca00;
	--gold-2: #ffe27a;
	--wa: #25d366;
	--dur: 5s; /* tempo de cada produto no carrossel */
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 44px 0 34px;
	background: #111;
	color: #fff;
	font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	clear: both;
}
.tbh *, .tbh *::before, .tbh *::after { box-sizing: border-box; }
.tbh a { text-decoration: none !important; }
.tbh ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.tbh li { list-style: none !important; margin: 0; padding: 0; }
.tbh a:focus-visible, .tbh button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Fundo: luzes douradas + linhas de cordas */
.tbh__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tbh__bg span {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(241, 202, 0, .18), rgba(241, 202, 0, 0) 65%);
	animation: tbh-drift 20s ease-in-out infinite alternate;
}
.tbh__bg span:nth-child(1) { width: 720px; height: 720px; top: -320px; right: -120px; }
.tbh__bg span:nth-child(2) { width: 520px; height: 520px; bottom: -300px; left: -160px; animation-duration: 26s; opacity: .7; }
.tbh::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: repeating-linear-gradient(105deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 110px);
	-webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
	mask-image: linear-gradient(90deg, #000, transparent 70%);
}
@keyframes tbh-drift {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(-60px, 50px) scale(1.12); }
}

.tbh__inner {
	max-width: 1220px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	gap: 56px;
	align-items: center;
}
.tbh__inner > * { min-width: 0; }

/* ---------- Texto ---------- */
.tbh__since {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px !important;
	padding: 7px 14px;
	border-radius: 99px;
	background: rgba(241, 202, 0, .1);
	border: 1px solid rgba(241, 202, 0, .28);
	color: var(--gold-2);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
}
.tbh__since-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: tbh-ping 2s ease-out infinite; }
@keyframes tbh-ping {
	0% { box-shadow: 0 0 0 0 rgba(241, 202, 0, .7); }
	100% { box-shadow: 0 0 0 10px rgba(241, 202, 0, 0); }
}
.tbh__title {
	margin: 0 0 16px !important;
	font-size: 50px !important;
	line-height: 1.06 !important;
	font-weight: 800 !important;
	letter-spacing: -.02em;
	color: #fff !important;
}
.tbh__lead { margin: 0 0 26px !important; max-width: 540px; font-size: 18px; line-height: 1.6; color: #c4c4c4; }

.tbh__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.tbh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 54px;
	padding: 0 26px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
	border: 0;
	cursor: pointer;
	transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.tbh-btn:hover { transform: translateY(-2px); }
.tbh-btn--gold { background: var(--gold); color: #111 !important; box-shadow: 0 12px 30px -10px rgba(241, 202, 0, .6); }
.tbh-btn--gold:hover { background: #ffd91a; }
.tbh-btn--wa { background: var(--wa); color: #06361a !important; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .55); }
.tbh-btn--wa:hover { background: #2fe374; }
.tbh-btn--sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; flex: 1; }
.tbh-btn--dark { background: #111; color: #fff !important; }
.tbh-btn--dark:hover { background: #000; }
.tbh-btn--green { background: var(--wa); color: #06361a !important; }
.tbh-btn--green:hover { background: #2fe374; }

.tbh__label {
	margin: 0 0 12px !important;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8d8d8d;
}
.tbh__cats ul { display: flex; flex-wrap: wrap; gap: 10px; }
.tbh__cats a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 5px 16px 5px 5px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .1);
	color: #eaeaea !important;
	font-size: 14.5px;
	font-weight: 700;
	transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.tbh__cats a:hover { background: var(--gold); border-color: var(--gold); color: #111 !important; transform: translateY(-2px); }
.tbh__cat-img {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
}
.tbh__cat-img img { width: 82% !important; height: 82% !important; object-fit: contain; }

/* ---------- Carrossel "Em alta agora" ---------- */
.tbh__hot {
	position: relative;
	padding: 18px 18px 16px;
	border-radius: 24px;
	background: #fff;
	color: #111;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 80px -20px rgba(241, 202, 0, .35);
}
.tbh__hot-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tbh__hot-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px 6px 10px;
	border-radius: 99px;
	background: #111;
	color: var(--gold);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
}
.tbh__hot-tag svg { color: #ff8a00; animation: tbh-flame 1.6s ease-in-out infinite; }
@keyframes tbh-flame {
	0%, 100% { transform: scale(1) rotate(0); }
	50% { transform: scale(1.15) rotate(-6deg); }
}
.tbh__arrows { display: flex; gap: 6px; }
.tbh__arrow {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #e3e3e3;
	background: #fff;
	color: #111;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.tbh__arrow:hover { background: #111; color: var(--gold); border-color: #111; }

.tbh__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.tbh__track::-webkit-scrollbar { display: none; }
.tbh-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.tbh-slide__media {
	position: relative;
	display: block;
	height: 250px;
	margin-bottom: 12px;
	border-radius: 16px;
	background: radial-gradient(circle at 50% 60%, #fafafa, #f0f0f0);
	overflow: hidden;
}
.tbh-slide__media img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain;
	padding: 14px;
	transition: transform var(--dur) linear;
}
.tbh-slide.is-current .tbh-slide__media img { transform: scale(1.06); }
.tbh-slide__rank,
.tbh-slide__sale {
	position: absolute;
	top: 12px;
	z-index: 1;
	padding: 5px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 800;
}
.tbh-slide__rank { left: 12px; background: #111; color: var(--gold); }
.tbh-slide__sale { right: 12px; background: var(--gold); color: #111; text-transform: uppercase; }
.tbh-slide__body { padding: 0 4px; }
.tbh-slide__cat { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a7300; }
.tbh-slide__name { margin: 4px 0 6px !important; font-size: 18px; line-height: 1.3; font-weight: 800; }
.tbh-slide__name a {
	color: #111 !important;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tbh-slide__price { margin-bottom: 12px; font-size: 22px; font-weight: 900; color: #111; }
.tbh-slide__price del { font-size: 14px; font-weight: 400; color: #8a8a8a; margin-right: 8px; }
.tbh-slide__price ins { text-decoration: none; }
.tbh-slide__btns { display: flex; gap: 8px; }

/* Indicadores com barra de progresso */
.tbh__dots { display: flex; gap: 6px; margin-top: 14px; }
.tbh__dot {
	flex: 1;
	height: 5px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: #e7e7e7;
	overflow: hidden;
	cursor: pointer;
}
.tbh__dot span { display: block; width: 0; height: 100%; background: #111; border-radius: inherit; }
.tbh__dot.is-done span { width: 100%; }
.tbh__dot.is-active span { animation: tbh-progress var(--dur) linear forwards; }
.tbh__hot.is-paused .tbh__dot.is-active span { animation-play-state: paused; }
.tbh__hot.is-static .tbh__dot.is-active span { animation: none; width: 100%; }
@keyframes tbh-progress { from { width: 0; } to { width: 100%; } }

/* ---------- Atalhos úteis ---------- */
.tbh__tiles {
	max-width: 1220px;
	margin: 34px auto 0;
	padding: 0 20px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.tbh-tile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .09);
	color: #fff !important;
	transition: background .25s, border-color .25s, transform .25s;
}
.tbh-tile:hover { background: rgba(255, 255, 255, .07); border-color: rgba(241, 202, 0, .45); transform: translateY(-3px); }
.tbh-tile__icon {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(241, 202, 0, .12);
	color: var(--gold);
}
.tbh-tile--wa .tbh-tile__icon { background: rgba(37, 211, 102, .14); color: var(--wa); }
.tbh-tile__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tbh-tile__txt strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; font-weight: 800; }
.tbh-tile__txt > span { font-size: 14px; color: #a9a9a9; }
.tbh-tile__go { margin-left: auto; color: #777; transition: transform .25s, color .25s; }
.tbh-tile:hover .tbh-tile__go { transform: translateX(4px); color: var(--gold); }

.tbh-status {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 2px 9px 2px 7px;
	border-radius: 99px;
	font-size: 11.5px;
	font-weight: 800;
}
.tbh-status[hidden] { display: none !important; }
.tbh-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tbh-status.is-open { background: rgba(37, 211, 102, .15); color: #3ee07f; }
.tbh-status.is-open::before { animation: tbh-ping-green 1.8s ease-out infinite; }
.tbh-status.is-closed { background: rgba(255, 255, 255, .08); color: #bdbdbd; }
@keyframes tbh-ping-green {
	0% { box-shadow: 0 0 0 0 rgba(62, 224, 127, .7); }
	100% { box-shadow: 0 0 0 8px rgba(62, 224, 127, 0); }
}

/* ---------- Entrada (só CSS, sem esperar JS) ---------- */
.tbh__since, .tbh__lead, .tbh__ctas, .tbh__cats, .tbh-tile { animation: tbh-up .7s cubic-bezier(.2, .7, .2, 1) both; }
.tbh__title { animation: tbh-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.tbh__lead { animation-delay: .08s; }
.tbh__ctas { animation-delay: .16s; }
.tbh__cats { animation-delay: .24s; }
.tbh-tile:nth-child(1) { animation-delay: .3s; }
.tbh-tile:nth-child(2) { animation-delay: .38s; }
.tbh-tile:nth-child(3) { animation-delay: .46s; }
.tbh__hot { animation: tbh-card .9s cubic-bezier(.2, .7, .2, 1) .1s both; }
@keyframes tbh-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes tbh-rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes tbh-card { from { opacity: 0; transform: translateX(40px) rotate(2deg) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
	.tbh__inner { gap: 36px; }
	.tbh__title { font-size: 42px !important; }
}
@media (max-width: 900px) {
	.tbh { padding: 28px 0 28px; }
	.tbh__inner { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; }
	.tbh__inner > *, .tbh__copy > * { min-width: 0; }
	.tbh__copy { display: contents; }
	.tbh__since { justify-self: start; order: 1; margin-bottom: 14px !important; font-size: 12px; }
	.tbh__title { order: 2; font-size: 31px !important; margin-bottom: 10px !important; }
	.tbh__lead { order: 3; font-size: 15.5px; margin-bottom: 18px !important; }
	.tbh__ctas { order: 4; margin-bottom: 24px; }
	.tbh__ctas .tbh-btn { flex: 1 1 100%; min-height: 52px; }
	.tbh__hot { order: 5; padding: 14px 14px 12px; border-radius: 20px; }
	.tbh__cats { order: 6; margin-top: 24px; }
	.tbh__cats ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px !important; padding: 0 16px 4px !important; }
	.tbh__cats ul::-webkit-scrollbar { display: none; }
	.tbh__cats li { flex-shrink: 0; }
	.tbh-slide__media { height: 220px; }
	.tbh-slide__name { font-size: 16.5px; }
	.tbh-slide__price { font-size: 20px; }
	.tbh__tiles { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; padding: 0 16px; }
	.tbh-tile { padding: 13px 14px; }
	.tbh-tile__icon { width: 42px; height: 42px; }
}
@media (max-width: 380px) {
	.tbh-slide__btns { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.tbh *, .tbh__bg span { animation: none !important; transition: none !important; }
	.tbh__track { scroll-behavior: auto; }
	.tbh__dot.is-active span { width: 100%; }
}
