/* ==========================================================================
   Marmitas Fitness — estilos
   Reproduz exatamente a aparência das classes Tailwind do projeto original.
   ========================================================================== */

:root {
  --background: 38 33% 95%;
  --foreground: 130 40% 10%;

  --card: 40 30% 97%;
  --card-foreground: 130 40% 10%;

  --primary: 130 60% 22%;
  --primary-foreground: 0 0% 100%;

  --secondary: 24 90% 50%;
  --secondary-foreground: 0 0% 100%;

  --muted: 38 20% 90%;
  --muted-foreground: 130 10% 40%;

  --accent: 24 90% 50%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;

  --border: 38 20% 82%;
  --input: 38 20% 82%;
  --ring: 130 60% 22%;

  --radius: 0.625rem;
  --radius-sm: calc(0.625rem - 4px);
  --radius-lg: calc(0.625rem + 4px);
  --radius-full: 9999px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03), 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05);

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;

  /* Cores literais usadas no formulário */
  --verde: #1B5E20;
  --verde-hover: #145218;
  --laranja: #E65C00;
  --whatsapp: #25D366;
  --whatsapp-hover: #1fb855;
  --borda-clara: #d4cbb8;
  --texto-escuro: #3e3e2e;
  --texto-medio: #5a5a3a;
  --texto-suave: #8a8a6a;
  --radio-borda: #bbb5a3;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-feature-settings: "rlig" 1, "calt" 1;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
}

button {
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ---- Layout ---- */
.pagina {
  min-height: 100vh;
  background-color: hsl(var(--background));
}

.container {
  max-width: 32rem;
  margin-inline: auto;
  padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-block: 2.5rem;
  }
}

/* ---- Cabeçalho ---- */
.cabecalho {
  text-align: center;
  margin-bottom: 2rem;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--verde);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.titulo {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--verde);
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .titulo {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.subtitulo {
  color: var(--texto-medio);
  font-weight: 500;
  font-size: 1rem;
}

.preco-destaque {
  margin-top: 1rem;
  display: inline-block;
  background-color: var(--laranja);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.preco-destaque .unidade {
  font-weight: 400;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ---- Cartões ---- */
.cartao {
  background-color: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.cartao-titulo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--verde);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.campos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- Campos ---- */
.rotulo {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--texto-escuro);
  margin-bottom: 0.25rem;
}

.campo-icone {
  position: relative;
}

.campo-icone svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(27 94 32 / 0.6);
  pointer-events: none;
}

.entrada {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid var(--borda-clara);
  background-color: #fff;
  outline: none;
  font-size: 0.875rem;
  transition: all var(--duration-normal);
}

.campo-icone .entrada {
  padding-left: 2.5rem;
}

.entrada:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 2px rgb(27 94 32 / 0.2);
}

.entrada::placeholder {
  color: #9ca3af;
}

textarea.entrada {
  resize: none;
}

/* ---- Marmitas ---- */
.marmita-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.marmita-topo .cartao-titulo {
  margin-bottom: 0;
}

.botao-remover {
  color: #ef4444;
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--duration-normal);
}

.botao-remover:hover {
  color: #b91c1c;
  background-color: #fef2f2;
}

.grupo {
  margin-bottom: 1rem;
}

.grupo-titulo {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--laranja);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.opcoes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ---- Cartão de seleção ---- */
.opcao {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid var(--borda-clara);
  background-color: rgb(255 255 255 / 0.6);
  color: var(--texto-escuro);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 200ms;
}

.opcao:hover {
  border-color: rgb(27 94 32 / 0.4);
  background-color: rgb(27 94 32 / 0.05);
}

.opcao.selecionada {
  border-color: var(--verde);
  background-color: rgb(27 94 32 / 0.1);
  color: var(--verde);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.opcao-conteudo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.opcao-radio {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  border: 2px solid var(--radio-borda);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.opcao.selecionada .opcao-radio {
  border-color: var(--verde);
  background-color: var(--verde);
}

.opcao-radio-ponto {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #fff;
  display: none;
}

.opcao.selecionada .opcao-radio-ponto {
  display: block;
}

/* ---- Quantidade ---- */
.quantidade-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(27 94 32 / 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
}

.quantidade-rotulo {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--verde);
}

.quantidade-controle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quantidade-botao {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: var(--verde);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal);
}

.quantidade-botao:hover:not(:disabled) {
  background-color: var(--verde-hover);
}

.quantidade-botao:active:not(:disabled) {
  transform: scale(0.95);
}

.quantidade-botao:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quantidade-valor {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--verde);
  min-width: 2ch;
  text-align: center;
  font-family: var(--font-mono);
}

/* ---- Botão adicionar ---- */
.botao-adicionar {
  width: 100%;
  padding-block: 0.75rem;
  border-radius: 0.75rem;
  border: 2px dashed rgb(27 94 32 / 0.4);
  color: var(--verde);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--duration-normal);
  margin-bottom: 1.25rem;
}

.botao-adicionar:hover {
  background-color: rgb(27 94 32 / 0.05);
}

.botao-adicionar:active {
  transform: scale(0.97);
}

/* ---- Resumo ---- */
.resumo {
  background-color: rgb(27 94 32 / 0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.resumo .cartao-titulo {
  margin-bottom: 0.5rem;
}

.resumo-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--texto-escuro);
}

.resumo-linha + .resumo-linha {
  margin-top: 0.25rem;
}

.resumo-rotulo {
  font-size: 0.875rem;
}

.resumo-quantidade {
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-mono);
}

.resumo-total {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--laranja);
  font-family: var(--font-mono);
}

/* ---- Erros ---- */
.erros {
  background-color: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.erros[hidden] {
  display: none;
}

.erros-titulo {
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.erros-lista {
  list-style: disc inside;
  color: #dc2626;
  font-size: 0.875rem;
}

.erros-lista li + li {
  margin-top: 0.25rem;
}

/* ---- Botão WhatsApp ---- */
.botao-whatsapp {
  width: 100%;
  padding-block: 1rem;
  border-radius: 1rem;
  background-color: var(--whatsapp);
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: all var(--duration-normal);
}

.botao-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.botao-whatsapp:active {
  transform: scale(0.98);
}

/* ---- Rodapé ---- */
.rodape {
  text-align: center;
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-top: 1.5rem;
}

/* ---- Animações (equivalentes ao framer-motion) ---- */
@keyframes surgir-de-cima {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes surgir-de-baixo {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes surgir-escala {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes sumir-escala {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.95); }
}

.anim-topo {
  animation: surgir-de-cima var(--duration-slow) ease-out both;
}

.anim-baixo {
  animation: surgir-de-baixo var(--duration-slow) ease-out both;
}

.anim-atraso-1 { animation-delay: 100ms; }
.anim-atraso-2 { animation-delay: 200ms; }
.anim-atraso-3 { animation-delay: 250ms; }

.anim-entrada {
  animation: surgir-escala 250ms ease-out both;
}

.anim-saida {
  animation: sumir-escala 250ms ease-in both;
}

@media (prefers-reduced-motion: reduce) {
  .anim-topo,
  .anim-baixo,
  .anim-entrada,
  .anim-saida {
    animation: none;
  }
}
