/* Estilos Gerais */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f1ea;
    color: #333;
}

header {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilo dos cards de produto */
.card {
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-body {
    text-align: center;
    background-color: #fff;
    padding: 15px;
}

.card-title {
    font-weight: bold;
}

.btn-primary {
    background-color: #8b5e3c;
    border: none;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #6e4229;
}

/* Botão Flutuante do Carrinho */
.cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #8b5e3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.cart-btn:hover {
    background-color: #6e4229;
}

/* Carrinho Modal */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    display: none; /* Inicialmente escondido */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Fica acima de outros conteúdos */
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cart {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
    width: 300px;
    text-align: center;
}

/* Estilo do pop-up do carrinho */
.cart-popup {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cart-popup h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Carrinho */
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-item img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.cart-item button {
    background-color: transparent;
    border: none;
    color: red;
    cursor: pointer;
}

#cart-total {
    font-size: 1.2em;
    font-weight: bold;
}

/* Adiciona um estilo mais moderno para os botões */
button {
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #007bff;
    color: white;
}


/* Responsividade */
@media (max-width: 768px) {
    .cart {
        width: 90%;
    }
}
