﻿/* =======================================================
   VIEWER â€” estilos da pÃ¡gina e do viewport 3D
   Fonte, reset do body, container do canvas, efeitos de
   profundidade (blur + vinheta) e responsivo mobile.
======================================================= */

/* ---------- Fonte da marca ---------- */
@font-face {
  font-family: 'SuisseIntl';
  src: url('./shared/fonts/SuisseIntl-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ---------- Reset / pÃ¡gina ----------
   position:fixed + overflow:hidden travam o scroll/bounce
   no mobile; touch-action evita zoom por duplo toque. */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f2f2f2;
  font-family: 'SuisseIntl', Arial, sans-serif;
  touch-action: manipulation;
  position: fixed;
  inset: 0;
}

.viewer-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Efeito DOF falso ----------
   Blur sÃ³ nas bordas via mask radial â€” o centro (produto)
   permanece nÃ­tido. pointer-events:none mantÃ©m a Ã³rbita. */
.viewer-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  backdrop-filter: blur(2.5px);
  mask-image: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.95) 100%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.95) 100%);
  z-index: 2;
}

/* ---------- Vinheta ---------- */
.viewer-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.10) 100%);
  z-index: 3;
}

/* ---------- Modal de aviso ----------
   Substituto do alert() nativo (gerado por mostrarAviso em
   paineis.js). Mesmo visual dos painÃ©is: card branco, cantos
   arredondados, SuisseIntl. Persistente â€” fecha sÃ³ no botÃ£o. */
.aviso-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
}

.aviso-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  width: min(280px, calc(100vw - 64px));
  text-align: center;
  font-family: 'SuisseIntl', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  overflow: hidden;
}

.aviso-conteudo {
  padding: 20px 18px 18px;
}

.aviso-titulo {
  font-size: 17px;
  color: #222;
  font-weight: 700;
  margin-bottom: 7px;
}

.aviso-msg {
  font-size: 14px;
  color: #444;
  line-height: 1.45;
}

.aviso-btn {
  width: 100%;
  padding: 13px;
  background: none;
  color: #2145e6;
  border: none;
  border-top: 1px solid #f0eeeb;
  font-size: 17px;
  font-family: 'SuisseIntl', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s;
}

.aviso-btn:hover  { background: #f7f5f2; }
.aviso-btn:active { background: #f0eeeb; }

/* ---------- Mobile ----------
   Painel dev Ã© ferramenta de desktop â€” some no celular.
   Painel cliente desce para a base da tela. */
@media (max-width: 768px) {
  #dev-panel { display: none; }
  #client-panel { right: 8px; top: auto; bottom: 8px; transform: none; width: calc(100vw - 16px); max-width: 420px; }
  .texture-thumb { width: 44px; height: 44px; }
}

