/* 购物车页面样式 */
.cart-container {
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    display: none;
}

.cart-empty img {
    width: 100px;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.cart-empty p {
    color: #666;
    margin-bottom: 1.5rem;
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.cart-item:hover {
    transform: translateY(-2px);
}

.cart-item-checkbox {
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-amount {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-value {
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    margin-left: 1rem;
    color: #ff6b6b;
    cursor: pointer;
}

.cart-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

#checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-quantity {
        margin-left: auto;
        margin-top: 0.5rem;
    }
    
    .cart-item-remove {
        margin-left: auto;
    }
}