/* 购物车页面样式 */
/* 顶部标题栏 */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.header .title {
    font-size: 16px;
    font-weight: bold;
}

.header .edit-btn {
    position: absolute;
    right: 15px;
    font-size: 14px;
    color: #666;
}

/* 购物车内容 */
.cart-content {
    padding: 60px 0;
    background-color: #f5f5f5;
}

/* 店铺组 */
.shop-group {
    background-color: #fff;
    margin-bottom: 10px;
}

.shop-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
}

.shop-info {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 10px;
}

.shop-info i {
    color: #666;
    margin-right: 5px;
}

.shop-name {
    flex: 1;
    font-size: 14px;
}

/* 商品列表 */
.product-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.product-img {
    width: 80px;
    height: 80px;
    margin: 0 10px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.product-info {
    flex: 1;
}

.product-info .title {
    font-size: 14px;
    margin-bottom: 5px;
}

.product-info .spec {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #FF4400;
    font-size: 16px;
    font-weight: bold;
}

/* 数量控制 */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border: none;
    background-color: #f5f5f5;
    font-size: 14px;
}

.quantity-control input {
    width: 40px;
    height: 28px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
}

/* 复选框样式 */
.checkbox {
    display: flex;
    align-items: center;
    margin: 0;
}

.checkbox input {
    display: none;
}

.checkbox-icon {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 50%;
    margin-right: 5px;
    position: relative;
}

.checkbox input:checked + .checkbox-icon:after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FF4400;
    font-size: 12px;
}

/* 底部结算栏 */
.bottom-bar,
.edit-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

.left-part {
    display: flex;
    align-items: center;
}

.left-part .label {
    font-size: 14px;
    margin-right: 15px;
}

.total {
    font-size: 14px;
}

.total .price {
    font-size: 18px;
}

.btn-checkout {
    background-color: #FF4400;
    color: #fff;
    border: none;
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 14px;
}

/* 编辑模式底部栏 */
.right-btns {
    display: flex;
    gap: 10px;
}

.right-btns button {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.btn-collect {
    background-color: #fff;
    border: 1px solid #FF4400;
    color: #FF4400;
}

.btn-delete {
    background-color: #FF4400;
    border: none;
    color: #fff;
} 