/* 购物车区域样式 */
.cart-section {
    margin: 20px auto;
}

.cart-header {
    margin-bottom: 20px;
}

.cart-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.cart-tips {
    color: #999;
    font-size: 14px;
}

/* 购物车主体 */
.cart-main {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 表头样式 */
.cart-table-header {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    background: #f5f5f5;
    border-radius: 4px 4px 0 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 5px;
}

.col-goods {
    flex: 1;
    margin-left: 100px;
}

.col-price,
.col-quantity,
.col-total,
.col-action {
    width: 120px;
    text-align: center;
}

/* 商品列表样式 */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.item-check {
    margin-right: 20px;
}

.item-info {
    display: flex;
    flex: 1;
    align-items: center;
}

.item-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 20px;
}

.item-detail h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.item-spec {
    color: #999;
    font-size: 12px;
}

.item-price,
.item-total {
    width: 120px;
    text-align: center;
    color: #ff2020;
}

.item-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
}

.btn-minus,
.btn-plus {
    width: 28px;
    height: 28px;
    border: 1px solid #e5e5e5;
    background: #fff;
    cursor: pointer;
}

.quantity-input {
    width: 50px;
    height: 28px;
    margin: 0 5px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.item-action {
    width: 120px;
    text-align: center;
}

.btn-delete {
    color: #999;
}

.btn-delete:hover {
    color: #ff2020;
}

/* 空购物车样式 */
.cart-empty {
    padding: 50px 0;
    text-align: center;
}

.cart-empty.hide {
    display: none;
}

.cart-empty img {
    width: 200px;
    margin-bottom: 20px;
}

.cart-empty p {
    color: #999;
    margin-bottom: 20px;
}

.btn-shopping {
    display: inline-block;
    padding: 10px 30px;
    background: #2979ff;
    color: #fff;
    border-radius: 4px;
}

/* 结算栏样式 */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 0 0 4px 4px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-batch-delete,
.btn-clear-cart {
    color: #666;
}

.btn-batch-delete:hover,
.btn-clear-cart:hover {
    color: #ff2020;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.price-info {
    text-align: right;
}

.price-info p {
    margin-bottom: 5px;
}

.selected-count {
    color: #ff2020;
    font-weight: bold;
}

.total-price {
    font-size: 20px;
    color: #ff2020;
    font-weight: bold;
}

.btn-checkout {
    padding: 0 40px;
    height: 40px;
    background: #ff2020;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.btn-checkout:hover {
    background: #e61919;
} 