/* =============================================================
   VALFRAN — produto-unico.css
   CSS unificado para páginas de produto individual.

   Variante ativada por classe no .produto-page (via PHP/slug):
   ┌─────────────────────┬──────────────────────────────────────┐
   │ (sem classe)        │ specs estáticas                      │
   │ .variante-chips     │ seletor de capacidade                │
   │ .variante-topicos   │ tópicos/diferenciais na col-info     │
   │ .variante-descricao │ parágrafo(s) de texto livre          │
   └─────────────────────┴──────────────────────────────────────┘
   WordPress: <div class="produto-page <?= $variante ?>">
   ============================================================= */

/* ── RESET & TOKENS ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red:          #eb3037;
    --red-dark:     #c0151b;
    --black:        #0d0d0d;
    --gray-100:     #f4f4f4;
    --gray-200:     #e8e8e8;
    --gray-500:     #777;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: #fff;
    color: var(--black);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── CONTROLE DE VARIANTES ───────────────────────────────────
   Por padrão todos os blocos de variante ficam ocultos.
   Cada classe de variante exibe apenas o bloco correspondente.
   ─────────────────────────────────────────────────────────── */

.v-specs,
.v-chips,
.v-topicos,
.v-descricao { display: none; }

.produto-page .v-specs                   { display: block; }

.variante-chips    .v-specs              { display: none; }
.variante-chips    .v-chips              { display: block; }

.variante-topicos  .v-specs              { display: none; }
.variante-topicos  .v-topicos            { display: block; }
.variante-topicos  .col-diferenciais     { display: none; }
.variante-topicos  .bloco-diferenciais   { display: none !important; }
.variante-topicos  .scroll-hint          { display: none; }

.variante-descricao .v-specs             { display: none; }
.variante-descricao .v-descricao         { display: block; }
.variante-descricao .col-diferenciais    { display: none; }
.variante-descricao .bloco-diferenciais  { display: none !important; }
.variante-descricao .scroll-hint         { display: none; }

/* ── BOTÃO VOLTAR ────────────────────────────────────────────── */
.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    padding: 9px 16px;
    border: 1px solid var(--gray-200);
    background: transparent;
    transition: color 0.25s, border-color 0.25s, gap 0.25s;
}

.btn-voltar svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.btn-voltar:hover {
    color: var(--red-dark);
    border-color: var(--red-dark);
    gap: 14px;
}

/* ── LAYOUT DESKTOP — 2 colunas ─────────────────────────────── */
.produto-page {
    display: grid;
    grid-template-columns: 38% 62%;
    grid-template-rows: auto;
    min-height: 100vh;
}

.col-info {
    grid-column: 1;
    grid-row: 1 / 6;
    padding: 60px 48px 60px 60px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}
.col-info::-webkit-scrollbar { display: none; }

.col-imagem {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    background: #fff;
    display: flex;
    align-items: stretch;
}

.bloco-voltar,
.bloco-titulo,
.bloco-cta,
.bloco-specs  { display: none; }

.col-info-top { margin-bottom: 36px; }

.produto-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    display: block;
    margin-bottom: 12px;
}

.produto-titulo {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    color: var(--black);
    text-transform: uppercase;
    line-height: 0.95;
    font-weight: 300;
    margin-bottom: 28px;
}

.produto-titulo strong {
    font-weight: 900;
    color: var(--red-dark);
}

.info-divider {
    width: 40px;
    height: 3px;
    background: var(--red-dark);
    margin-bottom: 32px;
}

/* ── SPECS ESTÁTICAS ─────────────────────────────────────────── */
.specs-titulo {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red-dark);
    border-left: 3px solid var(--red-dark);
    padding-left: 10px;
    margin-bottom: 20px;
}

.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.specs-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.88rem;
}

.specs-list li:first-child { border-top: 1px solid var(--gray-200); }

.spec-label {
    color: var(--gray-500);
    font-weight: 400;
    white-space: nowrap;
}

.spec-value {
    color: var(--black);
    font-weight: 600;
    text-align: right;
}

.info-spacer { flex: 1; }

/* ── SELETOR DE CAPACIDADE (variante-chips) ──────────────────── */
.capacidade-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
    display: block;
}

.capacidade-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.chip {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1.5px solid var(--gray-200);
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.chip:hover  { border-color: var(--red-dark); color: var(--red-dark); }
.chip.active { border-color: var(--red-dark); background: var(--red-dark); color: #fff; }

.specs-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--gray-100);
    border-left: 3px solid var(--gray-200);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.specs-placeholder svg {
    width: 18px;
    height: 18px;
    stroke: var(--gray-500);
    fill: none;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.specs-panel { display: none; animation: fadeInSpecs 0.3s ease; }
.specs-panel.visible { display: block; }

@keyframes fadeInSpecs {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── TÓPICOS INLINE (variante-topicos, coluna lateral) ──────── */
.inline-diferenciais {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.inline-diferenciais li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--gray-200);
}

.inline-diferenciais li:first-child { border-top: 1px solid var(--gray-200); }

.inline-num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    color: var(--red-dark);
    letter-spacing: 0.04em;
    line-height: 1;
    flex-shrink: 0;
    min-width: 26px;
    text-align: right;
}

.inline-num::after {
    content: ' —';
    color: var(--gray-500);
    font-weight: 400;
}

.inline-texto {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Título oculto (campo não utilizado pelos produtos atuais) */
.inline-texto strong {
    display: none;
}

.inline-texto span {
    font-family: var(--font-display);
    font-size: 0.97rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--red-dark);
    line-height: 1.2;
}

/* ── DESCRIÇÃO EM TEXTO LIVRE (variante-descricao) ───────────── */
.produto-descricao {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.produto-descricao p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.75;
}

/* ── CTA ORÇAMENTO ───────────────────────────────────────────── */
.cta-orcamento {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--red-dark);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 18px 28px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.cta-orcamento::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.cta-orcamento:hover::before { transform: scaleX(1); }

.cta-orcamento span,
.cta-orcamento svg { position: relative; z-index: 1; }

.cta-orcamento svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

/* ── CARROSSEL ───────────────────────────────────────────────── */
.produto-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.produto-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.produto-slide {
    min-width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.produto-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 40px;
}

/* ── SETAS DO CARROSSEL ──────────────────────────────────────── */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 13, 13, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.25s, border-color 0.25s;
    backdrop-filter: blur(8px);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.nav-btn:hover    { background: var(--red-dark); border-color: var(--red-dark); }
.nav-btn.prev     { left: 20px; }
.nav-btn.next     { right: 20px; }
.nav-btn:disabled { opacity: 0.3; pointer-events: none; }

.slide-counter {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* ── SCROLL HINT ─────────────────────────────────────────────── */
.scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.scroll-hint__text {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.38);
}

.scroll-hint__arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    animation: bounceDown 1.6s ease-in-out infinite;
}

.scroll-hint__arrow svg {
    width: 14px;
    height: 14px;
    stroke: rgba(0, 0, 0, 0.38);
    fill: none;
    stroke-width: 2;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

/* ── DIFERENCIAIS (abaixo da galeria) ───────────────────────── */
.col-diferenciais {
    grid-column: 2;
    grid-row: 2;
    padding: 56px 60px 60px 60px;
    border-top: 1px solid var(--gray-200);
}

.diferenciais-titulo {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red-dark);
    border-left: 3px solid var(--red-dark);
    padding-left: 10px;
    margin-bottom: 32px;
}

/* ── Layout de linha: cada item = "01 — Título" ── */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.diferencial-card {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}


.diferencial-num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    color: var(--red-dark);
    line-height: 1;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    min-width: 28px;
    text-align: right;
}

.diferencial-num::after {
    content: ' —';
    color: var(--gray-500);
    font-weight: 400;
}

/* Título oculto (campo não utilizado pelos produtos atuais) */
.diferencial-nome {
    display: none;
}

.diferencial-desc {
    font-family: var(--font-display);
    font-size: 0.97rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--red-dark);
    line-height: 1.2;
}

/* ── SELOS DE GARANTIA ───────────────────────────────────────── */
.selos-wrapper {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}

.selo-img {
    width: 150px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.25s;
}

.selo-img:hover { transform: scale(1.07); }

/* ── MOBILE ──────────────────────────────────────────────────── */
.bloco-diferenciais { display: none; }
.bloco-selos        { display: none; }

@media (max-width: 900px) {

    .scroll-hint { display: none; }

    /* Esconde os selos do carrossel no mobile */
    .produto-carousel-container .selos-wrapper { display: none; }

    .produto-page {
        display: flex;
        flex-direction: column;
    }

    .col-info         { display: none; }
    .col-diferenciais { display: none; }

    .bloco-voltar       { display: block; order: 1; padding: 20px 20px 0; }
    .bloco-titulo       { display: block; order: 2; padding: 16px 20px 0; }
    .col-imagem         { order: 3; }
    .bloco-selos        { display: flex; order: 4; align-items: center; justify-content: center; gap: 0px; padding: 0px 20px; }
    .bloco-cta          { display: block; order: 5; padding: 0 20px; }
    .bloco-specs        { display: block; order: 6; padding: 20px 20px 32px; }
    .bloco-diferenciais { display: block; order: 7; padding: 0 20px 40px; }

    .produto-titulo    { font-size: clamp(2.4rem, 10vw, 3.6rem); margin-bottom: 16px; }
    .info-divider      { margin-bottom: 0; }
    .cta-orcamento     { display: flex; margin-top: 0; width: 100%; }
    .produto-slide     { height: 70vw; min-height: 300px; }
    .produto-slide img { padding: 20px; }

    .diferenciais-grid { grid-template-columns: 1fr; gap: 0; }
    .diferencial-num::after { content: ' —'; }

    .variante-topicos   .bloco-diferenciais,
    .variante-descricao .bloco-diferenciais { display: none; }

    .bloco-selos .selo-img { width: 150px; height: 150px; }
}