/* ==========================================================================
   SMARTCOM - TOP BAR & HEADER
   ========================================================================== */

/* --- 1. TOP BAR --- */
#top-bar.header-top {
    background: var(--smartcom-primary-dark, #082c63) !important;
    min-height: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#top-bar .nav > li { margin: 0; }
#top-bar .nav-divided > li + li > a:after { display: none; }

.sc-topbar-info {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.8);
}
.sc-topbar-info a,
.sc-topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: inherit;
    white-space: nowrap;
}
.sc-topbar-info a:hover { color: #fff; }
.sc-topbar-info svg { width: 14px; height: 14px; color: #7fb3ff; flex: 0 0 14px; }
.sc-topbar-info > * + *::before {
    content: '';
    width: 1px;
    height: 12px;
    margin-right: 17px;
    background: rgba(255, 255, 255, 0.18);
}

/* Bộ chọn ngôn ngữ (GTranslate) trên nền tối */
#top-bar .gtranslate_wrapper a,
#top-bar .gtranslate_wrapper span {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}
#top-bar .gtranslate_wrapper a:hover,
#top-bar .gtranslate_wrapper a.gt-current-lang { color: #fff !important; }
#top-bar .gtranslate_wrapper a { margin-left: 10px; }
#top-bar .gtranslate_wrapper img { border-radius: 2px; }

@media (max-width: 1100px) {
    .sc-topbar-address { display: none !important; }
}

/* --- 2. HEADER CHÍNH --- */
#masthead.header-main {
    border-bottom: 1px solid #edf1f7;
}
.header-wrapper.stuck #masthead.header-main,
.header-wrapper.stuck {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Menu */
.header-nav-main.nav > li { margin: 0 2px; }
.header-nav-main.nav > li > a.nav-top-link {
    position: relative;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    color: #0f172a;
    transition: background 0.25s ease, color 0.25s ease;
}
.header-nav-main.nav-line-bottom > li > a:before { display: none !important; }
.header-nav-main.nav > li > a.nav-top-link:hover,
.header-nav-main.nav > li.active > a.nav-top-link,
.header-nav-main.nav > li.current-menu-ancestor > a.nav-top-link,
.header-nav-main.nav > li.has-dropdown:hover > a.nav-top-link {
    background: var(--smartcom-primary-soft, #e8f0fd);
    color: var(--smartcom-primary, #0b5ed7);
}
.header-nav-main.nav > li > a.nav-top-link .icon-angle-down {
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.6;
    transition: transform 0.25s ease;
}
.header-nav-main.nav > li.has-dropdown:hover > a .icon-angle-down { transform: rotate(180deg); opacity: 1; }

/* Nút tìm kiếm */
.header-main .header-search > a {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f1f5fb;
    color: var(--smartcom-primary, #0b5ed7) !important;
    transition: background 0.25s ease, color 0.25s ease;
}
.header-main .header-search > a i { font-size: 16px; top: 0; }
.header-main .header-search > a:hover,
.header-main .header-search.current-dropdown > a {
    background: var(--smartcom-primary, #0b5ed7);
    color: #fff !important;
}
.header-main .header-search .nav-dropdown { border-radius: 14px !important; padding: 10px !important; }

/* Hotline + Báo giá */
.header-main .html_top_right_text { margin-left: 6px; }
.sc-header-cta { display: flex; align-items: center; gap: 16px; }
.sc-hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
}
.sc-hotline__icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--smartcom-primary, #0b5ed7);
    color: #fff;
    flex: 0 0 42px;
}
.sc-hotline__icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--smartcom-primary, #0b5ed7);
    opacity: 0;
    animation: sc-hotline-ring 2.4s ease-out infinite;
}
.sc-hotline__icon svg { width: 18px; height: 18px; }
.sc-hotline__text { display: flex; flex-direction: column; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.sc-hotline__text small { font-size: 11.5px; font-weight: 500; color: #64748b; }
.sc-hotline__text strong { font-size: 16px; font-weight: 800; color: #0f172a; transition: color 0.25s ease; }
.sc-hotline:hover .sc-hotline__text strong { color: var(--smartcom-primary, #0b5ed7); }

.sc-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #fff !important;
    background: var(--smartcom-secondary, #d71920);
    box-shadow: 0 8px 18px rgba(215, 25, 32, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    white-space: nowrap;
}
.sc-quote-btn svg { width: 17px; height: 17px; }
.sc-quote-btn:hover { transform: translateY(-2px); filter: brightness(0.95); box-shadow: 0 12px 24px rgba(215, 25, 32, 0.3); }

@keyframes sc-hotline-ring {
    0% { transform: scale(0.9); opacity: 0.6; }
    80%, 100% { transform: scale(1.35); opacity: 0; }
}

/* Màn hình vừa: thu gọn để không chật menu */
@media (max-width: 1360px) {
    .sc-hotline__text { display: none; }
}
@media (max-width: 1180px) {
    .header-nav-main.nav > li > a.nav-top-link { padding: 8px 10px; font-size: 13.5px; }
    .sc-quote-btn span { display: none; }
    .sc-quote-btn { padding: 11px 12px; }
}
