/* ==========================================================================
   VITRINE DE PISOS (proposta de 2026-10-12, Forros-Plano/ferramentas/vitrine_pisos.py)
   Usa a vitrine.css dos forros e acrescenta: seis tons, botões de tipo e a ajuda
   para escolher em três perguntas.
   ========================================================================== */

/* o display do cartão e da caixa venceria o atributo hidden */
.vt [hidden], .vt-barra [hidden] { display: none !important; }

button.vt-ajuda { background: none; border: 0; border-bottom: 2px solid #F5C518; font: inherit; font-weight: 700; cursor: pointer; padding: 0 0 2px; }

/* ajuda e amostra à direita do título (padrão Z) */
.vp-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.vp-amostra { color: #5B6475; font-weight: 600; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }
.vp-amostra:hover { color: var(--navy, #1E2538); }

/* preço "a partir de" no cartão: a linha que decide, em destaque */
.vp-preco { margin: 4px 0 0; font-size: 0.92rem; color: #5B6475; }
.vp-preco b { color: var(--navy, #1E2538); font-weight: 800; font-size: 1.05rem; }
.vp-nota-preco { color: #5B6475; font-size: 0.9rem; margin: -40px 0 10px; }
.vp-card .vp-preco { margin: 2px 0 0; }

/* seis tons: a foto do piso inteira no quadrado */
.vp-tiles { grid-template-columns: repeat(6, 1fr); margin-bottom: 26px; }

/* tipo: laminado, vinílico, manta */
.vp-tipos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 40px; }
.vp-tipos span { color: #5B6475; font-weight: 600; margin-right: 4px; }
.vt-tipo {
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(30, 37, 56, 0.18); background: #fff; color: var(--navy, #1E2538);
  padding: 7px 14px; border-radius: 8px;
}
.vt-tipo[aria-pressed="true"] { background: var(--navy, #1E2538); color: #fff; border-color: var(--navy, #1E2538); }

/* ajuda para escolher */
.vp-ajuda {
  background: #F6F4EF; border-radius: 14px; padding: 26px 28px 22px; margin: -6px 0 36px;
  display: grid; gap: 18px;
}
.vp-pergunta b { display: block; color: var(--navy, #1E2538); font-size: 1.08rem; margin-bottom: 10px; }
.vp-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-ops button {
  font: inherit; font-size: 0.95rem; cursor: pointer; padding: 9px 16px; border-radius: 8px;
  border: 1px solid rgba(30, 37, 56, 0.2); background: #fff; color: var(--navy, #1E2538);
}
.vp-ops button[aria-pressed="true"] { background: var(--navy, #1E2538); color: #fff; border-color: var(--navy, #1E2538); }
.vp-resultado:empty { display: none; }
.vp-aviso { margin: 0 0 10px; color: #8A6D00; font-weight: 600; }
.vp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vp-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(30, 37, 56, 0.10); }
.vp-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.vp-card span { display: flex; flex-direction: column; padding: 12px 14px 14px; gap: 2px; }
.vp-card small { color: #8A6D00; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
.vp-card b { color: var(--navy, #1E2538); font-size: 1.05rem; }
.vp-card em { font-style: normal; color: #5B6475; font-size: 0.9rem; }
.vp-whats { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--navy, #1E2538); border-bottom: 2px solid #F5C518; text-decoration: none; }

/* a foto do piso já é a superfície: ocupa o cartão todo */
.vt .vt-card[data-tom="foto"] .product-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1080px) {
  .vp-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .vp-acoes { align-items: flex-start; }
  .vp-nota-preco { margin-top: -24px; }
  .vp-ajuda { padding: 20px 18px; }
  .vp-cards { grid-template-columns: 1fr; }
  .vp-card { flex-direction: row; }
  .vp-card img { width: 38%; aspect-ratio: 1; }
  .vp-tipos { margin-bottom: 28px; }
}
