:root{
    --branco: #ffff;
    --gelo: #f1f1f1;
    --verde: #19c463;
    --preto: #2a2a2a;
}

.nav-top.cart{
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background-color: var(--branco);
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.nav-top.cart a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    color: var(--preto);
    background-color: var(--gelo);
    transition: all 0.3s ease;
}

.nav-top.cart a:active{
    transform: scale(0.95);
    background-color: #e5e5e5;
}

#ListaCarrinho {
    display: flex;
    flex-flow: column wrap;
    margin-top: 20px;
    padding-bottom: 280px;
}

.item-carinho{
    display: flex;
    align-items: center;
    width: 92%;
    min-height: 100px;
    padding: 12px;
    margin: 8px auto;
    border-radius: 12px;
    background-color: var(--branco);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


.area-img{
    flex: 0 0 120px;
    max-width: 120px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gelo);
    border-radius: 10px;
    overflow: hidden;
}

.area-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-item{
    font-size: 18px;
    color: #f70707;
    margin-right: 10px;
}

.middle span {
    color: grey;
    margin-left: 15px;
}

.preco-quantidade{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-flow: row nowrap;
}

.preco-quantidade span{
    flex: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 18px;
    font-weight: 600;
    margin-left: 15px;
}

.count{
    flex: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.minus{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: grey;
    background: var(--branco) !important;
    border:1px solid var(--branco);
    border-radius: 5px;
    font-size: 20px;
}

.plus{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color:var(--vermelho);
    background: var(--branco);
    border:1px solid var(--vermelho);
    border-radius: 5px;
    font-size: 20px;
}

.qtd-item{
    width: 30px;
    text-align: center;
    background: var(--branco) !important;
}

.w-80{
    width: 80%;
    padding: 8px 0px;
}

#totais{
    flex-direction: column;
}

.bd-bottom{
    border-bottom: 1px solid var(--gelo);
}

.bol{
     font-weight: 600;
}

/* Media queries atualizadas */
@media (max-width: 768px) {
    .nav-top.cart {
        padding: 10px 12px;
    }
    
    .nav-top.cart a {
        width: 40px;
        height: 40px;
    }

    .item-carinho {
        width: 94%;
        padding: 10px;
    }

    .area-img {
        flex: 0 0 100px;
        max-width: 100px;
    }

    .name-prod {
        font-size: 16px;
        margin-left: 12px;
    }

    .preco-quantidade span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-top.cart {
        padding: 8px 10px;
    }

    .nav-top.cart a {
        width: 38px;
        height: 38px;
    }

    .item-carinho {
        width: 96%;
        padding: 8px;
    }

    .area-img {
        flex: 0 0 90px;
        max-width: 90px;
    }

    .name-prod {
        font-size: 15px;
        margin-left: 10px;
        max-width: 180px;
    }

    .minus, .plus {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .qtd-item {
        width: 25px;
        font-size: 15px;
    }
}

/* Dá margem ao último item do carrinho para não ficar colado ao botão */
.listaCarrinho .item-carinho:last-child {
    margin-bottom: 120px; /* altura suficiente para não colidir com a toolbar */
}
