/* ============================
   Reset básico
   ============================ */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  color: #333;
}

/* ============================
   Topo fixo com nome
   ============================ */
#topo {
  background: #6b4226;   /* faixa marrom */
  color: white;
  text-align: center;
  padding: 20px;
}
#topo h1 {
  margin: 0;
  font-size: 2em;
  font-weight: bold;
}

/* ============================
   Login
   ============================ */
#loginArea {
  background: #fff;
  border: 2px solid #6b4226;
  border-radius: 8px;
  padding: 20px;
  margin: 30px auto 20px auto;
  width: 300px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#loginArea h2 { color: #6b4226; }
#loginForm { display: flex; flex-direction: column; gap: 10px; }
#loginForm input, #loginForm button { padding: 8px; font-size: 1em; }

/* ============================
   Banner logo abaixo do login
   ============================ */
#banner {
  background: #f5f0e6;
  border: 2px solid #6b4226;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  margin: 20px auto;
  max-width: 600px;
}
#banner h2 {
  margin: 0;
  font-size: 1.4em;
  color: #6b4226;
}

/* ============================
   Painel administrativo
   ============================ */
#painel {
  background: #f5f0e6;
  border: 2px solid #6b4226;
  border-radius: 8px;
  padding: 20px;
  margin: 20px;
}
#painel h2, #painel h3 { color: #6b4226; }

/* ============================
   Botões
   ============================ */
button {
  background: #6b4226;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: #8b5e3c; }

/* ============================
   Mensagens
   ============================ */
.mensagem { margin-top: 10px; padding: 8px; border-radius: 4px; font-size: 0.9em; }
.mensagem.erro { background: #ffe5e5; color: #d8000c; }
.mensagem.sucesso { background: #e5ffe5; color: #4f8a10; }

/* ============================
   Tabela
   ============================ */
#productTable { width: 100%; border-collapse: collapse; margin-top: 15px; }
#productTable th, #productTable td { border: 1px solid #ddd; padding: 8px; text-align: center; }
#productTable th { background: #6b4226; color: white; }

/* ============================
   Campo descrição
   ============================ */
#descricao {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 8px;
  font-size: 1em;
  border: 1px solid #6b4226;
  border-radius: 4px;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ============================
   Vitrine
   ============================ */
.vitrine-titulo {
  text-align: center;
  margin-top: 20px;
  color: #6b4226;
}
#vitrine {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px;
  justify-content: center;
}
.card {
  background: #f5f0e6;
  border: 2px solid #6b4226;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 15px;
  width: 220px;
  text-align: center;
  transition: transform 0.2s ease;
}
.card:hover { transform: scale(1.05); }
.card img {
  width: 220px;       /* largura fixa */
  height: 220px;      /* altura fixa */
  object-fit: cover;  /* corta e ajusta sem distorcer */
  border-radius: 6px;
  border: 1px solid #6b4226;
  margin-bottom: 10px;
}
.card-numero {
  font-weight: bold;
  color: #6b4226;
  display: block;
  margin-bottom: 5px;
}
.card h3 { margin: 10px 0 5px; color: #4a2c16; }
.card p { margin: 5px 0; color: #4a2c16; font-size: 0.95em; word-wrap: break-word; overflow-wrap: break-word; }
.card span { display: block; margin-bottom: 5px; }

/* ============================
   Bloco de contato discreto
   ============================ */
#contato-discreto {
  background: #fff;
  border: 1px dashed #6b4226;
  border-radius: 6px;
  padding: 10px;
  margin: 15px auto;
  text-align: center;
  max-width: 600px;
  font-size: 0.95em;
  color: #4a2c16;
  opacity: 0.85;
}
#contato-discreto p { margin: 5px 0; }
#contato-discreto p:first-child {
  font-weight: bold;
  color: #25D366;
}
#contato-discreto p:nth-child(2) {
  font-style: italic;
  color: #6b4226;
}

/* ============================
   Área de filtros
   ============================ */
#filtros {
  background: #fff;
  border: 2px solid #6b4226;
  border-radius: 8px;
  padding: 15px;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#filtros select, #filtros button {
  margin: 5px;
  padding: 8px;
  font-size: 1em;
  border-radius: 4px;
  border: 1px solid #6b4226;
}
#filtros button {
  background: #6b4226;
  color: #fff;
  border: none;
  cursor: pointer;
}
#filtros button:hover {
  background: #8b5e3c;
}

/* ============================
   Links
   ============================ */
a {
  color: #6b4226;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
  text-decoration: underline;
  color: #8b5e3c;
}

/* ============================
   Responsividade
   ============================ */
@media (max-width: 768px) {
  #loginArea, #painel, #contato-discreto, #filtros, #banner {
    width: 90%;
    margin: 20px auto;
  }
  .card {
    width: 100%;
    max-width: 300px;
  }
  #productTable {
    font-size: 0.9em;
  }
}
