/* 购物车页面样式 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    background-color: #fff;
    border-bottom: 1px solid #f2f2f2;
    padding: 0 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.back-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.title {
    font-size: 16px;
    font-weight: 500;
}

.right-icon {
    font-size: 14px;
    color: #666;
}

/* 未登录和购物车为空提示样式 */
.not-login, .cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 100px);
    padding-top: 44px;
}

.tip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.tip-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.login-btn, .shopping-btn {
    background-color: #1890ff;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 30px;
    font-size: 14px;
}

/* 购物车列表样式 */
.cart-list {
    padding: 54px 10px 70px;
}

.cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f2f2f2;
}

.cart-item-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.cart-item-checkbox input {
    width: 18px;
    height: 18px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.cart-item-price {
    font-size: 16px;
    color: #ff6700;
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    font-size: 18px;
    user-select: none;
}

.quantity-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.delete-btn {
    color: #999;
    font-size: 14px;
}

/* 底部结算栏样式 */
.cart-footer {
    position: fixed;
    bottom: 66px;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-top: 1px solid #f2f2f2;
}

.price-info {
    flex: 1;
}

.total-price {
    font-size: 16px;
    color: #333;
}

#totalPrice {
    color: #ff6700;
    font-weight: 500;
}

.checkout-btn {
    width: 110px;
    height: 40px;
    background-color: #ff6700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 14px;
}

/* 底部导航栏样式已移至common.css */
