/* =============Cartoes da loja================== */

.cartaoProduto{
    box-shadow: 0 0 30px 1px rgba(0, 0, 0, 0.3);
    height: auto;
    width: 300px;
    background-color: #4a4a4a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    overflow: hidden;
    position: relative;
    color: white;
    margin: 20px;
    transition: 1s;
    border-radius: 20px;
    padding-bottom: 30px;
}
.cartaoProduto a{
    margin-top: 10px;
    position: absolute;
    font-size: 20px;
    text-decoration: none;
    bottom: 5px;
}
.cartaoProduto .imagemProduto{
    width: 300px;
    height: 350px;
    overflow: hidden;
}
.cartaoProduto .imagemProduto img{
    min-height: 100%;
    width: 100%;
}
.cartaoProduto p{
    padding: 10px;
    font-size: 22px;
    margin-bottom: 100px;
}
.cartaoProduto h1{
    position: absolute;
    bottom: 40px;
    text-align: center;
}
.cartaoProduto h1 span{
    font-size: 15px;
}
.cartaoProduto a{
    font-size: 22px;
    color: #6fc5e9;
}
.erro-conexao{
    margin: 100px auto !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin: auto;
}
.erro-conexao button{
    border: 0;
    padding: 15px 10px;
    background-color: #6fc5e9;
    color: white;
    font-weight: bold;
    margin: 20px;
    cursor: pointer;
}

#carregando-gif{
    height: 30px;
    width: 30px;
}


/* ==================Botao de carrinho============================== */
.carrinho{
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
    font-weight: bold;
    background-color: #6fc5e9;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 20;
    border-radius: 10px;
}

/* ===================================Botao excluir item de carrinho============= */
.excluirCarrinho{
    position: absolute;
    top: 5px;
    right: 5px;
    display: none;
    font-weight: bold;
    background-color: #ff4747;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 20;
    border-radius: 10px;
}
.cartaoProduto:hover .carrinho, .cartaoProduto:hover .excluirCarrinho{
    display: flex;
}

/* ==================Botao de carrinho============================== */
#carrinhoCompras{
    position: fixed;
    bottom: 10px;
    right: 10px;
    color: white;
    cursor: pointer;
    z-index: 10;
}
#carrinhoCompras img{
    height: 100px;
    width: 100px;
    animation: carrinho 1s infinite alternate;
}

/* =============================Animacao botao carrinho ======================= */
@keyframes carrinho {
    from {
      transform: translatex(10px);
    }
    to {
      transform: translatex(-10px);
    }
  }

  /* ========================Div de produtos no carrinho de compras======================== */
#telaCarrinhoCompras{
    border: 2px solid #494949;
    position: fixed;
    z-index: 10;
    height: 70%;
    width: 80%;
    overflow: auto;
    background-color: #1b1b1bb5;
    margin: auto;
    justify-content: center;
    flex-wrap: wrap;
    display: none;
    padding: 0 10px;
}


/* ============================Sessao Principal da pagina=================== */
#principal{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#msgVazio{
    color: white;
    display: none;
    font-size: 30px;
}
/* =====================Botao voltar para loja compra================= */
#voltarLoja{
    position: absolute;
    top: 0px;
    right: 0px;
    height: 40px;
    width: 40px;
    color: white;
    background-color: #ff4a4a;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
/* =====================Botao finalizar compra================= */
#finalizar{
    position: absolute;
    top: 0px;
    left: 0px;
    height: 40px;
    width: 80px;
    color: white;
    background-color: #30a73f;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

/* ========================Estilizacao de scroll===================== */
#telaCarrinhoCompras::-webkit-scrollbar-track {
    background-color: #F4F4F4;
    border-radius: 20px;
}
#telaCarrinhoCompras::-webkit-scrollbar {
    width: 8px;
    background: #6fc5e9;
    border-radius: 20px;
}
#telaCarrinhoCompras::-webkit-scrollbar-thumb {
    background: #6fc5e9;
    border-radius: 20px;
}