﻿/* =========================================================
   HONGHA UI 2026
   HEADER + TOPBAR + NAVIGATION
   CLEAN RESPONSIVE VERSION

   Breakpoints:
   >= 1200px : Desktop
   768-1199 : Tablet
   480-767  : Mobile
   <= 479   : Mobile small
   <= 380   : Mobile very small
========================================================= */


/* =========================================================
   01. GLOBAL HEADER VARIABLES
========================================================= */
:root {
    --hh-primary: #d70018;
    --hh-primary-dark: #c40016;
    --hh-border: #ececec;
    --hh-border-light: #f2f2f2;
    --hh-text: #333;
    --hh-text-light: #666;
    --hh-container: 1400px;
    --hh-header-height: 68px;
    --hh-nav-height: 38px;
    --hh-radius: 8px;
}

/* =========================================================
   02. OLD HEADER
========================================================= */

.hh-old-header {
    display: none !important;
}


/* =========================================================
   04. TOPBAR
========================================================= */

.hh-topbar {
    width: 100%;
    height: 38px;

    background: #fff;

    border-bottom: 1px solid var(--hh-border);

    color: #555;

    font-size: 13px;

    box-sizing: border-box;

    overflow: hidden;
}

.hh-topbar .hh-ui-container {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LEFT */

.hh-topbar-left {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 24px;
}


/* RIGHT */

.hh-topbar-right {
    display: flex;
    align-items: center;

    gap: 24px;
}


/* ITEM */

.hh-topbar-item,
.hh-topbar-link {
    display: flex;
    align-items: center;

    color: #555;

    text-decoration: none;

    white-space: nowrap;

    transition: color .2s ease;
}

.hh-topbar-item:hover,
.hh-topbar-link:hover {
    color: var(--hh-primary);
}


/* ICON */

.hh-topbar .hh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: 6px;

    flex: 0 0 auto;
}


/* PHONE */

.hh-topbar-phone {
    margin-left: 4px;

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   TOPBAR
   Chỉ giữ:

   Tra cứu dịch vụ
   Hotline mua hàng
   Chăm sóc khách hàng
   Xây dựng cấu hình máy bộ

   HTML hiện tại:
   nth-child(1) = Chính sách bảo hành
   nth-child(2) = Tra cứu dịch vụ
   nth-child(3) = Hotline
   nth-child(4) = CSKH
   nth-child(5) = Cấu hình máy bộ
========================================================= */

.hh-topbar-left > .hh-topbar-item:nth-child(1) {
    display: none;
}

.hh-topbar-left > .hh-topbar-item:nth-child(2),
.hh-topbar-left > .hh-topbar-item:nth-child(3),
.hh-topbar-left > .hh-topbar-item:nth-child(4),
.hh-topbar-left > .hh-topbar-item:nth-child(5) {
    display: flex;
}


/* =========================================================
   05. MAIN HEADER
========================================================= */

/*.hh-mobile-sticky-header {
    position: relative;

    width: 100%;

    z-index: 1000;

    background: var(--hh-primary);
}


.hh-header {
    position: relative;

    width: 100%;

    background: var(--hh-primary);

    border-bottom: 1px solid rgba(255,255,255,.15);

    box-shadow: 0 2px 12px rgba(0,0,0,.04);

    z-index: 100;
}*/
.hh-mobile-sticky-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: var(--hh-primary);
}

/* Header chính */
.hh-mobile-sticky-header > header {
    position: relative;
    z-index: 10000;
        width: 100%;

    background: var(--hh-primary);

    border-bottom: 1px solid rgba(255,255,255,.15);

    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

/* =========================================================
   HEADER INNER
========================================================= */

.hh-header-inner {
    width: 100%;
    /*height: var(--hh-header-height);*/
    height:68px;

    display: grid;

    grid-template-columns:
        160px
        190px
        140px
        minmax(280px, 1fr)
        300px;

    align-items: center;

    column-gap: 14px;

    box-sizing: border-box;
}


/* =========================================================
   06. LOGO
========================================================= */

.hh-header__logo {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hh-header__logo a {
    display: flex;
    align-items: center;

    max-width: 100%;
}

.hh-header__logo img {
    display: block;

    width: auto;
    height: 52px;

    max-width: 100%;

    object-fit: contain;
}


/* =========================================================
   07. CATEGORY DESKTOP
========================================================= */

.hh-header__category {
    position: relative;

    min-width: 0;
    height: 100%;

    display: flex;
    align-items: center;
}


/* TITLE */

.hh-header-danhmucsptilte {
    position: relative;

    width: 100%;
    min-height: 44px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    box-sizing: border-box;

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;
}

.hh-category-toggle__icon {
    margin-right: 5px;

    flex: 0 0 auto;
}


/* =========================================================
   CATEGORY DROPDOWN
========================================================= */

.hh-category-dropdown {
    position: absolute;

    left: 0;
    top: 100%;

    width: 100%;
    min-width: 320px;

    z-index: 10001;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(5px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}


/* OPEN */

.hh-header__category:hover .hh-category-dropdown,
.hh-header__category:focus-within .hh-category-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


/* invisible bridge */

.hh-category-dropdown::before {
    content: "";

    position: absolute;

    top: -8px;
    left: 0;
    right: 0;

    height: 8px;

    background: transparent;
}


/* CATEGORY LIST */

.hh-category-list {
    position: relative;

    margin: 0;
    padding: 6px 0;

    list-style: none;

    background: #fff;

    border: 1px solid #eee;

    border-radius: 0 0 10px 10px;

    box-shadow: 0 8px 25px rgba(0,0,0,.15);

    overflow: hidden;
}


/* CATEGORY ITEM */

.hh-category-list > li {
    position: relative;
}

.hh-category-list > li > a {
    display: flex;
    align-items: center;

    min-height: 42px;

    padding: 8px 14px;

    box-sizing: border-box;

    color: #333;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease;
}

.hh-category-list > li:hover > a {
    background: #fff2f2;
    color: var(--hh-primary);
}


/* =========================================================
   MEGA PANEL
========================================================= */

.hh-mega-panel {
    position: absolute;

    top: 0;
    left: 100%;

    width: 700px;
    min-height: 100%;

    background: #fff;

    border: 1px solid #eee;
    border-left: 0;

    border-radius: 0 10px 10px 0;

    box-shadow: 8px 8px 25px rgba(0,0,0,.12);

    z-index: 10002;

    pointer-events: auto;
}


/* =========================================================
   08. PROVINCE
========================================================= */

.hh-header__province {
    min-width: 0;

    display: flex;
    align-items: center;
}

.hh-location-btn {
    width: 100%;
    height: 48px;

    padding: 0 8px;

    box-sizing: border-box;

    border: 1px solid #f2b6b6;
    border-radius: var(--hh-radius);

    background: #fafafa;

    color: #333;

    font-size: 13px;
    line-height: 16px;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease;
}
    .hh-location-btn img {
            width: 18px;
    height: 18px;
    cursor: pointer;
    padding-top: 4px;
    padding-right: 6px;
    float: right;
    }
.hh-location-btn:hover {
    background: #fff;

    border-color: #fc5252;
}


/* =========================================================
   09. SEARCH
========================================================= */

.hh-header__search {
    width: 100%;
    min-width: 0;
}

.hh-search {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;

    background: #fff;

    border: 1px solid #f2b6b6;

    border-radius: var(--hh-radius);

    overflow: hidden;

    box-sizing: border-box;
}

.hh-search input {
    flex: 1 1 auto;

    min-width: 0;
    width: 100%;
    height: 100%;

    padding: 0 16px;

    border: 0;
    outline: 0;

    background: #fff;

    color: #333;

    font-size: 14px;
}

.hh-search input::placeholder {
    color: #999;
}

.hh-search button {
    flex: 0 0 56px;

    width: 56px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    background: var(--hh-primary);

    cursor: pointer;
}

.hh-search button:hover {
    background: var(--hh-primary-dark);
}

.hh-search button img {
    width: 22px;
    height: 22px;

    object-fit: contain;
}


/* =========================================================
   10. HEADER ACTIONS
========================================================= */

.hh-header__actions {
    min-width: 0;

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;
}


/* =========================================================
   ACTION BASE
========================================================= */
.hh-header__actions.hh-flex {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 14px;
}
.hh-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;

    text-align: center;
    white-space: nowrap;
}

.hh-action:hover {
    color: #fff;

    text-decoration: none;
}


/* ICON */

.hh-action__icon {
    width: 24px;
    height: 24px;

    margin: 0;
    object-fit: contain;
}


/* TEXT */

.hh-action__text {
    display: block;

    color: #fff;
    font-size: 12px;
    line-height: 15px;

    text-align: center;
    white-space: nowrap;
}


/* BUSINESS */

.hh-action--business {
    gap: 8px;

    min-width: 105px;
}


/* =========================================================
   11. ACCOUNT
========================================================= */

.hh-account {
    position: relative;

    min-width: 0;

    display: flex;
    align-items: center;
}

.hh-account__trigger {
    display: flex;
    align-items: center;

    gap: 6px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #fff;

    cursor: pointer;

    font-family: inherit;
}

.hh-account__text {
    display: block;

    max-width: 130px;

    color: #fff;

    font-size: 13px;
    line-height: 17px;

    text-align: left;

    white-space: nowrap;

    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-account__text strong {
    font-weight: 600;
}

.hh-account__arrow {
    font-size: 13px;

    transition: transform .2s ease;
}

.hh-account.is-open .hh-account__arrow {
    transform: rotate(180deg);
}


/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.hh-account-dropdown {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 280px;

    background: #fff;

    border: 1px solid #eee;

    border-radius: 10px;

    box-shadow: 0 8px 30px rgba(0,0,0,.18);

    overflow: hidden;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-6px);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}

.hh-account.is-open .hh-account-dropdown {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/* ACCOUNT HEADER */

.hh-account-dropdown__header {
    padding: 16px 18px;

    border-bottom: 1px solid #eee;
}

.hh-account-dropdown__hello {
    margin-bottom: 3px;

    color: #888;

    font-size: 12px;
}

.hh-account-dropdown__name {
    margin-bottom: 7px;

    color: #222;

    font-size: 16px;
    font-weight: 600;
}

.hh-account-dropdown__point {
    color: var(--hh-primary);

    font-size: 13px;
}


/* MENU */

.hh-account-dropdown__menu {
    padding: 6px 0;
}

.hh-account-dropdown__item {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 18px;

    color: #333;

    font-size: 14px;

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease;
}

.hh-account-dropdown__item:hover {
    background: #f5f5f5;

    color: var(--hh-primary);

    text-decoration: none;
}

.hh-account-dropdown__item-icon {
    width: 22px;

    flex: 0 0 22px;

    text-align: center;
}


/* LOGOUT */

.hh-account-dropdown__logout {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px 18px;

    border: 0;
    border-top: 1px solid #eee;

    background: transparent;

    color: #555;

    font-size: 14px;

    text-align: left;

    cursor: pointer;
}

.hh-account-dropdown__logout:hover {
    background: #fff3f3;

    color: var(--hh-primary);
}


/* =========================================================
   12. CART
========================================================= */

.hh-cart {
    position: relative;

    min-width: 70px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.hh-cart-count {
    position: absolute;
    top: 3px;
    right: 6px;
    left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 10px;
    background: #fff;
    color: var(--hh-primary);
    font-size: 10px;
    font-weight: 800;
    line-height: 18px;
}


/* =========================================================
   13. MOBILE QUICK TABS
========================================================= */

.hh-mobile-quick-tabs-wrapper {
    display: none;

    width: 100%;

    margin: 0;
    padding: 0 5px;

    box-sizing: border-box;

    overflow: hidden;
}

.hh-mobile-quick-tabs {
    display: flex;

    width: 100%;

    margin: 0;
    padding: 4px 0;

    gap: 5px;

    box-sizing: border-box;

    overflow: hidden;
}

.hh-mobile-quick-tab {
    flex: 1 1 0;

    min-width: 0;

    height: 60px;

    box-sizing: border-box;
}

.hh-mobile-quick-tab__inner {
    width: 100%;
    height: 60px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 4px 3px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 8px;

    overflow: hidden;
}

.hh-mobile-quick-tab__image {
    width: 100%;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.hh-mobile-quick-tab__image img {
    display: block;

    width: auto;
    height: 25px;

    max-width: 90%;

    object-fit: contain;
}

.hh-mobile-quick-tab__title {
    width: 100%;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 2px;

    box-sizing: border-box;

    overflow: hidden;

    text-align: center;
}

.hh-mobile-quick-tab__title a {
    display: -webkit-box;

    width: 100%;

    color: #333;

    font-size: 11px;
    line-height: 13px;
    font-weight: 500;

    text-align: center;
    text-decoration: none;

    overflow: hidden;
    text-overflow: ellipsis;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   14. MOBILE CATEGORY
========================================================= */

.hh-mobile-category {
    display: none;

    width: 100%;

    padding: 0 6px;
    margin: 6px 0;

    box-sizing: border-box;
}

.hh-mobile-category-toggle {
    width: 100%;
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px;

    border: 1px solid #e8e8e8;

    border-radius: 10px;

    background: #fff;

    color: #222;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-sizing: border-box;
}

.hh-mobile-category-toggle__left {
    display: flex;
    align-items: center;

    gap: 8px;
}

.hh-mobile-category-toggle__icon {
    color: var(--hh-primary);

    font-size: 15px;
}

.hh-mobile-category-toggle__arrow {
    color: #777;

    transition: transform .25s ease;
}

.hh-mobile-category-toggle.is-open
.hh-mobile-category-toggle__arrow {
    transform: rotate(180deg);
}

.hh-mobile-category-menu {
    display: none;

    width: 100%;

    margin-top: 6px;

    background: #fff;

    border: 1px solid #e8e8e8;

    border-radius: 10px;

    box-shadow: 0 8px 24px rgba(0,0,0,.10);

    overflow: hidden;
}

.hh-mobile-category-menu.is-open {
    display: block;
}

.hh-mobile-category-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.hh-mobile-category-item {
    border-bottom: 1px solid #f0f0f0;
}

.hh-mobile-category-row {
    min-height: 45px;

    display: flex;
    align-items: center;
}

.hh-mobile-category-link {
    flex: 1 1 auto;

    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 7px 10px;

    color: #222;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.hh-mobile-category-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hh-mobile-category-icon img {
    width: 24px;
    height: 24px;

    object-fit: contain;
}

.hh-mobile-category-name {
    min-width: 0;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.hh-mobile-category-arrow {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border: 0;

    background: transparent;

    color: #888;

    cursor: pointer;

    transition:
        color .2s ease,
        transform .2s ease;
}

.hh-mobile-category-item.is-open
.hh-mobile-category-arrow {
    color: var(--hh-primary);

    transform: rotate(180deg);
}

.hh-mobile-category-children {
    display: none;

    padding: 6px 10px 10px 46px;

    background: #fafafa;

    border-top: 1px solid #f3f3f3;
}

.hh-mobile-category-item.is-open
.hh-mobile-category-children {
    display: block;
}

.hh-mobile-category-subgroup {
    margin-bottom: 8px;
}

.hh-mobile-category-subgroup:last-child {
    margin-bottom: 0;
}

.hh-mobile-category-subtitle a {
    display: block;

    padding: 5px 0;

    color: var(--hh-primary);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.hh-mobile-category-sublinks {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.hh-mobile-category-child-link {
    display: block;

    padding: 3px 0;

    color: #555;

    font-size: 11px;
    line-height: 15px;

    text-decoration: none;
}

.hh-mobile-category-child-link:hover {
    color: var(--hh-primary);
}


/* =========================================================
   15. NAVIGATION
========================================================= */

.hh-nav {
    width: 100%;
    height: auto;
    background: var(--hh-white);
    border-top: none;
    border-bottom: 1px solid var(--hh-border);
    box-shadow: var(--hh-shadow-xs);
    box-sizing: border-box;
    overflow: visible;
}

.hh-nav .hh-ui-container {
    height: auto;
}

/*
.hh-ui-container {
    width: 100%;
    max-width: var(--hh-container);

    margin-left: auto;
    margin-right: auto;

    padding-left: 6px;
    padding-right: 6px;

    box-sizing: border-box;
}*/
.hh-ui-container, .hh-container {
    max-width: 1230px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}


.hh-nav-inner {
    width: 100%;
    height: 100%;
    font-size:16px;
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}
.hh-nav-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.hh-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    box-sizing: border-box;
}
.hh-nav-menu {
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 30px;
    white-space: nowrap;
}
.hh-nav-dichvu {
    gap: 0;font-size:16px;
}
/*sđ*/
.hh-nav-dichvu li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.hh-nav-dichvu li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hh-nav-dichvu li a > i {
    flex: 0 0 auto;
    color: var(--hh-primary);
    font-size: 16px;
    line-height: 1;
}
.hh-nav-dichvu li + li::before {
    content: "";
    flex: 0 0 1px;
    width: 1px;
    height: 16px;
    margin: 0 20px;
    background: var(--hh-border-strong);
}
.hh-nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--hh-primary);
    transform: scaleX(0);
    transition: transform var(--hh-transition);
}
.hh-nav-dichvu .hh-nav-dichvu-hot {
    color: var(--hh-primary);
    font-weight: 600;
}
/*
.hh-nav-menu li {
    flex: 0 0 auto;

    margin: 0;
    padding: 0;
}*/
.hh-nav-menu li a {
    position: relative;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    color: var(--hh-text-body);
    font-size: var(--hh-fs-base);
    font-weight: 400;
    line-height: 21px;
    transition: color var(--hh-transition);
}
.hh-nav-dichvu li a > i {
    flex: 0 0 auto;
    color: var(--hh-primary);
    font-size: 14px;
    line-height: 1;
}
.hh-nav-menu li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}
/*.hh-nav-menu li a {
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 7px;

    color: #575757;

    font-size: 13px;
    font-weight: 500;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    border-radius: 8px;

    transition:
        background .2s ease,
        color .2s ease;
}*/

.hh-nav-menu li a:hover,
.hh-nav-menu li a.active {
    background: #fff2f2;

    color: var(--hh-primary);
}


/* =========================================================
   16. TABLET
   768px - 1199px
========================================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    /* ---------------- TOPBAR ---------------- */

    .hh-topbar {
        height: 36px;

        font-size: 11px;
    }

    .hh-topbar .hh-ui-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hh-topbar-left {
        width: 100%;

        justify-content: space-between;

        gap: 10px;
    }

    .hh-topbar-right {
        display: none;
    }

    .hh-topbar-item {
        flex: 0 0 auto;
    }


    /* ---------------- HEADER ---------------- */

    .hh-header-inner {

        grid-template-columns:130px 160px 110px minmax(220px, 1fr) 102px;

        height: 62px;

        column-gap: 7px;
    }


    /* LOGO */

    .hh-header__logo img {
        height: 44px;

        max-width: 125px;
    }


    /* CATEGORY */

    .hh-header-danhmucsptilte {
        min-height: 42px;

        padding: 0 8px;

        font-size: 12px;
    }


    /* PROVINCE */

    .hh-location-btn {
        height: 42px;

        padding: 0 6px;

        font-size: 11px;
        line-height: 14px;
    }


    /* SEARCH */

    .hh-search {
        height: 42px;
    }

    .hh-search input {
        padding: 0 11px;

        font-size: 12px;
    }

    .hh-search button {
        flex-basis: 46px;

        width: 46px;
        height: 42px;
    }


    /* ACTIONS */

    .hh-header__actions {
        gap: 5px;
    }

    .hh-action {
        gap: 4px;
    }

    .hh-action--business {
        min-width: 68px;
    }

    .hh-action__icon {
        width: 21px;
        height: 21px;
    }

    .hh-action__text,
    .hh-account__text {
        font-size: 10px;
        line-height: 14px;
    }

    .hh-account__text {
        max-width: 75px;
    }

    .hh-cart {
        min-width: 55px;
    }


    /* NAV */

    .hh-nav-inner {
        justify-content: flex-start;
    }

    .hh-nav-menu {
        justify-content: flex-start;

        gap: 3px;

        overflow: hidden;
    }

    .hh-nav-menu li a {
        padding: 0 5px;

        font-size: 11px;
    }
}
/* =========================================================
   HEADER ACTIONS
   768px trở xuống
   CHỈ ICON - KHÔNG TRÀN
========================================================= */

@media (max-width: 768px) {

    .hh-header__actions.hh-flex {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        width: 104px;
        min-width: 104px;
        max-width: 104px;

        gap: 6px;

        box-sizing: border-box;
        flex-shrink: 0;
    }

    /* -----------------------------------------
       ACTION ITEM
    ----------------------------------------- */

    .hh-header__actions.hh-flex {
        width: auto;
        min-width: 0;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 6px;

        justify-self: end;
    }

    .hh-header__actions .hh-action__text {
        display: none;
    }

    .hh-header__actions .hh-action {
        width: 30px;
        min-width: 30px;
        height: 32px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 0;
    }

    .hh-header__actions .hh-action__icon {
        width: 22px;
        height: 22px;

        margin: 0;
    }

    /* -----------------------------------------
       ACCOUNT
    ----------------------------------------- */

    .hh-header__actions .hh-account {
        width: 30px;
        min-width: 30px;
        max-width: 30px;

        height: 32px;

        flex: 0 0 30px;

        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
    }

    .hh-header__actions .hh-account__trigger {
        width: 30px;
        min-width: 30px;
        max-width: 30px;

        height: 32px;

        padding: 0;
        margin: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
    }

    .hh-header__actions .hh-account__text,
    .hh-header__actions .hh-account__arrow {
        display: none !important;
    }

    /* -----------------------------------------
       CART BADGE
    ----------------------------------------- */

    .hh-header__actions .hh-cart-count {        
        right: -3px;
        left: auto;

        width: 15px;
        min-width: 15px;
        height: 15px;

        padding: 0;

        font-size: 8px;
        line-height: 15px;

        box-sizing: border-box;
    }
}
/* =========================================================
   17. MOBILE
   <= 767px

   QUAN TRỌNG:
   ACTIONS CHỈ ICON
   SEARCH ĐƯỢC MỞ RỘNG TỐI ĐA
========================================================= */

@media (max-width: 767px) {

    /* =====================================================
       TOPBAR
    ===================================================== */

    .hh-topbar {
        height: 38px;

        font-size: 10px;
    }

    .hh-topbar .hh-ui-container {
        padding-left: 4px;
        padding-right: 4px;
    }
    .hh-topbar-left > .hh-topbar-item:nth-child(1) {
        display: none;
    }

    .hh-topbar-right {
        display: none;
    }

    .hh-topbar-left > .hh-topbar-item {
        min-width: 0;

        justify-content: center;

        text-align: center;

        overflow: hidden;
    }

    .hh-topbar-left > .hh-topbar-item:nth-child(2),
    .hh-topbar-left > .hh-topbar-item:nth-child(3),
    .hh-topbar-left > .hh-topbar-item:nth-child(4),
    .hh-topbar-left > .hh-topbar-item:nth-child(5) {
        display: flex;
    }

    .hh-topbar .hh-icon {
        display: none;
    }

    .hh-topbar-item {
        white-space: nowrap;

        text-overflow: ellipsis;
    }

    .hh-topbar-label {
        overflow: hidden;

        white-space: nowrap;

        text-overflow: ellipsis;
    }

    .hh-topbar-phone {
        margin-left: 2px;

        font-size: 10px;
    }


    /* =====================================================
       MAIN HEADER
    ===================================================== */

    .hh-mobile-sticky-header {
        position: sticky;

        top: 0;

        z-index: 9999;
    }

    .hh-header-inner {

        grid-template-columns:
            minmax(80px, 92px)
            minmax(0, 1fr);

        grid-template-areas:

            "logo actions"
            "search search"
            "province province";

        column-gap: 8px;

        row-gap: 8px;

        width: 100%;

        height: auto;

        padding: 7px 6px;

        box-sizing: border-box;
    }


    /* =====================================================
       LOGO
    ===================================================== */

    .hh-header__logo {
        grid-area: logo;

        width: 100%;
        min-width: 0;
    }

    .hh-header__logo img {
        width: auto;

        height: 34px;

        max-width: 92px;
    }


    /* =====================================================
       CATEGORY DESKTOP
       Hidden
    ===================================================== */

    .hh-header__category {
        display: none !important;
    }


    /* =====================================================
       PROVINCE
    ===================================================== */

    .hh-header__province {
        grid-area: province;

        width: 100%;
    }

    .hh-location-btn {
        width: 100%;

        height: 38px;

        padding: 0 7px;

        border-radius: 7px;

        font-size: 10px;
        line-height: 12px;
    }


    /* =====================================================
       ACTIONS

       CHỈ ICON
       Không text
       Search được nhường chiều rộng
    ===================================================== */

    .hh-header__actions {
        grid-area: actions;

        width: 100%;
        min-width: 0;

        height: 34px;

        display: flex;

        align-items: center;

        justify-content: flex-end;

        gap: 6px;
    }


    /* action */

    .hh-action {
        width: 28px;
        min-width: 28px;
        height: 32px;

        display: flex;

        align-items: center;
        justify-content: center;

        gap: 0;
    }


    /* ẨN TEXT */

    .hh-action__text {
        display: none !important;
    }


    /* ICON */

    .hh-action__icon {
        width: 20px;
        height: 20px;

        margin: 0;
    }


    /* ACCOUNT */

    .hh-account {
        width: 28px;
        height: 32px;

        flex: 0 0 28px;
    }

    .hh-account__trigger {
        width: 28px;
        height: 32px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;
    }

    .hh-account__text {
        display: none;
    }

    .hh-account__arrow {
        display: none;
    }


    /* ACCOUNT DROPDOWN */

    .hh-account-dropdown {
        position: fixed;

        top: 74px;

        right: 6px;

        width: min(280px, calc(100vw - 12px));

        max-width: calc(100vw - 12px);
    }


    /* CART */

    .hh-cart {
        width: 28px;
        min-width: 28px;

        height: 32px;
    }

    .hh-cart-count {
        top: -5px;
        right: -5px;
        left: auto;

        min-width: 16px;
        height: 16px;

        padding: 0 3px;

        font-size: 9px;

        line-height: 16px;
    }


    /* =====================================================
       SEARCH
       GẦN TOÀN BỘ CHIỀU NGANG
    ===================================================== */

    .hh-header__search {
        grid-area: search;

        width: 100%;
        min-width: 0;
    }

    .hh-search {
        width: 100%;

        height: 40px;
    }

    .hh-search input {
        min-width: 0;

        padding: 0 10px;

        font-size: 12px;
    }

    .hh-search button {
        flex: 0 0 42px;

        width: 42px;
        height: 40px;
    }

    .hh-search button img {
        width: 19px;
        height: 19px;
    }


    /* =====================================================
       MOBILE QUICK TABS
    ===================================================== */

    .hh-mobile-quick-tabs-wrapper {
        display: block !important;
    }


    /* =====================================================
       MOBILE CATEGORY
    ===================================================== */

    .hh-mobile-category {
        display: block;
    }


    /* =====================================================
       NAVIGATION
       1 DÒNG + CUỘN NGANG
    ===================================================== */

    .hh-nav {
        display: block;

        width: 100%;
        height: 38px;
    }

    .hh-nav .hh-ui-container {
        width: 100%;
        max-width: none;

        margin: 0;

        padding: 0;
    }

    .hh-nav-inner {
        width: 100%;
        height: 38px;

        display: block;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .hh-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .hh-nav-menu {
        width: max-content;
        min-width: 100%;

        height: 38px;

        display: flex;

        flex-wrap: nowrap;

        align-items: center;
        justify-content: flex-start;

        gap: 4px;

        padding: 0 5px;

        box-sizing: border-box;

        white-space: nowrap;
    }

    .hh-nav-menu li {
        flex: 0 0 auto;
    }

    .hh-nav-menu li a {
        width: max-content;
        min-width: max-content;

        height: 32px;

        padding: 0 7px;

        font-size: 11px;

        white-space: nowrap;
    }
}
/* =========================================================
   TOPBAR <= 650px
   Ẩn Xây dựng cấu hình máy bộ
========================================================= */

@media (max-width: 650px) {

    .hh-topbar-left > .hh-topbar-item:nth-child(5) {
        display: none !important;
    }

    .hh-topbar-left {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* =========================================================
   18. MOBILE SMALL
   <= 479px
========================================================= */

@media (max-width: 479px) {

    /* TOPBAR */

    .hh-topbar {
        height: 40px;
    }

    .hh-topbar-left {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1.1fr)
            minmax(0, 1.2fr)
            minmax(0, 1.25fr);
    }

    .hh-topbar-item {
        font-size: 9px;
    }

    .hh-topbar-phone {
        font-size: 9px;
    }


    /* HEADER */

    .hh-header-inner {
        grid-template-columns:
            minmax(72px, 86px)
            minmax(0, 1fr);

        column-gap: 6px;

        row-gap: 7px;

        padding: 6px 5px;
    }

    .hh-header__logo img {
        height: 32px;

        max-width: 86px;
    }


    /* ACTIONS */

    .hh-header__actions {
        gap: 9px;
    }

    .hh-action,
    .hh-account,
    .hh-cart,
    .hh-account__trigger {
        width: 27px;
        min-width: 27px;
    }

    .hh-action__icon {
        width: 19px;
        height: 19px;
    }


    /* SEARCH */

    .hh-search {
        height: 39px;
    }

    .hh-search input {
        padding: 0 9px;

        font-size: 11px;
    }

    .hh-search button {
        flex-basis: 41px;

        width: 41px;
        height: 39px;
    }


    /* QUICK TABS */

    .hh-mobile-quick-tabs-wrapper {
        padding-left: 5px;
        padding-right: 5px;
    }

    .hh-mobile-quick-tabs {
        gap: 5px;
    }

    .hh-mobile-quick-tab,
    .hh-mobile-quick-tab__inner {
        height: 60px;
    }

    .hh-mobile-quick-tab__image img {
        height: 24px;
    }

    .hh-mobile-quick-tab__title a {
        font-size: 10px;
        line-height: 12px;
    }


    /* MOBILE CATEGORY */

    .hh-mobile-category {
        padding-left: 5px;
        padding-right: 5px;

        margin: 5px 0;
    }

    .hh-mobile-category-toggle {
        min-height: 40px;

        font-size: 12px;
    }


    /* NAV */

    .hh-nav {
        height: 36px;
    }

    .hh-nav-inner {
        height: 36px;
    }

    .hh-nav-menu {
        height: 36px;

        gap: 3px;
    }

    .hh-nav-menu li a {
        height: 30px;

        padding: 0 6px;

        font-size: 10px;
    }
}
/* =========================================================
   MOBILE ACTIONS - CANH PHẢI
   <= 425px
========================================================= */

@media (max-width: 425px) {

    .hh-header__actions.hh-flex {
        grid-area: actions;

        justify-self: end;
        align-self: center;

        width: 88px;
        min-width: 88px;
        max-width: 88px;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 4px;

        box-sizing: border-box;
    }

}
/*====MOBILE BOTTOM====*/
/* =========================================================
   MOBILE BOTTOM NAVIGATION
   Chỉ hiển thị trên màn hình <= 425px
========================================================= */

.hh-mobile-bottom-nav {
    display: none;
}

@media (max-width: 425px) {

    .hh-mobile-bottom-nav {
        position: fixed;
        z-index: 99999;

        left: 0;
        right: 0;
        bottom: 0;

        display: grid;
        grid-template-columns: repeat(3, 1fr);

        width: 100%;
        height: 64px;

        background: #fff;

        border-top: 1px solid #e5e5e5;

        box-shadow: 0 -3px 15px rgba(0, 0, 0, .10);

        /* Hỗ trợ iPhone có tai thỏ / home indicator */
        padding-bottom: env(safe-area-inset-bottom);

        box-sizing: content-box;
    }

    /* =====================================================
       ITEM
    ===================================================== */

    .hh-mobile-bottom-nav__item {
        position: relative;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        min-width: 0;
        height: 64px;

        padding: 5px 4px;

        border: 0;
        outline: 0;

        background: transparent;

        color: #666;

        text-decoration: none;

        cursor: pointer;

        -webkit-tap-highlight-color: transparent;
    }

    /* =====================================================
       ICON
    ===================================================== */

    .hh-mobile-bottom-nav__icon {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 26px;
        height: 26px;

        margin-bottom: 2px;

        font-size: 18px;

        color: #555;

        transition: .2s ease;
    }

    /* =====================================================
       TEXT
    ===================================================== */

    .hh-mobile-bottom-nav__text {
        display: block;

        max-width: 100%;

        overflow: hidden;

        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;

        text-align: center;

        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* =====================================================
       ACTIVE
    ===================================================== */

    .hh-mobile-bottom-nav__item.active {
        color: #d70018;
    }

    .hh-mobile-bottom-nav__item.active
    .hh-mobile-bottom-nav__icon {
        color: #d70018;
    }

    .hh-mobile-bottom-nav__item.active
    .hh-mobile-bottom-nav__text {
        font-weight: 600;
    }

    /* Thanh nhỏ phía trên item active */

    .hh-mobile-bottom-nav__item.active::before {
        content: "";

        position: absolute;

        top: 0;
        left: 25%;
        right: 25%;

        height: 2px;

        border-radius: 0 0 3px 3px;

        background: #d70018;
    }

    /* =====================================================
       ACTIVE ICON SCALE
    ===================================================== */

    .hh-mobile-bottom-nav__item.active
    .hh-mobile-bottom-nav__icon i {
        transform: scale(1.08);
    }

    /* =====================================================
       CHỐNG NỘI DUNG BỊ CHE BỞI BOTTOM NAV
    ===================================================== */

    body {
        padding-bottom: calc(
            64px + env(safe-area-inset-bottom)
        );
    }
}


/* =========================================================
   MÀN HÌNH RẤT NHỎ
========================================================= */

@media (max-width: 360px) {

    .hh-mobile-bottom-nav {
        height: 60px;
    }

    .hh-mobile-bottom-nav__item {
        height: 60px;
    }

    .hh-mobile-bottom-nav__icon {
        height: 24px;
        font-size: 17px;
    }

    .hh-mobile-bottom-nav__text {
        font-size: 10px;
    }

    body {
        padding-bottom: calc(
            60px + env(safe-area-inset-bottom)
        );
    }
}
/*====END MOBILE BOTTOM===*/
/* =========================================================
   19. VERY SMALL
   <= 380px
========================================================= */

@media (max-width: 380px) {

    /* TOPBAR */

    .hh-topbar {
        height: 38px;
    }

    .hh-topbar-left {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1.05fr)
            minmax(0, 1.15fr)
            minmax(0, 1.2fr);
    }

    .hh-topbar-item,
    .hh-topbar-phone {
        font-size: 8px;
    }


    /* HEADER */

    .hh-header-inner {
        grid-template-columns:
            78px
            minmax(0, 1fr);

        column-gap: 5px;

        row-gap: 6px;

        padding: 5px;
    }

    .hh-header__logo img {
        height: 31px;

        max-width: 78px;
    }


    /* ACTIONS */

    .hh-header__actions {
        gap: 7px;
    }
     .hh-header__actions.hh-flex {
        width: 82px;
        min-width: 82px;
        max-width: 82px;

        justify-self: end;
        justify-content: flex-end;

        gap: 2px;
    }
    .hh-action,
    .hh-account,
    .hh-cart,
    .hh-account__trigger {
        width: 25px;
        min-width: 25px;
    }

    .hh-action__icon {
        width: 17px;
        height: 17px;
    }


    /* SEARCH */

    .hh-search {
        height: 38px;
    }

    .hh-search input {
        font-size: 10px;

        padding: 0 8px;
    }

    .hh-search button {
        flex-basis: 40px;

        width: 40px;
        height: 38px;
    }


    /* QUICK TABS */

    .hh-mobile-quick-tabs {
        gap: 4px;
    }

    .hh-mobile-quick-tab,
    .hh-mobile-quick-tab__inner {
        height: 58px;
    }

    .hh-mobile-quick-tab__image {
        height: 26px;
    }

    .hh-mobile-quick-tab__image img {
        height: 23px;
    }

    .hh-mobile-quick-tab__title {
        height: 24px;
    }

    .hh-mobile-quick-tab__title a {
        font-size: 9px;
        line-height: 11px;
    }


    /* MOBILE CATEGORY */

    .hh-mobile-category-toggle {
        min-height: 38px;

        padding: 0 10px;

        font-size: 11px;
    }


    /* NAV */

    .hh-nav {
        height: 35px;
    }

    .hh-nav-inner {
        height: 35px;
    }

    .hh-nav-menu {
        height: 35px;

        gap: 2px;
    }

    .hh-nav-menu li a {
        height: 29px;

        padding: 0 5px;

        font-size: 9px;
    }
}