@charset "utf-8";
/* ==========================================================================
   BAO100 mobile - base shell
   Header variants, page band, page head, bottom tab bar, footer rules.
   Load after style.css + framework + theme, before page CSS.
   ========================================================================== */

body.lu720 {
    font-family: var(--font-sans);
    font-size: var(--fs-14);
    color: var(--ink);
}

/* Desktop: keep the mobile canvas at 720px, centered */
@media (min-width: 721px) {
    html {
        background: #e9e7e3;
        overflow-x: hidden;
    }

    body.lu720 {
        width: 720px;
        max-width: 720px;
        min-height: 100vh;
        margin-right: auto;
        margin-left: auto;
        box-shadow: 0 0 40px rgba(0, 0, 0, .06);
    }

    body.lu720 .drawer {
        right: calc((100vw - 720px) / 2);
        visibility: hidden;
    }

    body.lu720 .drawer.is-open {
        visibility: visible;
    }

    body.lu720 .drawer-mask {
        left: 50%;
        right: auto;
        width: 720px;
        transform: translateX(-50%);
    }
}

/* ---------- header: overlay (band pages) / solid (content pages) ---------- */
body.lu720 .site-header {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: 720px;
    transform: translateX(-50%);
    color: var(--ink);
}

body.lu720 .site-header--solid,
body.lu720 .site-header--solid.is-scrolled {
    background: #fff !important;
    border-bottom: 1px solid var(--line) !important;
}

body.lu720.header-solid {
    padding-top: var(--header-h);
}

/* ---------- page band (Chinese titles) ---------- */
body.lu720 .page-band h1 {
    font-size: var(--fs-28);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: .2em;
    text-indent: .2em;
}

body.lu720 .page-band .breadcrumb {
    margin-top: .15rem;
    font-size: var(--fs-12);
    line-height: 1.5;
    letter-spacing: .06em;
}

body.lu720 .page-band .breadcrumb a {
    color: inherit;
}

/* ---------- compact page head for solid-header pages ---------- */
.lu-page-head {
    padding: var(--space-4) var(--space-4) var(--space-2);
    background: var(--canvas);
}

.lu-page-head h1 {
    margin: 0;
    color: var(--ink);
    font-size: var(--fs-24);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: .06em;
}

/* ---------- drawer typography ---------- */
body.lu720 .drawer-nav a {
    font-size: var(--fs-16);
    letter-spacing: .06em;
}

/* ---------- bottom tab bar ---------- */
.lu-tabbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 60;
    display: flex;
    width: 100%;
    max-width: 720px;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid var(--line);
    transform: translateX(-50%);
}

.lu-tabbar__item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .05rem;
    min-width: 0;
    color: var(--text-3);
    font-size: var(--fs-11);
    line-height: 1;
    letter-spacing: .02em;
    text-decoration: none;
}

.lu-tabbar__item svg {
    display: block;
    width: .44rem;
    height: .44rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lu-tabbar__item.is-active {
    color: var(--ink);
}

.lu-tabbar__icon {
    position: relative;
    display: block;
}

.lu-tabbar__badge {
    position: absolute;
    top: -.1rem;
    right: -.2rem;
    display: none;
    min-width: .28rem;
    height: .28rem;
    padding: 0 .06rem;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: var(--fs-10);
    line-height: .28rem;
    font-style: normal;
    text-align: center;
}

.lu-tabbar__badge.is-show {
    display: block;
}

/* body spacing: nav-only pages use body padding; footer pages extend the footer */
body.lu720.has-nav {
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

body.lu720.has-nav.has-footer {
    padding-bottom: 0;
}

body.lu720.has-nav.has-footer .site-footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
}

/* ---------- footer typography (legacy bridge: theme uses !important) ---------- */
body.lu720 footer.site-footer .footer-links a {
    font-size: var(--fs-12) !important;
    letter-spacing: .02em;
}

body.lu720 footer.site-footer .footer-contact {
    font-size: var(--fs-13) !important;
    line-height: 1.9;
}

body.lu720 footer.site-footer .footer-about {
    font-size: var(--fs-12) !important;
    line-height: 1.8 !important;
}

body.lu720 footer.site-footer .footer-copy,
body.lu720 footer.site-footer .footer-legal {
    font-size: var(--fs-11) !important;
    line-height: 1.8 !important;
}

body.lu720 footer.site-footer .footer-read {
    font-size: var(--fs-11) !important;
}

/* ---------- safe area for fixed action bars ---------- */
.lu-fixed-actions {
    padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- page-level rem tuning (P0.5) ---------- */

/* home product carousel: card width and padding scale with rem */
body.lu720-home .product-carousel .product-card {
    flex: 0 0 5.18rem;
    width: 5.18rem;
}

body.lu720-home .product-body {
    padding: .33rem .48rem .31rem;
}

body.lu720-home .product-title {
    max-width: 3.45rem;
    line-height: .42rem;
}

body.lu720-home .product-cart {
    height: 1.15rem;
}

/* shop grid: two real columns at 375, no clipped second card */
body.lu720-shop .product-grid {
    width: calc(100% - .62rem);
    margin: .3rem auto 0;
    gap: .23rem;
}

body.lu720-shop .product-grid > .product-card {
    flex: none;
    width: 100%;
    min-width: 0;
}

body.lu720-shop .product-body {
    padding: .23rem .15rem .2rem;
}

body.lu720-shop .product-title {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    font-size: .27rem;
    line-height: 1.5;
}

body.lu720-shop .product-subtitle {
    font-size: .23rem;
    line-height: 1.5;
}

body.lu720-shop .product-cart {
    height: .8rem;
    font-size: .21rem;
}

/* login / register: no marketing footer, keep the page white to the tab bar */
body.lu720-login {
    background: #fff;
}

body.lu720-login .account-space {
    background: #fff;
}

/* shop toolbar: 375-readable sizing */
body.lu720-shop .shop-toolbar {
    width: calc(100% - .62rem);
    padding: .3rem 0 .23rem;
}

body.lu720-shop .shop-toolbar .showing {
    font-size: .23rem;
}

body.lu720-shop .sort-links {
    gap: .3rem;
}

body.lu720-shop .sort-links a {
    font-size: .23rem;
}

body.lu720-shop .shop-toolbar .filter-btn {
    width: auto;
    min-width: 1.5rem;
    height: .72rem;
    padding: 0 .23rem;
    font-size: .21rem;
}

/* Home hero: full viewport minus bottom tab bar (mobile) */
body.lu720-home .hero-slider,
body.lu720-home .hero-slider .swiper-wrapper,
body.lu720-home .hero-slider .swiper-slide {
    height: calc(min(max(100vh, 133.33vw), 960px) - var(--nav-h) - env(safe-area-inset-bottom)) !important;
}
