/* =======================================================
   PAINEL CLIENTE — estilos do painel do cliente (direita)
   O HTML deste painel é gerado por renderClientPanel()
   em paineis.js. Seções: container, thumbnails de
   acabamento, resumo do pedido, botão de orçamento.
======================================================= */

/* ---------- Container: card fixo à direita, duas colunas ---------- */

#client-panel {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 500px;  /* mesma largura do painel dev */
  max-height: calc(100vh - 32px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  z-index: 10;
  font-family: 'SuisseIntl', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}

.client-header {
  padding: 14px 18px 12px;
  font-size: 14px;
  color: #aaa;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid #f0eeeb;
  flex-shrink: 0;
}

.client-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.client-col {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}

.client-col:last-child { border-left: 1px solid #f0eeeb; }

.client-section {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f3f0;
}

.client-section-title {
  font-size: 14px;
  color: #bbb;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Acabamento: grupos de thumbnails por material ---------- */

.texture-group { margin-bottom: 10px; }

.texture-title {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  font-family: 'SuisseIntl', Arial, sans-serif;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.texture-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.texture-thumb {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.texture-thumb:hover {
  transform: scale(1.06);
  border-color: #4a4a4ac8;
}

.texture-thumb.active {
  border-color: #333;
  transform: none;
}

/* ---------- Resumo: produto + seleção atual de cada material ---------- */

.client-resumo-item { margin-bottom: 10px; }

.client-resumo-label {
  font-size: 14px;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.client-resumo-value {
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

.client-resumo-produto {
  font-size: 14px;
  color: #222;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

/* Modelos extras adicionados à cena */
.client-resumo-adicional {
  color: #666;
  font-weight: 400;
}

.client-resumo-none {
  font-size: 14px;
  color: #ccc;
}

/* ---------- Botões de ação: AR e Solicitar Orçamento ---------- */

.client-section--order { border-bottom: none; }

/* Ver no Meu Ambiente: AR Quick Look no iOS, WebXR no Android (ar.js) */
.client-ar-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  background: #fff;
  color: #222;
  border: 1.5px solid #222;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'SuisseIntl', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.client-ar-btn:hover { background: #f5f3f0; }

.client-ar-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.client-order-btn {
  width: 100%;
  padding: 12px;
  background: #2145e6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'SuisseIntl', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.client-order-btn:hover { background: #1a38c2; }
