﻿
/* =========================================
   HỒNG HÀ TOPBAR - RED THEME
========================================= */

.hh-topbarV2 {
    width: 100%;
    height: 36px;
    background: #E50914;
    border-bottom: 1px solid rgba(120, 0, 0, .15);
    overflow: hidden;
    font-size: 12px;
    color: #fff;
    position: relative;
    z-index: 1001;
    box-sizing: border-box;
}

.hh-topbarV2 *,
.hh-topbarV2 *::before,
.hh-topbarV2 *::after {
    box-sizing: border-box;
}

.hh-topbarV2 .hh-ui-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* =========================================
   LEFT - CHÍNH SÁCH BẢO HÀNH
========================================= */

.hh-topbarV2 .hh-topbarV2-left {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    height: 100%;
    min-width: 0;
}

.hh-topbarV2 .hh-topbarV2-item {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    transition: opacity .2s ease;
}

.hh-topbarV2 .hh-topbarV2-item:hover {
    color: #fff;
    opacity: .8;
}

/* ICON */

.hh-topbarV2 .hh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 13px;
    color: #fff;
}

/* =========================================
   CENTER - PROMOTION MARQUEE
========================================= */

.hh-topbarV2 .hh-topbarV2-promotion {
    display: flex !important;
    flex: 1 1 0;
    align-items: center;
    min-width: 0;
    width: auto;
    height: 100%;
    overflow: hidden;
}

.hh-topbarV2 .hh-topbarV2-promotion-track {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    height: 100%;
    animation: hhTopbarMarquee 20s linear infinite;
    will-change: transform;
}

.hh-topbarV2 .hh-topbarV2-promotion:hover
.hh-topbarV2-promotion-track {
    animation-play-state: paused;
}

.hh-topbarV2 .hh-topbarV2-promotion-content {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 100%;
}

.hh-topbarV2 .hh-promotion-text {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 24px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    transition: opacity .2s ease;
}

.hh-topbarV2 .hh-promotion-text:hover {
    color: #fff;
    opacity: .8;
}

.hh-topbarV2 .hh-promotion-hot {
    display: inline-block;
    flex: 0 0 auto;
    padding: 2px 6px;
    background: #fff;
    color: #E50914;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    line-height: 13px;
}

/* MARQUEE */

@keyframes hhTopbarMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* =========================================
   RIGHT - HOTLINE
========================================= */

.hh-topbarV2 .hh-topbarV2-right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: auto;
    height: 100%;
}

.hh-topbarV2 .hh-topbarV2-hotline {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s ease;
}

.hh-topbarV2 .hh-topbarV2-hotline .hh-icon {
    color: #fff;
}

.hh-topbarV2 .hh-topbarV2-hotline strong {
    color: #fff;
    font-weight: 700;
}

.hh-topbarV2 .hh-topbarV2-hotline:hover {
    color: #fff;
    opacity: .8;
}

/* =========================================
   RESPONSIVE - DESKTOP + LAPTOP + TABLET
   Từ 501px trở lên: Hiển thị đầy đủ
========================================= */

@media (min-width: 501px) {

    .hh-topbarV2 {
        display: block !important;
        visibility: visible;
    }

    .hh-topbarV2 .hh-topbarV2-left {
        display: flex !important;
        flex: 0 0 auto;
        width: auto;
        height: 100%;
    }

    .hh-topbarV2 .hh-topbarV2-item {
        display: inline-flex !important;
    }

    .hh-topbarV2 .hh-topbarV2-promotion {
        display: flex !important;
        flex: 1 1 0;
        min-width: 0;
    }

    .hh-topbarV2 .hh-topbarV2-right {
        display: flex !important;
        flex: 0 0 auto;
    }
}

/* Từ 501px đến 1300px: Thu gọn khoảng cách */

@media (min-width: 501px) and (max-width: 1300px) {

    .hh-topbarV2 .hh-ui-container {
        gap: 8px;
    }

    .hh-topbarV2 .hh-topbarV2-right {
        gap: 8px;
    }

    .hh-topbarV2 .hh-promotion-text {
        padding: 0 8px;
    }

    .hh-topbarV2 {
        font-size: 11px;
    }

    .hh-topbarV2 .hh-topbarV2-hotline {
        gap: 3px;
        font-size: 10px;
    }

    .hh-topbarV2 .hh-topbarV2-hotline strong {
        font-size: 10px;
    }
}
/* =========================================
   MOBILE - 500px TRỞ XUỐNG
   HÀNG 1: PROMOTION
   HÀNG 2: HOTLINE
========================================= */

@media (max-width: 500px) {

    /* TOPBAR */
    .hh-topbarV2 {
        display: block !important;
        width: 100%;
        height: 64px;
        overflow: hidden;
    }

    /* CONTAINER 2 HÀNG */
    .hh-topbarV2 .hh-ui-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        width: 100%;
        height: 100%;
        gap: 0;
        padding: 0;
    }

    /* ẨN BẢO HÀNH */
    .hh-topbarV2 .hh-topbarV2-left {
        display: none !important;
    }

    /* =====================================
       HÀNG 1: PROMOTION
    ===================================== */

    .hh-topbarV2 .hh-topbarV2-promotion {
        display: flex !important;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        height: 32px;
        overflow: hidden;
    }

    .hh-topbarV2 .hh-topbarV2-promotion-track {
        display: flex;
        flex: 0 0 auto;
        width: max-content;
        height: 100%;
        animation: hhTopbarMarquee 24s linear infinite;
    }

    .hh-topbarV2 .hh-topbarV2-promotion-content {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        height: 100%;
    }

    .hh-topbarV2 .hh-promotion-text {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        padding: 0 14px;
        gap: 5px;
        font-size: 10px;
        line-height: 32px;
    }

    .hh-topbarV2 .hh-promotion-hot {
        padding: 1px 5px;
        font-size: 9px;
        line-height: 12px;
    }

    /* =====================================
       HÀNG 2: HOTLINE
    ===================================== */

    .hh-topbarV2 .hh-topbarV2-right {
        display: flex !important;
        flex: 0 0 32px;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 32px;
        gap: 24px;
        margin: 0;
    }

    .hh-topbarV2 .hh-topbarV2-hotline {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 5px;
        font-size: 10px;
    }

    .hh-topbarV2 .hh-topbarV2-hotline .hh-icon {
        font-size: 11px;
    }

    .hh-topbarV2 .hh-topbarV2-hotline strong {
        font-size: 10px;
    }
}
/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .hh-topbarV2 .hh-topbarV2-promotion-track {
        animation: none;
    }
}
