/* Estilo geral */
body {
  font-family: Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #0f172a;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tema escuro */
.dark {
  background-color: #0f172a;
  color: #fbfbfb;
  transition: 0,3s ease-in-out;
}

/* Tema claro */
.light {
  background-color: #f8fafc;
  color: #0f172a;
}
.dark h1, .dark h2 {
  color: #ffffff;
}
.light h1, .light h2 {
  color: #0f172a;
}

.dark input, .dark textarea, .dark select {
  background-color: #1e293b;
  color: #ffffff;
}

.light input, .light textarea, .light select {
  background-color: #fff;
  color: #0f172a;
}

.dark .produto {
  background-color: #ffffff;
}

.light .produto {
  background-color: #e2e8f0;
}
.dark #lista-produtos li {
  background-color: #ececec;
  color: #000000;
  box-shadow: none;
}

button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background-color: #3b82f6;
  color: white;
}


/* Títulos */
h1, h2 {
  text-align: center;
  margin: 20px 0;
}

h1 {
  font-size: 2.5rem;
  color: #ffffff;
}

h2 {
  font-size: 1.8rem;
  color: #58a6ff;
}

 /* Lista de produtos */
#lista-produtos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}


#lista-produtos li {
  background-color: #1e293b;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  width: 250px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

#lista-produtos li:hover {
  transform: translateY(-8px);
}

#lista-produtos img {
  max-width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

/* Campo de nome */
input[type="text"],
input, select, textarea {
  padding: 10px;
  max-width: 100%;
  border-radius: 5px;
  border: 1px solid #30363d;
  background-color: #ffffff;
  color: #000000;
  margin: 10px auto;
  display: block;
}

input[type="text"]:focus {
  border-color: #58a6ff;
  outline: none;
}

/* Botões padrão */
button {
  background-color: #2f81f7;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Botão finalizar pedido */
#finalizar-pedido {
  background-color: #238636;
  margin-top: 20px;
  font-size: 1.1rem;
}

#finalizar-pedido:hover {
  background-color: #2ea043;
}

/* Carrinho */
#carrinho {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

#carrinho li {
  background-color: #161b22;
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Controle de quantidade */
.quantidade-controle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.botao-tema-verde {
  background-color:#10b981;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.botao-tema-vermelho {
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.filtros{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}
/* Total */
#total {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3fb950;
  margin-top: 15px;
}

/* Modal */
#modal, #modal-overlay {
  display: none;
  position: fixed;
}

#modal-overlay {
  top: 0;
  left: 0;
  max-width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: #ffffff;
  color: #1f1f1f;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  width: 90%;
  max-width: 420px;
  max-height: 80%;
  overflow-y: auto;
  transition: all 0.3s ease-in-out;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#modal h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #00254d;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#modal .modal-content {
  font-size: 1rem;
  line-height: 1.6;
}

#modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

#modal .modal-actions button {
  background: #00254d;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

#modal .modal-actions button:hover {
  background: #014e9c;
}


/* Modal botão fechar */
.fechar-modal {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.fechar-modal:hover {
  background-color: #d32f2f;
}

/* Botão limpar carrinho */
#limpar-carrinho {
  background-color: #ff9800;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#limpar-carrinho:hover {
  background-color: #fb8c00;
}

/* Carrinho no modal */
.produtos-modal {
  list-style-type: none;
  padding: 0;
}

.produtos-modal li {
  margin: 10px 0;
}

.produtos-modal button {
  padding: 5px 10px;
  margin: 0 5px;
  cursor: pointer;
}

/* Comprovante */
#pedido-imagem {
  background-color: #161b22;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  width: 90%;
  max-width: 400px;
  margin: 20px auto;
  border-radius: 10px;
  color: #c9d1d9;
}

#pedido-imagem h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #58a6ff;
}

#pedido-imagem p {
  font-size: 1.2rem;
  margin: 10px 0;
}

#pedido-imagem ul {
  list-style: none;
  padding: 0;
}

#pedido-imagem ul li {
  font-size: 1.1rem;
  padding: 5px 0;
  border-bottom: 1px solid #30363d;
}

#pedido-imagem ul li:last-child {
  border-bottom: none;
}
footer {
  background-color: #081022;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  max-width: 100%;
  position: relative;
  bottom: 0;
}
footer img {
  width: 20px;
  height: 20px;
  margin-left: 5px;
  border-radius: 100%;
}
footer a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
  #lista-produtos {
    flex-direction: column;
    align-items: center;
  }

  #lista-produtos li {
    width: 90%;
  }
  #img{
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1rem;
  }

  input[type="text"] {
    width: 90%;
  }

  .produto {
    display: flex;
    font-size: 12px;
    max-width: 90%;
    gap: 10px;
  }

  #lista-produtos li {
    max-width: 300px;
    margin: 10px auto;
  }
  .img {
    max-width: 90%;
    width: 150px; /* ou o tamanho que desejar */
    height: auto;
    object-fit: cover; /* para preencher mantendo o recorte */
    border-radius: 8px; /* opcional, deixa a imagem com cantos arredondados */
  }
  
  .filtros{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
  }
  .detalhes-produto {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 120px;
  }
  .quantidade-controle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
 }

