/* ============================================
   Cart Page Styles
   ============================================ */

/* Steps */
.cart-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}
.cart-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}
.cart-step.active { color: var(--primary); font-weight: 600; }
.cart-step.active .step-num { background: var(--primary); color: #fff; }
.cart-step-arrow-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--text-light);
}
.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

/* ============================================
   Cart Table —— 与产品中心列表共用 product.css #plist 样式
   以下仅为购物车特有栏位（复选框栏、数量栏）样式
   ============================================ */
/* 复选框栏 */
#plist .title th.cart-col-select { width: 60px; text-align: center; }
#cartSelectAll,
.cart-item-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    display: block;
    margin: 0 auto;
}

/* 复选框栏在最左，共用样式中按第 2 列设定的描述列宽顺延至第 3 列 */
#plist .title th:nth-child(2),
#plist td:nth-child(2) { min-width: 0; text-align: center; }
#plist .title th:nth-child(3),
#plist td:nth-child(3) { min-width: 200px; }

/* 数量栏 */
#plist .title th.cart-col-qty { width: 140px; text-align: center; }
#plist td.cart-col-qty { text-align: center; vertical-align: middle; }
.cart-qty-input {
    width: 80px;
    padding: 4px 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13px;
}
.cart-qty-input:focus { outline: none; border-color: var(--primary); }

/* 询单页商品表链接 */
.quote-cart-table td a {
    color: var(--text-primary);
    text-decoration: none;
}
.quote-cart-table td a:hover { color: var(--primary); }

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
}
.cart-actions-left { display: flex; gap: 10px; }
.cart-actions-right { display: flex; gap: 10px; }
.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
    color: var(--text-primary);
}
.btn-cart:hover { border-color: var(--primary); color: var(--primary); }
.btn-cart-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.btn-cart-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-cart-danger { color: #d9534f; }
.btn-cart-danger:hover { background: #d9534f; border-color: #d9534f; color: #fff; }

/* ============================================
   Responsive - Tablet & Mobile
   ============================================ */
@media (max-width: 991px) {
    /* Steps */
    .cart-steps { gap: 10px; padding: 14px 8px; margin-bottom: 18px; }
    .cart-step { font-size: 12px; gap: 5px; }
    .step-num { width: 22px; height: 22px; font-size: 11px; }
    .cart-step-arrow-box svg { width: 13px; height: 13px; }

    /* Cart table (与产品中心列表共用 #plist 卡片布局，数量栏独占一行) */
    #plist td:nth-child(3) { min-width: 0; }
    #plist td.cart-col-qty { width: 100%; text-align: left; padding-top: 10px; }
    .cart-qty-input { width: 90px; }

    /* Cart Actions */
    .cart-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .cart-actions-left, .cart-actions-right { width: 100%; }
    .cart-actions .btn-cart { flex: 1; padding: 10px 6px; font-size: 13px; }
}
