/* 购物车徽章样式 */
.header-cart {
    position: relative;
    display: inline-block;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    padding: 8px;
}

.cart-badge, .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e11111;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 0 4px;
}

/* 购物车页面样式 */
.cart-page {
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #e11111;
    font-weight: bold;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
}

.quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

.cart-total {
    text-align: right;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
}