:root {
  --rosa: #d6336c;
  --rosa-claro: #ffe3ec;
  --dourado: #c9a86a;
  --texto: #3a2e2e;
  --fundo: #fff8f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--fundo);
  color: var(--texto);
}

header {
  background: linear-gradient(90deg, var(--rosa), #ff6f91);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 { margin: 0; font-size: 1.5rem; }
header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 16px;
  font-weight: 600;
  opacity: 0.9;
}
header nav a:hover { opacity: 1; text-decoration: underline; }

main { max-width: 1100px; margin: 0 auto; padding: 24px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: var(--rosa-claro);
}

.card .info { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card p.desc { font-size: 0.85rem; color: #666; margin: 0; flex: 1; }
.card .preco { color: var(--rosa); font-weight: 700; font-size: 1.1rem; }

button, .btn {
  background: var(--rosa);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
button:hover, .btn:hover { background: #b32a5c; }
button.secundario { background: #eee; color: var(--texto); }
button.secundario:hover { background: #ddd; }
button.perigo { background: #c0392b; }
button.perigo:hover { background: #922b21; }

form.form-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}

label { font-size: 0.85rem; font-weight: 600; color: #555; }
input, textarea {
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
}

table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
th { background: var(--rosa-claro); color: var(--rosa); }

.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
}
.stat span.valor { display: block; font-size: 1.6rem; font-weight: 700; color: var(--rosa); margin-top: 4px; }
.stat span.rotulo { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 0.03em; }

.barra-fundo { background: #eee; border-radius: 6px; height: 10px; overflow: hidden; margin-top: 4px; }
.barra-preenchida { background: var(--rosa); height: 100%; }

.pix-box {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.pix-box img { width: 220px; height: 220px; margin: 12px 0; }
.copia-cola {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  word-break: break-all;
  margin: 10px 0;
}

.carrinho { position: sticky; top: 20px; }
.linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.msg-sucesso { color: #1a7f37; font-weight: 600; }
.msg-erro { color: #c0392b; font-weight: 600; }
.vazio { color: #999; font-style: italic; padding: 20px; text-align: center; }
