/**
 * Bottom Navigation Bar — Mobile Only
 * Persistent 4-tab nav: Home, Shop, Cart, Account
 */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height, 60px);
    background: var(--white, #fff);
    border-top: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    z-index: 1030;
    justify-content: space-around;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Only show on mobile */
@media (max-width: 991px) {
    .bottom-nav {
        display: flex;
    }

    /* Add padding so content isn't hidden behind bottom nav */
    body {
        padding-bottom: calc(var(--bottom-nav-height, 60px) + env(safe-area-inset-bottom, 0px));
    }
}

/* ── Nav Item ── */
.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 2px;
    text-decoration: none;
    color: var(--gray-400, #9ca3af);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 0;
}

.bottom-nav__item i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.bottom-nav__item:hover,
.bottom-nav__item:focus {
    color: var(--gray-600, #4b5563);
    text-decoration: none;
}

/* Active State */
.bottom-nav__item--active {
    color: #00ADB5;
}

.bottom-nav__item--active i {
    transform: scale(1.1);
}

.bottom-nav__item--active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #00ADB5;
    border-radius: 0 0 2px 2px;
}

/* ── Cart Badge ── */
.bottom-nav__badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(14px);
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {

    .bottom-nav__item i,
    .bottom-nav__item {
        transition: none;
    }
}