﻿/* ============================================================================
   Thanh dieu huong CO DINH O DAY man hinh, CHI HIEN TREN DI DONG (Trang chu / Danh muc / Gio hang / Tai khoan).
   ============================================================================ */
.hp-bottom-nav {
    display: none; /* mac dinh AN tren desktop */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040; /* duoi modal Bootstrap (1050+) nhung tren noi dung trang */
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    /* Ho tro man hinh co "tai tho" (notch) o day nhu iPhone - tranh bi che */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.hp-bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 6px;
    color: #6b7280; /* xam trung tinh - trang thai binh thuong */
    text-decoration: none;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
}

    .hp-bottom-nav-item i {
        font-size: 18px;
        margin-bottom: 1px;
    }

    .hp-bottom-nav-item.active,
    .hp-bottom-nav-item:active {
        color: #2F5233; /* mau thuong hieu - trang thai dang chon */
    }

/* Cham do bao co thong bao chua doc, dat o goc icon "Tai khoan" (hoac "Thong bao") */
.hp-bottom-nav-item {
    position: relative;
}

.hp-bottom-nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 16px);
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 9px;
    line-height: 15px;
    text-align: center;
    display: none; /* JS bat hien khi co so > 0 */
}

/* Hien thanh nav + chua khoang trong o cuoi trang de noi dung khong bi che */
@media (max-width: 991.98px) {
    .hp-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
    }
}
