/* ==========================================================================
   BASE — o que a loja e o painel usam em comum.
   O painel fica com este tema claro; a loja troca as cores em store.css.
   ========================================================================== */

:root {
  --gold: #ffbe0e;
  --gold-2: #c98f00;
  --gold-dim: rgba(255, 190, 14, 0.18);
  --bg: #f6f4ee;
  --bg-2: #ffffff;
  --bg-3: #efede6;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --text: #1c1b18;
  --text-2: #6b6760;
  --danger: #ff5252;
  --green: #25d366;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.hidden { display: none !important; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #f0a500);
  color: #181200;
  box-shadow: 0 6px 24px rgba(255, 190, 14, 0.35);
}
.btn-gold:hover { box-shadow: 0 8px 32px rgba(255, 190, 14, 0.5); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-big { width: 100%; padding: 15px; font-size: 15px; }

/* ---------- botão de fechar ---------- */
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line);
  font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: border 0.15s var(--ease), color 0.15s var(--ease);
  color: var(--text);
}
.modal-close:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- marca ---------- */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display); font-weight: 900; font-size: 15px;
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 60%, #c98f00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  background: #1c1b18; color: var(--gold); font-family: var(--font-display);
  font-weight: 900; font-size: 16px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- avisos flutuantes ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 120; background: var(--bg-3); border: 1px solid var(--gold);
  color: var(--text); padding: 12px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow);
  animation: toastIn 0.25s var(--ease);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast-ask {
  display: flex; flex-direction: column; gap: 10px;
  border-radius: 16px; padding: 16px 18px; z-index: 130;
  max-width: min(360px, calc(100vw - 32px));
}
.toast-ask p { margin: 0; font-weight: 700; line-height: 1.4; }
.toast-ask-actions { display: flex; gap: 8px; }
.toast-ask-actions .btn { flex: 1; }

/* ---------- animações ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
