/* ==========================================================================
   Conomiza — estilos do tema
   ========================================================================== */

:root {
	--verde: #16a34a;
	--verde-escuro: #0f7a37;
	--verde-claro: #dcfce7;
	--whats: #25d366;
	--texto: #18181b;
	--texto-suave: #52525b;
	--texto-fraco: #8a8a93;
	--fundo: #f3f4f3;
	--cartao: #ffffff;
	--borda: #e6e7e6;
	--raio: 16px;
	--sombra: 0 1px 2px rgba(16, 24, 16, .06), 0 2px 8px rgba(16, 24, 16, .04);
	--largura: 1040px;
	--fonte: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--fundo);
	color: var(--texto);
	font-family: var(--fonte);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.screen-reader-text, .pular-conteudo:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.pular-conteudo:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }

/* ---------- Barra do WhatsApp ---------- */

.barra-whats {
	position: relative;
	background: #18181b;
	color: #fff;
}
.barra-whats[hidden] { display: none; }
.barra-whats__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 52px;
	padding: 8px 48px;
	text-decoration: none;
}
.barra-whats__botao {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	background: var(--whats);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 6px 16px;
	border-radius: 999px;
}
.barra-whats__texto { font-weight: 500; font-size: 15px; }
.barra-whats__link:hover .barra-whats__botao { background: #1fb957; }
.barra-whats__fechar {
	position: absolute;
	top: 50%; right: 12px;
	transform: translateY(-50%);
	width: 32px; height: 32px;
	border: 0; border-radius: 50%;
	background: transparent;
	color: #d4d4d8;
	font-size: 22px;
	cursor: pointer;
}
.barra-whats__fechar:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Topo ---------- */

.topo {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--borda);
}
.topo__interno {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
	min-height: 64px;
	padding: 8px 20px;
}
.marca {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	color: var(--verde);
	text-decoration: none;
}
.marca__icone { display: inline-flex; }
.marca__nome { font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.marca__imagem { display: block; height: 40px; width: auto; }

.busca {
	position: relative;
	flex: 1;
	max-width: 560px;
	margin: 0 auto;
	color: var(--texto-suave);
}
.busca svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.busca input[type="search"] {
	width: 100%;
	height: 42px;
	padding: 0 14px 0 42px;
	border: 1px solid #d9dad9;
	border-radius: 10px;
	background: #f4f4f5;
	color: var(--texto);
	font: inherit;
	font-size: 15px;
}
.busca input[type="search"]:focus { outline: none; border-color: var(--verde); background: #fff; box-shadow: 0 0 0 3px var(--verde-claro); }

.menu-topo ul, .menu-rodape ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu-topo a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
}
.menu-topo a:hover { background: #f4f4f5; }

/* ---------- Estrutura ---------- */

.pagina {
	max-width: var(--largura);
	margin: 0 auto;
	padding: 20px 20px 48px;
}
.pagina--estreita { max-width: 820px; }
.pagina__titulo { font-size: 28px; line-height: 1.2; margin: 8px 0 20px; }
.secao-titulo { font-size: 20px; margin: 32px 0 12px; }

/* ---------- Banners ---------- */

.banners { margin-bottom: 24px; }
.banners__trilho {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: 20px;
}
.banners__trilho::-webkit-scrollbar { display: none; }
.banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex: 0 0 100%;
	min-height: 220px;
	padding: 36px 40px;
	scroll-snap-align: start;
	background: linear-gradient(110deg, var(--banner-cor1), var(--banner-cor2));
	color: #fff;
	overflow: hidden;
}
.banner__titulo { font-size: clamp(30px, 5vw, 48px); line-height: 1.05; font-weight: 800; margin: 0 0 8px; letter-spacing: -.01em; }
.banner__subtitulo { font-size: 19px; margin: 0 0 20px; opacity: .95; }
.banner__botao {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .22);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	backdrop-filter: blur(4px);
}
.banner__botao:hover { background: rgba(255, 255, 255, .34); }
.banner__imagem { max-height: 180px; width: auto; object-fit: contain; flex-shrink: 0; }
.banners__pontos { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banners__pontos button {
	width: 8px; height: 8px;
	padding: 0;
	border: 0; border-radius: 999px;
	background: #c9cbc9;
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}
.banners__pontos button[aria-current="true"] { width: 22px; background: var(--verde); }

/* ---------- Lojas ---------- */

.lojas { margin-bottom: 24px; }
.lojas__titulo { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.lojas__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lojas__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 66px;
	padding: 12px 24px;
	border-radius: 14px;
	background: var(--cor-loja);
	border: 2px solid transparent;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.lojas__item:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .14); }
.lojas__item--ativa { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--verde); }
.lojas__item img { display: block; height: 34px; width: auto; max-width: 100%; object-fit: contain; }
.lojas__item span { color: #fff; font-weight: 800; }

/* ---------- Abas ---------- */

.abas { display: flex; gap: 24px; margin: 0 0 14px; border-bottom: 1px solid var(--borda); }
.abas__item {
	position: relative;
	padding: 8px 2px 10px;
	color: var(--texto-suave);
	font-weight: 600;
	text-decoration: none;
}
.abas__item:hover { color: var(--texto); }
.abas__item--ativa { color: var(--verde); }
.abas__item--ativa::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--verde);
}

/* ---------- Card de cupom ---------- */

.lista__cupons { display: grid; gap: 12px; }
.lista__vazia { padding: 32px; text-align: center; color: var(--texto-suave); background: var(--cartao); border-radius: var(--raio); }

.cupom {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) 260px;
	align-items: center;
	gap: 20px;
	padding: 18px 20px;
	background: var(--cartao);
	border: 1px solid var(--borda);
	border-radius: var(--raio);
	box-shadow: var(--sombra);
}
.cupom--expirado { opacity: .6; }

.cupom__marca {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px; height: 96px;
	padding: 14px;
	border-radius: 14px;
	background: var(--cor-loja);
	text-decoration: none;
}
.cupom__marca img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.cupom__marca span { color: #fff; font-weight: 800; text-align: center; font-size: 14px; }

.cupom__corpo { min-width: 0; }
.cupom__selo {
	display: inline-block;
	margin-bottom: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--verde-claro);
	color: var(--verde-escuro);
	font-size: 13px;
	font-weight: 700;
}
.cupom__titulo { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.cupom__titulo a { text-decoration: none; }
.cupom__titulo a:hover { color: var(--verde); }
.cupom__condicoes { margin: 4px 0 0; font-size: 14px; color: var(--texto-suave); }
.cupom__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--texto-fraco);
}
.cupom__meta span { display: inline-flex; align-items: center; gap: 4px; }
.cupom__usos { color: #ea580c; font-weight: 600; }

.cupom__acao { display: flex; flex-direction: column; gap: 8px; }

/* Botão "Pegar cupom" com o fim do código aparecendo por baixo da dobra */
.cupom__revelar {
	position: relative;
	display: block;
	width: 100%;
	height: 46px;
	padding: 0;
	border: 2px dashed #86c99c;
	border-radius: 999px;
	background: #f3fbf5;
	color: var(--verde-escuro);
	cursor: pointer;
	overflow: hidden;
}
.cupom__revelar-fim {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	display: flex;
	align-items: center;
	padding-right: 16px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.cupom__revelar-texto {
	position: absolute;
	top: -2px; bottom: -2px; left: -2px;
	right: 74px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px 0 0 999px;
	background: var(--verde);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	transition: right .2s ease, background .2s ease;
}
/* A "orelha" dobrada na ponta do botão */
.cupom__revelar-texto::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	right: -20px;
	width: 20px;
	background: linear-gradient(to bottom left, transparent 50%, var(--verde-escuro) 50%);
	border-top-right-radius: 6px;
}
.cupom__revelar:hover .cupom__revelar-texto { right: 88px; background: #15913f; }

/* Depois de revelar */
.cupom__revelado[hidden], .cupom__revelar[hidden] { display: none; }
.cupom__revelado { display: flex; flex-direction: column; gap: 8px; animation: cz-surgir .2s ease; }
@keyframes cz-surgir { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.cupom__codigo-caixa {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	min-height: 46px;
	padding: 6px 4px 6px 14px;
	border: 2px dashed #86c99c;
	border-radius: 12px;
	background: #f3fbf5;
}
/* O código aparece sempre inteiro: códigos longos quebram de linha em vez de cortar. */
.cupom__codigo {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--texto);
	user-select: all;
}
.cupom__copiar {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	padding: 6px 8px;
	border-radius: 8px;
	color: var(--verde-escuro);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}
.cupom__copiar:hover { background: var(--verde-claro); }
/* "Copiado!" só muda a cor, sem crescer e empurrar o código. */
.cupom--copiado .cupom__copiar { color: var(--verde); }

.cupom__ir {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 46px;
	padding: 0 20px;
	border-radius: 999px;
	background: var(--verde);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: background .15s ease;
}
.cupom__ir:hover { background: #15913f; }
.cupom__expirado-rotulo { text-align: center; font-weight: 600; color: var(--texto-fraco); }

/* Card em destaque (página do cupom) */
.cupom--destaque { grid-template-columns: 120px minmax(0, 1fr); padding: 24px; }
.cupom--destaque .cupom__marca { width: 120px; height: 120px; }
.cupom--destaque .cupom__titulo { font-size: 24px; }
.cupom--destaque .cupom__acao { grid-column: 1 / -1; }

/* ---------- Topo da página da loja ---------- */

.loja-topo { position: relative; margin: -20px -20px 24px; }
.loja-topo__faixa {
	height: 150px;
	background:
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .14) 0 60px, transparent 61px),
		radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .1) 0 90px, transparent 91px),
		var(--cor-loja);
}
.loja-topo__cartao {
	position: relative;
	margin: -60px 20px 0;
	padding: 64px 28px 22px;
	background: var(--cartao);
	border-radius: 24px;
	box-shadow: var(--sombra);
}
.loja-topo__logo {
	position: absolute;
	top: -44px; left: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px; height: 96px;
	padding: 14px;
	border: 4px solid #fff;
	border-radius: 20px;
	background: var(--cor-loja);
	color: #fff;
	font-weight: 800;
	box-shadow: var(--sombra);
}
.loja-topo__logo img { width: 100%; height: auto; }
.loja-topo h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; }
.loja-topo p { margin: 0; color: var(--texto-suave); font-size: 17px; }
.loja-topo small { display: block; margin-top: 6px; color: var(--texto-fraco); font-size: 13px; }

/* ---------- Bloco do WhatsApp ---------- */

.cta-whats {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 40px;
	padding: 32px;
	border-radius: 20px;
	background: #18181b;
	color: #fff;
}
.cta-whats__icone {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 80px; height: 80px;
	border-radius: 50%;
	background: var(--whats);
}
.cta-whats__texto { flex: 1; }
.cta-whats h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.25; }
.cta-whats p { margin: 0; color: #d4d4d8; font-size: 17px; }
.cta-whats__botao {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	padding: 14px 24px;
	border-radius: 10px;
	background: var(--whats);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
	text-decoration: none;
}
.cta-whats__botao:hover { background: #1fb957; }

/* ---------- Página de cupom, blog, paginação ---------- */

.trilha { margin: 0 0 12px; font-size: 14px; color: var(--texto-fraco); }
.trilha a { color: var(--texto-suave); text-decoration: none; }
.trilha a:hover { color: var(--verde); }

.texto-cupom, .texto-pagina {
	margin-top: 16px;
	padding: 20px 24px;
	background: var(--cartao);
	border-radius: var(--raio);
	color: var(--texto-suave);
}
.texto-pagina { color: var(--texto); }
.texto-pagina img { height: auto; border-radius: 12px; }

.compartilhar {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 10px 16px;
	border: 1px solid var(--borda);
	border-radius: 999px;
	background: #fff;
	color: #15803d;
	font-weight: 600;
	text-decoration: none;
}
.compartilhar svg { color: var(--whats); }
.compartilhar:hover { border-color: var(--whats); }

.artigos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.artigo-card { padding: 16px; background: var(--cartao); border-radius: var(--raio); box-shadow: var(--sombra); }
.artigo-card img { width: 100%; height: auto; border-radius: 10px; }
.artigo-card h2 { margin: 10px 0 6px; font-size: 18px; line-height: 1.3; }
.artigo-card h2 a { text-decoration: none; }
.artigo-card p { margin: 0; color: var(--texto-suave); font-size: 15px; }

.paginacao, .navigation.pagination { margin-top: 24px; }
.paginacao, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-numbers {
	min-width: 40px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--cartao);
	border: 1px solid var(--borda);
	text-align: center;
	text-decoration: none;
	font-weight: 600;
}
.page-numbers.current { background: var(--verde); border-color: var(--verde); color: #fff; }

.vazio-404 { text-align: center; padding-top: 48px; }
.vazio-404 .cupom__ir { margin-top: 12px; }

/* ---------- Rodapé e aviso ---------- */

.rodape { border-top: 1px solid #dcdddc; background: var(--fundo); }
.rodape__interno { max-width: var(--largura); margin: 0 auto; padding: 28px 20px; text-align: center; color: var(--texto-suave); font-size: 15px; }
.rodape__interno p { margin: 4px 0; }
.rodape__aviso { font-size: 13px; color: var(--texto-fraco); }
.menu-rodape ul { justify-content: center; margin-bottom: 8px; }
.menu-rodape a { padding: 4px 8px; text-decoration: none; }

.aviso-copiado {
	position: fixed;
	left: 50%; bottom: 24px;
	z-index: 50;
	transform: translateX(-50%);
	padding: 12px 20px;
	border-radius: 12px;
	background: #18181b;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	animation: cz-surgir .2s ease;
}
.aviso-copiado[hidden] { display: none; }

/* ---------- Celular ---------- */

@media (max-width: 760px) {
	.barra-whats__link { gap: 10px; padding: 8px 44px 8px 12px; justify-content: flex-start; }
	.barra-whats__botao { font-size: 14px; padding: 5px 12px; }
	.barra-whats__texto { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

	.topo__interno { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
	.busca { order: 3; flex-basis: 100%; max-width: none; }
	.menu-topo { margin-left: auto; }
	.marca__nome { font-size: 20px; }

	.pagina { padding: 16px 16px 40px; }

	.banner { min-height: 180px; padding: 28px 24px; }
	.banner__subtitulo { font-size: 16px; }
	.banner__imagem { display: none; }

	.lojas__lista { display: flex; overflow-x: auto; margin-right: -16px; padding: 4px 16px 4px 0; scroll-snap-type: x proximity; scrollbar-width: none; }
	.lojas__lista::-webkit-scrollbar { display: none; }
	.lojas__item { flex: 0 0 168px; height: 58px; scroll-snap-align: start; }

	.cupom { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px; }
	.cupom__marca { width: 64px; height: 64px; padding: 8px; border-radius: 12px; }
	.cupom__acao { grid-column: 1 / -1; }
	.cupom__titulo { font-size: 16px; }
	.cupom--destaque { grid-template-columns: 72px minmax(0, 1fr); }
	.cupom--destaque .cupom__marca { width: 72px; height: 72px; }
	.cupom--destaque .cupom__titulo { font-size: 20px; }

	.loja-topo { margin: -16px -16px 20px; }
	.loja-topo__faixa { height: 110px; }
	.loja-topo__cartao { margin: -40px 16px 0; padding: 56px 20px 18px; }
	.loja-topo__logo { width: 80px; height: 80px; top: -36px; left: 20px; }
	.loja-topo h1 { font-size: 22px; }
	.loja-topo p { font-size: 15px; }

	.cta-whats { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
	.cta-whats__icone { width: 60px; height: 60px; }
	.cta-whats__icone svg { width: 32px; height: 32px; }
	.cta-whats h2 { font-size: 20px; }
	.cta-whats p { font-size: 15px; }
	.cta-whats__botao { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
