/* Componentes do TC Ofertas. As cores podem ser trocadas pelo tema via variáveis. */
:root {
	--tc-ink: #0a0a0a;
	--tc-muted: #5e5e5e;
	--tc-bg: #ffffff;
	--tc-surface: #ffffff;
	--tc-line: #e6e6e6;
	--tc-accent: #3cc84d;
	--tc-accent-dark: #16752a;
	--tc-accent-soft: #eaf8ec;
	--tc-wa: #25d366;
	--tc-wa-ink: #06341b;
	--tc-tg: #229ed9;
	--tc-radius: 14px;
	--tc-shadow: 0 1px 2px rgba(10, 10, 10, .05), 0 6px 18px rgba(10, 10, 10, .07);
}

/* Botões */
.tc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45em;
	min-height: 46px;
	padding: .7em 1.2em;
	border-radius: 12px;
	border: 2px solid transparent;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .12s ease, filter .12s ease, background-color .12s ease;
	-webkit-tap-highlight-color: transparent;
}
.tc-btn:hover { filter: brightness(.96); }
.tc-btn:active { transform: translateY(1px); }
.tc-btn:focus-visible { outline: 3px solid var(--tc-ink); outline-offset: 2px; }
.tc-btn--block { display: flex; width: 100%; }
.tc-btn--accent { background: var(--tc-accent); color: var(--tc-ink); }
.tc-btn--wa { background: var(--tc-wa); color: var(--tc-wa-ink); }
.tc-btn--wa-outline { background: transparent; color: var(--tc-wa-ink); border-color: var(--tc-wa); }
.tc-btn--tg { background: var(--tc-tg); color: #fff; }
.tc-btn--ghost { background: var(--tc-surface); color: var(--tc-ink); border-color: var(--tc-line); }
.tc-btn--loja { background: var(--loja-bg, var(--tc-accent)); color: var(--loja-fg, #fff); }

/* Grade de produtos */
.tc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
@media (min-width: 720px) { .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1040px) { .tc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tc-card {
	display: flex;
	flex-direction: column;
	background: var(--tc-surface);
	border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius);
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}
.tc-card:hover { transform: translateY(-2px); box-shadow: var(--tc-shadow); }
.tc-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #f3f3f3;
}
.tc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-card__noimg { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #f3f3f3 0 12px, #ececec 12px 24px); }
.tc-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: .2em .55em;
	border-radius: 8px;
	background: var(--tc-accent);
	color: var(--tc-ink);
	font-weight: 800;
	font-size: .82rem;
	letter-spacing: .01em;
}
.tc-card__play {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(27, 26, 23, .78);
}
.tc-card__play::after {
	content: "";
	position: absolute;
	left: 12px;
	top: 9px;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
}
.tc-card__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 14px; flex: 1; }
.tc-card__title { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.3; }
.tc-card__title a {
	color: var(--tc-ink);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tc-card__title a::after { content: ""; position: absolute; inset: 0; }
.tc-card { position: relative; }
.tc-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin-top: auto; }
.tc-card__price s { color: var(--tc-muted); font-size: .82rem; }
.tc-card__price strong { font-size: 1.15rem; font-weight: 800; color: var(--tc-ink); letter-spacing: -.01em; }
.tc-card__see { font-size: .95rem !important; color: var(--tc-accent-dark) !important; }
.tc-card__stores { font-size: .78rem; color: var(--tc-muted); }

/* Vídeo */
.tc-video { position: relative; width: 100%; background: #111; border-radius: var(--tc-radius); overflow: hidden; }
.tc-video--vertical { aspect-ratio: 9 / 16; max-width: 420px; margin-inline: auto; }
.tc-video--wide { aspect-ratio: 16 / 9; }
.tc-video iframe, .tc-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tc-video--embed { aspect-ratio: auto; background: transparent; }
.tc-video--embed iframe, .tc-video--embed blockquote { position: static; margin: 0 auto; }
.tc-video__lite { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #111; }
.tc-video__lite img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.tc-video__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border-radius: 50%;
	background: var(--tc-accent);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
	transition: transform .15s ease;
}
.tc-video__play::after {
	content: "";
	position: absolute;
	left: 28px;
	top: 22px;
	border-style: solid;
	border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent var(--tc-ink);
}
.tc-video__lite:hover .tc-video__play { transform: scale(1.06); }

/* Cupons */
.tc-cupons { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .tc-cupons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tc-cupons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tc-cupom {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	background: var(--tc-surface);
	border: 1px solid var(--tc-line);
	border-left: 6px solid var(--loja-bg, var(--tc-accent));
	border-radius: 0 var(--tc-radius) var(--tc-radius) 0;
}
.tc-cupom__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-cupom__loja { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tc-muted); }
.tc-cupom__badge { padding: .25em .6em; border-radius: 8px; background: var(--tc-accent-soft); color: var(--tc-accent-dark); font-weight: 800; font-size: .9rem; }
.tc-cupom__title { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--tc-ink); }
.tc-cupom__rules { margin: 0; font-size: .85rem; color: var(--tc-muted); }
.tc-cupom__until { display: inline-block; margin-left: .3em; font-weight: 600; }
.tc-cupom__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.tc-cupom__auto { align-self: center; font-size: .85rem; color: var(--tc-muted); flex: 1; }
.tc-copy {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 46px;
	padding: 0 4px 0 14px;
	border: 2px dashed var(--tc-ink);
	border-radius: 12px;
	background: var(--tc-bg);
	cursor: pointer;
	font: inherit;
}
.tc-copy__code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800; font-size: 1rem; letter-spacing: .05em; color: var(--tc-ink); }
.tc-copy__label { padding: .45em .8em; border-radius: 8px; background: var(--tc-ink); color: #fff; font-weight: 700; font-size: .85rem; }
.tc-copy.is-copied { border-style: solid; border-color: #0f8a5f; }
.tc-copy.is-copied .tc-copy__label { background: #0f8a5f; }

/* Chamada para grupos */
.tc-cta {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	margin: 28px 0;
	border-radius: calc(var(--tc-radius) + 4px);
	background: var(--tc-ink);
	color: #fff;
}
.tc-cta h2 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.2; color: #fff; }
.tc-cta p { margin: 0; color: rgba(255, 255, 255, .78); }
.tc-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-cta .tc-btn--wa-outline { color: #fff; }
@media (min-width: 820px) {
	.tc-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
	.tc-cta__text { max-width: 520px; }
}

.tc-empty { color: var(--tc-muted); }

/* Página de links */
.tc-links { max-width: 480px; margin: 0 auto; padding: 8px 0 24px; text-align: center; }
.tc-links__head { margin-bottom: 18px; }
.tc-links__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; display: inline-block; }
.tc-links__avatar--txt { display: inline-flex; align-items: center; justify-content: center; background: var(--tc-accent); color: var(--tc-ink); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; }
.tc-links__name { margin: 10px 0 2px; font-size: 1.3rem; font-weight: 800; }
.tc-links__slogan { margin: 0; color: var(--tc-muted); }
.tc-links__buttons { display: grid; gap: 10px; }
.tc-links__sub { margin: 28px 0 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tc-muted); }
.tc-links__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.tc-links__list a {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px 12px 8px 8px;
	background: var(--tc-surface);
	border: 1px solid var(--tc-line);
	border-radius: 12px;
	color: var(--tc-ink);
	text-decoration: none;
}
.tc-links__list img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.tc-links__ptitle { font-weight: 600; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-links__price { font-weight: 800; white-space: nowrap; }
.tc-links__social { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.tc-links__social a { color: var(--tc-muted); font-weight: 600; }
.tc-card__social { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .78rem; color: var(--tc-muted); }
.tc-card__star { color: #b77900; font-weight: 700; }
