/**
 * Phase 10B native global shell.
 * Small fallback-only stylesheet retained independently of page modules.
 */

body.bupiz-native-global-shell {
    margin: 0;
}

body.bupiz-native-global-shell > main,
body.bupiz-native-global-shell #content,
body.bupiz-native-global-shell #primary {
    min-width: 0;
}

.bupiz-global-header-fallback {
    position: relative;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.bupiz-global-header-fallback__inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.bupiz-global-header-fallback__brand {
    color: #1b263b;
    font-size: 24px;
    text-decoration: none;
}

.bupiz-global-header-fallback__brand .custom-logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 48px;
}

.bupiz-global-header-fallback__nav {
    margin-left: auto;
}

.bupiz-global-header-fallback__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bupiz-global-header-fallback__nav a,
.bupiz-global-header-fallback__account {
    color: #1b263b;
    font-weight: 700;
    text-decoration: none;
}

.bupiz-global-header-fallback__account {
    display: inline-flex;
    min-height: 40px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #5E22A4;
    color: #fff;
}

/* Canonical customer app navigation. Route bundles must not restyle this. */
.bupiz-mobile-bottom-nav{
    display:none;
}

@media (max-width: 767px) {
    .bupiz-global-header-fallback__inner {
        min-height: 62px;
        gap: 12px;
    }

    .bupiz-global-header-fallback__nav {
        display: none;
    }

    .bupiz-global-header-fallback__account {
        margin-left: auto;
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    /* Shared mobile search action. */
    #bupiz-main-header-mobile .bupiz-search-form button,
    .bupiz-mobile-sticky-bar .bupiz-sticky-search-form button,
    .bupiz-mobile-search button{
        border-color:#5e22a4 !important;
        background:#5e22a4 !important;
        color:#fff !important;
        box-shadow:none !important;
    }
    #bupiz-main-header-mobile .bupiz-search-form button:hover,
    #bupiz-main-header-mobile .bupiz-search-form button:focus-visible,
    .bupiz-mobile-sticky-bar .bupiz-sticky-search-form button:hover,
    .bupiz-mobile-sticky-bar .bupiz-sticky-search-form button:focus-visible{
        border-color:#4f118f !important;
        background:#4f118f !important;
        color:#fff !important;
        outline:none !important;
    }

    body.bupiz-has-mobile-bottom-nav{
        --bupiz-mobile-nav-h:64px;
        padding-bottom:calc(var(--bupiz-mobile-nav-h) + 6px + env(safe-area-inset-bottom)) !important;
    }

    .bupiz-mobile-bottom-nav{
        position:fixed;
        z-index:99996;
        right:0;
        bottom:0;
        left:0;
        display:grid;
        grid-template-columns:repeat(5,minmax(0,1fr));
        box-sizing:border-box;
        min-height:calc(var(--bupiz-mobile-nav-h,64px) + env(safe-area-inset-bottom));
        padding:5px max(6px,env(safe-area-inset-right))
            calc(5px + env(safe-area-inset-bottom))
            max(6px,env(safe-area-inset-left));
        border-top:1px solid #e7e0ee;
        background:rgba(255,255,255,.97);
        box-shadow:0 -6px 20px rgba(42,25,57,.09);
        backdrop-filter:blur(14px);
        -webkit-backdrop-filter:blur(14px);
    }

    .bupiz-mobile-bottom-item{
        position:relative;
        display:flex;
        min-width:0;
        min-height:50px;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:3px;
        margin:0 !important;
        padding:2px !important;
        border:0 !important;
        border-radius:8px !important;
        background:transparent !important;
        box-shadow:none !important;
        color:#64606a !important;
        font-family:Figtree,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
        font-size:9.5px !important;
        font-weight:700 !important;
        line-height:1.05 !important;
        text-align:center;
        text-decoration:none !important;
        text-transform:none !important;
        cursor:pointer;
        transform:none !important;
    }

    .bupiz-mobile-bottom-item.is-active,
    .bupiz-mobile-bottom-item:hover,
    .bupiz-mobile-bottom-item:focus-visible{
        background:#f8f3ff !important;
        color:#5e22a4 !important;
        outline:none !important;
        transform:none !important;
    }

    .bupiz-mobile-bottom-icon{
        display:block;
        width:23px;
        height:23px;
    }

    .bupiz-mobile-bottom-icon svg{
        display:block;
        width:100%;
        height:100%;
    }

    .bupiz-mobile-bottom-count{
        position:absolute;
        top:1px;
        left:calc(50% + 7px);
        display:grid;
        min-width:15px;
        height:15px;
        padding:0 3px;
        place-items:center;
        border:2px solid #fff;
        border-radius:999px;
        background:#5e22a4;
        color:#fff;
        font-size:8px;
        font-weight:800;
        line-height:1;
    }
}

/* ============================================================
   BUPIZ CANONICAL FOOTER — ELITE PLUM / LAVENDER
   Shared presentation owner for every storefront route.
   Layout and footer.php markup are intentionally unchanged.
   ============================================================ */
body .bupiz-site-footer{
    --bupiz-footer-bg:#fbf8ff;
    --bupiz-footer-surface:#ffffff;
    --bupiz-footer-soft:#f4edff;
    --bupiz-footer-deep:#28124f;
    --bupiz-footer-accent:#5e22a4;
    --bupiz-footer-accent-dark:#4f118f;
    --bupiz-footer-text:#2a2140;
    --bupiz-footer-muted:#625a6b;
    --bupiz-footer-border:#e7deef;
    margin-top:28px;
    background:var(--bupiz-footer-bg);
    color:var(--bupiz-footer-text);
    border-top:1px solid var(--bupiz-footer-border);
    font-family:Figtree,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

body .bupiz-site-footer *,
body .bupiz-site-footer *::before,
body .bupiz-site-footer *::after{box-sizing:border-box;}

body .bupiz-site-footer .bupiz-footer-container{
    width:min(1280px,calc(100% - 32px));
    margin:0 auto;
}

body .bupiz-site-footer ul,
body .bupiz-site-footer ol{
    margin:0!important;
    padding:0!important;
    list-style:none!important;
}
body .bupiz-site-footer li{margin:0!important;padding:0!important;list-style:none!important;}
body .bupiz-site-footer li::marker{content:""!important;}
body .bupiz-site-footer a{text-decoration:none!important;}

/* Desktop sign-in strip */
body .bupiz-site-footer .bupiz-footer-sign-strip{
    background:var(--bupiz-footer-surface);
    border-top:1px solid var(--bupiz-footer-border);
    border-bottom:1px solid var(--bupiz-footer-border);
}
body .bupiz-site-footer .bupiz-footer-sign-inner{
    min-height:50px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
body .bupiz-site-footer .bupiz-footer-sign-copy{
    color:var(--bupiz-footer-muted);
    font-size:13.5px;
    font-weight:550;
    line-height:1.45;
}
body .bupiz-site-footer .bupiz-footer-sign-btn{
    display:inline-flex;
    min-width:112px;
    min-height:38px;
    padding:0 17px;
    align-items:center;
    justify-content:center;
    border:1px solid var(--bupiz-footer-accent);
    border-radius:8px;
    background:var(--bupiz-footer-accent);
    color:#fff!important;
    box-shadow:0 6px 16px rgba(94,34,164,.13);
    font-size:13.5px;
    font-weight:750;
    line-height:1;
    transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
body .bupiz-site-footer .bupiz-footer-sign-btn:hover,
body .bupiz-site-footer .bupiz-footer-sign-btn:focus-visible{
    border-color:var(--bupiz-footer-accent-dark);
    background:var(--bupiz-footer-accent-dark);
    color:#fff!important;
    box-shadow:0 8px 18px rgba(79,17,143,.17);
    outline:none;
}

/* Optional quick row */
body .bupiz-site-footer .bupiz-footer-quick-row{
    background:var(--bupiz-footer-surface);
    border-bottom:1px solid var(--bupiz-footer-border);
}
body .bupiz-site-footer .bupiz-footer-quick-list{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px 28px;
    padding:10px 0;
}
body .bupiz-site-footer .bupiz-footer-quick-list a{
    color:var(--bupiz-footer-text)!important;
    font-size:14px;
    font-weight:550;
    line-height:1.45;
}
body .bupiz-site-footer .bupiz-footer-quick-list a:hover{color:var(--bupiz-footer-accent)!important;}

/* Go-to-top rows */
body .bupiz-site-footer .bupiz-footer-toprow-desktop{background:var(--bupiz-footer-deep);}
body .bupiz-site-footer .bupiz-footer-toprow-mobile{display:none;background:var(--bupiz-footer-deep);}
body .bupiz-site-footer .bupiz-footer-toplink{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    color:#fff!important;
    font-size:13.5px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.035em;
}
body .bupiz-site-footer .bupiz-footer-topicon{color:#d8c3f1;line-height:1;}

/* Main footer */
body .bupiz-site-footer .bupiz-footer-main{
    background:var(--bupiz-footer-bg);
    color:var(--bupiz-footer-text);
}
body .bupiz-site-footer .bupiz-footer-brand-row{
    padding:22px 0 18px;
    border-bottom:1px solid var(--bupiz-footer-border);
    text-align:center;
}
body .bupiz-site-footer .bupiz-footer-brand-logo{
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:10px;
}
body .bupiz-site-footer .bupiz-footer-logo-link{display:inline-flex;align-items:center;justify-content:center;}
body .bupiz-site-footer .bupiz-footer-logo-img{
    display:block;
    width:auto!important;
    height:auto!important;
    max-width:220px;
    max-height:58px;
}
body .bupiz-site-footer .bupiz-footer-text-logo{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--bupiz-footer-deep)!important;
    font-size:22px;
    font-weight:850;
    letter-spacing:-.02em;
}
body .bupiz-site-footer .bupiz-footer-brand-text{
    max-width:760px;
    margin:0 auto;
    color:var(--bupiz-footer-muted);
    font-size:14.5px;
    font-weight:450;
    line-height:1.7;
}
body .bupiz-site-footer .bupiz-footer-pill-row{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin-top:12px;
}
body .bupiz-site-footer .bupiz-footer-pill{
    display:inline-flex;
    min-height:32px;
    padding:0 13px;
    align-items:center;
    justify-content:center;
    border:1px solid #ded0ef;
    border-radius:999px;
    background:var(--bupiz-footer-soft);
    color:var(--bupiz-footer-accent);
    box-shadow:none;
    font-size:12px;
    font-weight:700;
    line-height:1;
}

/* Desktop columns */
body .bupiz-site-footer .bupiz-footer-grid-desktop{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:28px;
    padding:28px 0 30px;
}
body .bupiz-site-footer .bupiz-footer-grid-mobile{display:none;}
body .bupiz-site-footer .bupiz-footer-col h4,
body .bupiz-site-footer .bupiz-footer-col-mobile h4{
    color:var(--bupiz-footer-deep);
    font-family:inherit;
    font-weight:780;
    letter-spacing:-.01em;
}
body .bupiz-site-footer .bupiz-footer-col h4{
    margin:0 0 12px;
    font-size:15.5px;
    line-height:1.3;
}
body .bupiz-site-footer .bupiz-footer-col li + li{margin-top:9px!important;}
body .bupiz-site-footer .bupiz-footer-col a{
    color:var(--bupiz-footer-muted)!important;
    font-size:14px;
    font-weight:500;
    line-height:1.55;
    transition:color .16s ease;
}
body .bupiz-site-footer .bupiz-footer-col a:hover,
body .bupiz-site-footer .bupiz-footer-col a:focus-visible{
    color:var(--bupiz-footer-accent)!important;
    outline:none;
}
body .bupiz-site-footer .bupiz-footer-col-partner{
    padding-left:16px;
    border-left:1px solid var(--bupiz-footer-border);
}
body .bupiz-site-footer .bupiz-footer-col-partner p{
    margin:0 0 12px;
    color:var(--bupiz-footer-muted);
    font-size:14px;
    font-weight:450;
    line-height:1.65;
}
body .bupiz-site-footer .bupiz-footer-sell-btn,
body .bupiz-site-footer a.bupiz-footer-sell-btn:link,
body .bupiz-site-footer a.bupiz-footer-sell-btn:visited{
    display:inline-flex;
    min-height:42px;
    padding:0 18px;
    align-items:center;
    justify-content:center;
    border:1px solid var(--bupiz-footer-accent)!important;
    border-radius:8px;
    background:var(--bupiz-footer-accent)!important;
    color:#fff!important;
    box-shadow:0 7px 18px rgba(94,34,164,.14);
    font-size:14px;
    font-weight:750;
    line-height:1;
}
body .bupiz-site-footer a.bupiz-footer-sell-btn *,
body .bupiz-site-footer a.bupiz-footer-sell-btn span,
body .bupiz-site-footer a.bupiz-footer-sell-btn strong,
body .bupiz-site-footer a.bupiz-footer-sell-btn i{color:#fff!important;fill:#fff!important;}
body .bupiz-site-footer a.bupiz-footer-sell-btn:hover,
body .bupiz-site-footer a.bupiz-footer-sell-btn:focus-visible{
    border-color:var(--bupiz-footer-accent-dark)!important;
    background:var(--bupiz-footer-accent-dark)!important;
    color:#fff!important;
    outline:none;
}

/* Bottom copyright bar */
body .bupiz-site-footer .bupiz-footer-bottom-desktop{
    background:var(--bupiz-footer-deep);
    border-top:1px solid rgba(255,255,255,.08);
}
body .bupiz-site-footer .bupiz-footer-bottom-desktop-inner{
    min-height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}
body .bupiz-site-footer .bupiz-footer-mini-logo .bupiz-footer-logo-img{max-width:110px;max-height:24px;}
body .bupiz-site-footer .bupiz-footer-rights{
    color:rgba(255,255,255,.9);
    font-size:12.5px;
    font-weight:500;
    line-height:1.4;
}
body .bupiz-site-footer .bupiz-footer-bottom-mobile{display:none;}

@media (max-width:1100px){
    body .bupiz-site-footer .bupiz-footer-grid-desktop{grid-template-columns:1fr 1fr;gap:28px;}
    body .bupiz-site-footer .bupiz-footer-col-partner{padding-left:0;border-left:0;}
}

@media (max-width:767px){
    body .bupiz-site-footer{
        margin-top:0!important;
        margin-bottom:0!important;
        padding-bottom:0!important;
    }
    body .bupiz-site-footer .bupiz-footer-container{width:min(100%,calc(100% - 22px));}
    body .bupiz-site-footer .bupiz-footer-sign-strip,
    body .bupiz-site-footer .bupiz-footer-toprow-desktop,
    body .bupiz-site-footer .bupiz-footer-grid-desktop,
    body .bupiz-site-footer .bupiz-footer-bottom-desktop{display:none;}

    body .bupiz-site-footer .bupiz-footer-quick-row{
        background:var(--bupiz-footer-surface);
        border-bottom:1px solid var(--bupiz-footer-border);
    }
    body .bupiz-site-footer .bupiz-footer-quick-list{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px 18px;
        padding:10px 0 12px;
    }
    body .bupiz-site-footer .bupiz-footer-quick-list a{
        display:block;
        color:var(--bupiz-footer-text)!important;
        font-size:13.5px;
        font-weight:550;
        line-height:1.45;
        text-align:left;
    }

    body .bupiz-site-footer .bupiz-footer-brand-row{padding:14px 0 16px;}
    body .bupiz-site-footer .bupiz-footer-brand-logo{margin-bottom:8px;}
    body .bupiz-site-footer .bupiz-footer-logo-img{max-width:180px;max-height:52px;}
    body .bupiz-site-footer .bupiz-footer-brand-text{
        max-width:100%;
        padding:0 6px;
        color:#5d5565;
        font-size:13.5px;
        font-weight:450;
        line-height:1.62;
    }
    body .bupiz-site-footer .bupiz-footer-pill-row{gap:7px;margin-top:10px;}
    body .bupiz-site-footer .bupiz-footer-pill{
        min-height:31px;
        padding:0 11px;
        font-size:11.5px;
    }

    body .bupiz-site-footer .bupiz-footer-grid-mobile{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:14px 20px;
        padding:14px 0 16px;
        border-top:1px solid var(--bupiz-footer-border);
    }
    body .bupiz-site-footer .bupiz-footer-col-mobile h4{
        margin:0 0 10px;
        color:var(--bupiz-footer-deep);
        font-size:14.5px;
        line-height:1.3;
    }
    body .bupiz-site-footer .bupiz-footer-col-mobile li + li{margin-top:8px!important;}
    body .bupiz-site-footer .bupiz-footer-col-mobile a{
        color:#574f60!important;
        font-size:13.5px;
        font-weight:500;
        line-height:1.5;
    }
    body .bupiz-site-footer .bupiz-footer-col-mobile a:hover,
    body .bupiz-site-footer .bupiz-footer-col-mobile a:focus-visible{
        color:var(--bupiz-footer-accent)!important;
        outline:none;
    }

    body .bupiz-site-footer .bupiz-footer-toprow-mobile{display:block;background:var(--bupiz-footer-deep);}
    body .bupiz-site-footer .bupiz-footer-toplink{
        min-height:48px;
        flex-direction:column;
        gap:3px;
        color:#fff!important;
        font-size:11.5px;
        font-weight:750;
        letter-spacing:.075em;
    }

    body .bupiz-site-footer .bupiz-footer-main{margin-bottom:0!important;padding-bottom:0!important;}
    body .bupiz-site-footer .bupiz-footer-bottom-mobile{
        display:block;
        margin-bottom:0!important;
        padding-bottom:0!important;
        border-top:1px solid rgba(255,255,255,.09);
        background:var(--bupiz-footer-deep)!important;
    }
    body .bupiz-site-footer .bupiz-footer-bottom-mobile-inner{
        min-height:44px!important;
        display:flex;
        align-items:center;
        justify-content:center;
        flex-wrap:wrap;
        gap:6px;
        padding:8px 10px!important;
        color:rgba(255,255,255,.88);
        font-size:11.5px;
        font-weight:500;
        line-height:1.45;
        text-align:center;
    }
    body .bupiz-site-footer .bupiz-footer-bottom-mobile-inner a{
        color:#fff!important;
        font-size:11.5px;
        font-weight:750;
    }
}

