.top-header {
    background-color: #f7f7f7;
    font-size: 13px;
    line-height: 1.2;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;  
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.middle-header {
    margin-top: 45px;  
}


/* Khi đang đăng nhập (body có class admin-bar) thì đẩy top-header xuống */
body.admin-bar .top-header {
    top: 32px;  /* desktop: admin bar cao 32px */
}

/* Trên mobile/tablet, admin bar cao hơn một chút */
@media (max-width: 782px) {
    body.admin-bar .top-header {
        top: 46px;  /* chiều cao admin bar trên màn nhỏ */
    }
}


.top-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
}

/* Desktop: xếp ngang, cách đều 2 bên */
@media (min-width: 768px) {
    .top-header-inner {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        gap: 24px;
    }
    .top-lang,
    .top-hotline {
        display: inline-flex;
        align-items: center;
    }

}

@media (max-width: 767px) {

    .middle-header {
        margin-top: 68px;  
    }

    .header .primery-menu {
        top: 70px;        
    }

}




/* Cụm ngôn ngữ */
.top-lang-items {
    display: inline-flex;
    gap: 8px;
}

.top-lang .lang-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 13px;
    text-decoration: none;
    color: #444;
    background-color: #fff;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.top-lang .lang-item img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.top-lang .lang-item.active {
    border-color: #75C241;
    font-weight: 600;
}

.top-lang .lang-item:hover {
    border-color: #75C241;
}

/* Nút hotline màu xanh */
.top-hotline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    background-color: #75C241;
    color: #ffffff;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    transition: transform 0.2s ease;
}

.top-hotline:hover {
    transform: scale(1.04);
}

.top-hotline .hotline-icon {
    font-size: 14px;
}

.top-hotline a {
    color: #ffffff;
    text-decoration: none;
}
