/* =======================================================================
   ZOL — Bottom navigation bar (native-style mobile tab bar)
   Shown only on the member home view.
   ======================================================================= */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: var(--color-surface, #ffffff);
    border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) 4px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}

.bottom-nav[hidden] { display: none !important; }

.bottom-nav-btn {
    flex: 1 1 0;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    background: transparent;
    border: none;
    color: var(--color-text-muted, #6b7280);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-btn:hover,
.bottom-nav-btn:focus-visible {
    color: var(--shop-primary, var(--color-primary, #2563eb));
    background: rgba(0, 0, 0, 0.04);
    outline: none;
}

.bottom-nav-btn:active {
    transform: scale(0.96);
}

.bottom-nav-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav-btn-label {
    font-size: 11px;
    letter-spacing: 0.01em;
}

/* =======================================================================
   Accent variant — used for the Wholesale button to give it quiet prominence
   without being intrusive. Filled background, never animated.
   ======================================================================= */
.bottom-nav-btn.is-accent {
    background: var(--accent, #D7823D);
    color: #ffffff;
    margin: 4px 2px;
    border-radius: 10px;
}
.bottom-nav-btn.is-accent:hover,
.bottom-nav-btn.is-accent:focus-visible {
    background: var(--accent, #D7823D);
    color: #ffffff;
    filter: brightness(1.06);
}
.bottom-nav-btn.is-accent svg {
    stroke: #ffffff;
}

/* When the bottom nav is visible on the member page, push content up
   so nothing important hides behind it. */
.member-page.has-bottom-nav .member-body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* Same treatment for the admin home view */
.shop-home.has-bottom-nav .home-content {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

/* =======================================================================
   Push permission banner — shown above bottom nav when permission needed
   ======================================================================= */
.push-permission-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    background: var(--color-surface, #ffffff);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: pushBannerSlideUp 0.25s ease-out;
}

@keyframes pushBannerSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.push-permission-banner[hidden] { display: none !important; }

.push-permission-banner-text {
    flex: 1;
    min-width: 0;
}

.push-permission-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #111827);
    margin: 0 0 2px 0;
}

.push-permission-banner-sub {
    font-size: 12px;
    color: var(--color-text-muted, #6b7280);
    margin: 0;
    line-height: 1.3;
}

.push-permission-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.push-permission-banner-actions .btn { white-space: nowrap; }

.bottom-nav-btn[hidden] { display: none !important; }
