/* 购物车页面样式 */
.cart-container {
    min-height: 60vh;
    padding: 40px 0;
    background-color: #f8f9fa;
}

.breadcrumb {
    margin-bottom: 30px;
    padding: 15px 0 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6b35;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb .current {
    color: #ff6b35;
    font-weight: 500;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* 空购物车样式 */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #999;
    margin-bottom: 30px;
}

/* 购物车商品列表 */
.cart-items {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
}

.cart-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #fafafa;
}

.cart-item:last-child {
    border-bottom: none;
}

/* 商品信息 */
.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-spec {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 价格样式 */
.price {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b35;
}

.subtotal {
    font-size: 18px;
    font-weight: 600;
    color: #ff6b35;
}

/* 数量控制 */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.btn-decrease,
.btn-increase {
    width: 35px;
    height: 35px;
    border: none;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-decrease:hover,
.btn-increase:hover {
    background: #ff6b35;
    color: white;
}

.quantity-input {
    width: 60px;
    height: 35px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* 购物车底部 */
.cart-footer {
    padding: 25px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.select-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.select-actions label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
    margin: 0;
    cursor: pointer;
}

.select-actions input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.total-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.selected-count {
    color: #666;
    font-size: 14px;
}

.total-price {
    font-size: 18px;
    color: #333;
}

.total-price strong {
    font-size: 24px;
    color: #ff6b35;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #e55a2b;
    color: white;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-link {
    background: none;
    color: #ff6b35;
    padding: 5px 10px;
    text-decoration: none;
}

.btn-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.btn-outline-danger {
    background: white;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Element UI 复选框样式 */
.el-checkbox {
    margin-right: 10px;
}

.el-checkbox__input.is-checked .el-checkbox__inner {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.el-checkbox__input.is-checked .el-checkbox__inner::after {
    border-color: white;
}

/* 半选状态 */
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.el-checkbox__input.is-indeterminate .el-checkbox__inner::after {
    content: "";
    width: 8px;
    height: 1px;
    transform: scale(1);
    left: 3px;
    top: 6px;
    border: none;
    background-color: #fff;
}

.el-checkbox:hover .el-checkbox__inner {
    border-color: #ff6b35;
}

.el-checkbox__input.is-checked:hover .el-checkbox__inner,
.el-checkbox__input.is-indeterminate:hover .el-checkbox__inner {
    background-color: #e55a2b;
    border-color: #e55a2b;
}

.el-checkbox__label {
    color: #333;
    font-weight: 500;
}

/* 保持原有复选框样式作为备用 */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #ff6b35;
}

input[type="checkbox"]:checked {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

input[type="checkbox"]:checked::after {
    color: white !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cart-container {
        padding: 20px 0;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .cart-header,
    .cart-item {
        padding: 15px;
    }
    
    .product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-image {
        width: 60px;
        height: 60px;
    }
    
    .total-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    
    .cart-footer {
        padding: 20px 15px;
    }
    
    .select-actions {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .cart-header {
        display: none;
    }
    
    .cart-item .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .cart-item .col-md-1,
    .cart-item .col-md-2,
    .cart-item .col-md-5 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .product-info {
        flex-direction: row;
    }
    
    .quantity-control {
        margin: 0;
    }
}