/* =============================================
   MOBILE BOTTOM NAVIGATION BAR
   Only visible on small screens (< 992px)
   ============================================= */

.mobile-bottom-nav {
    display: none; /* hidden on desktop */
}

@media (max-width: 991px) {

    /* Push page content up so it isn't hidden behind the bar */
    body {
        padding-bottom: 70px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #fff;              /* white bar */
        border-top: 3px solid #fcee1f; /* yellow top border */
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
        height: 62px;
        align-items: stretch;
    }

    /* Each tab item */
    .mobile-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #999;                   /* inactive: muted grey on white */
        font-size: 10px;
        font-weight: 500;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        letter-spacing: 0.2px;
        position: relative;
        transition: color 0.2s ease, background 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item.active {
        color: #000;                   /* active: black on white */
        text-decoration: none;
    }

    /* Icon wrapper */
    .mobile-bottom-nav__icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        line-height: 1;
        position: relative;
    }

    /* Cart badge */
    .mobile-bottom-nav__badge {
        position: absolute;
        top: -5px;
        right: -7px;
        background: #fcee1f;           /* yellow badge */
        color: #000;                   /* black text on yellow */
        font-size: 9px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        line-height: 1;
    }

    /* ── Centre "featured" button ─────────────────── */
    .mobile-bottom-nav__item--featured {
        color: #000;                   /* black icon on yellow circle */
        margin-top: -18px;             /* lifts above the bar */
    }

    .mobile-bottom-nav__item--featured .mobile-bottom-nav__icon {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #fcee1f;           /* yellow circle */
        box-shadow: 0 4px 14px rgba(252, 238, 31, 0.5);
        font-size: 22px;
        border: 3px solid #000;        /* black border */
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-bottom-nav__item--featured:hover,
    .mobile-bottom-nav__item--featured.active {
        color: #000;
    }

    .mobile-bottom-nav__item--featured:active .mobile-bottom-nav__icon {
        transform: scale(0.93);
        box-shadow: 0 2px 8px rgba(252, 238, 31, 0.3);
    }

    .mobile-bottom-nav__label {
        font-size: 10px;
        line-height: 1;
    }

    .mobile-bottom-nav__item--featured .mobile-bottom-nav__label {
        color: #fcee1f;                /* yellow label under featured button */
        font-weight: 600;
    }
}