/* Imagem com zoom, modal, filtros e página de produto - NP Iluminação */

/* ---------- Imagem do produto (zoom ao passar o mouse) ---------- */
.pv { position: relative; background: #fff; border: 1px solid #e3e3e3; border-radius: 14px; overflow: hidden; }
.pv-stage { position: relative; height: min(74vh, 780px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; cursor: zoom-in; padding: 14px; box-sizing: border-box; }
.pv-stage.is-zoomed { cursor: zoom-out; }
.pv-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transform-origin: 50% 50%; transition: transform .14s ease-out; will-change: transform; -webkit-user-drag: none; user-select: none; }
.pv-hint { margin: 0; padding: 9px 12px; font-family: var(--font-secondary), Arial, sans-serif; font-size: .8rem; color: #6a6a6a; text-align: center; border-top: 1px solid #ececec; background: #f7f9fa; }
.pv-hint-touch { display: none; }
@media (hover: none) { .pv-hint-mouse { display: none; } .pv-hint-touch { display: inline; } }

/* ---------- Botões ---------- */
.pv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.pv-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; border: 2px solid var(--secondary); background: var(--secondary); color: #fff; font-family: var(--font-secondary), Arial, sans-serif; font-weight: 600; font-size: .9rem; text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1.2; }
.pv-btn:hover { background: var(--main); border-color: var(--main); color: #fff; }
.pv-btn img { width: 17px; filter: invert(1); }
.pv-btn-outline { background: #fff; color: var(--secondary); }
.pv-btn-outline:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.pv-btn-wa { background: #25D366; border-color: #25D366; }
.pv-btn-wa:hover { background: #1ebe5b; border-color: #1ebe5b; }

/* ---------- Filtros das listas (caixas "Filtrar por…" que abrem a lista de opções; várias opções por grupo) ---------- */
.produtos-chips { max-width: 980px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 12px 14px; }
.chips-grupo { position: relative; flex: 0 1 300px; min-width: 240px; border: 1px solid #d5d9dc; border-radius: 12px; background: #fff; }
.chips-grupo.tem-filtro, .chips-grupo.aberto { border-color: var(--secondary); }
.chips-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; margin: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.chips-rotulo { display: none; }
.chips-rotulo-m { font-family: var(--font-secondary), Arial, sans-serif; font-weight: 600; font-size: .92rem; color: var(--main); }
.chips-resumo { margin-left: auto; font-family: var(--font-secondary), Arial, sans-serif; font-size: .85rem; font-weight: 600; color: var(--secondary); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips-seta { display: inline-block; width: 9px; height: 9px; border-right: 2px solid #6a6a6a; border-bottom: 2px solid #6a6a6a; transform: rotate(45deg); margin: -3px 2px 0 6px; transition: transform .2s ease; flex-shrink: 0; }
.chips-grupo.aberto .chips-seta { transform: rotate(-135deg); margin-top: 3px; }
.chips-opcoes { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: max-content; min-width: 100%; max-width: min(460px, 92vw); flex-wrap: wrap; gap: 8px; padding: 14px; box-sizing: border-box; background: #fff; border: 1px solid #d5d9dc; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 19, 30, .14); }
.chips-grupo.aberto .chips-opcoes { display: flex; }
.chip { padding: 9px 16px; border: 1px solid #d5d9dc; background: #fff; border-radius: 999px; font-family: var(--font-secondary), Arial, sans-serif; font-weight: 500; font-size: .88rem; line-height: 1.2; color: var(--main); cursor: pointer; }
.chip:hover { border-color: var(--secondary); color: var(--secondary); }
.chip.ativo { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.chip:focus-visible, .chips-toggle:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.titulo-desc .titulo-link { color: inherit; text-decoration: none; }
.titulo-desc .titulo-link:hover { color: var(--secondary); }
@media (max-width: 767px) {
    .produtos-chips { flex-direction: column; align-items: stretch; gap: 10px; }
    .chips-grupo { flex: none; width: 100%; min-width: 0; overflow: hidden; }
    .chips-opcoes { position: static; width: auto; max-width: none; box-shadow: none; border: 0; border-top: 1px solid #eee; border-radius: 0; padding: 14px 14px 16px; }
    .chip { padding: 10px 16px; font-size: .9rem; }
}
/* ---------- Página de produto ---------- */
.produto-pagina { font-family: var(--font-secondary), Arial, sans-serif; }
.produto-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 28px 0 56px; }
.produto-info { border: 1px solid #e3e3e3; border-radius: 14px; padding: 24px; background: #fff; }
.produto-info h2 { margin: 0 0 12px; font-size: 1.1rem; color: var(--main); }
.produto-ficha { margin: 0 0 6px; padding: 0; }
.produto-ficha div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eee; font-size: .92rem; }
.produto-ficha dt { color: #666; }
.produto-ficha dd { margin: 0; text-align: right; font-weight: 600; color: var(--main); }
.produto-info .pv-actions { flex-direction: column; }
.produto-info .pv-btn { justify-content: center; }

.produto-bloco { max-width: 1000px; margin: 0 auto 56px; }
.produto-bloco > h2 { position: relative; margin: 0 0 22px; text-align: center; font-size: 1.5rem; color: var(--main); padding-bottom: 16px; }
.produto-bloco > h2::after { content: ''; display: block; width: 40px; height: 2px; background: var(--secondary); margin: 14px auto 0; }
.produto-intro { margin: 0 0 26px; padding: 22px 26px; background: #f4f9fb; border-left: 4px solid var(--secondary); border-radius: 0 12px 12px 0; font-size: 1.05rem; line-height: 1.8; color: #2f3b42; }
.produto-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.produto-card { border: 1px solid #e3e3e3; border-radius: 14px; padding: 24px; background: #fff; }
.produto-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.05rem; color: var(--main); }
.produto-card h3 .pc-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--secondary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.produto-card h3 .pc-ico svg { width: 18px; height: 18px; }
.produto-card p { margin: 0 0 10px; font-size: .95rem; line-height: 1.75; color: #444; }
.produto-card p:last-child { margin-bottom: 0; }
.produto-card a { color: var(--secondary); font-weight: 600; }

.produto-carac { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.produto-carac li { position: relative; padding: 14px 16px 14px 46px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; font-size: .93rem; line-height: 1.55; color: #3b3b3b; }
.produto-carac li::before { content: ''; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%; background: var(--secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* FAQ no mesmo estilo da página inicial */
.produto-pagina .faq-section { padding: 0; margin: 0 auto 56px; max-width: 1000px; }
.produto-pagina .faq-section .title-padrao { margin-bottom: 10px; }
.produto-pagina .faq-list { max-width: 800px; margin: 20px auto 0; }
.produto-pagina .faq-item { border-bottom: 1px solid #e2e2e2; }
.produto-pagina .faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: none; border: 0; padding: 18px 5px; text-align: left; cursor: pointer; font-family: var(--font-secondary); font-weight: 400; font-size: 1rem; color: var(--main); }
.produto-pagina .faq-question .faq-icon { flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; line-height: 1; font-weight: 400; color: var(--secondary); transition: transform .25s ease-in-out; }
.produto-pagina .faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.produto-pagina .faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease-in-out; }
.produto-pagina .faq-answer p { margin: 0; padding: 0 5px 18px; font-family: var(--font-secondary); color: #444; line-height: 1.6; font-size: .95rem; }

.produto-relacionados ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.produto-relacionados a { display: block; padding: 11px 14px; border: 1px solid #e3e3e3; border-radius: 8px; color: var(--main); text-decoration: none; font-size: .92rem; background: #fff; }
.produto-relacionados a:hover { border-color: var(--secondary); color: var(--secondary); }
.produto-voltar { margin: 26px 0 0; text-align: center; font-size: .95rem; }
.produto-voltar a { color: var(--secondary); font-weight: 600; }

@media (max-width: 860px) {
    .produto-grid { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; }
    .pv-stage { height: min(62vh, 560px); }
    .produto-cards, .produto-carac { grid-template-columns: minmax(0, 1fr); }
    .produto-intro { padding: 18px 18px; font-size: 1rem; }
    .chips-rotulo { width: 100%; }
    .produto-info { display: block; padding: 20px 18px; }
    .produto-info .pv-btn { width: 100%; box-sizing: border-box; justify-content: center; padding: 14px 16px; }
}

/* ---------- Títulos sem caixa alta (nomes de produto com a inicial maiúscula) ---------- */
.produto-pagina h1.title-padrao,
.produto-pagina .faq-section .title-padrao { text-transform: none; letter-spacing: .3px; }
.produto-pagina h1.title-padrao { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.25; margin-bottom: 8px; }

/* ---------- Texto abaixo da paginação (resumo + "Ler tudo") ---------- */
.postes-resumo { background: #f4f9fb; border: 1px solid #e3edf2; border-radius: 14px; padding: 34px 40px; max-width: 920px; text-align: left; box-shadow: none; }
.postes-resumo p { text-align: left; font-size: 1rem; line-height: 1.8; color: #3b3b3b; }
.postes-resumo a { color: var(--secondary); font-weight: 600; }
.postes-resumo button { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 10px 18px; border: 1px solid var(--secondary); border-radius: 999px; background: #fff; color: var(--secondary); font-weight: 600; }
.postes-resumo button:hover { background: #fff !important; color: var(--secondary) !important; }
.postes-resumo .postes-resumo-extra h2.title-padrao,
.postes-resumo .postes-resumo-extra h3.title-padrao { text-transform: none; text-align: left; letter-spacing: .2px; color: var(--main); }
.postes-resumo .postes-resumo-extra h2.title-padrao { position: relative; font-size: 1.35rem; margin: 34px 0 12px; padding-top: 22px; border-top: 1px solid #dbe6ec; }
.postes-resumo .postes-resumo-extra h2.title-padrao::after { content: ''; display: block; width: 36px; height: 2px; background: var(--secondary); margin: 10px 0 0; }
.postes-resumo .postes-resumo-extra h3.title-padrao { font-size: 1.08rem !important; margin: 22px 0 8px; }
.postes-resumo .postes-resumo-extra ul { padding-left: 0; }
.postes-resumo .postes-resumo-extra li { position: relative; padding-left: 22px; text-align: left; }
.postes-resumo .postes-resumo-extra li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); }
@media (max-width: 767px) { .postes-resumo { padding: 24px 20px; } }

/* "Limpar filtros" (aparece com algum filtro marcado) */
.chips-limpar { display: inline-flex; align-items: center; align-self: center; gap: 6px; padding: 12px 8px; border: 0; background: none; font-family: var(--font-secondary), Arial, sans-serif; font-weight: 400; font-size: .9rem; color: #000; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.chips-limpar::before { content: '\00d7'; font-size: 1.15rem; font-weight: 300; line-height: 1; text-decoration: none; display: inline-block; }
.chips-limpar[hidden] { display: none; }
@media (max-width: 767px) { .chips-limpar { justify-content: center; width: 100%; padding: 8px; } }

/* "Voltar" no caminho (breadcrumb) acima do título da página de produto */
#breadcrumb .breadcrumb-voltar { display: inline-block; margin-right: 12px; padding-right: 12px; border-right: 1px solid #c9ced1; color: var(--main); font-weight: 500; text-decoration: none; }
#breadcrumb .breadcrumb-voltar:hover { color: var(--secondary); }
/* ---------- Desktop: texto da página de produto um pouco menor ---------- */
@media (min-width: 861px) {
    .produto-pagina h1.title-padrao { font-size: 1.85rem; }
    .produto-bloco > h2,
    .produto-pagina .faq-section .title-padrao { font-size: 1.25rem; }
    .produto-intro { font-size: .95rem; line-height: 1.75; padding: 18px 24px; }
    .produto-info h2 { font-size: 1rem; }
    .produto-ficha div { font-size: .85rem; }
    .produto-info .pv-btn { font-size: .82rem; padding: 11px 16px; }
    .pv-hint { font-size: .75rem; }
    .produto-pagina .faq-question { font-size: .93rem; }
    .produto-pagina .faq-answer p { font-size: .88rem; }
}

/* Evita o "pisca": até o filtro (JS) assumir, só a primeira página de cards aparece (antes todos apareciam e depois sumiam) */
#produtos-grid:not(.pronto) > .produto-item:nth-child(n+13) { display: none; }
@media (max-width: 767px) { #produtos-grid:not(.pronto) > .produto-item:nth-child(n+11) { display: none; } }

/* Imagem do produto: aparece com suavidade quando termina de carregar, em vez de surgir de repente */
.pv-stage img { opacity: 0; transition: transform .14s ease-out, opacity .25s ease; }
.pv-stage img.ok { opacity: 1; }

/* ---------- Celular: títulos da página de produto menores ---------- */
@media (max-width: 860px) {
    .produto-pagina h1.title-padrao { font-size: 1.2rem !important; line-height: 1.3; letter-spacing: .2px !important; margin-bottom: 4px; }
    .produto-bloco > h2,
    .produto-pagina .faq-section .title-padrao { font-size: 1.05rem !important; line-height: 1.35; letter-spacing: .2px !important; padding-bottom: 10px; margin-bottom: 16px; }
    .produto-bloco > h2::after { margin-top: 10px; }
    .produto-info h2 { font-size: .98rem; }
    .produto-intro { font-size: .92rem; line-height: 1.7; }
    .produto-pagina .faq-question { font-size: .88rem; }
    .produto-pagina .faq-answer p { font-size: .86rem; }
}
@media (pointer: coarse) { .pv-stage { touch-action: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; } }
