/* Mall 浮窗通用样式(购物车 / 客服 / 直播 / SKU弹层 共享) */
.mall-float-btn {
    position: fixed;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1040;
    transition: transform .15s, box-shadow .15s;
    border: 1px solid rgba(0,0,0,.05);
}
.mall-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.16);
}
.mall-float-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 11px;
    min-width: 20px;
    padding: 2px 5px;
    background: #e74c3c;
    color: #fff;
    border-radius: 10px;
}

.mall-float-cart  { bottom: 220px; }
.mall-float-kefu  { bottom: 150px; }
.mall-float-live  { bottom: 80px;  }

.mall-float-panel {
    position: fixed;
    right: 20px;
    width: 320px;
    max-height: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    z-index: 1050;
    overflow: hidden;
    display: none;
}
.mall-float-panel.show { display: block; }
.mall-float-panel-header {
    padding: 10px 14px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mall-float-panel-body {
    max-height: 320px;
    overflow-y: auto;
    padding: 10px 14px;
}
.mall-float-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
}
.mall-float-item:last-child { border-bottom: 0; }
.mall-float-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.mall-float-item-info { flex: 1; min-width: 0; }
.mall-float-item-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mall-float-item-price { color: #e74c3c; font-size: 13px; margin-top: 4px; }

.mall-float-empty {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 30px 0;
}

/* 客服浮窗 */
.mall-kefu-options { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.mall-kefu-options a, .mall-kefu-options button {
    display: block;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    background: #fafafa;
    transition: all .15s;
}
.mall-kefu-options a:hover, .mall-kefu-options button:hover {
    background: #fff5ec;
    border-color: #d35400;
    color: #d35400;
}

/* 直播预告浮窗 */
.mall-live-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #d35400 100%);
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.mall-live-card .title { font-weight: 600; font-size: 14px; }
.mall-live-card .time  { font-size: 12px; opacity: .9; margin-top: 4px; }
.mall-live-card .cta {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(255,255,255,.25);
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    color: #fff;
}

/* SKU 弹层 */
.mall-sku-popup-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1060;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.mall-sku-popup-mask.show { display: flex; }
.mall-sku-popup {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 16px;
    animation: mall-sku-slide .25s ease;
}
@keyframes mall-sku-slide { from { transform: translateY(100%);} to { transform: translateY(0);} }
.mall-sku-popup .sku-product {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}
.mall-sku-popup .sku-product img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; }
.mall-sku-popup .sku-product .info { flex: 1; }
.mall-sku-popup .sku-product .name { font-weight: 600; }
.mall-sku-popup .sku-product .price { color: #e74c3c; font-weight: 600; margin-top: 4px; }
.mall-sku-popup .sku-row { margin-bottom: 14px; }
.mall-sku-popup .sku-row .label { font-size: 13px; color: #666; margin-bottom: 6px; }
.mall-sku-popup .sku-options { display: flex; flex-wrap: wrap; gap: 8px; }
.mall-sku-popup .sku-option {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}
.mall-sku-popup .sku-option.active {
    border-color: #d35400;
    background: #fff5ec;
    color: #d35400;
}
.mall-sku-popup .qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mall-sku-popup .qty-row input {
    width: 60px; text-align: center;
    border: 1px solid #ddd; border-radius: 6px; padding: 4px 0;
}
.mall-sku-popup .sku-actions {
    display: flex; gap: 10px;
}
.mall-sku-popup .sku-actions button {
    flex: 1;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
}
.mall-sku-popup .sku-actions .btn-cart { background: #ffaa66; color: #fff; }
.mall-sku-popup .sku-actions .btn-buy  { background: #d35400; color: #fff; }