/**
 * Vitrine, biblioteca e conta — desenhado para conviver com qualquer tema/Elementor.
 * Todo o CSS é escopado em .hqt-scope para não vazar.
 */

.hqt-scope {
	--hqt-primary: #F5A623;
	--hqt-accent: #FFD166;
	--hqt-ink: #221A52;
	--hqt-paper: #FFF7EA;
	--hqt-cta-ink: #4A2D00;
	--hqt-muted: #6E6785;
	--hqt-line: rgba(42, 33, 64, .12);
	color: var(--hqt-ink);
	font-family: "Nunito", inherit;
	container-type: inline-size;
}

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

/* ------------------------------------------------------------------ grid */

.hqt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
}
.hqt-grid--cols-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hqt-grid--cols-4 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 480px) {
	.hqt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
/* O tema de blocos limita o conteúdo a ~620px, o que cabia em 2 colunas.
   A biblioteca e a vitrine saem dessa faixa e ocupam até 1080px: 3 colunas. */
/* Centraliza em qualquer contêiner (estreito de 620px ou largura total):
   a margem esquerda é "metade do contêiner menos metade do bloco", e o
   contêiner do tema está sempre centralizado na janela. */
/* Duas classes para vencer o "margin: auto !important" do layout do tema. */
.hqt-scope.hqt-scope--library, .hqt-scope.hqt-scope--store {
	position: static; left: auto; transform: none;
	width: min(1080px, calc(100vw - 32px)); max-width: none;
	margin-left: calc(50% - min(540px, 50vw - 16px)) !important;
	margin-right: 0 !important;
}
@media (min-width: 720px) {
	.hqt-scope--library .hqt-grid, .hqt-scope--store .hqt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ card */

.hqt-card {
	background: #fff;
	border-radius: 22px;
	border: 1px solid var(--hqt-line);
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(42, 33, 64, .04), 0 18px 40px -28px rgba(42, 33, 64, .5);
	transition: transform .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s ease;
}
.hqt-card:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(42, 33, 64, .05), 0 28px 50px -26px rgba(42, 33, 64, .55); }
.hqt-card:focus-within { outline: 3px solid var(--hqt-primary); outline-offset: 2px; }

.hqt-card__link { display: grid; text-decoration: none; color: inherit; height: 100%; }
.hqt-card__link:focus { outline: none; }

.hqt-card__art {
	position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
	background: linear-gradient(160deg, color-mix(in srgb, var(--hqt-primary) 16%, #fff), color-mix(in srgb, var(--hqt-accent) 22%, #fff));
}
.hqt-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.hqt-card:hover .hqt-card__art img { transform: scale(1.04); }
.hqt-card__placeholder {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-size: 3rem; color: color-mix(in srgb, var(--hqt-primary) 55%, #fff);
}

.hqt-card__badge {
	position: absolute; top: 12px; left: 12px;
	font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
	padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.hqt-card__badge--full { background: #1F9D55; color: #fff; }
.hqt-card__badge--sample { background: var(--hqt-accent); color: #4A2D00; }
.hqt-card__badge--locked { background: rgba(34, 26, 82, .82); color: #FFD166; }

.hqt-card__body { display: grid; gap: 6px; padding: 16px 16px 18px; align-content: start; }
.hqt-card__title { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.hqt-card__song { font-size: .82rem; color: color-mix(in srgb, var(--hqt-primary) 70%, #7A4A00); font-weight: 700; }
.hqt-card__excerpt { font-size: .85rem; color: var(--hqt-muted); line-height: 1.45; }
.hqt-card__meta { font-size: .74rem; color: var(--hqt-muted); opacity: .8; }
.hqt-card__cta {
	margin-top: 8px; font-size: .88rem; font-weight: 800; color: color-mix(in srgb, var(--hqt-ink) 85%, var(--hqt-primary));
}
.hqt-card:hover .hqt-card__cta { text-decoration: underline; text-underline-offset: 3px; }
.hqt-card__kind { font-weight: 800; color: color-mix(in srgb, var(--hqt-primary) 70%, #7A4A00); }
.hqt-card__print {
	display: block; margin: 0 16px 16px; padding: 10px 14px; border-radius: 999px; text-align: center;
	font-size: .86rem; font-weight: 800; color: var(--hqt-ink); text-decoration: none;
	border: 1.5px solid var(--hqt-line); background: color-mix(in srgb, var(--hqt-primary) 8%, #fff);
}
.hqt-card__print:hover { border-color: var(--hqt-primary); }
.hqt-card__print--wait { opacity: .7; border-style: dashed; background: transparent; cursor: default; }
.hqt-card__print--som { margin-bottom: 8px; }

/* ------------------------------------------------- materiais que vêm junto */
.hqt-bonus { margin-top: 34px; padding-top: 26px; border-top: 1px dashed color-mix(in srgb, var(--hqt-primary) 45%, #fff); }
.hqt-bonus__head {
	margin: 0 0 16px; text-align: center; font-size: .8rem; letter-spacing: .14em;
	text-transform: uppercase; font-weight: 800; color: color-mix(in srgb, var(--hqt-primary) 75%, #7A4A00);
}
.hqt-grid--bonus { max-width: 720px; margin: 0 auto; }
.hqt-grid--bonus .hqt-card__media { aspect-ratio: 1 / 1.1; }

/* --------------------------------------------------------- presente */
.hqt-gift-promo {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px;
	margin: 28px 0 0; padding: 20px 22px; border-radius: 22px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--hqt-primary) 18%, #fff), color-mix(in srgb, var(--hqt-accent) 30%, #fff));
	border: 1px solid color-mix(in srgb, var(--hqt-primary) 40%, #fff);
}
.hqt-gift-promo__icon { font-size: 2.2rem; line-height: 1; }
.hqt-gift-promo__text { flex: 1 1 260px; display: grid; gap: 4px; }
.hqt-gift-promo__text strong { font-family: "Fredoka", "Nunito", sans-serif; font-size: 1.15rem; font-weight: 600; color: var(--hqt-ink); }
.hqt-gift-promo__text span { font-size: .92rem; color: var(--hqt-muted); line-height: 1.5; }
.hqt-gift-promo .hqt-btn { flex: 0 0 auto; }

/* -------------------------------------------------------------- library */

.hqt-library__head { margin-bottom: 22px; }
.hqt-library__title { font-family: "Fredoka", "Nunito", sans-serif; margin: 0 0 4px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; }
.hqt-library__hello { margin: 0; color: var(--hqt-muted); font-size: .96rem; }
.hqt-library__hello a { color: var(--hqt-primary); font-weight: 700; }
.hqt-library__sub {
	margin: 42px 0 18px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--hqt-muted); font-weight: 800;
}

.hqt-empty-state {
	text-align: center; padding: 44px 20px; border-radius: 24px;
	background: color-mix(in srgb, var(--hqt-primary) 6%, #fff);
	border: 1px dashed color-mix(in srgb, var(--hqt-primary) 30%, #fff);
}
.hqt-empty-state__icon { font-size: 2.2rem; margin: 0 0 8px; }
.hqt-empty-state__title { margin: 0 0 6px; font-weight: 800; font-size: 1.1rem; }
.hqt-empty-state__text { margin: 0 auto; max-width: 44ch; color: var(--hqt-muted); line-height: 1.55; }
.hqt-empty { color: var(--hqt-muted); }

/* -------------------------------------------------------------- account */

.hqt-account {
	background: #fff; border: 1px solid var(--hqt-line); border-radius: 22px;
	padding: 26px; max-width: 460px;
}
.hqt-account h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 900; }
.hqt-account__hello { margin: 0; font-size: 1.15rem; font-weight: 800; }
.hqt-account__count { margin: 2px 0 16px; color: var(--hqt-muted); }
.hqt-account input[type="text"],
.hqt-account input[type="password"] {
	width: 100%; padding: 13px 15px; border-radius: 12px;
	border: 1.5px solid var(--hqt-line); font: inherit; margin-top: 4px;
}
.hqt-account input:focus { outline: 3px solid color-mix(in srgb, var(--hqt-primary) 40%, transparent); border-color: var(--hqt-primary); }
.hqt-account .login-submit input {
	width: 100%; min-height: 52px; border: 0; border-radius: 999px; cursor: pointer;
	/* texto escuro sobre âmbar: branco sobre #F5A623 dá ~2:1 de contraste, ilegível */
	background: var(--hqt-primary); color: var(--hqt-cta-ink); font-weight: 800; font-size: 1rem; margin-top: 12px;
}
.hqt-account__lost { margin: 12px 0 0; font-size: .86rem; }
.hqt-account__lost a { color: var(--hqt-muted); }

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

.hqt-scope .hqt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
	font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease;
}
.hqt-scope .hqt-btn--primary {
	background: var(--hqt-primary); color: var(--hqt-cta-ink);
	box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--hqt-primary) 85%, #000);
}
.hqt-scope .hqt-btn--primary:hover { transform: translateY(-2px); }
.hqt-scope .hqt-btn--ghost {
	background: transparent; color: var(--hqt-ink);
	border: 1.5px solid var(--hqt-line);
}

/* ------------------------------------------------------ aviso de compra */

.hqt-notice {
	display: flex; gap: 14px; align-items: flex-start;
	background: color-mix(in srgb, var(--hqt-accent) 18%, #fff);
	border: 1px solid color-mix(in srgb, var(--hqt-accent) 45%, #fff);
	border-radius: 18px; padding: 18px 20px; margin: 0 0 22px;
}
.hqt-notice__icon { font-size: 1.4rem; line-height: 1; }
.hqt-notice p { margin: 0; line-height: 1.5; }
.hqt-notice a { color: var(--hqt-primary); font-weight: 800; }

/* ----------------------------------------------------------- depoimentos */

.hqt-depo { margin: 0; }
.hqt-depo__head { text-align: center; max-width: 46ch; margin: 0 auto 26px; }
.hqt-depo__title {
	font-family: "Fredoka", "Nunito", sans-serif; font-weight: 900;
	font-size: clamp(1.5rem, 3.6vw, 2.15rem); line-height: 1.15; letter-spacing: -.02em;
	margin: 0 0 8px; color: var(--hqt-ink);
}
.hqt-depo__intro { margin: 0; color: var(--hqt-muted); line-height: 1.55; }

.hqt-depo__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	max-width: 760px; margin-inline: auto;
}
.hqt-depo__item { margin: 0; }

.hqt-depo__figure {
	margin: 0; background: #fff; border: 1px solid var(--hqt-line);
	border-radius: 22px; overflow: hidden;
	box-shadow: 0 2px 4px rgba(42, 33, 64, .04), 0 18px 40px -28px rgba(42, 33, 64, .5);
}

.hqt-depo__play {
	position: relative; display: block; width: 100%; padding: 0; border: 0;
	background: var(--hqt-ink); cursor: pointer; aspect-ratio: 9 / 16;
}
.hqt-depo__play:focus-visible { outline: 3px solid var(--hqt-primary); outline-offset: -3px; }
.hqt-depo__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.hqt-depo__poster--empty {
	display: block; width: 100%; height: 100%;
	background: linear-gradient(160deg, var(--hqt-ink), #1A1438);
}

/* véu suave embaixo: dá contraste ao botão sem esconder o rosto de quem fala */
.hqt-depo__play::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
	background: linear-gradient(to top, rgba(20, 16, 46, .72), rgba(20, 16, 46, 0));
	pointer-events: none;
}

.hqt-depo__icon {
	/* embaixo, e não no meio: no meio o botão cobre justamente o rosto */
	position: absolute; left: 0; right: 0; bottom: 12%; top: auto; margin-inline: auto;
	z-index: 1;
	width: 68px; height: 68px; border-radius: 50%;
	background: var(--hqt-primary);
	box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
	transition: transform .2s ease;
}
.hqt-depo__icon::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 0; height: 0; margin-left: 26px;
	border-left: 22px solid var(--hqt-cta-ink);
	border-top: 13px solid transparent;
	border-bottom: 13px solid transparent;
}
.hqt-depo__play:hover .hqt-depo__icon { transform: scale(1.07); }

.hqt-depo__video { width: 100%; display: block; aspect-ratio: 9 / 16; background: #000; }

.hqt-depo__caption { display: grid; gap: 3px; padding: 14px 16px 16px; }
.hqt-depo__legend { font-size: .92rem; line-height: 1.45; color: var(--hqt-ink); }
.hqt-depo__author { font-size: .8rem; font-weight: 800; color: var(--hqt-muted); }

.hqt-depo__quotes {
	list-style: none; margin: 26px auto 0; padding: 0; max-width: 900px;
	display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.hqt-depo__quote {
	background: color-mix(in srgb, var(--hqt-accent) 14%, #fff);
	border: 1px solid color-mix(in srgb, var(--hqt-accent) 42%, #fff);
	border-radius: 20px; padding: 20px 22px;
}
.hqt-depo__quote blockquote { margin: 0; }
.hqt-depo__quote p { margin: 0; line-height: 1.55; }
.hqt-depo__by { margin: 10px 0 0 !important; font-size: .82rem; font-weight: 800; color: var(--hqt-muted); }

.hqt-depo__note { margin: 20px 0 0; text-align: center; font-size: .78rem; color: var(--hqt-muted); opacity: .85; }

@media (prefers-reduced-motion: reduce) {
	.hqt-card, .hqt-card__art img, .hqt-scope .hqt-btn { transition: none; }
	.hqt-card:hover { transform: none; }
	.hqt-depo__icon { transition: none; }
}

/* ---------------------------------------------- página de obrigado: ordem
 *
 * Quem ainda não pagou precisa ver o Pix primeiro. A ordem que o WooCommerce
 * entrega é: situação, resumo, tabela do pedido, endereço e só então o painel
 * do meio de pagamento. Aqui o painel sobe para logo abaixo do título.
 *
 * Feito com `order` em vez de mover elemento no JS: sem piscada, sem depender
 * das classes internas do Mercado Pago e sem tocar no HTML do WooCommerce.
 * As classes `wc-block-order-confirmation-*` são do próprio WooCommerce.
 */
body.hqt-aguardando-pagamento main {
	display: flex;
	flex-direction: column;
}
body.hqt-aguardando-pagamento main > .wc-block-order-confirmation-status { order: 1 }
body.hqt-aguardando-pagamento main > .wc-block-order-confirmation-additional-information { order: 2 }
body.hqt-aguardando-pagamento main > .wc-block-order-confirmation-summary { order: 3 }
body.hqt-aguardando-pagamento main > .wc-block-order-confirmation-totals-wrapper { order: 4 }
body.hqt-aguardando-pagamento main > .wc-block-order-confirmation-address-wrapper { order: 5 }

/* Produto digital não tem endereço: o bloco fica vazio e só abre um buraco. */
body.hqt-sem-endereco .wc-block-order-confirmation-address-wrapper {
	display: none;
}
