.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
    flex-shrink: 0;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cart-item-name {
    font-weight: bold;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-bottom: 5px;
}

.cart-item-quantity,
.cart-item-price {
    margin: 5px 0;
    font-size: 14px;
    color: #6c757d;
}

.quantity-btn {
    background: white;
    color: black;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    margin: 0 2px;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.quantity-btn:hover {
    opacity: 0.95;
}

#total-price-container {
    margin: 15px 0 5px 0;
}

/* NOVO: Usando a classe correta do seu HTML */
.cart-total-value {
    margin: 15px 0 5px 0; /* Garante a margem se o JS estiver atualizando */
}


.btn-remove-item {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    width: fit-content;
    font-size: 0.9em;
}

.btn-remove-item:hover {
    background-color: #dc3545;
    color: white;
}

/* CORREÇÃO DO TAMANHO DO PREÇO POR ITEM */
.cart-item-price {
    font-size: 1.1rem !important;
    font-weight: bold;
    color: #333;
}

/* PREÇO TOTAL DO CARRINHO (AGORA DISCRETO E USANDO O SELETOR CORRETO) */
.cart-total-value span:last-child {
    font-size: 1.2rem !important;
    font-weight: bold;
    color: #333;
}


@media (max-width: 500px) {
    .cart-item {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 15px 0;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }

    .cart-item-details {
        width: calc(100% - 75px);
    }

    .cart-item-quantity {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-basis: 100%;
        margin-top: 10px;
    }

    .cart-item-price {
        flex-basis: 100%;
        margin-top: 5px;
        font-size: 1.1rem !important;
    }

    .btn-remove-item {
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
}