
/* RESET E BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: #f9f9f9; color: #333; }

/* CONTAINER */
.container { width: 90%; max-width: 1100px; margin: auto; }

/* HEADER */
header { background: white; padding: 12px 0; border-bottom: 3px solid #22c55e; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: #16a34a; letter-spacing: 1px; }
nav ul { list-style: none; display: flex; gap: 15px; flex-wrap: wrap; }
nav a { color: #16a34a; text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 6px; transition: 0.3s ease; }
nav a:hover { background: #22c55e; color: white; }
.btn-carrinho { background: #22c55e; color: white; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-carrinho:hover { background: #16a34a; }

/* HERO */
.hero { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: white; text-align: center; padding: 60px 20px; border-radius: 0 0 30px 30px; }
.hero h2 { font-size: 2rem; margin-bottom: 10px; }
.hero p { font-size: 1.1rem; opacity: 0.95; }

/* PRODUTOS */
.produtos { padding: 50px 0; text-align: center; }
.cards { display: grid; gap: 20px; margin-bottom: 30px; }
.card { background: white; padding: 20px; border-radius: 14px; box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1); transition: 0.3s ease; }
.card:hover { box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15); transform: translateY(-2px); }
.card img { width: 100%; height: 200px; object-fit: contain; }
.preco { color: #16a34a; font-weight: 700; margin: 10px 0; font-size: 1.1rem; }
.categoria-titulo { margin-top: 40px; margin-bottom: 20px; font-size: 1.4rem; color: #16a34a; border-left: 5px solid #22c55e; padding-left: 10px; text-align: left; }
.btn-pedido { background: #22c55e; color: white; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; transition: 0.3s; margin: 5px 5px 0 0; font-weight: 600; }
.btn-pedido:hover { background: #16a34a; }
.item-carrinho { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-bottom: 1px solid #e5e5e5; padding-bottom: 8px; }
.remover-btn { background: #ef4444; color: white; border: none; padding: 5px 8px; border-radius: 5px; cursor: pointer; font-size: 0.8rem; transition: 0.2s; }
.remover-btn:hover { background: #dc2626; }

/* FOOTER */
footer { background: #16a34a; color: white; text-align: center; padding: 20px 0; font-size: 0.9rem; }

/* MODAIS CENTRALIZADOS */
#modal-carrinho,
#modal-formulario {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#modal-carrinho.ativo,
#modal-formulario.ativo { display: flex; }
.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  border-top: 4px solid #22c55e;
}
.modal-content h2 { color: #16a34a; margin-bottom: 15px; }
.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  transition: 0.2s;
}
.modal-content input:focus,
.modal-content select:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* RESPONSIVO */
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }