/* Hidden by default — browser visitors never see the bar. */
.ospn-app-bottomnav { display: none; }

/* Revealed only inside the Capacitor WebView (class set by inline head script). */
html.is-capacitor-app .ospn-app-bottomnav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    padding-bottom: env(safe-area-inset-bottom);
}

html.is-capacitor-app .ospn-app-bottomnav__item {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px 6px;
    font-size: 11px;
    line-height: 1.1;
    color: #555;
    text-decoration: none;
    transition: color 0.15s ease;
}

html.is-capacitor-app .ospn-app-bottomnav__item:hover,
html.is-capacitor-app .ospn-app-bottomnav__item:focus {
    color: #000;
    text-decoration: none;
}

html.is-capacitor-app .ospn-app-bottomnav__item.is-active,
html.is-capacitor-app .ospn-app-bottomnav__item[aria-current="page"] {
    color: #000;
    font-weight: 600;
}

html.is-capacitor-app .ospn-app-bottomnav__icon {
    display: block;
    width: 22px;
    height: 22px;
}

html.is-capacitor-app .ospn-app-bottomnav__label {
    display: block;
}

/* Cart badge — only shows when count > 0 */
html.is-capacitor-app .ospn-app-bottomnav__badge {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(4px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
}
html.is-capacitor-app .ospn-app-bottomnav__badge:empty,
html.is-capacitor-app .ospn-app-bottomnav__item [data-ospn-cart-count="0"],
html.is-capacitor-app .ospn-app-bottomnav .nsport-cart-count:empty {
    display: none;
}

/* Reserve space so the page doesn't scroll content under the bar. */
html.is-capacitor-app body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
}

/* Hide the theme's mobile-menu surfaces inside the app. Covers the nsport custom header,
   Woodmart's header builder variants, and common Elementor mobile-menu classes. */
html.is-capacitor-app .nsport-tool--burger,
html.is-capacitor-app .nsport-mobile-panel,
html.is-capacitor-app .nsport-mobile-overlay,
html.is-capacitor-app .wd-header-mobile-nav,
html.is-capacitor-app .whb-mobile-nav-icon,
html.is-capacitor-app .whb-mobile-menu,
html.is-capacitor-app .mobile-nav { display: none !important; }
