/* Estilo do Header fixo com fundo transparente */

* {
    scroll-behavior: smooth;
}

/* Conteúdo Centralizado */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Conteúdo Principal */
.conteudo {
  
    margin: 100px auto 0;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 1s ease-in-out;
}

/* Lista de Produtos */
#carrinho-lista {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 150px;
}

/* Lista de Produtos */
#carrinho-lista p {
    text-align: end;
    width: 200px;
}

/* Produto no Carrinho */
.produto-carrinho {
    text-align: end;
    justify-content: space-around;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: 2px solid #00ff5e;
    padding: 20px;
    border-radius: 20px;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: slideIn 0.5s ease-out;
}

.produto-carrinho:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.produto-carrinho img {
    width: 150px;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.produto-carrinho img:hover {
    transform: scale(1.1);
}

.produto-carrinho p {
    margin-bottom: 20px;
}

.produto-detalhes {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.produto-detalhes h2 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.produto-detalhes p {
    font-size: 16px;
    color: #777;
}

/* Quantidade */
.quantidade {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    margin-top: 20px;
}

.quantidade input {

    width: 100px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: end;
    font-size: 16px;
}

/* Barra Inferior */
.barra-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25d365;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.8s ease-in-out;
}

.barra-inferior h1 {
    cursor: pointer;
    padding: 15px 30px;
    font-size: 18px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
}

.barra-inferior h1:hover {
    background-color: #e0e0e0;
    transform: scale(1.1);
}



/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-50%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .conteudo {
        margin-top: 50px;
        gap: 15px;
    }

    .produto-carrinho {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .produto-carrinho img {
        width: 120px;
        margin-bottom: 15px;
    }

    .produto-detalhes h2 {
        font-size: 16px;
    }

    .produto-detalhes p {
        font-size: 14px;
    }

    .barra-inferior h1 {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .produto-carrinho img {
        width: 100px;
    }

    .quantidade input {
        width: 40px;
        height: 30px;
        font-size: 14px;
    }

    .barra-inferior h1 {
        font-size: 14px;
        padding: 8px 15px;
    }
}