/* Régua Tavrov 3D — o bloco do 3D (página do produto, ver.html e prévia). Visual vermelho do protótipo. */
.regua { --rg-bg: #160A0C; --rg-card: #221012; --rg-card-2: #2B1417; --rg-ink: #F6ECEA; --rg-muted: #C9ADAE;
  --rg-border: #452326; --rg-red: #D6333B; --rg-red-soft: rgba(214, 51, 59, .16); --rg-gold: #D9B65E; --rg-ref: #EDE4DC;
  display: grid; gap: 12px; color: var(--rg-ink); font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
.regua [hidden] { display: none !important; }
.regua button, .regua .rg-botao {
  font: 600 14px/1.2 inherit; font-family: inherit; color: var(--rg-ink); background: var(--rg-card-2); cursor: pointer;
  text-decoration: none; border: 1px solid var(--rg-border); border-radius: 10px; padding: 9px 13px;
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }   /* 44 px: alvo de toque no celular */
.regua button:hover, .regua .rg-botao:hover { border-color: #6B3A3E; }
.regua button:focus-visible, .regua .rg-botao:focus-visible { outline: 3px solid var(--rg-gold); outline-offset: 2px; }
.rg-reguas { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-reguas button[aria-pressed="true"] { border-color: var(--rg-red); color: #FFE1E2; background: var(--rg-red-soft); }
.rg-reguas button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.rg-reguas button[aria-pressed="true"]::before { background: var(--rg-red); border-color: var(--rg-red); }
.rg-palco { position: relative; height: min(64vh, 560px); min-height: 340px; border: 1px solid var(--rg-border);
  border-radius: 16px; overflow: hidden; touch-action: none;
  background: radial-gradient(ellipse at 50% 28%, #4A171C 0%, #2A0E12 45%, #160A0C 78%); }
.rg-palco:fullscreen { height: 100%; border-radius: 0; }
.rg-palco canvas { display: block; width: 100%; height: 100%; }
.rg-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .35; pointer-events: none; }
.rg-tag { position: absolute; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font: 600 11px/1 inherit; font-family: inherit; letter-spacing: .01em; font-variant-numeric: tabular-nums;
  /* etiquetas discretas: pequenas e translúcidas, para não tampar o produto */
  color: #EBD9A6; background: rgba(22, 10, 12, .58); border: 1px solid rgba(217, 182, 94, .38);
  padding: 3px 6px; border-radius: 999px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.rg-tag.ref { color: #EDE4DC; border-color: rgba(237, 228, 220, .26); font-weight: 500; }
.rg-selo { position: absolute; left: 12px; top: 12px; pointer-events: none; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--rg-gold); border: 1px solid rgba(217, 182, 94, .45); border-radius: 999px; padding: 6px 10px; background: rgba(22, 10, 12, .55); }
.rg-dica { position: absolute; left: 12px; bottom: 10px; font-size: 12.5px; color: var(--rg-muted); pointer-events: none; }
.rg-carregando { position: absolute; inset: 0; display: grid; place-items: center; color: var(--rg-muted); font-size: 14px;
  pointer-events: none; text-align: center; padding: 16px; }
.rg-ferramentas { display: flex; flex-wrap: wrap; gap: 8px; }
.regua .rg-ar { background: var(--rg-red); border-color: var(--rg-red); color: #FFFFFF; }
.rg-ar img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
.rg-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rg-cards div { background: var(--rg-card); border: 1px solid var(--rg-border); border-radius: 12px; padding: 11px 13px;
  font-size: 13.5px; color: var(--rg-muted); display: grid; gap: 2px; align-content: start; }
.rg-cards b { color: var(--rg-ink); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.rg-cards .produto { border-color: rgba(217, 182, 94, .5); }
.rg-cards .produto b { color: var(--rg-gold); }
.rg-legenda { margin: 0; font: italic 15.5px/1.5 "Cardo", Georgia, serif; color: var(--rg-ink);
  border-left: 3px solid var(--rg-gold); padding: 4px 12px; max-width: 78ch; }
.rg-fotos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.rg-fotos figure { margin: 0; display: grid; gap: 6px; }
.rg-fotos button { padding: 0; border-radius: 12px; overflow: hidden; background: #CBC2B9; cursor: zoom-in; display: block; }
.rg-fotos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rg-fotos figcaption { font-size: 13px; color: var(--rg-muted); }
.rg-zoom { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); }
.rg-zoom::backdrop { background: rgba(10, 4, 5, .85); }
.rg-zoom img { display: block; max-width: 100%; max-height: 86vh; border-radius: 10px; }
.rg-zoom form { display: flex; justify-content: flex-end; margin-top: 8px; }
.rg-zoom button { min-height: 44px; font: 600 14px/1 system-ui; background: #fff; color: #1B1012; border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer; }
@media (max-width: 560px) {
  .rg-palco { height: 58vh; min-height: 320px; }
  /* no celular os botões de comparação rolam de lado, para o 3D aparecer logo */
  .rg-reguas { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .rg-reguas button { flex: none; white-space: nowrap; }
}
