/* ==========================================================================
   BANDINI LAR & CONSTRUÇÃO (DIVISÃO EMPREENDIMENTOS) + IBIRÁ RESIDENCIAL
   QUIOSQUE VERTICAL TOUCHSCREEN (FORMATO TOTEM 9:16 - 1080x1920)
   ========================================================================== */

:root {
  /* Paleta Oficial extraída do Banner Ibirá Residencial & Bandini */
  --ibira-blue-top: #2c6996;
  --ibira-blue-mid: #1d496b;
  --ibira-blue-deep: #132c3e;
  --ibira-dark-bottom: #0d1d26;

  --bandini-blue: #0d4393;
  --bandini-orange: #f08200;
  --bandini-orange-light: #ff9d2e;
  --bandini-red: #e30613;

  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;

  --card-bg: rgba(16, 35, 48, 0.92);
  --card-elevated: rgba(23, 49, 68, 0.95);
  --border-light: rgba(255, 255, 255, 0.18);
  --border-orange: rgba(240, 130, 0, 0.55);

  --text-white: #ffffff;
  --text-soft: #dce7f0;
  --text-muted: #9ab3c7;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-main: 'Segoe UI', Montserrat, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #071016;
  color: var(--text-white);
  font-family: var(--font-main);
  touch-action: manipulation;
  overscroll-behavior: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container Principal 100% Responsivo Automático
   Adapta-se automaticamente a telas Verticais (Portrait 9:16) e Horizontais (Landscape 16:9) */
.totem-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    180deg,
    var(--ibira-blue-top) 0%,
    var(--ibira-blue-mid) 36%,
    var(--ibira-blue-deep) 72%,
    var(--ibira-dark-bottom) 100%
  );
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Adaptação automática quando a tela for Horizontal (Landscape) */
@media (orientation: landscape) and (min-width: 1024px) {
  .attract-screen {
    padding: 28px 56px 22px !important;
  }
  .banner-top-row {
    grid-template-columns: 360px 1fr !important;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }
  .facade-card {
    height: 170px !important;
  }
  .banner-trio-showcase {
    max-width: 1050px;
    margin: 0 auto;
    width: 100%;
  }
  .banner-benefits-box,
  .banner-mix-text,
  .attract-cta-wrap,
  .banner-footer-area {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .detail-content-vertical {
    flex-direction: row !important;
  }
  .gallery-pane-vertical {
    width: 55% !important;
    height: 100% !important;
    border-bottom: none !important;
    border-right: 1px solid var(--border-light);
  }
  .specs-pane-vertical {
    width: 45% !important;
    height: 100% !important;
  }
  .lead-form-area,
  .vk-Header,
  .vk-rows {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .form-field:first-child {
    grid-column: span 2;
  }
}

/* Scrollbar Touch */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
::-webkit-scrollbar-thumb {
  background: rgba(240, 130, 0, 0.55);
  border-radius: 4px;
}

/* ==========================================================================
   1. TELA DE DESCANSO VERTICAL (EDIFÍCIO EM FUNDO TOTAL + FAIXA À DIREITA)
   ========================================================================== */
.attract-screen {
  position: absolute;
  inset: 0;
  z-index: 900;
  background-color: #0b1b29;
  display: flex;
  flex-direction: column;
  transition: opacity 0.45s ease, transform 0.45s ease;
  cursor: pointer;
  overflow: hidden;
}

.attract-screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}

/* Foto Vertical do Edifício em Todo o Fundo */
.attract-bg-facade {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.attract-bg-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
  animation: gentleZoom 20s ease-in-out infinite alternate;
}

@keyframes gentleZoom {
  0% { transform: scale(1.01); }
  100% { transform: scale(1.07); }
}

/* Máscara Gradiente Arquitetônica: Revela o edifício à esquerda/fundo e dá leitura na faixa direita e base */
.attract-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(9, 23, 36, 0.12) 0%,
      rgba(12, 31, 48, 0.38) 28%,
      rgba(13, 35, 54, 0.78) 54%,
      rgba(10, 26, 41, 0.92) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15, 39, 60, 0.25) 0%,
      rgba(11, 27, 42, 0.15) 45%,
      rgba(8, 20, 31, 0.88) 76%,
      rgba(6, 15, 24, 0.97) 100%
    );
}

/* Camada de Conteúdo sobre o Edifício */
.attract-content-layer {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 26px 18px;
}

/* Faixa Lateral Direita: Marca + Chamadona Estourada + Box Azul Mais Escuro */
.attract-right-column {
  width: 68%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 10px;
}

.ibira-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
  width: 100%;
}

.ibira-logo-img {
  max-width: 195px;
  width: 65%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}

.personalise-title {
  font-size: clamp(16px, 2vh, 22px);
  font-weight: 500;
  letter-spacing: 7px;
  color: #ffffff;
  text-transform: uppercase;
  border-top: 2px solid var(--bandini-orange);
  padding-top: 6px;
  display: inline-block;
}

/* Chamadona Grande Estourada por cima do Edifício */
.banner-headline-box {
  width: 118%;
  margin-right: 0;
  text-align: right;
  padding: 2px 0 4px;
}

.banner-headline-box h2 {
  font-size: clamp(26px, 3.35vh, 38px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.75);
}

.banner-headline-box h2 span {
  display: block;
  color: var(--bandini-orange-light);
}

/* Box Azul Mais Escuro com Acabamento Mais Reto/Quadrado Compondo com a Chamada */
.banner-dark-panel {
  width: 100%;
  background: rgba(7, 20, 32, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-right: 4px solid var(--bandini-orange);
  border-radius: 2px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.banner-partnership-lead {
  font-size: clamp(12.5px, 1.45vh, 15px);
  line-height: 1.35;
  color: #e2edf5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 9px;
}

.banner-partnership-lead strong {
  color: #ffffff;
  font-weight: 800;
}

/* Quadro Interno de Vantagens Exclusivas (Cantos Retos) */
.banner-benefits-box {
  background: rgba(15, 38, 58, 0.72);
  border-left: 3px solid var(--bandini-orange);
  border-radius: 2px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.benefits-left {
  font-size: clamp(12px, 1.38vh, 14.5px);
  line-height: 1.3;
  color: #ffffff;
  font-weight: 700;
}

.benefits-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: clamp(11px, 1.25vh, 13px);
  line-height: 1.3;
  color: #d0e0ec;
}

.benefits-right div {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.benefits-right div strong {
  color: var(--bandini-orange-light);
}

/* Mix de Produtos do Showroom dentro do Box Azul Escuro */
.banner-mix-text {
  text-align: left;
  padding-top: 2px;
}

.banner-mix-text h4 {
  font-size: clamp(11.5px, 1.3vh, 13.5px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.28;
}

.banner-mix-text p {
  font-size: clamp(10.5px, 1.15vh, 12px);
  color: #b8cedf;
  line-height: 1.32;
  font-weight: 500;
}

/* Base Inferior: Faixa Reta das 3 Fotos + Botão Laranja + Rodapé */
.attract-bottom-deck {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Faixa Horizontal Reta (Sem Inclinação) com as 3 Imagens antes do Botão */
.banner-trio-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.trio-photo {
  height: clamp(96px, 11.5vh, 126px);
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  position: relative;
  transform: none;
}

.trio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trio-photo span {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(to top, rgba(6, 15, 24, 0.92), rgba(6, 15, 24, 0.45) 75%, transparent);
  font-size: 11px;
  font-weight: 700;
  padding: 12px 6px 4px;
  text-align: center;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Botão Laranja de Destaque (Acabamento Reto/Arquitetônico) */
.attract-cta-wrap {
  display: flex;
  justify-content: center;
}

.touch-cta-pulse {
  width: 100%;
  background: linear-gradient(135deg, #ff9824 0%, #f08200 55%, #d66c00 100%);
  color: #ffffff;
  border: 1px solid #ffd199;
  padding: 15px 20px;
  border-radius: 3px;
  font-size: clamp(15px, 1.9vh, 20px);
  font-weight: 900;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 10px 28px rgba(240, 130, 0, 0.5);
  animation: pulseOrange 2s infinite;
}

@keyframes pulseOrange {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 130, 0, 0.7); }
  70% { transform: scale(1.012); box-shadow: 0 0 0 14px rgba(240, 130, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 130, 0, 0); }
}

/* Rodapé com Endereço Americana + Card Branco Reto com Marca Oficial Bandini Empreendimentos */
.banner-footer-area {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 10px;
  align-items: stretch;
}

.banner-contact-box {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  font-size: clamp(11px, 1.25vh, 13px);
  line-height: 1.3;
  font-weight: 500;
  color: #e2edf5;
  background: rgba(7, 20, 32, 0.85);
}

.banner-contact-box strong {
  color: #ffffff;
  font-weight: 800;
}

.bandini-white-card {
  background: #ffffff;
  border-radius: 2px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.bandini-white-card img {
  max-height: 52px;
  width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   2. TELA INTERNA DO QUIOSQUE VERTICAL (CATÁLOGO DE PROJETOS)
   ========================================================================== */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Cabeçalho Compacto Vertical com Logos Oficiais */
.topbar-vertical {
  background: rgba(12, 26, 36, 0.92);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-logos-pair {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-pill-white {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-pill-white img {
  height: 36px;
  width: auto;
}

.ibira-header-logo {
  height: 44px;
  width: auto;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-touch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}

.btn-touch:active {
  transform: scale(0.96);
}

.btn-orange {
  background: linear-gradient(135deg, var(--bandini-orange-light), var(--bandini-orange));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(240, 130, 0, 0.38);
}

.btn-emerald {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #042418;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Faixa de Benefício + Botão Projeto 3D Grátis */
.hero-cta-strip {
  background: linear-gradient(90deg, rgba(13, 67, 147, 0.85) 0%, rgba(240, 130, 0, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-cta-strip-text {
  font-size: 13.5px;
  line-height: 1.3;
  color: #fff;
}

.hero-cta-strip-text strong {
  display: block;
  font-size: 15px;
  color: #ffe0b2;
}

/* Filtros Touch Empilhados para Tela Vertical */
.filter-bar-vertical {
  background: rgba(15, 33, 46, 0.85);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.filter-scroll-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 800;
  white-space: nowrap;
}

.filter-pill {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill.active {
  background: var(--bandini-orange);
  border-color: #ffe0b2;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(240, 130, 0, 0.4);
}

/* Lista / Grid Vertical de Projetos */
.catalog-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
}

.projects-grid-vertical {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.project-card:active {
  transform: scale(0.98);
}

.card-image-wrap {
  position: relative;
  height: 215px;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-category {
  background: rgba(13, 29, 38, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-discount {
  background: var(--bandini-red);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.5);
}

.card-floorplan-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(13, 67, 147, 0.92);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #ffffff;
  font-weight: 700;
}

.card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-style {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bandini-orange-light);
  font-weight: 800;
  margin-bottom: 4px;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.4;
  margin-bottom: 14px;
  flex: 1;
}

.card-footer-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.price-block-label {
  font-size: 11px;
  color: var(--text-muted);
}

.price-old {
  font-size: 12px;
  color: #9ab3c7;
  text-decoration: line-through;
  margin-right: 6px;
}

.price-promo {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-emerald-light);
}

.card-cta-label {
  background: var(--bandini-orange);
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
}

/* Rodapé Fixo do Catálogo com Showroom Bandini */
.catalog-bottom-bar {
  background: rgba(10, 22, 30, 0.96);
  border-top: 1px solid var(--border-light);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-soft);
  flex-shrink: 0;
}

/* ==========================================================================
   3. MODAL DETALHE DO PROJETO VERTICAL (RENDER TOPO + PRODUTOS BASE)
   ========================================================================== */
.detail-modal {
  position: absolute;
  inset: 0;
  z-index: 500;
  background: var(--ibira-dark-bottom);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.detail-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(25px);
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(12, 26, 36, 0.96);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* Empilhamento Vertical Ergonômico para Totem 9:16 */
.detail-content-vertical {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-pane-vertical {
  height: 44%;
  min-height: 310px;
  background: #071016;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.main-render-stage {
  position: relative;
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-render-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.render-caption-bar {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.btn-fullscreen-zoom {
  background: rgba(13, 67, 147, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* Hotspots Laranja Bandini */
.hotspot-pin {
  position: absolute;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border-radius: 50%;
  background: var(--bandini-orange);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  animation: pulseOrange 2s infinite;
  z-index: 10;
}

.hotspot-tooltip {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 22, 30, 0.95);
  border: 1px solid var(--bandini-orange);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-shrink: 0;
}

.thumb-btn {
  width: 105px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  background: #10202b;
}

.thumb-btn.active {
  border-color: var(--bandini-orange);
  opacity: 1;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Parte Inferior: Lista de Produtos Sugeridos + Botões de Ação */
.specs-pane-vertical {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--ibira-blue-deep);
  overflow: hidden;
}

.specs-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.specs-description {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.products-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: var(--bandini-orange-light);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-item {
  background: rgba(12, 26, 36, 0.78);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-item.highlighted {
  border-color: var(--bandini-orange);
  background: rgba(240, 130, 0, 0.18);
}

.product-code {
  font-size: 11px;
  color: var(--bandini-orange-light);
  font-weight: 700;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 2px 0;
}

.product-brand {
  font-size: 12px;
  color: var(--text-muted);
}

.product-pricing {
  text-align: right;
  flex-shrink: 0;
}

.product-pricing .old {
  display: block;
  font-size: 11.5px;
  color: #9ab3c7;
  text-decoration: line-through;
}

.product-pricing .promo {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-emerald-light);
}

.specs-footer-cta {
  padding: 14px 20px;
  background: rgba(9, 20, 28, 0.98);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.bundle-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bundle-savings {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--accent-emerald-light);
  color: var(--accent-emerald-light);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.cta-buttons-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   4. MODAL DE CAPTURA + TECLADO VIRTUAL TOUCHSCREEN (NA ALTURA DAS MÃOS)
   ========================================================================== */
.lead-modal {
  position: absolute;
  inset: 0;
  z-index: 700;
  background: rgba(8, 18, 25, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lead-modal.hidden {
  display: none;
}

.lead-form-area {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lead-context-banner {
  background: rgba(13, 67, 147, 0.35);
  border: 1px solid var(--border-orange);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 12px;
  font-weight: 800;
  color: var(--bandini-orange-light);
  text-transform: uppercase;
}

.touch-input {
  height: 48px;
  background: #102330;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.touch-input.active-field {
  border-color: var(--bandini-orange);
  box-shadow: 0 0 0 3px rgba(240, 130, 0, 0.28);
  background: #163042;
}

.option-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-option {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: #102330;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.chip-option.selected {
  background: var(--bandini-orange);
  border-color: #ffe0b2;
  color: #ffffff;
}

/* Teclado Virtual Vertical Otimizado */
.virtual-keyboard {
  background: #0a1720;
  border-top: 2px solid var(--bandini-orange);
  padding: 10px 12px 14px;
  flex-shrink: 0;
}

.vk-Header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.vk-active-preview {
  font-size: 13px;
  color: var(--bandini-orange-light);
}

.vk-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.vk-quick-btn {
  background: rgba(240, 130, 0, 0.2);
  border: 1px solid var(--bandini-orange);
  color: #ffe0b2;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.vk-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vk-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.vk-key {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  background: #183246;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 0 #08121a;
}

.vk-key:active {
  transform: translateY(2px);
  background: var(--bandini-orange);
}

.vk-key.wide {
  flex: 1.8;
  font-size: 13px;
  background: #23445e;
}

.vk-key.space {
  flex: 3.5;
  font-size: 14px;
}

.vk-key.action-next {
  flex: 2.2;
  background: var(--bandini-orange);
  color: #fff;
  font-size: 14px;
}

/* ==========================================================================
   5. LIGHTBOX, VOUCHER E ADMIN
   ========================================================================== */
.lightbox-modal,
.voucher-modal,
.admin-modal {
  position: absolute;
  inset: 0;
  z-index: 850;
  background: rgba(6, 14, 20, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.lightbox-modal.hidden,
.voucher-modal.hidden,
.admin-modal.hidden {
  display: none;
}

.voucher-card {
  width: 100%;
  max-width: 520px;
  background: var(--card-elevated);
  border: 2px solid var(--bandini-orange);
  border-radius: 22px;
  padding: 28px 24px;
  text-align: center;
}

.voucher-code-box {
  background: rgba(240, 130, 0, 0.16);
  border: 2px dashed var(--bandini-orange);
  border-radius: 14px;
  padding: 14px;
  margin: 18px 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffe0b2;
}

.idle-toast {
  position: absolute;
  bottom: 20px;
  inset-inline: 20px;
  z-index: 950;
  background: #102433;
  border: 2px solid var(--bandini-orange);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.idle-toast.hidden {
  display: none;
}
