/* QueroTop Design — por cima do Blocksy.
   Tokens primeiro; componentes depois; layouts das páginas no fim. */

:root {
	--qt-ink: #13152b;          /* azul-marinho do cabeçalho */
	--qt-ink-2: #1d2142;
	--qt-ink-3: #2a2f57;
	--qt-green: #2fae4b;        /* verde da marca, legível em fundo claro */
	--qt-neon: #5cff4d;         /* verde do logo, só em fundo escuro */
	--qt-yellow: #ffd33d;
	--qt-orange: #f26b1d;
	--qt-bg: #f4f2ef;
	--qt-surface: #ffffff;
	--qt-text: #1f2633;
	--qt-muted: #687080;
	--qt-line: #e7e3dd;
	--qt-radius: 14px;
	--qt-radius-sm: 10px;
	--qt-shadow: 0 1px 2px rgba(19, 21, 43, .06), 0 8px 24px -12px rgba(19, 21, 43, .18);
	--qt-shadow-hover: 0 2px 4px rgba(19, 21, 43, .08), 0 18px 36px -16px rgba(19, 21, 43, .32);
	--qt-gap: clamp(16px, 2.2vw, 28px);
	--qt-heading: var(--qt-ink);       /* títulos e texto forte */
	--qt-solid: var(--qt-ink);         /* botões sólidos sobre superfície */
	--qt-solid-text: #fff;
	--qt-hover: var(--qt-orange);      /* hover de títulos e links */
	--qt-chip-bg: var(--qt-surface);
	--qt-on-neon: #0b0d1f;             /* texto sobre o verde neon: escuro nos dois temas */
	--qt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- base dos templates do plugin ---------- */

.qt-page #main {
	padding-top: 0;
	padding-bottom: 0;
}

.qt-home,
.qt-archive,
.qt-sidebar {
	font-family: var(--qt-font);
	color: var(--qt-text);
}

.qt-home a,
.qt-archive a,
.qt-sidebar a {
	text-decoration: none;
}

.qt-icon {
	flex: none;
	display: block;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* link que cobre o card inteiro, mantendo o título como único link acessível */
.qt-stretched::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ---------- miniaturas ---------- */

.qt-thumb {
	position: relative;
	overflow: hidden;
	background: var(--qt-ink) radial-gradient(120% 80% at 50% 0%, var(--qt-ink-3), var(--qt-ink));
	aspect-ratio: 4 / 3;
}

.qt-thumb__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

/* As capas são 1:1 com o logo "qTop" embaixo. Nos recortes mais largos que 1:1, alinhar
   pelo alto tira o logo inteiro em vez de cortá-lo ao meio. */
.qt-card--grid .qt-thumb__img,
.qt-card--row-wide .qt-thumb__img {
	object-position: 50% 0%;
}

.qt-card--overlay .qt-thumb__img {
	object-position: 50% 30%;
}

.qt-thumb__empty {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, .35);
}

/* ---------- badge e meta ---------- */

.qt-badge {
	--qt-cat: var(--qt-green);
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--qt-cat);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.4;
}

.qt-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: var(--qt-muted);
	font-size: 12.5px;
	line-height: 1.4;
}

.qt-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.qt-meta__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: .6;
}

/* ---------- cards ---------- */

.qt-card {
	position: relative;
	min-width: 0;
}

.qt-card__title {
	margin: 0;
	font-family: var(--qt-font);
	font-weight: 750;
	letter-spacing: -.01em;
	line-height: 1.28;
	text-transform: none;
}

.qt-card__title a {
	color: inherit;
}

.qt-card__excerpt {
	margin: 0;
	color: var(--qt-muted);
	font-size: 14.5px;
	line-height: 1.55;
}

/* grid */
.qt-card--grid {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--qt-radius);
	background: var(--qt-surface);
	box-shadow: var(--qt-shadow);
	transition: box-shadow .25s, transform .25s;
}

.qt-card--grid .qt-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
}

.qt-card--grid .qt-card__title {
	font-size: 17px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qt-card--grid .qt-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qt-card--grid .qt-meta {
	margin-top: auto;
	padding-top: 4px;
}

.qt-card--grid .qt-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.qt-card--grid:hover {
	box-shadow: var(--qt-shadow-hover);
	transform: translateY(-3px);
}

.qt-card:hover .qt-thumb__img {
	transform: scale(1.045);
}

.qt-card:hover .qt-card__title a,
.qt-card:focus-within .qt-card__title a {
	color: var(--qt-hover);
}

/* overlay */
.qt-card--overlay {
	overflow: hidden;
	border-radius: var(--qt-radius);
	background: var(--qt-ink);
	isolation: isolate;
	color: #fff;
}

.qt-card--overlay .qt-thumb {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.qt-card--overlay .qt-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(19, 21, 43, 0) 30%, rgba(19, 21, 43, .72) 62%, rgba(19, 21, 43, .96) 100%);
}

.qt-card--overlay .qt-card__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	height: 100%;
	padding: clamp(16px, 2.4vw, 28px);
}

.qt-card--overlay .qt-card__title {
	color: #fff;
	font-size: clamp(17px, 1.5vw, 20px);
	text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

.qt-card--overlay .qt-card__excerpt {
	color: rgba(255, 255, 255, .82);
	max-width: 62ch;
}

.qt-card--overlay .qt-meta {
	color: rgba(255, 255, 255, .72);
}

.qt-card--overlay:hover .qt-card__title a,
.qt-card--overlay:focus-within .qt-card__title a {
	color: var(--qt-yellow);
}

/* hero: painel de texto + capa quadrada */
.qt-card--hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
	height: 100%;
	min-height: 440px;
	background:
		radial-gradient(80% 90% at 0% 100%, rgba(92, 255, 77, .10), transparent 60%),
		linear-gradient(120deg, var(--qt-ink) 0%, var(--qt-ink-2) 100%);
	color: rgba(255, 255, 255, .8);
}

.qt-card--hero .qt-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: clamp(24px, 3.2vw, 44px);
	padding-bottom: 72px;
}

.qt-card--hero .qt-card__title {
	color: #fff;
	font-size: clamp(24px, 2.5vw, 34px);
	line-height: 1.14;
	letter-spacing: -.025em;
}

.qt-card--hero .qt-card__excerpt {
	color: rgba(255, 255, 255, .75);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qt-card--hero .qt-meta {
	color: rgba(255, 255, 255, .6);
}

.qt-card--hero .qt-thumb {
	aspect-ratio: auto;
	height: 100%;
	background: transparent;
}

/* emenda suave entre o painel e a capa (as capas já têm fundo escuro) */
.qt-card--hero .qt-thumb::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 1;
	width: 45%;
	background: linear-gradient(90deg, var(--qt-ink-2) 0%, rgba(29, 33, 66, .6) 40%, transparent 100%);
	pointer-events: none;
}

/* fora do carrossel (destaque da categoria): sem espaço reservado para as setas */
.qt-card--hero-static {
	min-height: 380px;
	border-radius: var(--qt-radius);
	overflow: hidden;
	box-shadow: var(--qt-shadow);
}

.qt-card--hero-static .qt-card__body {
	padding-bottom: clamp(24px, 3.2vw, 44px);
}

.qt-card--hero-static.qt-card--hero {
	grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
}

.qt-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin-top: 4px;
	color: var(--qt-neon);
	font-size: 14.5px;
	font-weight: 700;
	transition: gap .2s;
}

.qt-card--hero:hover .qt-card__cta {
	gap: 12px;
}

.qt-card--hero:hover .qt-card__title a {
	color: var(--qt-yellow);
}

.qt-card--pick {
	min-height: 200px;
}

.qt-card--feature {
	min-height: 360px;
}

.qt-card--feature .qt-card__title {
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.2;
}

/* row */
.qt-card--row {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 14px;
	align-items: center;
}

.qt-card--row .qt-thumb {
	aspect-ratio: 1;
	border-radius: var(--qt-radius-sm);
}

.qt-card--row .qt-card__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.qt-card--row .qt-card__title {
	font-size: 15px;
	line-height: 1.32;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.qt-card__kicker {
	color: var(--qt-cat, var(--qt-green));
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.qt-card--row-wide {
	grid-template-columns: minmax(180px, 38%) 1fr;
	gap: 20px;
	padding: 14px;
	border-radius: var(--qt-radius);
	background: var(--qt-surface);
	box-shadow: var(--qt-shadow);
}

.qt-card--row-wide .qt-thumb {
	aspect-ratio: 4 / 3;
}

.qt-card--row-wide .qt-card__title {
	font-size: 18px;
}

/* ---------- seções ---------- */

.qt-section {
	margin-bottom: clamp(36px, 5vw, 56px);
}

.qt-section__head {
	--qt-cat: var(--qt-green);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--qt-line);
	position: relative;
}

.qt-section__head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 64px;
	height: 3px;
	border-radius: 3px;
	background: var(--qt-cat);
}

.qt-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: var(--qt-font);
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
	color: var(--qt-heading);
}

.qt-section__icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: color-mix(in srgb, var(--qt-cat) 14%, transparent);
	color: var(--qt-cat);
}

.qt-section__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	color: var(--qt-heading);
	font-size: 14px;
	font-weight: 650;
	transition: color .2s, gap .2s;
}

.qt-section__more:hover {
	color: var(--qt-orange);
	gap: 9px;
}

.qt-grid {
	display: grid;
	gap: var(--qt-gap);
}

.qt-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qt-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qt-grid__wide {
	grid-column: 1 / -1;
}

/* destaque + lista */
.qt-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: var(--qt-gap);
	align-items: stretch;
}

.qt-feature__list {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	padding: 18px;
	border-radius: var(--qt-radius);
	background: var(--qt-surface);
	box-shadow: var(--qt-shadow);
}

.qt-feature__list .qt-card--row + .qt-card--row {
	padding-top: 14px;
	border-top: 1px solid var(--qt-line);
}

/* blocos de assunto */
.qt-topics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--qt-gap);
}

.qt-topic {
	display: flex;
	flex-direction: column;
	border-radius: var(--qt-radius);
	background: var(--qt-surface);
	box-shadow: var(--qt-shadow);
	overflow: hidden;
	border-top: 3px solid var(--qt-cat);
}

.qt-topic__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--qt-line);
	color: var(--qt-heading);
}

.qt-topic__icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: color-mix(in srgb, var(--qt-cat) 14%, transparent);
	color: var(--qt-cat);
}

.qt-topic__name {
	font-weight: 800;
	font-size: 16px;
}

.qt-topic__count {
	margin-left: auto;
	color: var(--qt-muted);
	font-size: 12.5px;
}

.qt-topic__head:hover .qt-topic__name {
	color: var(--qt-cat);
}

.qt-topic__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 18px 18px;
}

.qt-topic__list .qt-card--row {
	grid-template-columns: 64px 1fr;
	gap: 12px;
}

.qt-topic__list .qt-card--row .qt-card__title {
	font-size: 14px;
	-webkit-line-clamp: 2;
}

/* ---------- carrossel do hero ---------- */

.qt-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--qt-gap);
	padding-top: clamp(20px, 3vw, 36px);
	padding-bottom: 8px;
}

.qt-hero__side {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: var(--qt-gap);
}

.qt-carousel {
	position: relative;
	min-width: 0;
	border-radius: var(--qt-radius);
	overflow: hidden;
	box-shadow: var(--qt-shadow);
}

.qt-carousel__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.qt-carousel__track::-webkit-scrollbar {
	display: none;
}

.qt-carousel__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.qt-carousel__slide .qt-card--hero {
	border-radius: 0;
}

.qt-carousel__nav {
	position: absolute;
	right: clamp(16px, 2.4vw, 28px);
	bottom: 18px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 10px;
}

.qt-carousel__dots {
	display: flex;
	gap: 6px;
}

.qt-carousel__dots button {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .45);
	cursor: pointer;
	transition: width .3s, background .3s;
}

.qt-carousel__dots button[aria-selected="true"] {
	width: 26px;
	background: var(--qt-neon);
}

.qt-carousel__btn,
.qt-scroller__btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: rgba(19, 21, 43, .55);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background .2s, border-color .2s, opacity .2s;
}

.qt-carousel__btn:hover,
.qt-carousel__btn:focus-visible {
	background: var(--qt-ink);
	border-color: var(--qt-neon);
}

/* ---------- scroller horizontal ---------- */

.qt-scroller {
	position: relative;
}

.qt-scroller__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--qt-gap)) / 3);
	gap: var(--qt-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 2px 14px;
	margin: -4px -2px -14px;
	/* Snap no início do padding (scrollLeft 0). Sem isso o navegador rola a trilha 2px sozinho ao
	   carregar, e o Chrome trata essa rolagem como interação: para de medir o LCP (NO_LCP na home). */
	scroll-padding-inline: 2px;
}

.qt-scroller__track::-webkit-scrollbar {
	display: none;
}

.qt-scroller__item {
	scroll-snap-align: start;
	display: flex;
}

.qt-scroller__item > .qt-card {
	width: 100%;
}

.qt-scroller__btn {
	position: absolute;
	top: 30%;
	z-index: 3;
	background: var(--qt-surface);
	color: var(--qt-heading);
	border-color: var(--qt-line);
	box-shadow: var(--qt-shadow);
}

.qt-scroller__btn.is-prev {
	left: -14px;
}

.qt-scroller__btn.is-next {
	right: -14px;
}

.qt-scroller__btn:hover {
	background: var(--qt-solid);
	color: var(--qt-solid-text);
}

.qt-scroller__btn[disabled] {
	opacity: 0;
	pointer-events: none;
}

/* ---------- chips de categoria ---------- */

.qt-chips {
	margin: clamp(20px, 3vw, 32px) 0;
}

.qt-chips__track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px;
	margin: -2px;
}

.qt-chips__track::-webkit-scrollbar {
	display: none;
}

/* desktop: todas as categorias visíveis (quebrando linha); celular: faixa rolável */
@media (min-width: 1000px) {
	.qt-chips__track {
		flex-wrap: wrap;
		overflow: visible;
	}
}

.qt-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	padding: 9px 16px 9px 12px;
	border-radius: 999px;
	background: var(--qt-surface);
	border: 1px solid var(--qt-line);
	color: var(--qt-heading) !important;
	font-family: var(--qt-font);
	font-size: 14px;
	font-weight: 650;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.qt-chip .qt-icon {
	color: var(--qt-cat);
}

.qt-chip:hover {
	border-color: var(--qt-cat);
	box-shadow: 0 6px 18px -10px var(--qt-cat);
	transform: translateY(-1px);
}

.qt-chip.is-current {
	background: var(--qt-cat);
	border-color: var(--qt-cat);
	color: #fff !important;
}

.qt-chip.is-current .qt-icon {
	color: #fff;
}

/* ---------- faixa de ofertas ---------- */

.qt-band {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: var(--qt-gap);
	align-items: center;
	margin-bottom: clamp(36px, 5vw, 56px);
	padding: clamp(22px, 3vw, 34px);
	border-radius: var(--qt-radius);
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(92, 255, 77, .14), transparent 60%),
		radial-gradient(70% 100% at 0% 100%, rgba(255, 211, 61, .10), transparent 60%),
		var(--qt-ink);
	color: rgba(255, 255, 255, .8);
	box-shadow: var(--qt-shadow);
}

.qt-band__eyebrow,
.qt-promo__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--qt-neon);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.qt-band__title {
	margin: 10px 0 8px;
	color: #fff;
	font-family: var(--qt-font);
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
}

.qt-band p {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
}

.qt-band__cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.qt-band__cards .qt-card--row {
	padding: 12px;
	border-radius: var(--qt-radius-sm);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .08);
	transition: background .2s, border-color .2s;
}

.qt-band__cards .qt-card--row:hover {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(92, 255, 77, .35);
}

.qt-band__cards .qt-card__title {
	color: #fff;
}

.qt-band__cards .qt-meta {
	color: rgba(255, 255, 255, .6);
}

.qt-band__cards .qt-card--row:hover .qt-card__title a {
	color: var(--qt-yellow);
}

/* ---------- botões ---------- */

.qt-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	font-family: var(--qt-font);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.2;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.qt-btn--neon {
	background: var(--qt-neon);
	color: var(--qt-on-neon) !important;
	box-shadow: 0 6px 22px -8px rgba(92, 255, 77, .65);
}

.qt-btn--neon:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px -8px rgba(92, 255, 77, .8);
}

.qt-btn--ghost {
	border: 1.5px solid var(--qt-heading);
	color: var(--qt-heading) !important;
}

.qt-btn--ghost:hover {
	background: var(--qt-solid);
	color: var(--qt-solid-text) !important;
}

.qt-more {
	display: flex;
	justify-content: center;
	margin-bottom: clamp(40px, 6vw, 64px);
}

/* ---------- layout com sidebar ---------- */

.qt-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(28px, 3.5vw, 48px);
	align-items: start;
}

.qt-layout__side {
	position: sticky;
	top: 24px;
	padding-bottom: 40px;
}

.admin-bar .qt-layout__side {
	top: 56px;
}

/* ---------- sidebar ---------- */

.qt-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.qt-widget {
	padding: 20px;
	border-radius: var(--qt-radius);
	background: var(--qt-surface);
	box-shadow: var(--qt-shadow);
}

.qt-widget__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--qt-heading);
	font-family: var(--qt-font);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -.01em;
	text-transform: none;
}

.qt-widget__title .qt-icon {
	color: var(--qt-hover);
}

.qt-widget--search {
	padding: 6px;
}

.qt-search {
	display: flex;
	align-items: center;
	gap: 4px;
}

.qt-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--qt-radius-sm);
	background: transparent;
	color: var(--qt-text);
	font-family: var(--qt-font);
	font-size: 15px;
	box-shadow: none;
}

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

.qt-widget--search:focus-within {
	box-shadow: 0 0 0 2px var(--qt-green), var(--qt-shadow);
}

.qt-search button {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--qt-radius-sm);
	background: var(--qt-solid);
	color: var(--qt-solid-text);
	cursor: pointer;
	transition: background .2s;
}

.qt-search button:hover {
	background: var(--qt-green);
}

.qt-search--wide {
	max-width: 560px;
	margin-top: 20px;
	padding: 6px;
	border-radius: var(--qt-radius);
	background: var(--qt-surface);
	box-shadow: var(--qt-shadow);
}

/* mais lidos */
.qt-ranks {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.qt-rank {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 12px;
	align-items: start;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--qt-line);
}

.qt-rank:first-child {
	padding-top: 2px;
	border-top: 0;
}

.qt-rank:last-child {
	padding-bottom: 0;
}

.qt-rank__n {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--qt-bg);
	color: var(--qt-heading);
	font-size: 15px;
	font-weight: 800;
}

/* os três primeiros têm o número colorido (só o número) */
.qt-rank:nth-child(-n+3) .qt-rank__n {
	background: var(--qt-rank-color);
	color: #12140f;
	box-shadow: 0 4px 12px -6px var(--qt-rank-color);
}

.qt-rank:nth-child(1) {
	--qt-rank-color: #3ddc55;
}

.qt-rank:nth-child(2) {
	--qt-rank-color: #ffcc33;
}

.qt-rank:nth-child(3) {
	--qt-rank-color: #ff8a3d;
}

.qt-rank__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--qt-text) !important;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.35;
}

.qt-rank__title:hover {
	color: var(--qt-hover) !important;
}

.qt-rank__cat {
	display: block;
	margin-top: 3px;
	color: var(--qt-muted);
	font-size: 12px;
}

/* promo */
.qt-widget--promo {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(92, 255, 77, .18), transparent 55%),
		var(--qt-ink);
	color: rgba(255, 255, 255, .78);
}

.qt-promo__title {
	margin: 10px 0 6px;
	color: #fff;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.25;
}

.qt-promo__text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
}

/* categorias */
.qt-catlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.qt-catlist li {
	margin: 0;
}

.qt-catlist a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px;
	margin: 0 -8px;
	border-radius: 9px;
	color: var(--qt-text) !important;
	font-size: 14.5px;
	font-weight: 600;
	transition: background .2s;
}

.qt-catlist a:hover {
	background: color-mix(in srgb, var(--qt-cat) 9%, transparent);
}

.qt-catlist__icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--qt-cat) 14%, transparent);
	color: var(--qt-cat);
}

.qt-catlist__count {
	margin-left: auto;
	min-width: 28px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--qt-bg);
	color: var(--qt-muted);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

/* como escolhemos */
.qt-checks {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.qt-checks li {
	display: flex;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.qt-checks .qt-icon {
	margin-top: 2px;
	color: var(--qt-green);
}

.qt-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--qt-heading) !important;
	font-size: 14px;
	font-weight: 700;
}

.qt-link:hover {
	color: var(--qt-hover) !important;
}

/* ---------- arquivo (categorias/busca) ---------- */

.qt-archive__head {
	--qt-cat: var(--qt-green);
	padding: clamp(28px, 4vw, 48px) 0 4px;
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--qt-cat) 8%, transparent), transparent);
}

.qt-archive__title-row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.qt-archive__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--qt-cat);
	color: #fff;
	box-shadow: 0 10px 24px -12px var(--qt-cat);
}

.qt-archive__title {
	margin: 0;
	color: var(--qt-heading);
	font-family: var(--qt-font);
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.1;
}

.qt-archive__page {
	color: var(--qt-muted);
	font-size: .55em;
	font-weight: 600;
	letter-spacing: 0;
}

.qt-archive__desc {
	margin: 6px 0 0;
	color: var(--qt-muted);
	font-size: 15.5px;
}

.qt-archive .qt-layout {
	padding-top: 8px;
}

.qt-archive .qt-layout__main {
	padding-bottom: clamp(40px, 6vw, 64px);
}

.qt-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: clamp(28px, 4vw, 44px);
}

.qt-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 12px;
	background: var(--qt-surface);
	color: var(--qt-heading);
	font-weight: 700;
	box-shadow: var(--qt-shadow);
	transition: background .2s, color .2s;
}

.qt-pagination a.page-numbers:hover {
	background: var(--qt-solid);
	color: var(--qt-solid-text);
}

.qt-pagination .current {
	background: var(--qt-green);
	color: #fff;
}

.qt-pagination .dots {
	background: transparent;
	box-shadow: none;
}

.qt-empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 56px 24px;
	border-radius: var(--qt-radius);
	background: var(--qt-surface);
	color: var(--qt-muted);
	text-align: center;
	box-shadow: var(--qt-shadow);
}

/* ---------- post individual: sidebar do Blocksy ---------- */

.qt-single [data-sidebar] {
	--sidebar-width: 320px;
	--sidebar-width-no-unit: 26;
	--sidebar-gap: clamp(28px, 3.5vw, 48px);
}

/* entre 1000 e 1200px a coluna do post fica estreita; sidebar um pouco menor dá fôlego ao conteúdo */
@media (max-width: 1199px) {
	.qt-single [data-sidebar] {
		--sidebar-width: 280px;
		--sidebar-gap: 28px;
	}
}

.qt-single aside#sidebar {
	padding-top: 8px;
}

/* Com sidebar, o Blocksy põe o post num grid; item de grid tem min-width:auto e a tabela comparativa
   (mais larga que a coluna) não pode alargá-la. */
.qt-single [data-sidebar] > article {
	min-width: 0;
}

/* Abaixo de 1000px a sidebar fica embaixo do conteúdo. Sem sidebar, o Blocksy usava um container de borda a
   borda (ct-container-full) e deixava as margens para o Elementor; com sidebar ele usa o ct-container comum, cuja
   margem se soma ao padding do Elementor e estreita os cards de produto (o "Ver preço agora" quebrava).
   Aqui o post volta a ir de borda a borda, e só a sidebar mantém a margem do container. */
@media (max-width: 999px) {
	.qt-single .ct-container[data-sidebar] {
		width: 100%;
		max-width: none;
		margin-inline: 0;
	}

	.qt-single [data-sidebar] > aside {
		width: var(--theme-container-width);
		margin-inline: auto;
	}
}

.qt-single aside#sidebar .ct-sidebar {
	padding: 0;
}

.qt-single aside#sidebar[data-sticky] .ct-sidebar,
.qt-single aside#sidebar .ct-sidebar[data-sticky] {
	top: 24px;
}

/* ---------- rodapé ---------- */

.qt-footer {
	padding: clamp(40px, 6vw, 64px) 0 0;
	background:
		radial-gradient(60% 80% at 100% 0%, rgba(92, 255, 77, .07), transparent 60%),
		var(--qt-ink);
	color: rgba(255, 255, 255, .68);
	font-family: var(--qt-font);
	font-size: 14.5px;
	line-height: 1.6;
}

.qt-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px);
	padding-bottom: clamp(28px, 4vw, 40px);
}

.qt-footer__logo {
	display: inline-block;
	margin-bottom: 14px;
}

.qt-footer__logo img {
	display: block;
	width: auto;
	height: 52px;
}

.qt-footer__brand p {
	max-width: 40ch;
	margin: 0 0 18px;
}

.qt-footer__search {
	max-width: 360px;
}

.qt-footer__title {
	margin: 4px 0 14px;
	color: #fff;
	font-family: var(--qt-font);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.qt-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qt-footer__col li {
	margin: 0;
}

.qt-footer__col a {
	color: rgba(255, 255, 255, .72);
	text-decoration: none;
	transition: color .2s;
}

.qt-footer__col a:hover {
	color: var(--qt-neon);
}

.qt-footer__col a.qt-footer__hl {
	color: var(--qt-yellow);
}

.qt-footer__disclosure {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 20px 0 22px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .5);
	font-size: 12.5px;
	line-height: 1.55;
}

.qt-footer__disclosure .qt-icon {
	margin-top: 2px;
	color: var(--qt-neon);
}

/* "Em alta agora" do Blocksy Companion: repete o "Mais lidos" da sidebar.
   O Companion carrega as extensões antes deste plugin, então não dá para desligar por filtro;
   para tirar também a consulta, desative a extensão Trending no painel do Blocksy. */
.ct-trending-block {
	display: none !important;
}

/* rodapé do Blocksy: o aviso já está acima; fica só a linha de copyright, na cor do rodapé novo */
#footer [data-row="top"] {
	display: none;
}

#footer [data-row="bottom"] {
	background: var(--qt-ink) !important;
	border-top: 1px solid rgba(255, 255, 255, .06);
}

#footer [data-row="bottom"] .ct-footer-copyright {
	color: rgba(255, 255, 255, .45);
	font-size: 12.5px;
}

#footer [data-row="bottom"] .ct-footer-copyright a {
	color: var(--qt-neon);
}

/* ---------- post: cabeçalho do tema (título, breadcrumbs, autor) ---------- */

.qt-single .hero-section[data-type="type-1"] .entry-header {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* breadcrumbs como rótulo acima do título; o último item repetia o título e fica só para o schema */
.qt-single .entry-header .ct-breadcrumbs {
	order: -1;
	margin: 0;
	color: var(--qt-muted);
	font-family: var(--qt-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.qt-single .entry-header .ct-breadcrumbs .last-item,
.qt-single .entry-header .ct-breadcrumbs > span:has(+ .last-item) .ct-separator {
	display: none;
}

.qt-single .entry-header .ct-breadcrumbs a {
	color: var(--qt-hover);
}

.qt-single .entry-header .page-title {
	margin: 0;
	color: var(--qt-heading);
	font-family: "Sora", var(--qt-font);
	font-size: clamp(26px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -.028em;
}

.qt-single .entry-header .entry-meta {
	margin: 0;
	color: var(--qt-muted);
	font-family: var(--qt-font);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .02em;
}

.qt-single .entry-header .entry-meta a {
	color: var(--qt-heading);
}

.qt-single .entry-header .entry-meta img {
	border-radius: 50%;
}

/* ---------- menu: destaque para Ofertas ---------- */

.header-menu-1 .qt-menu-ofertas > a,
[data-id="menu"] .qt-menu-ofertas > a {
	color: var(--qt-yellow) !important;
}

/* ---------- responsivo ---------- */

@media (max-width: 1100px) {
	.qt-layout {
		grid-template-columns: minmax(0, 1fr) 290px;
	}

	.qt-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qt-scroller__track {
		grid-auto-columns: calc((100% - var(--qt-gap)) / 2);
	}
}

@media (max-width: 999px) {
	.qt-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.qt-layout__side {
		position: static;
	}

	.qt-sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.qt-widget--search {
		grid-column: 1 / -1;
	}

	.qt-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.qt-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.qt-footer__brand {
		grid-column: 1 / -1;
	}

	.qt-hero__side {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
	}

	.qt-card--hero {
		min-height: 400px;
	}
}

@media (max-width: 689px) {
	:root {
		--qt-gap: 16px;
	}

	.qt-sidebar,
	.qt-hero__side,
	.qt-feature,
	.qt-topics,
	.qt-band,
	.qt-grid--2,
	.qt-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.qt-card--hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.qt-card--hero .qt-thumb {
		order: -1;
		aspect-ratio: 4 / 3;
		height: auto;
	}

	.qt-card--hero .qt-thumb::before {
		inset: auto 0 0 0;
		width: auto;
		height: 35%;
		background: linear-gradient(0deg, var(--qt-ink), transparent);
	}

	.qt-card--hero .qt-card__body {
		padding: 18px 18px 76px;
	}

	.qt-card--hero-static.qt-card--hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.qt-card--hero-static .qt-card__body {
		padding: 18px 18px 22px;
	}

	.qt-card--hero .qt-card__cta {
		display: none;
	}

	.qt-card--pick {
		min-height: 180px;
	}

	/* destaque empilhado: capa inteira em cima, texto embaixo */
	.qt-card--feature {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.qt-card--feature .qt-thumb {
		position: relative;
		aspect-ratio: 4 / 3;
	}

	.qt-card--feature .qt-thumb::after {
		background: linear-gradient(180deg, transparent 60%, var(--qt-ink) 100%);
	}

	.qt-card--feature .qt-card__body {
		padding: 4px 18px 20px;
	}

	/* grade de reviews: primeiro card grande, os demais compactos */
	.qt-grid--3 > .qt-card--grid:not(:first-child),
	.qt-grid--2 > .qt-card--grid {
		display: grid;
		grid-template-columns: 112px 1fr;
		align-items: stretch;
	}

	.qt-grid--3 > .qt-card--grid:not(:first-child) .qt-thumb,
	.qt-grid--2 > .qt-card--grid .qt-thumb {
		aspect-ratio: auto;
		height: 100%;
		min-height: 112px;
	}

	.qt-grid--3 > .qt-card--grid:not(:first-child) .qt-card__body,
	.qt-grid--2 > .qt-card--grid .qt-card__body {
		gap: 6px;
		padding: 12px 14px;
	}

	.qt-grid--3 > .qt-card--grid:not(:first-child) .qt-card__title,
	.qt-grid--2 > .qt-card--grid .qt-card__title {
		font-size: 15px;
	}

	.qt-grid--3 > .qt-card--grid:not(:first-child) .qt-card__excerpt,
	.qt-grid--3 > .qt-card--grid:not(:first-child) .qt-badge,
	.qt-grid--2 > .qt-card--grid .qt-card__excerpt,
	.qt-grid--2 > .qt-card--grid .qt-badge {
		display: none;
	}

	.qt-carousel__nav {
		left: 16px;
		right: 16px;
		justify-content: space-between;
	}

	.qt-scroller__track {
		grid-auto-columns: 78%;
	}

	.qt-scroller__btn {
		display: none;
	}

	.qt-card--row-wide {
		grid-template-columns: 110px 1fr;
		gap: 14px;
	}

	.qt-card--row-wide .qt-thumb {
		aspect-ratio: 1;
	}

	.qt-card--row-wide .qt-card__excerpt {
		display: none;
	}

	.qt-card--row-wide .qt-card__title {
		font-size: 16px;
	}

	.qt-section__more {
		font-size: 13px;
	}

	.qt-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.qt-archive__icon {
		width: 46px;
		height: 46px;
		border-radius: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.qt-carousel__track,
	.qt-scroller__track {
		scroll-behavior: auto;
	}

	.qt-thumb__img,
	.qt-card--grid,
	.qt-chip,
	.qt-btn {
		transition: none;
	}
}
