*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: Arial, Helvetica, sans-serif;
  background: #f8f4ef;
  padding: 40px;
  color: #3d2c1e;
}

h1{
  text-align: center;
  font-size: 42px;
  margin-bottom: 15px;
}

.subtitulo{
  text-align: center;
  color: #7a6a5a;
  margin-bottom: 50px;
}

h2{
  margin-bottom: 40px;
  text-align: center;
  font-size: 36px;
}

.secao{
  margin-bottom: 70px;
}

.cards{
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.card{
  width: 300px;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}

.card img{
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.conteudo{
  padding: 22px;
}

.card h3{
  margin-bottom: 12px;
}

.preco{
  color: #c79a63;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 18px;
}

select,
input,
textarea{
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 14px;
  font-size: 15px;
}

textarea{
  min-height: 120px;
  resize: vertical;
}

.botao{
  width: 100%;
  border: none;
  padding: 14px;
  border-radius: 12px;
  background: #c79a63;
  color: white;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
}

.botao:hover{
  background: #b6864f;
}

.carrinho{
  background: white;
  padding: 35px;
  border-radius: 25px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  max-width: 1000px;
  margin: auto;
}

.item{
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.item-topo{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.info-item{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-item strong{
  font-size: 18px;
}

.detalhes{
  margin-top: 10px;
  color: #666;
  line-height: 1.7;
}

.controles{
  display: flex;
  align-items: center;
  gap: 10px;
}

.controles button{
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.menos,
.mais{
  width: 35px;
  height: 35px;
  font-size: 18px;
}

.menos{
  background: #ececec;
}

.mais{
  background: #c79a63;
  color: white;
}

.remover{
  background: crimson;
  color: white;
  padding: 10px 14px;
}

.total{
  margin-top: 25px;
  font-size: 28px;
  font-weight: bold;
}

.formulario{
  margin-top: 40px;
}

.finalizar{
  background: #25D366;
}

.finalizar:hover{
  background: #1ebe5d;
}

.vazio{
  color: #777;
}

.lista-kit{
  margin-bottom: 16px;
  color: #666;
  line-height: 1.6;
}

@media(max-width: 768px){

  body{
    padding: 20px;
  }

  h1{
    font-size: 32px;
  }

  .card{
    width: 100%;
  }

  .item-topo{
    flex-direction: column;
    align-items: flex-start;
  }

  .controles{
    width: 100%;
    flex-wrap: wrap;
  }

  .remover{
    width: 100%;
  }

}

.erro{
  display: block;
  color: crimson;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.campo-erro{
  border: 1px solid crimson !important;
}

/* MODAL */

.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: 0.3s;

  z-index: 999;
}

.modal.ativo{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-conteudo{
  background: white;
  padding: 35px;
  border-radius: 24px;
  width: 90%;
  max-width: 420px;

  text-align: center;

  transform: translateY(20px);
  transition: 0.3s;
}

.modal.ativo .modal-conteudo{
  transform: translateY(0);
}

.modal-conteudo h3{
  font-size: 28px;
  margin-bottom: 15px;
  color: #3d2c1e;
}

.modal-conteudo p{
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.fechar-modal{
  border: none;
  background: #c79a63;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s;
}

.fechar-modal:hover{
  background: #b6864f;
}
/* PREÇO COM DESCONTO */

.preco{
  display: flex;
  align-items: center;
  gap: 10px;

  flex-wrap: wrap;

  margin-bottom: 12px;
}

.preco-original{
  font-size: 15px;

  color: #8b8b8b;

  text-decoration: line-through;
}

.preco-desconto{
  font-size: 26px;

  font-weight: bold;

  color:#c79a63;
}

.badge-desconto{
  background-color: #fd1010;

  color: white;

  font-size: 12px;

  font-weight: bold;

  padding: 4px 8px;

  border-radius: 20px;

  letter-spacing: 0.5px;
}