/* Mobile Bottom Sticky Navigation */
.tazajmart-bottom-nav {
    display: none;
}
@media (max-width: 991px) {
    /* push page content up so the fixed bar never covers it */
    body {
        padding-bottom: 60px;
    }
    .tazajmart-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: #fff;
        border-top: 1px solid #f1f5f9;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .tazajmart-bottom-nav .bn-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px 6px;
        text-decoration: none;
        color: #64748b;
        font-size: 11px;
        position: relative;
        transition: color 0.2s;
    }
    .tazajmart-bottom-nav .bn-item i {
        font-size: 20px;
        line-height: 1;
    }
    .tazajmart-bottom-nav .bn-item.active {
        color: #0b3e27;
    }
    .tazajmart-bottom-nav .bn-item .bn-badge-wrap {
        position: absolute;
        top: 2px;
        right: 18%;
    }
    .tazajmart-bottom-nav .bn-item .bn-badge {
        background: #e11d48;
        color: #fff;
        font-size: 10px;
        line-height: 1;
        min-width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
    }
    #back-to-top {
        bottom: 70px !important;
    }
}

/* Cart bounce animation on add-to-cart */
@keyframes bnPop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.3); }
    65%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.tazajmart-bottom-nav .bn-cart.bn-pop i {
    animation: bnPop 0.45s ease;
}
.tazajmart-bottom-nav .bn-cart.bn-pop .bn-badge {
    animation: bnPop 0.45s ease;
}

/* Fix: some other script (not our own code) injects an extra ".bn-badge-wcan"
   wrapper into the Cart link, with a duplicate "Cart" label + counter inside it.
   This forces it back to a single, correctly-positioned badge. */
.tazajmart-bottom-nav .bn-cart .bn-badge-wcan {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.tazajmart-bottom-nav .bn-cart .bn-badge-wcan>span:not(.bn-badge) {
    display: none !important;
}

.tazajmart-bottom-nav .bn-cart .bn-badge-wcan .bn-badge {
    position: absolute !important;
    top: 2px !important;
    right: 18% !important;
}