@import '../css/global.css';


.prompt {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  font-family: lato;
}

.prompt.hidden {
  display: none;
}

.prompt-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-box input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.prompt-box .botoes {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.prompt-box button {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.botoes {
  margin-top: 20px;
  padding: 10px;
  color: #fff;
  border: none;
  cursor: pointer;
  
  }
  .termos {
    display: flex;
    font-size: 2.5vh;
    margin-top: 1vh;
    margin-left: 0.2vw;
  }
  #termos {
    width: 30px;
    margin-left: 2vh;
  }
  .campo-invalido {
    border: 2px solid red;
  }
  .checkbox-invalido {
    outline: 2px solid red;
    outline-offset: 4px;
  }
/* --------------------------------------------------------------------------- */

main {
  margin-top: 8vw;
}
.header-loja {
  display:flex;
}
.subtitulo {
  color: rgb(22, 22, 22);
  font-size: 1.3vw;
  font-family:lato;
  font-weight: 700;
  margin-right:1vw;
  padding: 1rem ;
  text-align: center;
  background-color: #ffe969b9;
  border-radius: 50px;
}
.titulo {
  color: rgb(22, 22, 22);
  font-size: 3vw;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  margin-left: 5vw;
  width: 87vw;
  padding: 1rem;
}

.content {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
  padding: 2rem;
 }

/* Cards de cerveja */
.cervejas-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  flex: 1;
}

.cerveja-card {
  width: 14vw;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  text-align: center;
  padding: 0.5rem 0.5rem;
}

.cerveja-card img {
  width: 80%;
  height: auto;
}
.abvIbu {
  font-size: 1.8vh;
  font-family: "lato", sans-serif;
  margin-bottom: 1vh;
  color: rgb(133, 133, 133);
}
.cerveja-card .info h3 {
  font-size: 1.1vw;
  font-family: "Orbitron", sans-serif;
  border: 2px solid rgb(196, 196, 196);
  border-radius: 30px;
  margin-bottom: 5px;
}

.price {
  font-weight: bold;
  color: #333;
  margin: 0.5rem 0;
  font-size: 18px;
  font-family: lato;
}

.add {
  background-color: hwb(0 21% 79%);
  border: none;
  color: rgb(255, 255, 255);
  padding: 0.4rem 0.9rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 16px;
  &:hover {
    background-color: hwb(152 6% 61%);
  }
}

/* RESUMO DA COMPRA */

aside {
  position: sticky;
  top: 7vw;
  right: 0;
  transition: none;
  font-family: lato;
  width: 24vw;
  background-color: #f1f1f1;
  border-radius: 12px;
}

.box {
  padding: 1vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  top: 2vw;
  width: 21vw;
  margin: 0.5vw 0.5vw;
  
}

.resumo {
  font-size: 1.6vw;
  font-weight: 700;
  margin-bottom: 1.5vw;
  border-bottom: 1px solid#888;
}

.item-carrinho {
  display: flex;
  justify-content: flex-end;
  gap: 2vw;
  align-items: center;
  margin-bottom: 0.8vw;
  border-bottom: 1px solid #e9e9e9;
  padding-bottom: 0.5vw;
}

.nome {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.9em;
}

.volume {
  font-weight: 400;
  color: #888;
  font-size: 0.9em;
  
}
.preco {
    font-size: 0.9em;
    margin-right: -1.3vw;
}
.quantidade-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dfdfdf;
  border-radius: 30px;
  padding: 0 6px;
  
}

.quantidade {
  width: 1.8vw;
  text-align: center;
  font-size: 0.9em;
  
}

.menos {
    background-color: transparent;
    border: none;
    padding: 0 5px;
    cursor: pointer;
    font-size: 1.3rem;
    border-radius: 4px;
} 
.mais {
  background-color: transparent;
  border: none;
  padding: 3px 4.5px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
}

.preco {
  font-weight: 500;
  margin-top: 4px;

}

.info-total div,
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  font-weight: 500;
}

.total {
  border-top: 1px solid #ccc;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  font-size: 1.1rem;
}

.btn {
  margin: 0.6rem;
  background-color: #479b37;
  border: none;
  color: white;
  width: 95%;
  padding: 0.65rem;
  font-weight: bold;
  font-size: 1.3rem;
  border-radius: 8px;
  cursor: pointer;
  &:hover {
    background-color: #168100;
  }
}
.remover {
    width:1vw;
}

/*-------------------------------------resposivo--------------------------------*/
@media (max-width: 950px) {


  .prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* fundo escurecido */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 19999; /* BEM ALTO pra ficar acima de tudo */
  }

  .prompt-box {
    width: 90%;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .prompt-box h3 {
    font-size: 1rem;
  }

  .prompt-box input {
    font-size: 0.9rem;
  }

  .botoes button {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .slide-carrinho {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 5.7rem;
    right: 0;
    z-index: 1000;
  }

  .slide-carrinho.aberto {
    transform: translateX(0);
  }

main {
  margin-top: 10vw;
  overflow: hidden;
}
.header-loja {
  flex-direction: column;
}
.subtitulo {
  font-size: 3.3vw;
  font-weight: 700;
  padding: 0.5rem ;
  margin: 0 5vw;
  text-align: center;
  background-color: #ffe969b9;
  border-radius: 50px;
}
.titulo {
  margin-top: 15vw;
  font-size: 7vw;
  padding: 0.5rem;
}

.content {
  gap: 0rem;
  padding: 1rem;
}

/* Cards de cerveja */
.cervejas-container {
  gap: 1rem;
}

.cerveja-card {
  width: 38.5vw;
  padding: 0.5rem 0.5rem;
}
.cerveja-card .info h3 {
  font-size: 3vw;
}

.add {
  padding: 0.5rem 0.4rem;
  border-radius: 7px;
  font-size: 3.5vw;
  
}

/* RESUMO DA COMPRA */
.slide-carrinho {
  z-index: 1000;
}
aside {
  position: absolute;
  margin-left:-28vw;
  top: 23vw;
  height: fit-content;
  padding: 0.5rem;
  width: 75vw;
}

.box {
  padding: 2vw;
  width: 73vw;
  margin: -1.2vw;
  
}

.resumo {
  font-size: 1.2rem;
}
.quantidade {
  width: 5.8vw;
  text-align: center;
  font-size: 0.9em;
  
}
.preco {
  font-size: 0.9em;
  margin-right: -3.3vw;
}
.item-carrinho {
  gap: 4vw;
  padding-bottom: 8px;
}

.remover {
    width:20px;
}
}