/* Cart Styles */
.cart-item {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #3c0e78 !important;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quantity-controls .btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #3c0e78;
    background: white;
    color: #3c0e78;
    transition: all 0.3s ease;
}

.quantity-controls .btn:hover {
    background: #3c0e78;
    color: white;
}

.quantity-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    font-size: 16px;
}

.remove-cart-item {
    transition: all 0.3s ease;
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;
}

.remove-cart-item:hover {
    background: #dc3545;
    color: white;
}

/* Add to Cart Button Styles */
.add-to-cart-btn {
    background: linear-gradient(135deg, #3c0e78 0%, #6a1b9a 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 14, 120, 0.3);
    color: white;
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn.added {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
}

.add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Cart Summary Card */
.card-header {
    background: linear-gradient(135deg, #3c0e78 0%, #6a1b9a 100%);
    color: white;
    border: none;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-item .row {
        text-align: center;
    }
    
    .cart-item .col-md-2 {
        margin-bottom: 15px;
    }
    
    .quantity-controls {
        justify-content: center;
        margin: 10px 0;
    }
    
    .remove-cart-item {
        width: 100%;
        margin-top: 10px;
    }
}

/* Loading spinner for cart operations */
.icon-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Cart notification improvements */
.cart-notification {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
}

.cart-notification.success {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.cart-notification.error {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
} 