/* Oferteiro — tokens e peças comuns ao site e ao painel. */

:root {
  /* Violeta: contrasta com o laranja da Shopee/Amazon e o amarelo do Mercado
     Livre (as lojas aparecem em todo lugar do produto) sem se confundir com o
     verde do WhatsApp, o azul do Telegram nem com as cores de status. Lima é
     o destaque "de oferta", só sobre fundo escuro. */
  --ink: #130f2b;
  --ink-rgb: 19, 15, 43;
  --ink-2: #1c1740;
  --ink-3: #2a2359;
  --text: #17142e;
  --text-2: #524d6e;
  --text-3: #8b87a5;
  --bg: #f5f4fa;
  --bg-rgb: 245, 244, 250;
  --surface: #ffffff;
  --surface-2: #f9f8fd;
  --border: #e6e3f0;
  --border-2: #d6d1e6;
  --accent: #6c47ff;
  --accent-rgb: 108, 71, 255;
  --accent-2: #7f5dff;
  --accent-soft: #efebff;
  --accent-deep: #3f1fb3;
  --accent-ink: #ffffff;
  --pop: #c6f432;
  --pop-ink: #1b2300;
  --chart-2: #19b89c;
  --ok: #15a34a;
  --ok-soft: #e8f7ee;
  --warn: #c77700;
  --warn-soft: #fff6e0;
  --err: #d92d20;
  --err-soft: #fdecea;
  --info: #2563eb;
  --info-soft: #eaf1ff;
  --shopee: #ee4d2d;
  --ml: #ffe600;
  --ml-ink: #2d3277;
  --amazon: #ff9900;
  --amazon-ink: #131921;
  --whatsapp: #25d366;
  --telegram: #229ed9;
  --magalu: #0086ff;
  --facebook: #1877f2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(var(--ink-rgb), 0.05), 0 4px 16px rgba(var(--ink-rgb), 0.05);
  --shadow-lg: 0 12px 40px rgba(var(--ink-rgb), 0.14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--text-3);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.28);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(var(--ink-rgb), 0.05);
  border-color: transparent;
}
.btn-danger {
  color: var(--err);
}
.btn-danger:hover {
  border-color: var(--err);
}
.btn-sm {
  padding: 6px 11px;
  font-size: 13px;
  border-radius: 8px;
}
.btn-lg {
  padding: 14px 22px;
  font-size: 16px;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}

/* campos */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field > label,
.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.hint {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
}
.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.check input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* etiquetas */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.tag.ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: transparent;
}
.tag.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: transparent;
}
.tag.err {
  background: var(--err-soft);
  color: var(--err);
  border-color: transparent;
}
.tag.info {
  background: var(--info-soft);
  color: var(--info);
  border-color: transparent;
}
.tag.accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.dot.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.mkt {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.mkt-shopee {
  background: var(--shopee);
  color: #fff;
}
.mkt-mercadolivre {
  background: var(--ml);
  color: var(--ml-ink);
}
.mkt-amazon {
  background: var(--amazon-ink);
  color: var(--amazon);
}
.mkt-magalu {
  background: var(--magalu);
  color: #fff;
}
.mkt-shein {
  background: #111;
  color: #fff;
}

/* avisos no canto */
.toasts {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.2s ease-out;
}
.toast.err {
  background: var(--err);
}
.toast.ok {
  background: #0f7a38;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.hidden {
  display: none !important;
}
