.carrinho-icone {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s;
}

.carrinho-icone:hover {
    color: #ff3c00;
}

.carrinho-contador {
    position: absolute;
    top: -5px;
    right: 0;
    background-color: #ff3c00;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.carrinho-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1500;
}

.carrinho-overlay.aberto {
    opacity: 1;
    pointer-events: auto;
}

.carrinho-painel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease-out;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.carrinho-painel.aberto {
    right: 0;
}

.carrinho-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.carrinho-cabecalho h2 {
    margin: 0;
    color: #ff3c00;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-size: 28px;
}

.carrinho-fechar {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.carrinho-fechar:hover {
    color: #ff3c00;
}

.carrinho-itens {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.carrinho-vazio {
    text-align: center;
    color: #aaa;
    margin-top: 30px;
}

.carrinho-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #2a2a2a;
    align-items: center;
}

.carrinho-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

.carrinho-item-info {
    flex: 1;
    min-width: 0;
}

.carrinho-item-info h4 {
    margin: 0 0 5px;
    font-size: 15px;
    color: white;
}

.carrinho-item-preco {
    color: #ff3c00;
    font-weight: bold;
    font-size: 14px;
}

.carrinho-quantidade {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.carrinho-quantidade button {
    background-color: #333;
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    padding: 0;
    margin: 0;
}

.carrinho-quantidade button:hover {
    background-color: #ff3c00;
}

.carrinho-quantidade span {
    min-width: 25px;
    text-align: center;
    color: white;
}

.carrinho-remover {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
}

.carrinho-remover:hover {
    color: #ff3c00;
}

.carrinho-rodape {
    padding: 20px;
    border-top: 1px solid #333;
}

.carrinho-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.carrinho-total-valor {
    color: #ff3c00;
}

.carrinho-finalizar {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Poppins', sans-serif;
}

.carrinho-finalizar:hover {
    background-color: #1ea952;
}

.carrinho-finalizar i {
    margin-right: 8px;
}

.carrinho-limpar {
    width: 100%;
    background: none;
    color: #888;
    border: 1px solid #333;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
    transition: color 0.3s, border-color 0.3s;
}

.carrinho-limpar:hover {
    color: #ff3c00;
    border-color: #ff3c00;
}

.notificacao {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #1a1a1a;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 60, 0, 0.4);
    border-left: 4px solid #ff3c00;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3000;
    font-size: 14px;
    max-width: 90%;
    text-align: center;
}

.notificacao.visivel {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visivel {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.voltar-topo {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #ff3c00;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 999;
}

.voltar-topo.visivel {
    opacity: 1;
    pointer-events: auto;
}

.voltar-topo:hover {
    background-color: #cc3000;
    transform: translateY(-3px);
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    .voltar-topo {
        width: 42px;
        height: 42px;
        font-size: 18px;
        bottom: 75px;
        right: 15px;
    }

    .carrinho-painel {
        width: 100%;
        right: -100%;
    }
}
