/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 14px;
    left: 0;
    z-index: 9999;
    padding: 0 14px;
    direction: rtl;
    font-family: var(--header-font, 'IRansansX', sans-serif);
    pointer-events: none;
}

.mobile-bottom-nav__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    max-width: 560px;
    min-height: 70px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 36px;
    background: #fa78b2;
    box-shadow: 0 8px 24px rgba(219, 52, 125, 0.28);
    pointer-events: auto;
}

.mobile-bottom-nav__item {
    display: flex;
    flex: 1 1 25%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 9px 4px 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
}

.mobile-bottom-nav__item:active {
    transform: scale(0.95);
}

.mobile-bottom-nav__item > i,
.mobile-bottom-nav__cart-icon > i {
    font-size: 23px;
    line-height: 1;
}

.mobile-bottom-nav__item > span:last-child {
    overflow: hidden;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mobile-bottom-nav__cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-bottom-nav__cart-icon b {
    position: absolute;
    top: -9px;
    right: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 1px solid #ffffff;
    border-radius: 50px;
    background-color: var(--header-primary, #ff2d55);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

/* فضای پایین محتوا تا منوبار روی عناصر صفحه نیفتد */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 95px;
    }
}

@media (max-width: 380px) {
    .mobile-bottom-nav {
        bottom: 10px;
        padding: 0 8px;
    }

    .mobile-bottom-nav__inner {
        min-height: 66px;
    }

    .mobile-bottom-nav__item {
        gap: 4px;
        padding: 8px 2px;
        font-size: 11px;
    }

    .mobile-bottom-nav__item > i,
    .mobile-bottom-nav__cart-icon > i {
        font-size: 21px;
    }
}
