/* cart/static/cart/css/cart_detail.css */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cart-header {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.cart-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.3s ease;
}

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

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1.5rem;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1.1rem;
    color: #e74c3c;
    font-weight: 600;
}

.item-quantity {
    color: #7f8c8d;
    margin: 0.5rem 0;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: #2980b9;
}

.quantity-input {
    width: 50px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background: #c0392b;
    text-decoration: none;
    color: white;
}

.cart-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-label {
    font-weight: 600;
    color: #2c3e50;
}

.summary-value {
    font-weight: 700;
    color: #e74c3c;
}

.total-row {
    border-top: 2px solid #bdc3c7;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.3rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    background: #27ae60;
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1.5rem;
    text-decoration: none;
}

.checkout-btn:hover {
    background: #229954;
    color: white;
    text-decoration: none;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
}

.continue-shopping:hover {
    text-decoration: underline;
}

/* Animation for cart items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item {
    animation: slideIn 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .cart-container {
        padding: 1rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .item-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .item-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .summary-row {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}