/* 购物车侧边栏美化及响应式适配 */
.cart-sidebar-modal {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.10);
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(.4,0,.2,1);
    border-radius: 12px 0 0 12px;
    padding: 0;
    font-family: 'Inter', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}
.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 12px 28px;
    border-bottom: 1px solid #f2f2f2;
    background: #fff;
}
.cart-sidebar-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #222;
}
.cart-sidebar-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #bbb;
    cursor: pointer;
    transition: color 0.2s;
}
.cart-sidebar-close:hover {
    color: #e67e22;
}
.cart-items {
    padding: 18px 28px 0 28px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: #faf9f7;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    padding: 12px 10px;
    transition: box-shadow 0.2s;
}
.cart-item:hover {
    box-shadow: 0 4px 16px rgba(230,126,34,0.08);
}
.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
}
.cart-item-qty-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.cart-qty-minus, .cart-qty-plus {
    width: 28px;
    height: 28px;
    border: 1px solid #e67e22;
    border-radius: 6px;
    background: #fff;
    color: #e67e22;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.cart-qty-minus:disabled {
    color: #ccc;
    border-color: #eee;
    background: #f7f7f7;
    cursor: not-allowed;
}
.cart-item-qty-label {
    color: #222;
    font-size: 1.08em;
    min-width: 24px;
    text-align: center;
    font-weight: 500;
}
.cart-item-delete {
    background: none;
    border: none;
    color: #bbb;
    font-size: 1.3em;
    cursor: pointer;
    transition: color 0.2s;
}
.cart-item-delete:hover {
    color: #e67e22;
}
.cart-item > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}
.cart-item .cart-item-name {
    font-weight: 700;
    font-size: 1.08em;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item .cart-item-variant {
    color: #888;
    font-size: 0.98em;
    margin: 2px 0 2px 0;
}
.cart-item .cart-item-price {
    color: #e67e22;
    font-size: 1.08em;
    font-weight: 600;
    margin-top: 2px;
}
.cart-summary-wrap {
    border-top: 1px solid #f2f2f2;
    padding: 18px 28px 24px 28px;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
}
.cart-summary-wrap > div {
    font-size: 1.08em;
    color: #222;
    margin-bottom: 6px;
}
.cart-summary-wrap .btn-checkout {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #e67e22 0%, #f6b93b 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.12em;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}
.cart-summary-wrap .btn-checkout:hover {
    background: linear-gradient(90deg, #f6b93b 0%, #e67e22 100%);
    color: #fff;
}
.cart-empty {
    text-align: center;
    color: #bbb;
    font-size: 1.15em;
    padding: 40px 0;
}

/* 响应式适配 */
@media (max-width: 600px) {
    .cart-sidebar-modal {
        width: 100vw;
        border-radius: 0;
        padding-bottom: 60px;
    }
    .cart-sidebar-header, .cart-items, .cart-summary-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }
    .cart-item img {
        width: 48px;
        height: 48px;
    }
    .cart-item {
        gap: 10px;
        padding: 8px 4px;
    }
    .cart-summary-wrap {
        padding-bottom: 18px;
    }
} 