/* ============================================
   CART - STYLES
   ============================================ */

.cart-item {
    transition: all 0.3s ease;
    background: white;
}

.cart-item:hover {
    background: #f8f9fa;
}

.cart-item-image {
    transition: transform 0.3s ease;
}

.cart-item-image:hover {
    transform: scale(1.05);
}

.cart-item .quantity-input {
    -moz-appearance: textfield;
}

.cart-item .quantity-input::-webkit-outer-spin-button,
.cart-item .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item .quantity-decrease,
.cart-item .quantity-increase {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-item .quantity-decrease:hover,
.cart-item .quantity-increase:hover {
    background: #1a3b8a;
    color: white;
    border-color: #1a3b8a;
}

.cart-item .remove-item {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.cart-item .remove-item:hover {
    opacity: 1;
    color: #dc3545;
}

/* Animations de chargement */
.cart-item-updating {
    opacity: 0.6;
    pointer-events: none;
}

.cart-item-updating .quantity-input {
    background: #e9ecef;
}

/* Badge de stock */
.stock-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

.stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-badge.low-stock {
    background: #fff3cd;
    color: #856404;
}

.stock-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Résumé */
.summary-details {
    transition: all 0.3s ease;
}

.summary-details .discount-display {
    color: #28a745;
}

/* Coupon */
.coupon-input {
    border-radius: 8px 0 0 8px;
}

.coupon-btn {
    border-radius: 0 8px 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item .quantity-input {
        width: 50px;
    }
    
    .cart-item .quantity-decrease,
    .cart-item .quantity-increase {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .cart-item {
        padding: 1rem 0.5rem;
    }
    
    .cart-item .quantity-decrease,
    .cart-item .quantity-increase {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .cart-item .quantity-input {
        width: 40px;
        font-size: 0.75rem;
        padding: 0.2rem;
    }
}

/* Animation de suppression */
.cart-item-removing {
    animation: slideOutRight 0.4s ease forwards;
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Animation d'ajout */
.cart-item-adding {
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}