/* ===== 购物车页 ===== */
.cart-box {
    background-color: #fff;
    border-radius: 4px;
    margin-top: 20px;
    padding: 20px;
}

/* 面包屑 */
.breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #e94560;
}

.breadcrumb span {
    margin: 0 6px;
}

/* 购物车表格 */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cart-table thead {
    background-color: #f5f5f5;
}

.cart-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: normal;
    color: #666;
}

.cart-table th:first-child {
    width: 60px;
    text-align: center;
}

.cart-table th:last-child {
    width: 80px;
    text-align: center;
}

.cart-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-table td:first-child {
    text-align: center;
}

.cart-table td:last-child {
    text-align: center;
}

/* 商品信息列 */
.cart-goods {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-goods img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
}

.cart-goods .name {
    color: #333;
    font-size: 14px;
}

.cart-goods .name:hover {
    color: #e94560;
}

/* 价格 */
.cart-price {
    color: #333;
    font-size: 14px;
}

.cart-subtotal {
    color: #e94560;
    font-weight: bold;
    font-size: 15px;
}

/* 数量控制 */
.qty-wrap {
    display: flex;
    align-items: center;
}

.qty-wrap button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    font-size: 14px;
    cursor: pointer;
}

.qty-wrap button:hover {
    border-color: #e94560;
    color: #e94560;
}

.qty-wrap input {
    width: 40px;
    height: 28px;
    text-align: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 14px;
    outline: none;
}

/* 删除按钮 */
.btn-del {
    color: #999;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
}

.btn-del:hover {
    color: #e94560;
    text-decoration: underline;
}

/* 底部结算栏 */
.cart-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 16px 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.cart-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.cart-bar-left label {
    cursor: pointer;
}

.cart-bar-left a {
    color: #666;
}

.cart-bar-left a:hover {
    color: #e94560;
}

.cart-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-bar-right .summary {
    font-size: 14px;
    color: #666;
}

.cart-bar-right .summary strong {
    color: #e94560;
    font-size: 20px;
}

.btn-submit {
    width: 140px;
    height: 46px;
    background-color: #e94560;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #c73652;
}

/* 空购物车 */
.cart-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}

.cart-empty a {
    color: #e94560;
}

/* ===== 支付弹窗 ===== */
.pay-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.pay-mask.active {
    display: flex;
}

.pay-box {
    background-color: #fff;
    width: 360px;
    padding: 30px;
    border-radius: 6px;
    text-align: center;
}

.pay-box h3 {
    font-size: 18px;
    margin-bottom: 24px;
    color: #1a1a2e;
}

.pay-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pay-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.pay-option input {
    margin-right: 10px;
}

.pay-option:hover {
    border-color: #e94560;
}

.btn-pay-confirm {
    width: 100%;
    height: 42px;
    background-color: #e94560;
    color: #fff;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-pay-confirm:hover {
    background-color: #c73652;
}

.btn-pay-cancel {
    width: 100%;
    height: 42px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-pay-cancel:hover {
    background-color: #e5e5e5;
}
