/* ULLA FITNESS — tokens e base compartilhados (loja + painel) */
:root {
  --ameixa: #2B1523;      /* fundo escuro da marca (logo) */
  --ameixa-2: #3D2133;    /* superfícies sobre o escuro */
  --ameixa-3: #57344A;    /* bordas sobre o escuro */
  --lima: #D2EF2C;        /* traço neon da logo — acento */
  --lima-escuro: #6E7F00; /* lima legível sobre fundo claro */
  --malva: #F2E8EC;       /* fundo claro das vitrines */
  --malva-2: #E4D3DA;     /* bordas / placeholders no claro */
  --branco: #FFFFFF;
  --tinta: #241019;       /* texto no claro */
  --tinta-2: #6B5361;     /* texto secundário no claro */
  --nevoa: #F7F0F3;       /* texto no escuro */
  --nevoa-2: #C3A9B7;     /* texto secundário no escuro */
  --erro: #B3261E;
  --ok: #2E7D4F;

  --font: "Urbanist", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--malva);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible, .on-light:focus-visible { outline-color: var(--ameixa); }

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

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 0; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none;
  transition: transform .15s var(--ease), background-color .2s, color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-lima { background: var(--lima); color: var(--ameixa); }
.btn-lima:hover { box-shadow: 0 0 0 4px rgba(210, 239, 44, .25); }
.btn-ameixa { background: var(--ameixa); color: var(--nevoa); }
.btn-ameixa:hover { background: var(--ameixa-2); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, .08); }
.btn-whats { background: #1FA855; color: #fff; }
.btn-whats:hover { background: #18914a; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.icon { width: 22px; height: 22px; flex: none; }

/* Campos */
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: 14px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--malva-2); border-radius: var(--r-sm);
  background: var(--branco); color: var(--tinta);
  transition: border-color .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ameixa); }
.field-hint { font-size: 13px; color: var(--tinta-2); }
.field-error { font-size: 13px; color: var(--erro); font-weight: 600; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 420px); padding: 14px 20px; border-radius: var(--r-md);
  background: var(--ameixa); color: var(--nevoa); box-shadow: 0 12px 40px rgba(43, 21, 35, .35);
  font-weight: 600; font-size: 15px;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.erro { background: var(--erro); color: #fff; }

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