* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans', Arial, sans-serif; font-size: 14px; color: #2a2a2a; line-height: 1.5; background: #fff; }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e2e2e2;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}

.header-left { display: flex; align-items: center; gap: 15px; }
.btn-hamburger-mobile { display: none; font-size: 20px; }

.header-right { display: flex; align-items: center; gap: 20px; }
.header-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 0px;
}
.header-links li {
    display: flex;
    align-items: center;
    position: relative;
}
.header-links li:not(:last-child):after {
    background: #ababab;
    bottom: 0;
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    width: 1px;
}
.header-links a:hover { color: #2d67ad; }

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.btn-toggle-search {
    font-size: 18px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1;
}

.search-form-wrap {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 500px;
    background: #fff;
}

.search-form-wrap form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 5px 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-form-wrap input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #555;
    background: transparent;
}

.search-form-wrap input::placeholder {
    font-style: italic;
    color: #999;
}

.search-form-wrap button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
}

.site-nav-wrapper {
    background: #fff;
    height: 48px;
    border-bottom: 1px solid #e2e2e2;
    position: sticky;
    top: 0;
    z-index: 9998;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-navigation { height: 100%; }

ul.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
}

ul.main-menu > li.menu-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 10px;
    flex: 0 0 auto;
}

ul.main-menu > li.menu-item > a {
    font-weight: 700;
    font-size: 14px;
    color: #2a2a2a;
    white-space: nowrap;
    padding: 5px 0;
    position: relative;
}

ul.main-menu > li.menu-item:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2d67ad;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

ul.main-menu > li.menu-item:hover:after,
ul.main-menu > li.menu-item.current-menu-item:after {
    transform: scaleX(1);
}

ul.main-menu > li.menu-item:hover > a { color: #2d67ad; }

.menu-item-home a i, .menu-item-hamburger a i { font-size: 16px; }
.menu-item-hamburger { margin-left: auto; }

.display-mobile { display: none !important; }

ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-top: 2px solid #2d67ad;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
    padding: 5px 0;
    margin-left: 0px;
}

ul.main-menu > li.menu-item:hover > ul.sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

ul.sub-menu li.menu-item {
    display: block;
    width: 100%;
    position: relative;
}

ul.sub-menu li.menu-item a {
    display: block;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul.sub-menu li.menu-item:last-child a { 
    border-bottom: none; 
}

ul.sub-menu li.menu-item a:hover {
    background-color: #f9f9f9;
    color: #2d67ad;
   // padding-left: 20px;
}

ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
    margin-top: -2px;
}

ul.sub-menu > li.menu-item:hover > ul.sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
ul.sub-menu li.menu-item-has-children > a:after {
    content: "\f054";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 10px;
    margin-left: 10px;
}

.desktop-mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #f9f9f9;
    border-top: 1px solid #e2e2e2;
    border-bottom: 2px solid #ccc;
    padding: 20px 0 40px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 9998;
}

.mega-menu-inner { display: flex; }

.mm-left-col {
    flex: 1;
    padding-right: 40px;
}

.mm-grid-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 20px;
}

.mm-grid-links li a {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

.mm-grid-links li a:hover { color: #cb2026; }

.brand-premium img,
.brand-hanhtrinh img {
    height: 25px;
    width: auto;
}

.mm-right-col {
    width: 250px;
    border-left: 1px solid #e2e2e2;
    padding-left: 30px;
}

.mm-sidebar-links li { margin-bottom: 12px; }

.mm-sidebar-links li a {
    font-size: 14px;
    color: #333;
    display: block;
}

.mm-sidebar-links.bold-links li a { font-weight: 700; }
.mm-sidebar-links.light-links li a { color: #666; }

.mm-divider {
    height: 1px;
    background: #e2e2e2;
    margin: 15px 0;
}

.mm-app-download .app-link {
    color: #e65a25;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.mt-10 { margin-top: 10px; }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f7f7;
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.is-open { transform: translateX(0); }

.mm-header {
    background: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    height: 50px;
}

.btn-close-menu {
    font-size: 24px;
    color: #777;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mm-logo img {
    height: 25px;
    width: auto;
}

.mm-placeholder { width: 30px; }

.mm-search {
    padding: 15px;
    background: #f7f7f7;
}

.mm-search form {
    position: relative;
    background: #fff;
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 5px 15px;
}

.mm-search input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #333;
    padding: 5px 0;
}

.mm-search button {
    font-size: 16px;
    color: #999;
}

.mm-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px 30px 15px;
}

.mm-brands {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 5px;
}

.mm-brands .brand-item img {
    height: 30px;
    width: auto;
}

.mm-grid-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
    list-style: none;
    margin-left: 0px;
}

.mm-grid-list li a {
    color: #2a2a2a;
    font-size: 15px;
    font-weight: 600;
    display: block;
    line-height: 1.4;
    text-transform: none;
}

.mm-grid-list li a:hover { color: #cb2026; }

body.menu-open { overflow: hidden; }

.is-sticky-desktop {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1023px) {
    /* --- HEADER --- */
    
    /* 1. Logo & Hamburger */
    .header-logo img { width: 110px; }
    .btn-hamburger-mobile { display: block; }

    /* 2. Ẩn Search Box trên Mobile */
    .header-search { 
        display: none !important; 
    }

    /* 3. Xử lý Header Links (Hiện item cuối cùng) */
    .header-links { 
        display: flex !important; /* Hiện lại container */
    }
    
    .header-links li { 
        display: none; /* Ẩn tất cả các item con */
    }
    
.header-links li:last-child {
    display: flex;
    width: 25px;
    overflow: hidden;
    height: 30px;
    align-items: flex-start;
    font-size: 20px;
}
    /* Bỏ gạch ngăn cách (nếu có) ở item cuối */
    .header-links li:last-child:after {
        display: none;
    }

    /* --- NAVIGATION --- */
    
    /* Hiện menu ngang (scroll) */
    .site-nav-wrapper {
        display: block !important;
        overflow: hidden;
    }

    ul.main-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-right: 20px;
    }

    ul.main-menu::-webkit-scrollbar { display: none; }

    ul.main-menu > li.menu-item { flex: 0 0 auto; }
    
    ul.main-menu > li.menu-item > a { padding: 0 12px; }

    /* Ẩn các thành phần thừa của Desktop Nav */
    .menu-item-hamburger { display: none !important; }

    ul.main-menu > li.menu-item:hover > .sub-menu,
    ul.sub-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    ul.main-menu > li.menu-item:hover:after { transform: scaleX(1); }
}
.top_bar  {
	display:none;
}


@media (max-width: 728px) {
div#page {
    padding-top: 30px;
}
.top_bar {
    background-color: #f7f7f7;
    border-bottom: 1px solid #e2e2e2;
    display: flex;
    justify-content: space-between;
    height: 30px;
    align-items: center;
    font-size: 90%;
    padding: 0 10px;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 999;
}
.top_link a {
    display: flex;
	color:#2d67ad;
}
.top_link a img {
    margin-left: 5px;
}
.is-sticky-desktop {
    top: 30px;
}
.header-clock { display:none;}
}

span.clock-skeleton {
    color: #999;
    font-size: 90%;
}