/* Página do projeto (loja). Usa as variáveis do style.css do tema. */
.qp-proj { padding-top: var(--sp-10); }
.qp-proj__grid { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 960px) { .qp-proj__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-8); } }
.qp-proj__galeria { display: grid; gap: var(--sp-4); min-width: 0; }

.qp-palco { position: relative; border-radius: var(--r-3xl); border: 1px solid var(--line); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.qp-palco > img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 300ms var(--ease); cursor: zoom-in; }
.qp-palco > img.troca { opacity: 0; }
.qp-palco--vazio { display: grid; place-items: center; align-content: center; gap: var(--sp-3); color: var(--muted); font-size: 48px; text-align: center; }
.qp-palco--vazio p { font-size: 16px; margin: 0; }
.qp-seta, .qp-ampliar, .qp-fechar {
	position: absolute; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--r-full);
	background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; font-size: 20px;
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.qp-seta { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.qp-seta:hover, .qp-ampliar:hover, .qp-fechar:hover { background: rgba(0, 0, 0, 0.85); }
.qp-seta:active { transform: translateY(-50%) scale(0.96); }
.qp-seta--ant { left: var(--sp-5); }
.qp-seta--prox { right: var(--sp-5); }
.qp-contagem { position: absolute; left: var(--sp-5); bottom: var(--sp-5); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full); background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 14px; line-height: 20px; }
.qp-ampliar { right: var(--sp-5); bottom: var(--sp-5); width: 40px; height: 40px; }

.qp-minis { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-3); scroll-snap-type: x proximity; }
.qp-minis a { flex: none; width: 96px; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 2px solid transparent; opacity: 0.6; scroll-snap-align: start; transition: opacity 300ms var(--ease), border-color 300ms var(--ease); }
.qp-minis a:hover { opacity: 1; }
.qp-minis a[aria-current="true"] { opacity: 1; border-color: var(--brand); }
.qp-minis a[hidden] { display: none; }
.qp-minis img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .qp-minis a { width: 120px; } }

.qp-proj__barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.qp-abas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.qp-abas button { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-full); border: 1px solid var(--line); background: var(--s1); color: var(--soft); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; transition: background-color 500ms var(--ease), color 500ms var(--ease); }
.qp-abas button:hover { background: var(--s3); }
.qp-abas button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

#qp-lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(0, 0, 0, 0.96); color: #fff; }
#qp-lightbox[open] { display: grid; place-items: center; }
#qp-lightbox::backdrop { background: #000; }
#qp-lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
#qp-lightbox .qp-seta { position: fixed; }
.qp-fechar { position: fixed; top: var(--sp-5); right: var(--sp-5); width: 48px; height: 48px; z-index: 1; }

.qp-proj__compra { min-width: 0; }
@media (min-width: 960px) { .qp-proj__compra { position: sticky; top: calc(var(--sp-12) + var(--sp-5)); } }
.qp-proj__titulo { margin-bottom: var(--sp-5); }
.qp-proj__dados { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); margin: 0 0 var(--sp-3); }
.qp-proj__dados li { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--soft); font-size: 14px; line-height: 20px; }
.qp-proj__dados .ph { color: var(--brand); font-size: 20px; }
.qp-proj__dados strong { color: var(--text); }
.qp-proj__preco { margin: var(--sp-5) 0 var(--sp-4); padding: var(--sp-4); border-radius: var(--r-2xl); background: var(--s1); border: 1px solid var(--line); }
.qp-proj__preco small { display: block; color: var(--muted); font-size: 14px; line-height: 20px; }
.qp-proj__valor { display: block; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.qp-proj__valor .woocommerce-Price-amount { color: inherit; }
.qp-proj__valor del { display: block; font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.qp-proj__valor ins { text-decoration: none; }
.qp-proj__economia { display: block; margin-top: var(--sp-1); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--success); }
.qp-proj__parcelas { display: block; margin-top: var(--sp-2); font-size: 14px; line-height: 20px; color: var(--soft); }
.qp-proj__compra form.cart { display: block; margin: 0 0 var(--sp-4); }
.qp-proj__compra form.cart .single_add_to_cart_button { width: 100%; min-height: 48px; }
.qp-proj__duvida { width: 100%; margin-bottom: var(--sp-6); }

.qp-proj__texto { display: grid; gap: var(--sp-9); margin-top: var(--sp-10); max-width: 880px; }
.qp-proj__amb { grid-template-columns: 1fr; }
@media (min-width: 640px) { .qp-proj__amb { grid-template-columns: 1fr 1fr; } }
.qp-proj__ficha th { width: 40%; color: var(--muted); font-weight: 500; }
.qp-proj .related { margin-top: var(--sp-11); }
.qp-proj .related > h2 { font-size: 30px; line-height: 36px; color: var(--text); }

/* Descrição detalhada: texto e fotos ocupam a coluna inteira, sem sobras */
.qp-proj .qp-desc--nova { display: block; }
.qp-desc__indice { margin: 0 0 var(--sp-8); }
.qp-desc__indice p { margin: 0 0 var(--sp-3); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); }
.qp-desc__indice ol { counter-reset: qpidx; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.qp-desc__indice li { counter-increment: qpidx; margin: 0; }
.qp-desc__indice a { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--s1); color: var(--soft); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; transition: color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease); }
.qp-desc__indice a::before { content: counter(qpidx); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-full); background: var(--bg); color: var(--brand); font-size: 12px; line-height: 16px; font-weight: 600; }
.qp-desc__indice a:hover { color: var(--text); border-color: var(--brand); }
.qp-desc__indice a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; color: var(--text); }
.qp-desc__indice a:active { transform: scale(0.98); }
.qp-desc__corpo { max-width: none; }
.qp-desc__corpo > p, .qp-desc__corpo > ul, .qp-desc__corpo > ol { max-width: none; font-size: 18px; line-height: 28px; text-wrap: pretty; }
.qp-desc__corpo > p:first-child { color: var(--text); }
.qp-desc__corpo h3 { margin: var(--sp-10) 0 var(--sp-4); padding-top: var(--sp-8); border-top: 1px solid var(--line); font-size: 24px; line-height: 32px; color: var(--text); scroll-margin-top: 96px; text-wrap: balance; }
.qp-desc__corpo h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.qp-desc__corpo figure, .qp-desc__corpo .wp-block-image { margin: var(--sp-6) 0; max-width: none; }
.qp-desc__corpo img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 600px; object-fit: contain; background: var(--s1); border-radius: var(--r-2xl); cursor: zoom-in; transition: opacity 300ms var(--ease); }
.qp-desc__corpo img:hover { opacity: 0.92; }
.qp-desc__corpo img:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.qp-desc__corpo figcaption { margin-top: var(--sp-3); font-size: 14px; line-height: 20px; color: var(--muted); text-align: left; }
.qp-desc__fotos { display: grid; gap: var(--sp-4); margin: var(--sp-6) 0; }
@media (min-width: 640px) { .qp-desc__fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qp-desc__corpo .qp-desc__fotos figure { margin: 0; }
.qp-desc__fotos img { aspect-ratio: 4 / 3; object-fit: cover; max-height: none; }

/* Descrição em duas colunas: texto à esquerda, características e tags à direita */
.qp-desc__grade { display: grid; gap: var(--sp-8); margin-top: var(--sp-6); }
.qp-desc__main { min-width: 0; }
.qp-desc__main > .qp-desc__indice:first-child { margin-top: 0; }
.qp-desc__lado { display: grid; gap: var(--sp-4); align-content: start; }
@media (min-width: 1000px) {
	.qp-desc__grade--lado { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
	.qp-desc__lado { position: sticky; top: 96px; }
}
.qp-lado__bloco { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-2xl); background: var(--s1); }
.qp-lado__titulo { margin: 0 0 var(--sp-3); font-size: 18px; line-height: 28px; font-weight: 600; color: var(--text); scroll-margin-top: 96px; text-wrap: balance; }
.qp-lado__carac { list-style: none; margin: 0; padding: 0; display: grid; }
.qp-lado__carac li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; font-size: 14px; line-height: 20px; }
.qp-lado__carac li + li { border-top: 1px solid var(--line); }
.qp-lado__carac .ph { color: var(--brand); font-size: 20px; }
.qp-lado__carac span { color: var(--soft); }
.qp-lado__carac strong { color: var(--text); font-weight: 600; text-align: right; }
.qp-lado__dica { margin: 0 0 var(--sp-3); font-size: 14px; line-height: 20px; color: var(--muted); text-wrap: pretty; }
.qp-lado__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.qp-lado__tags li { margin: 0; }
.qp-lado__tags a { display: inline-flex; padding: var(--sp-1) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-full); background: var(--bg); color: var(--soft); font-size: 14px; line-height: 20px; text-decoration: none; transition: color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease); }
.qp-lado__tags a:hover { color: var(--text); border-color: var(--brand); }
.qp-lado__tags a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; color: var(--text); }
.qp-lado__tags a:active { transform: scale(0.98); }

/* Três atalhos depois das tags */
.qp-atalhos { display: grid; gap: var(--sp-4); margin-top: var(--sp-8); }
@media (min-width: 720px) { .qp-atalhos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qp-atalho { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--s1); color: var(--soft); font-size: 14px; line-height: 20px; text-decoration: none; transition: border-color 300ms var(--ease), transform 300ms var(--ease); }
.qp-atalho:hover, .qp-atalho:focus-visible { border-color: var(--brand); transform: translateY(-2px); }
.qp-atalho .ph { font-size: 32px; color: var(--brand); flex: none; }
.qp-atalho span { display: grid; gap: var(--sp-1); }
.qp-atalho strong { color: var(--text); font-size: 18px; line-height: 28px; font-weight: 600; }

/* Outros projetos: três cartões */
.qp-outros { margin-top: var(--sp-11); }
.qp-outros .qp-woo { margin-top: var(--sp-6); text-align: left; }
.woocommerce .qp-outros .qp-woo ul.products, .qp-outros .qp-woo ul.products { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .woocommerce .qp-outros .qp-woo ul.products, .qp-outros .qp-woo ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .woocommerce .qp-outros .qp-woo ul.products, .qp-outros .qp-woo ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Botão ver todos os projetos */
.qp-ver-todos { display: flex; justify-content: center; margin-top: var(--sp-8); }
.qp-desc--nova .qp-note { margin-top: var(--sp-6); }

/* Repaginação: seções alinhadas à esquerda, mesmo ritmo do começo ao fim */
.qp-proj .qp-sec { text-align: left; }
.qp-proj .qp-sec .qp-eyebrow { justify-content: flex-start; }
.qp-proj .qp-sec .qp-h2 { margin-inline: 0; max-width: none; text-wrap: balance; }
.qp-proj .qp-sec--planta .qp-planta { margin-top: var(--sp-6); }

/* Ficha técnica: cartões com linhas rótulo e valor, sem buracos */
.qp-proj .qp-fichas { text-align: left; margin-top: var(--sp-6); }
.qp-proj .qp-ficha { justify-items: stretch; gap: var(--sp-4); padding: var(--sp-6); border-radius: var(--r-2xl); }
.qp-proj .qp-ficha__ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--line); font-size: 24px; }
.qp-proj .qp-ficha h3 { margin: 0; }
.qp-proj .qp-ficha dl { gap: 0; }
.qp-proj .qp-ficha dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); padding: var(--sp-3) 0; }
.qp-proj .qp-ficha dl > div + div { border-top: 1px solid var(--line); }
.qp-proj .qp-ficha dd { color: var(--text); text-align: right; }

/* Atalhos com estado pressionado */
.qp-atalho:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.qp-atalho:active { transform: scale(0.98); }
@media (min-width: 1000px) { .qp-proj .qp-fichas { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
