/* Reset básico e fonte */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
}

input, select,textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Header fixo no topo */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
  padding: 5px 0;
  text-align: left;
  box-sizing: border-box;
}

header h1 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
}

/* Container das abas fixo logo abaixo do header */
.abas-container {
  position: fixed;
  top: 52px; /* altura do header */
  left: 0;
  width: 100%;
  display: flex;
  overflow-x: auto;
  gap: 8px;
  background: white;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  z-index: 999;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* Estilo dos botões das abas */
.abas-container button {
  flex: 0 0 auto; /* impedir os botões de encolher */
  padding: 6px 12px;
  font-size: 0.9rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.abas-container button:hover {
  background-color: #0056b3;
}

.abas-container button.active {
  background-color: #004085;
}

/* Espaçamento para o conteúdo não ficar atrás do header e abas */
.produtos-container {
  margin-top: 100px; /* somar altura do header + abas */
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

/* Cartão de produto */
.produto-card {
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Imagem do produto */
.produto-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Detalhes do produto */
.produto-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Nome do produto */
.produto-info .nome {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin: 0;
}

/* Ingredientes */
.produto-info .ingredientes {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* Preço */
.produto-info .preco {
  font-size: 0.95rem;
  font-weight: 700;
  color: #007bff;
  margin-top: auto;
  align-self: flex-start;
}

/* Responsividade */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }

  .abas-container button {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .produto-card img {
    width: 60px;
    height: 60px;
  }

  .produto-info .nome {
    font-size: 0.95rem;
  }

  .produto-info .ingredientes {
    font-size: 0.8rem;
  }

  .produto-info .preco {
    font-size: 0.9rem;
  }
}
/* === Botão de Checkout no Header === */
.btn-checkout {
  position: absolute;
  right: 12px;
  top: 12px;
  background-color: #ff9800;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.badge-checkout {
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  margin-left: 4px;
}

.lista-checkout {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.lista-checkout li {
  margin-bottom: 8px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
}

.total-checkout {
  font-weight: bold;
  margin-bottom: 12px;
}

.btn-fechar {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

.btn-produto {
  background-color: #ff9800;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-nav {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#sugestoesEndereco {
  list-style: none;
  max-height: 150px;
  overflow-y: auto;
  width: 100%;
  margin-top: 2px;
  padding: 0;
}
#sugestoesEndereco li:hover {
  background-color: #f0f0f0;
}
