* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #333;
}

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

/* HEADER */
header {
  background: white;
  padding: 12px 0;
  border-bottom: 3px solid #004aad;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  color: #004aad;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s ease;
}

nav a:hover {
  background: #ff3b3b;
  color: white;
}

/* HERO */
.hero {
  background: #111111;
  color: white;
  text-align: center;
  padding: 60px 20px;
  border-radius: 0 0 30px 30px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* 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 8px 20px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 10px;
}

.preco {
  color: #ff3b3b;
  font-weight: 700;
  margin: 10px 0;
  font-size: 1.1rem;
}

/* CATEGORIA */
.categoria-titulo {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #004aad;
  border-left: 5px solid #ff3b3b;
  padding-left: 10px;
  text-align: left;
}

/* DETALHE PRODUTO */
.produto-detalhe {
  display: none; /* inicia escondido */
  padding: 50px 0;
  background: white;
  flex-direction: column;
  gap: 25px;
}

.produto-detalhe.active {
  display: flex; /* mostra quando a classe active é adicionada */
}

.detalhe-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.detalhe-content img {
  width: 100%;
  max-width: 400px;
  object-fit: contain;
  margin: auto;
}

.destaque {
  font-size: 1.4rem;
  font-weight: 700;
}

/* BOTÕES */
.btn-pedido,
.modal-box button {
  background: #ff3b3b;
  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,
.modal-box button:hover {
  background: #cc0000;
}

.voltar {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #004aad;
  font-weight: 600;
}

/* CONTATO */
.contato {
  background: #004aad;
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.contato p {
  margin: 8px 0;
}

/* FOOTER */
footer {
  background: #002f6c;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  display: none; /* escondido por padrão */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex; /* mostra quando a classe active é adicionada */
}

.modal-box {
  background: white;
  width: 95%;
  max-width: 500px;
  border-radius: 12px;
  padding: 25px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: aparecer 0.2s ease-in-out;
}

@keyframes aparecer {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-box h2 {
  margin-bottom: 20px;
  color: #004aad;
}

/* ITEM DO CARRINHO */
.item-carrinho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.remover-btn {
  background: #ff3b3b;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
}

.remover-btn:hover {
  background: #cc0000;
}

.total-carrinho {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 15px;
  text-align: right;
}

.obs-entrega {
    color=cc0000;
    font-weight: 600;
    font-size: 0,9rem;
    margin-top: 5px;
}

/* BOTÃO HEADER CARRINHO */
.btn-carrinho {
  background: #004aad;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-carrinho:hover {
  background: #002f6c;
}

/* FORMULÁRIO MODAL */
.modal-box input,
.modal-box select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
}

.modal-box input:focus,
.modal-box select:focus {
  outline: none;
  border-color: #004aad;
}

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

  .detalhe-content {
    flex-direction: row;
    align-items: center;
  }

  .detalhe-content div {
    flex: 1;
  }
}