/* Cart styles */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF6B35;
    color: white;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.cart-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Quantity controls */
.quantity-controls {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0.25rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: #212529;
    color: white;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    text-decoration: none;
}

.quantity-btn:hover {
    background: #373b3e;
    transform: scale(1.05);
}

.quantity-value {
    min-width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin: 0 0.5rem;
    background: white;
    border-radius: 16px;
    padding: 0 0.5rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .cart-item {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .cart-item-details {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .cart-thumbnail {
        width: 80px;
        height: 80px;
        border-radius: 8px;
    }

    .cart-item-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .cart-item-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
    }

    .quantity-controls {
        background: white;
    }

    .cart-item-price {
        font-weight: 600;
        font-size: 1.1rem;
    }

    /* Ajout d'une marge en haut du résumé en version mobile */
    .bg-light.rounded-3 {
        margin-top: 2rem;
    }
}
