/* ==========================================================================
   Header · nav — BẢN ĐIỆN THOẠI

   Menu ba gach + thanh dieu huong duoi day + nut tron - CHI dien thoai.

   Số đo dùng thang --cq-1..6, màu dùng token (Theme.css).
   Bản máy tính và bản điện thoại TÁCH HẲN — không bản nào đè bản nào.
   Dòng "← file cũ" cho biết luật đó gom về từ đâu.
   ========================================================================== */


/* ← Content/Styles/mobile-v2.css */
.cq-bottom-nav {


    display: flex;

    position: fixed;

    right: 0;

    bottom: 0;

    left: 0;

    z-index: 999;

    background: var(--cq-surface);
    border-top: 1px solid var(--cq-hairline);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cq-bottom-nav__item {


    display: flex;

    flex: 1 1 0;

    align-items: center;

    justify-content: center;

    min-width: 0;

    min-height: var(--cq-navbar-h);

    color: var(--cq-text-3);
    text-decoration: none;
}

.cq-bottom-nav__item i {


    display: block;

    font-size: 21px;

    line-height: 1;
}

.cq-bottom-nav__item.is-current {


    color: var(--cq-accent);
}

.cq-bottom-nav__item > span {


    position: absolute;

    width: 1px;

    height: 1px;

    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;

    clip: rect(0 0 0 0);

    white-space: nowrap;
}

.cq-fab {


    display: block;

    position: fixed;

    right: var(--cq-4);

    bottom: calc(var(--cq-navbar-h) + var(--cq-4));

    z-index: 1000;
}

.cq-fab__backdrop {


    display: none;

    position: fixed;

    top: 0;

    right: 0;

    bottom: 0;

    left: 0;

    z-index: -1;

    background: rgba(15, 25, 35, .20);
}

.cq-fab.is-open .cq-fab__backdrop {


    display: block;
}

.cq-fab__btn {


    display: flex;

    align-items: center;

    justify-content: center;

    width: 52px;

    height: 52px;

    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cq-accent);
    box-shadow: 0 6px 18px rgba(20, 33, 46, .24);

    color: var(--cq-surface);
    font-size: 21px;

    line-height: 1;

    cursor: pointer;

    transition: background-color .2s ease;
}

.cq-fab__btn i {


    line-height: 1;

    transition: transform .25s ease;
}

.cq-fab.is-open .cq-fab__btn {


    background: var(--cq-accent-ink);
}

.cq-fab.is-open .cq-fab__btn i {


    transform: rotate(45deg);
}

.cq-fab__menu {


    display: none;

    position: absolute;

    right: 0;

    bottom: 64px;

    flex-direction: column;

    align-items: flex-end;

    gap: var(--cq-2);
}

.cq-fab.is-open .cq-fab__menu {


    display: flex;
}

.cq-fab__item {


    display: flex;

    align-items: center;

    gap: var(--cq-2);
    padding: 10px var(--cq-4);
    border: 1px solid var(--cq-hairline);
    border-radius: var(--cq-r-pill);
    background: var(--cq-surface);
    box-shadow: 0 4px 14px rgba(20, 33, 46, .14);

    color: var(--cq-text);
    font-family: 'Montserrat', sans-serif;

    font-size: 13px;

    font-weight: 500;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;
}

.cq-fab__item i {


    width: 16px;

    color: var(--cq-accent);
    font-size: 14px;

    text-align: center;
}

.cq-mnav {


    display: block;

    position: fixed;

    top: 0;

    right: 0;

    bottom: 0;

    left: 0;

    z-index: 1200;

    visibility: hidden;

    pointer-events: none;

    overflow: hidden;   /* cat panel truot khi dong -> khong lam trang rong hon man hinh */
}

.cq-mnav.is-open {


    visibility: visible;

    pointer-events: auto;
}

.cq-mnav__backdrop {


    position: absolute;

    top: 0;

    right: 0;

    bottom: 0;

    left: 0;

    background: rgba(15, 25, 35, .35);
    opacity: 0;

    transition: opacity .22s ease;
}

.cq-mnav.is-open .cq-mnav__backdrop {


    opacity: 1;
}

.cq-mnav__panel {


    position: absolute;

    top: 0;

    right: 0;

    bottom: 0;

    width: 84%;

    max-width: 320px;

    padding: 0 var(--cq-4) var(--cq-5);
    background: var(--cq-surface);
    box-shadow: -6px 0 24px rgba(20, 33, 46, .16);

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;

    transform: translateX(100%);

    transition: transform .24s ease;
}

.cq-mnav.is-open .cq-mnav__panel {


    transform: translateX(0);
}

.cq-mnav__head {


    display: flex;

    align-items: center;

    justify-content: space-between;

    position: sticky;

    top: 0;

    z-index: 2;

    margin: 0 calc(-1 * var(--cq-4)) var(--cq-1);
    padding: var(--cq-4);
    border-bottom: 1px solid var(--cq-hairline);
    background: var(--cq-surface);
    color: var(--cq-text);
    font-family: 'Montserrat', sans-serif;

    font-size: 14px;

    font-weight: 600;

    text-transform: none;
}

.cq-mnav__close {


    color: var(--cq-text-2);
    font-size: 17px;

    line-height: 1;

    cursor: pointer;
}

.cq-mnav__link {


    display: flex;

    align-items: center;

    gap: var(--cq-3);
    padding: var(--cq-3) 2px;
    border-bottom: 1px solid var(--cq-hairline);
    color: var(--cq-text);
    font-family: 'Montserrat', sans-serif;

    font-size: 14px;

    font-weight: 500;

    text-decoration: none;

    cursor: pointer;
}

.cq-mnav__link i {


    width: 18px;

    color: var(--cq-accent);
    font-size: 14px;

    text-align: center;
}

.cq-mnav__title {


    margin: var(--cq-5) 0 var(--cq-2);
    color: var(--cq-text);
    font-family: 'Montserrat', sans-serif;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: .03em;

    text-transform: uppercase;
}

.cq-mnav__info {


    color: var(--cq-text-2);
    font-size: 13px;

    line-height: 1.6;

    word-break: break-word;
}

.cq-mnav__info img {


    max-width: 100%;

    height: auto;
}

.cq-mnav__group {


    margin-top: var(--cq-4);
}

.cq-mnav__grouptitle {


    margin-bottom: var(--cq-1);
    color: var(--cq-text);
    font-family: 'Montserrat', sans-serif;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: .03em;

    text-transform: uppercase;
}

.cq-mnav__group ul {


    margin: 0;
    padding: 0;
    list-style: none;
}

.cq-mnav__group ul li a {


    display: block;

    padding: var(--cq-2) 0;
    color: var(--cq-text-2);
    font-size: 13px;

    text-decoration: none;
}

