/* =================================================================== */
/* 1. ESTILOS GLOBAIS (Reset, Body, Links)
/* =================================================================== */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 00;
  font-style: normal;
  background-color: #eee;
  background-color: #a66f3f;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  font-weight: 200;
  color: #000;
}

legend {
  font-size: x-large;
  font-weight: bolder;
}

/* =================================================================== */
/* 2. HEADER / NAVBAR (Comum a várias páginas)
/* =================================================================== */

.navbar {
  display: flex;
  justify-content: space-between;
  background-color: white;
  align-items: center;
  height: 100px;
  width: 100vw;
  padding-left: 100px;
  padding-right: 40px;
}

.carrinho {
  min-width: 200px;
  display: flex;
  justify-content: space-around;
  gap: 40px;
}

.items ul {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: white;
  height: 50px;
}

.items li {
  color: #000;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
  list-style: none;
}

.pesquisa {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 10px;
}

.pesquisa input {
  border-radius: 60px;
  border: 1px solid #ddd;
  height: 30px;
  width: 100%;
}

/* =================================================================== */
/* 3. LOGIN & REGISTRO (loginRegistro.html)
/* =================================================================== */

#principal {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-image: url(./assets/fundo-login.jpg);
  background-size: cover;
}

form button {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 60px;
  border: 1px solid #8c5230;
  background-color: #8c5230;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.esqueceu {
  font-size: x-small;
  color: #333;
  text-decoration: none;
}

/* Inputs de formulário (usados em Login e Adicionar Produto) */
#nome,
#telefone,
#email,
#senha {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 60px;
  border: 1px solid #ddd;
  width: 100%;
}

.container {
  width: 600px;
  height: 400px;
  border-radius: 20px;
  background-color: white;
  box-shadow: 0 0 10px 2px #401a0c;
  position: relative;
  overflow: hidden;
}

.container_register,
.containerlogin {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login,
.register {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.sexo {
  width: 100%;
  margin: 10px 0 0 10px;
  font-size: 75%;
  flex-direction: row;
}

.containerlogin {
  left: 50%;
  width: 50%;
  z-index: 2;
  opacity: 1;
}

.container_register {
  left: 0;
  width: 50%;
  z-index: 1;
  opacity: 0;
}

/* Overlay animado do Login */
.container-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 10;
  transition: transform 0.6s ease-in-out, border-radius 0.6s ease-in-out;
  border-radius: 20px 100px 100px 20px;
}

.overlay {
  background: #8c5230;
  color: white;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.welcome {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background-color: #8c5230;
  color: white;
  position: absolute;
  top: 0;
  padding: 0 40px;
  height: 100%;
  width: 50%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.welcome-overlay-left {
  transform: translateX(-20%);
}

.welcome-overlay-right {
  right: 0;
  transform: translateX(0);
}

button.ghost {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 60px;
  border: 1px solid white;
  background-color: transparent;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* Animações do container de Login */
.container.modo-cadastro-ativo .containerlogin {
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
  animation: show 0.6s;
}

.container.modo-cadastro-ativo .container-overlay {
  transform: translateX(100%);
  border-radius: 100px 20px 20px 100px;
}

.container.modo-cadastro-ativo .container_register {
  transform: translateX(0);
  opacity: 1;
  z-index: 5;
  animation: show 0.6s;
}

.container.modo-cadastro-ativo .overlay {
  transform: translateX(50%);
}

.container.modo-cadastro-ativo .welcome-overlay-left {
  transform: translateX(0);
}

.container.modo-cadastro-ativo .welcome-overlay-right {
  transform: translateX(20%);
}

@keyframes show {
  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }

  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}

/* =================================================================== */
/* 4. DASHBOARD (dashboard.html)
/* =================================================================== */

#englobamento {
  width: 100vw;
  height: auto;
  display: flex;
  background-color: #a66f3f;
}

#titulo {
  margin-top: 15px;
  text-align: center;
  color: #333;
}

/* Menu Lateral do Dashboard */
#adicionar {
  flex-grow: 0.2;
  max-width: 1000px;
  height: auto;
  margin: 30px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#adicionar h2 {
  font-size: 1rem;
  color: #333;
  margin-top: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 5px;
}

#adicionar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#adicionar li {
  margin-bottom: 10px;
}

#adicionar a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

#adicionar a:hover {
  color: #0056b3;
}

#adicionar hr {
  border: 0;
  height: 2px;
  background-color: #eee;
  margin: 20px 0;
}

/* Container da Lista de Produtos (Dashboard) */
.container-lista-produtos {
  flex-grow: 0.7;
  margin: 30px auto;
  height: auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.container-lista-produtos h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

/* Cabeçalho da Lista (Dashboard) */
.lista-cabecalho-dashboard {
  display: flex;
  font-weight: bold;
  color: #555;
  padding: 10px 0;
  border-bottom: 2px solid #333;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 0.9em;
  gap: 50px;
}

/* Itens da Lista (Dashboard) */
.item-produto-dashboard {
  display: flex;
  align-items: center;
  padding: 15px 0;
}

/* Colunas da Lista (Dashboard) */
.coluna-produto-dashboard {
  width: 200px;
  align-items: center;
  margin-right: 20px;
}

.coluna-estoque-dashboard {
  flex: 1;
  padding-left: 15px;
  text-align: center;
}

.coluna-preco-dashboard {
  flex: 1;
  padding-left: 20px;
  display: flex;
  text-align: center;
  font-weight: bold;
  color: #555;
}

.coluna-editar-dashboard {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.coluna-produto-dashboard img {
  width: 120px;
  margin-left: 25px;
  border-radius: 5px;
}

.coluna-produto p{
  min-width: 180px;
}

.info-produto-dashboard {
  display: flex;
  flex-direction: column;
}

.info-produto-dashboard span {
  font-size: 0.9em;
  color: #777;
}

/* Botões da Lista (Dashboard) */
.botao-deletar-dashboard {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8em;
  background-color: #a66f3f;
}

.botao-deletar-dashboard:hover {
  background-color: #7f532c;
}

.botao-editar-dashboard {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8em;
  background-color: #a66f3f;
}

.botao-edita-dashboard:hover {
  background-color: #7f532c;
}

.quantidade-dashboard {
  display: inline-flex;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  width: 35px;
  height: 35px;
  margin: 0 15px;
  color: #333;
}

.quantidade-dashboard:hover {
  background-color: #ddd;
}

/* =================================================================== */
/* 5. PÁGINA INICIAL (index.html)
/* =================================================================== */

.container_inicio {
  width: 100%;
  height: auto;
}

.banner {
  display: flex;
  background-image: url("assets/Banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 400px;
  justify-content: center;
  align-items: center;
}

.maispedidos-novidade {
  display: flex;
  width: 100%;
  margin-top: 30px;
  justify-content: center;
  font-weight: bold;
}

.lancamento {
  display: flex;
  flex-wrap: wrap; 
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 100px;
}

.lancamento .produto {
  display: flex;
  flex-direction: column;
  height: 300px;
  width: 300px;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  align-items: center;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lancamento .produto:hover {
  transform: scale(1.05);
}

.produto .imagem-produto {
  width: 100%;
  height: 200px;
}

.produto img {
  border-radius: 16px 16px 0 0;
  width: 100%;
  height: 250px; 
  object-fit: cover;
}

/* =================================================================== */
/* 6. RODAPÉ (Comum a várias páginas)
/* =================================================================== */

.rodape {
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: white;
}

.infos {
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.parte-cima {
  padding-top: 40px;
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  align-items: center;
}

.parte-meio {
  padding-top: 40px;
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: baseline;
}

.parte-meio img {
  width: 170px;
  height: 70px;
}

.parte-baixo {
  width: 80%;
  margin-top: 50px;
  font-size: small;
  font-weight: bold;
}

/* =================================================================== */
/* 7. CARRINHO (carrinho.html)
/* =================================================================== */

.container-principal {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: #401a0c;
  justify-content: center;
}

.lista-produtos {
  flex: 2;
}

.resumo-pedido {
  flex: 1;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.carrinho-cabecalho {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  margin-left: 50px;
  gap: 50px;
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
  font-weight: bold;
  color: #666;
}

.carrinho-cabecalho {
  flex: 1;
  text-align: right;
}

.carrinho-cabecalho .coluna-numerica,
.produto-item .coluna-numerica {
  width: 100px;
  text-align: center;
}

.produto-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.produto-info h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.produto-info {
  flex: 1; /* Ocupa a outra metade */
  min-width: 300px; 
  display: flex;
}

.produto-item input {
  width: 50px;
  padding: 5px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.produto-item .coluna-numerica span {
  cursor: pointer;
  font-size: 1.2rem;
}

.produto-item .coluna-numerica span:hover {
  color: #e60000;
}

.resumo-pedido h2 {
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.resumo-pedido .linha {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.resumo-pedido .linha.total {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
}

.resumo-pedido hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 15px 0;
}

.resumo-pedido button {
  width: 100%;
  padding: 12px;
  background-color: #a66f3f;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
}

.resumo-pedido button:hover {
  background-color: #915f33;
}

.resumo-pedido small {
  display: block;
  text-align: center;
  color: #777;
  margin-top: 10px;
}

.coluna-produto {
  align-items: center;
  padding-right: 130px;
}

.coluna-estoque {
  flex: 1;
  text-align: center;
}

.coluna-preco {
  flex: 1;
  display: flex;
  text-align: center;
  font-weight: bold;
  color:  #555;
}

.coluna-editar {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.coluna-produto img {
  width: 90px;
  margin-right: 30px;
  border-radius: 5px;
}

.funcoes{
  display: flex;
  min-width: 100%;
  gap: 40px;
}

.info-produto {
  display: flex;
  flex-direction: column;
}

.info-produto span {
  font-size: 0.9em;
  color: #777;
}

/* =================================================================== */
/* 8. ADICIONAR PRODUTO (adicionar_produtos.html)
/* =================================================================== */

/* Estilos de input específicos (sobrescrevem os globais se houver) */
#nome,
#cod,
#preco,
#fornecedor,
#descricao,
#imagem,
#categorias {
  margin-top: 5px;
  padding: 8px 10px;
  border-radius: 60px;
  border: 1px solid #ddd;
  width: 100%;
}

.container-adicionar {
  display: flex;
  gap: 20px;
  max-width: 500px;
  margin: 20px auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: #401a0c;
  justify-content: center;
}

/* =================================================================== */
/* 9. PÁGINA DE PRODUTO ESPECÍFICO (novo-produto.html)
/* =================================================================== */

/* Ajusta o .container-principal para esta página específica */
.container-principal.produto-pagina {
  display: flex;
  flex-direction: row;
  gap: 30px;
  max-width: 1200px;
  background-color: #ffffff;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Coluna da Esquerda: Galeria */
.produto-galeria {
  flex: 1;
  min-width: 400px; 
  display: flex;
  flex-direction: column;
  gap: 10px;

}

.imagem-principal img {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 5px;
}

.thumbnails {
  display: flex;
  justify-content: flex-start; 
  gap: 10px;
}

.thumbnails img {
  width: 80px; 
  height: 80px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.thumbnails img:hover,
.thumbnails img.active {
  opacity: 1;
  border-color: #a66f3f; 
}

.produto-info-especifico {
  flex: 1; /* Ocupa a outra metade */
  min-width: 300px; 
  display: flex;
}

.produto-info-especifico h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.codigo-produto {
  font-size: 0.8rem;
  color: #888;
  margin-top: 5px;
}

.rating {
  font-size: 1rem;
  color: #f0c040; 
  margin-top: 10px;
}

.preco {
  font-size: 2.2rem;
  font-weight: 700;
  color: #401a0c; 
  margin-top: 15px;
}

.parcelamento {
  font-size: 0.9rem;
  color: #555;
  margin-top: -10px; 
  margin-bottom: 20px;
}

.btn-comprar {
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background-color: #8c5230;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-comprar:hover {
  background-color: #a66f3f;
}

.descricao {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.descricao p {
  margin-bottom: 15px;
}

.imagens{
  background-image: url(assets/banner2.png);
  background-size: cover;
  background-repeat: no-repeat;
  height: 450px;
}
.imagens2{
  background-image: url(assets/banner1.png
  );
  background-size: cover;
  background-repeat: no-repeat;
  height: 450px;

}