/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 8px 0;
    border-top: 1px solid #e5e5e5;
}

/* Show only on mobile */
@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add padding to body to prevent content from being hidden behind nav */
    body {
        padding-bottom: 70px;
    }
}

.mobile-bottom-nav__container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
    padding: 5px;
    position: relative;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item.active {
    color: #e21e26;
}

.mobile-bottom-nav__icon {
    font-size: 22px;
    margin-bottom: 4px;
    position: relative;
}

.mobile-bottom-nav__label {
    font-size: 11px;
    font-weight: 400;
    text-transform: capitalize;
    white-space: nowrap;        /* ← prevents wrapping */
    overflow: hidden;           /* ← hides overflow if too long */
    text-overflow: ellipsis;    /* ← adds ... if truncated */
    max-width: 100%;
}

/* Badge for cart counter */
.mobile-bottom-nav__badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #e21e26;
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    padding: 2px;
}

/* User status indicators */
.mobile-bottom-nav__item.user-logged-in .mobile-bottom-nav__icon {
    color: #28a745;
}

.mobile-bottom-nav__item.user-logged-out .mobile-bottom-nav__icon {
    color: #dc3545;
}

/* RTL Support */
html[dir="rtl"] .mobile-bottom-nav__badge {
    right: auto;
    left: -8px;
}

/* Animation on tap */
.mobile-bottom-nav__item:active {
    transform: scale(0.95);
}