/* 商城共用：顶部栏 + 底部 Tab（各页引入本文件后可少写重复样式） */

/* ========== 顶部栏 ========== */
.top-bar.shop-shell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.top-bar.shop-shell-top.top-bar--sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}
.top-bar.shop-shell-top .logo {
    font-size: 17px;
    font-weight: 700;
    color: #222;
}
.top-bar.shop-shell-top.usercenter-brand .logo,
.top-bar.shop-shell-top.shop-brand .logo {
    letter-spacing: 1px;
}
.top-bar.shop-shell-top .user-mini {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
}
.top-bar.shop-shell-top .user-mini .mini-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2a2a2a center/cover no-repeat;
    margin-right: 6px;
    overflow: hidden;
}
.top-bar.shop-shell-top .logout-link {
    color: #ff5722;
    margin-left: 10px;
    cursor: pointer;
}

/* 主按钮色：与礼包商城「立即购买」.bd-confirm 一致 */
:root {
    --shop-red: #ff4d4f;
    --shop-red-soft: #ff7875;
    --shop-btn-gradient: linear-gradient(135deg, #ff7875, #ff4d4f);
    --shop-btn-shadow: 0 4px 10px rgba(255, 77, 79, 0.28);
    --shop-btn-shadow-sm: 0 2px 8px rgba(255, 77, 79, 0.22);
    --shop-outline: #ff7875;
    --shop-outline-ring: rgba(255, 77, 79, 0.35);
}

/* ========== 底部 TabBar ========== */
.tabbar.shop-shell-tabbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 56px;
    display: flex;
    background: #fff;
    border-top: 1px solid #ececec;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 99;
}
.tabbar.shop-shell-tabbar .tb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
    cursor: pointer;
    user-select: none;
}
.tabbar.shop-shell-tabbar .tb-item .layui-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 3px;
}
.tabbar.shop-shell-tabbar .tb-item.active {
    color: #ff4d4f;
    cursor: default;
}
