/* ============================================================
   REI DOS CHAVEIROS — site do cliente (personalizeseuchaveiro.shop)
   Identidade "balcão de joalheria": carvão + ouro metálico + marfim.
   Display: Archivo Black (A MESMA fonte gravada nos chaveiros).
   Corpo: Epilogue (Google Fonts). Criado 31/08/2026.
   ============================================================ */

@font-face {
  font-family: "Archivo Black";
  src: url("/static/archivo_black.ttf") format("truetype");
  font-display: swap;
}

:root {
  --preto: #121110;
  --carvao: #1c1a16;
  --carvao2: #26221a;
  --veludo: #171310;
  --borda: #38332a;
  --ouro: #d4af37;
  --ouro-vivo: #f0cf6d;
  --ouro-escuro: #8a7527;
  --marfim: #f5efe0;
  --cinza: #a89f8d;
  --verm: #e05252;
  --verde-ok: #3fa15c;
  --amarelo: #ffd400;      /* botao de acao (cor ditada pelo Rogério) */
  --verde-neon: #39ff14;   /* botao de fechar a compra */
  --f-display: "Archivo Black", "Arial Black", sans-serif;
  --f-corpo: "Epilogue", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
html, body { height: auto; }

body {
  background: var(--preto);
  color: var(--marfim);
  font-family: var(--f-corpo);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overflow-x: hidden;
}

/* grão de filme sobre tudo (bem sutil) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .045;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="2"/></filter><rect width="140" height="140" filter="url(%23n)" opacity="1"/></svg>');
}

/* luz dourada que desce do topo */
.luz-topo {
  position: absolute; inset: 0 0 auto 0; height: 480px;
  background: radial-gradient(ellipse 90% 100% at 50% -10%,
              rgba(212, 175, 55, .22), rgba(212, 175, 55, .05) 55%, transparent 75%);
  pointer-events: none;
}

a { color: var(--ouro-vivo); }

h1, h2, h3, .display { font-family: var(--f-display); font-weight: 400; letter-spacing: .01em; }

.ouro-texto {
  background: linear-gradient(180deg, #f7e7a8, var(--ouro) 55%, #a8842a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ouro);
}

.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px; position: relative; }
.wrap-larga { max-width: 980px; margin: 0 auto; padding: 0 18px; position: relative; }

/* ---------- marca ---------- */
.marca { display: flex; align-items: center; gap: 10px; justify-content: center; }
.marca svg { width: 34px; height: 34px; flex: none; }
.marca .nome {
  font-family: var(--f-display); font-size: 17px; letter-spacing: .06em;
}
/* logo oficial (coroa + escrita, arte do Rogerio 02/09/2026) */
.logo-topo {
  height: 72px; width: auto; max-width: 92vw; display: block;
  filter: drop-shadow(0 5px 16px rgba(0, 0, 0, .5));
}

/* ---------- botões ---------- */
.btn {
  display: block; width: 100%; border: 0; cursor: pointer; text-align: center;
  font-family: var(--f-display); font-size: 17px; letter-spacing: .04em;
  padding: 17px 20px; border-radius: 14px; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(2px) scale(.99); }
.btn-amarelo {
  background: var(--amarelo); color: #111;
  box-shadow: 0 6px 0 #a88900, 0 14px 30px rgba(255, 212, 0, .18);
}
.btn-amarelo:active { box-shadow: 0 3px 0 #a88900; }
.btn-verde {
  background: var(--verde-neon); color: #052b00;
  box-shadow: 0 6px 0 #1d8c07, 0 14px 34px rgba(57, 255, 20, .22);
}
.btn-verde:active { box-shadow: 0 3px 0 #1d8c07; }
.btn-zap {                 /* verde do WhatsApp — "guardar no meu WhatsApp" (09/09) */
  background: #25d366; color: #062b12;
  box-shadow: 0 6px 0 #128c7e, 0 14px 30px rgba(37, 211, 102, .22);
}
.btn-zap:active { box-shadow: 0 3px 0 #128c7e; }
.btn-fantasma {
  background: transparent; color: var(--ouro-vivo);
  border: 1px solid var(--ouro-escuro); box-shadow: none;
  font-size: 14px; padding: 13px 16px;
}
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- cartões / molduras ---------- */
.cartao {
  background: linear-gradient(180deg, var(--carvao), var(--carvao2));
  border: 1px solid var(--borda); border-radius: 18px; padding: 18px;
}
.moldura-ouro {
  border: 1px solid var(--ouro-escuro); border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(240, 207, 109, .12),
              0 18px 40px rgba(0, 0, 0, .5);
}

/* almofada de veludo onde a prévia/chaveiro deita */
.veludo {
  background:
    radial-gradient(ellipse 120% 90% at 50% 18%, #322a1c, var(--veludo) 75%);
  position: relative; overflow: hidden;
}
.veludo::after {           /* facho de luz do expositor */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 30%,
              rgba(240, 207, 109, .16), transparent 70%);
}

/* imagem de chaveiro sobre o veludo */
.joia { display: block; max-width: 100%; height: auto;
        border-radius: 10px;
        box-shadow: 0 16px 30px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .45); }
.joia.redonda { border-radius: 50%; box-shadow: none;
                filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55)); }

/* ---------- utilitários ---------- */
.mini { font-size: 12.5px; color: var(--cinza); }
.centro { text-align: center; }
.sobe { animation: sobe .6s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } }

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ouro-vivo); outline-offset: 2px; border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* linha de picote de cupom */
.picote {
  height: 14px;
  background: radial-gradient(circle at 8px 7px, var(--preto) 6px, transparent 6.5px);
  background-size: 22px 14px; background-position: 4px 0;
}

/* lembrete da última encomenda deste celular (static/lembrete_encomenda.js) */
.lembrete-enc {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 14px auto 0; max-width: 460px; padding: 12px 14px; border-radius: 14px;
  background: rgba(212, 175, 55, .08); border: 1px solid var(--ouro-escuro);
  color: var(--marfim); text-decoration: none; font-size: 14px;
}
.lembrete-enc .lembrete-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lembrete-enc .lembrete-txt b { font-family: var(--f-display); font-size: 14px; color: var(--ouro-vivo); }
.lembrete-enc .lembrete-txt small { font-size: 12px; color: var(--cinza); overflow: hidden;
                                    text-overflow: ellipsis; white-space: nowrap; }
.lembrete-enc .lembrete-btn {
  flex: none; font-family: var(--f-display); font-size: 12px; letter-spacing: .04em;
  color: #111; background: var(--amarelo); padding: 8px 12px; border-radius: 99px;
}
