@import url(/view/fonts/Alice/Alice-Regular.ttf);
@font-face {
    font-family: "principal";
    src: url(/view/fonts/Alice/Alice-Regular.ttf)
    format('truetype');
}

@import url(/view/fonts/Inria_Sans/InriaSans-Regular.ttf);
@font-face {
    font-family: "secundaria";
    src: url(/view/fonts/Inria_Sans/InriaSans-Regular.ttf)
    format('truetype');
}

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

body,html {
  background-color: #3b0d16; /* sua cor vinho */
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* logo */
#logo {
  height: 150px;
  width: 150px;
}

/* ícones do topo */
img.icon {
  height: 50px;
  width: 50px;
  margin: 10px;
  float: right;   /* mantém seu estilo */
}

/* grid de categorias */
.categorias {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colunas */
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
   

}

img.categoria {
  width: 730px;
  height: 470px;
  object-fit: cover;  /* corta para caber sem distorcer */
  border-radius: 6px;
}

/*barra de pesquisa */
#search-container {
  text-align: center;
  margin-top: 30px;
}

#search-input {
  width: 900px;
  height:80px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 24px;
  font-family: 'secundaria';
}

#search-button {
  padding: 8px 12px;
  border: none;
  height: 70px;
  width: 90px;
  border-radius: 20px;
  background-color: #8d4654;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin: 1%;
  display:inline-block;
  font-family: 'secundaria';
}

#search-button:hover {
  background-color: #aa6270;
}

#cate{
    margin:0 auto;
    text-align: center;
    justify-content: center;
}

.icon:hover {
  transform: scale(1.2); /* aumenta 20% */
}

.categoria:hover {
 filter: brightness(1.07);
}

/*Sobre Nós*/

#quadrado-branco{
  width: 100%;
  max-width: 1200px;
  height: 1000px;
  background-color: white;
  margin: 50px auto;
  border-radius: 10px;
}

#quadrado-branco h1, #dados-container h1{
  color: #3b0d16;
  text-align: center;
  font-family: 'principal';
  font-size: 35pt;
  margin-bottom: 50px;
}

#logo-vinho{
  width: 500px;
  margin: 20px auto;
  display: flex;
  align-items: center;
}

.texto-informativo{
  font-family: 'secundaria';
  line-height: 1.5;
  font-size: 18pt;
  text-align: justify;
  margin: 40px 50px;
  color: #3b0d16;
}

#slogan{
  font-weight: bold;
  text-align: center;
}

 /*pagina sala*/
img.sala{
  padding:40px;
  border:#aa6270 15px solid;
  border-radius: 10px;
  width:400;
  height: 500px;
  display: inline-block;
  margin:1%;
}



#legenda{
  background-color: white;
  height: 50px;
  width:200px;
  color:#8d4654;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  border-radius: 20px;
}

#rodape {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: white;
  color: black;
  padding: 15px 0 30px 0;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  margin-top: 15px;
}

a.texto-rodape, h2.texto-rodape {
  font-family: 'secundaria';
  font-size: 15pt;
  margin-bottom: 10px;
  text-decoration: none;
  color: black;
  margin-top: 15px;
  font-weight: bold; 
  text-decoration:none
}

.link-rodape {
  font-family: 'secundaria';
  font-size: 12pt;
  color: black;
  text-decoration: none;
}

.link-rodape:hover{
  color: #8d4654;
}

.link-rodape:visited{
  text-decoration: none;
}

.link-rodape:active{
  text-decoration: none;
 }


 a.texto-rodape:hover{
  text-decoration: underline;
 }

 
p.nome-produto,p.preco-produto{
  color:white;
  font-family: "primaria";
  font-size: 15px;
  text-align: center;
  justify-items: center;
}
button.btn-carrinho{
  background-color: #3ac79d;
  color:white;
  font-family: "primaria";
  border-radius:20px;
  border: 5px #3ac79d solid;
  font-size: 15px;
  justify-content: center;
  justify-items: center;
  text-align: center;
}
button.btn-favoritos{
  background-color: #3ac79d;
  color:white;
  font-family: "primaria";
  border-radius:20px;
  border: 5px #3ac79d solid;
  font-size: 15px;
  justify-content: center;
  justify-items: center;
  text-align: center;
}
/*
.produto-img{
  display: inline-block;
  width: 500px;         
  height: 500px ;               
  object-fit: contain;            
  background: #fff;            
  border-radius: 8px;
 
}

#secSala {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;         
  padding: 20px;
  justify-items: center;
}
  */
#secSala{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 20px;
}

 .produto-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  width: 100%;
  max-width: 320px;          /* aumente para deixar os cards maiores */
  background: #2c0d0d;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  overflow: hidden;          /* nada vaza do card */
  box-sizing: border-box;
}


.produto-img{
  display: block;
  width: 100%;            
  aspect-ratio: 4 / 3;     
  height: 400px;             
  object-fit: contain;       
  background: white;          
  border-radius: 10px;
}

 
.nome-produto{ color:#3b0d16; font-weight:600; margin:4px 0 0; }
.preco-produto{ color:#ffcc00; margin:0 0 6px; }
.btn-carrinho{ width:100%; padding:10px; border:none; border-radius:8px; background:#28a745; color:#fff; cursor:pointer; }
.btn-carrinho:hover{ background:#218838; }
button.btn-carrinho:hover{
  background-color: #1f6e57;
}
.btn-favoritos:hover{ background:#218838; }
button.btn-favoritos:hover{
  background-color: #1f6e57;
}
 
 #produtos-container{
  width: 60%;
  height: 800px;
  background-color: white;
  border-radius: 10px;
  position: relative;
  left: 700px;
  margin-top: 60px;
  margin-bottom: 60px;
  overflow-y: auto;
  color: #3b0d16;
 }

.grid{ 
  display:grid; 
  grid-template-columns: repeat(2,1fr); 
  gap:20px;
}

.card{ 
  background: white;
  border-radius:5px;
  overflow:hidden;
  margin: 30px;
}

.card img{
  width: 100%;
  object-fit:cover; 
  display:block;
}

.card-info {
  padding:10px;
  font-size:18px;
  font-family: 'secundaria';
  color:#3b0d16;
  text-align: center;
  font-weight: bold;
}

.btn-add-carrinho {
  display: block;
  width: 90%;
  margin: 10px auto 15px auto;
  padding: 10px;
  background-color: #3b0d16; /* cor do botão */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.btn-add-fav{
    display: block;
  width: 90%;
  margin: 10px auto 15px auto;
  padding: 10px;
  background-color: #3b0d16; /* cor do botão */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  align-items: center;
}
#btn-add-fav{
  display: block;
  text-align: center;
  align-items: center;
  margin: 10px auto 15px auto;
  border-radius: 6px;
  padding:10px;
  width: 300px;
  height:50px;
  font-size: 20px;
  background-color: #8d4654;
  border: 5px #8d4654 solid;
  color: white;
  font-family: 'Principal';
}
#btn-add-fav:hover{
  background-color: #be7786;
  border-color: #be7786;
}
#btn-add-carrinho:hover{
  background-color: #be7786;
  border-color: #be7786;
}
#btn-add-carrinho{
  display: block;
  text-align: center;
  align-items: center;
  margin: 10px auto 15px auto;
  border-radius: 6px;
  padding:10px;
  width: 300px;
  height:50px;
  font-size: 20px;
  background-color: #8d4654;
  border: 5px #8d4654 solid;
  color: white;
  font-family: 'Principal';
}
.btn-add-carrinho:hover, .btn-add-fav:hover {
  background-color: #721f2f;
  transform: translateY(-2px);
}

/*Cadastro*/

#dados-container{
  width: 50%;
  height: 1250px;
  margin: 50px auto;
  background-color: white;
  border-radius: 10px;
}

.form-cadastro label, .form-login label{
  font-family: 'secundaria';
  font-size: 1.2rem;
  color: #3b0d16;
  margin-left: 100px;
  margin-top: 100px;
}

.form-cadastro input, .form-login input{
  background-color: #3b0d16;
  border-radius: 5px;
  font-size: 1.2rem;
  margin-left: 100px;
  margin-top: 20px;
  display: block;
  width: 75%;
  height: 60px;
  color: white;
  font-family: 'secundaria';
  padding-left: 15px;
  margin-bottom: 30px;
  border: none;
}

.form-cadastro input::placeholder, .form-login input::placeholder{
  color: white;
  font-family: 'secundaria';
  font-size: 1.2rem;
}

.form-cadastro button{
  background-color: #3b0d16;
  border-radius: 5px;
  font-family: 'secundaria';
  font-size: 13pt;
  color: white;
  padding: 20px;
  height: 60px;
  position: relative;
  left: 725px;
  border: none;
}

.form-login button{
  background-color: #3b0d16;
  border-radius: 5px;
  font-family: 'secundaria';
  font-size: 13pt;
  color: white;
  padding: 20px;
  height: 60px;
  border: none;
}

#dados-logout{
  width: 30%;
  height: 300px;
  margin: 50px auto;
  background-color: white;
  border-radius: 10px;
}

#dados-logout h1{
  color: #3b0d16;
  text-align: center;
  font-family: 'principal';
  font-size: 35pt;
  margin-bottom: 30px;
  padding: 25px;
}

#btn-logout{
  background-color: #3b0d16;
  border-radius: 5px;
  font-family: 'secundaria';
  font-size: 15pt;
  color: white;
  border: none;
  padding: 10px 20px;
  height: auto;     
  cursor: pointer;
  display: block;     
  margin: 0 auto;
}

#txt-logout{
  font-size: 17pt;
  color: #2c0d0d;
  font-family: 'secundaria';
  text-align: center;
  margin-bottom: 50px;
}

.img-carrinho {
   width: 140px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.item-carrinho{
   background: white;
  border-radius: 12px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}
.tit-carrinho{
  font-family: 'secundaria';
  color: #2c0d0d;
}

h1.fav{
  color:white;
  text-align: center;
  font-size: 2rem;
  font-family: "principal";
}

.btn-remover{
  border:0; padding:8px 12px; border-radius:8px; cursor:pointer;
  background: #2c0d0d; color: #2c0d0d; font-weight:700;
}
.btn-remover:hover{ filter:brightness(1.05); }


.msg-vazio {
  background-color: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: 80px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-family: 'secundaria';
  animation: aparecer 0.4s ease-in-out;
}

.msg-vazio p {
  font-size: 20pt;
  color: #3b0d16;
  margin-bottom: 30px;
}

/* Botão 'Ver produtos' */
.btn-voltar {
  display: inline-block;
  background-color: #3b0d16;
  color: white;
  text-decoration: none;
  font-size: 14pt;
  padding: 12px 25px;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-voltar:hover {
  background-color: #5a1f2c;
  transform: translateY(-2px);
}



body {
  background-color: #3b0d16; 
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  color: black;
}


#listaFavoritos {
  max-width: 800px;
  margin: 40px auto;
}

h1.fav {
  text-align: center;
  color:black;
  margin-bottom: 30px;
}


.item-favoritos {
  background: white;
  border-radius: 12px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}


.img-favoritos {
  width: 140px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}


.item-favoritos p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  flex-grow: 1;
}

.item-favoritos p + p {
  font-weight: 500;
  margin-top: 6px;
  color: #555;
}


.item-favoritos button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 15px;
  padding: 0;
  display: flex;
  align-items: center;
  color: #ef4444;
  font-size: 16px;
}


.item-favoritos button svg {
  width: 24px;
  height: 24px;
  fill: #333;
  transition: fill 0.3s ease;
}

.item-favoritos button:hover svg {
  fill: #a00;
}

#fav-container {
  background: white;
  max-width: 850px;
  margin: 40px auto;
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: black;}

.item-carrinho p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  flex-grow: 1;
}

.item-carrinho p + p {
  font-weight: 500;
  margin-top: 6px;
  color: #555;
}


.item-carrinho button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 15px;
  padding: 0;
  display: flex;
  align-items: center;
  color: #2c0d0d;
  font-size: 1.2rem;
  font-family: 'secundaria';
}


.item-carrinho button svg {
  width: 24px;
  height: 24px;
  fill: #333;
  transition: fill 0.3s ease;
}

.item-carrinho button:hover svg {
  fill: #a00;
}

#carrinho-container {
  background: white;
  max-width: 850px;
  margin: 40px auto;
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  color: black;}

#bem-vindo{
  font-family: 'principal';
  color: white;
  font-size: 25pt;
  text-align: center;
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}

#icones-pequenos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  width: 250px;
}
 
.total-container {
  display: flex;
  justify-content: space-between; /* separa total e botão */
  align-items: center;
  margin-top: 20px;
  padding: 10px 0;
}

.texto {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'secundaria';
  position: relative;
  left: 10%;
}

#finalizar {
  background-color: green;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  font-family: 'principal';
  transition: background 0.2s ease;
  position: relative;
  left: 75%;
}

#finalizar:hover {
  background-color: green;
}

#removerTodos{
  background-color: red;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13pt;
  font-family: 'principal';
  transition: background 0.2s ease;
}
#removerTodosFav{
  background-color: red;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13pt;
  font-family: 'principal';
  transition: background 0.2s ease;
}
/* container geral */

/* Div de resultados da busca */

/* Grid de resultados */
#resultado {
  display: block;
  max-width: 400px; /* mantém a largura que você gosta */
  margin: 0 auto;
  padding: 20px;
}


/* Card de cada produto */
#resultado .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: #ffffff; /* fundo claro igual aos cards das outras páginas */
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

#resultado .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Imagem do produto */
#resultado .item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 10px;
  background: #f9f9f9; /* deixa mais clean */
}

/* Nome do produto */
#resultado .item h3 {
  font-family: 'principal';
  color: #3b0d16;
  margin: 4px 0 0;
  font-size: 18px;
  text-align: center;
}

/* Descrição */
#resultado .item p {
  font-family: 'secundaria';
  font-size: 14px;
  color: #3b0d16;
  text-align: center;
  margin: 4px 0;
}

/* Preço */
#resultado .item p.preco {
  font-weight: bold;
  color: #ffcc00;
  font-size: 16px;
}

/* Botão adicionar ao carrinho */
#resultado .item button {
  width: 90%;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'secundaria';
  font-weight: bold;
  transition: background-color 0.2s, transform 0.2s;
}

#resultado .item button:hover {
  background-color: #1f6e57;
 
  transform: translateY(-2px);
}
  
  #resultado .nao-encontrado {
  font-family: 'secundaria';
  font-size: 16px;
  color: #3b0d16;
  text-align: center;
  font-weight: bold;
  margin: 20px 0;
}

.nenhumproduto {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14pt;
  font-family: 'principal', sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: fit-content;
  max-width: 90%; 
  margin: 0 auto; 
}
.erro{
    background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14pt;
  font-family: 'principal', sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: fit-content;
  max-width: 90%; 
  margin: 0 auto; 
}
 

.controle-quantidade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
}
.controle-quantidade .quantidade {
  min-width: 24px;
  text-align: center;
  font-weight: bold;
}

.carousel-btns {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: stretch;
    justify-content: center;
    align-items: stretch;
}


#produto-imagem{
  align-items: center;
  display: block;
  margin:10px;
  padding:10px;
}
/*RESPONSIVIDADE*/
@media screen and (400px <=width <=800px){
 
    #filtroEsq{
    position: static;
    width: 90%;
    max-width: 360px;
    margin: 0 auto 20px auto;  /* espaço abaixo p/ os cards */
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 12px;
  }

  /* Produtos: centralizados e logo abaixo do filtro */
  #produtos-container{
    position: static !important;
    left: auto !important;
    right: auto !important;
    float: none !important;

    width: 90%;
    max-width: 900px;
    margin: 0 auto 40px auto; /* centraliza e dá respiro até o rodapé */
  }

  /* A grade passa a 1 coluna e centraliza cada card */
  .grid{
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #search-container {
    padding-bottom: 1rem;
  }

  #search-input {
    width: 80%;
    height:70px;
    font-size: 20px;
  }

  img.categoria{
    width: 438px;
    height: 282px;
  }
}

@media screen and (800px <=width <=1080px){

  #search-container {
    padding-bottom: 1rem;
  }

  #search-input {
    width: 80%;
    height:80px;
    font-size: 22px;
  }
}

@media screen and (1080px <=width <=1920px){
  
}

