:root {
    --primary-red: #e60012;
    --primary-red-hover: #cc0010;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --header-bg: #ffffff;
}

* { 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased; 
}

/* ĐỒNG BỘ FONT 16PX & ĐỘ ĐẬM 600 TOÀN DIỆN */
body, button, input, select, textarea {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 16px;
}
b, strong, h1, h2, h3, h4, h5, h6, th {
    font-weight: 600 !important;
}

.site-header {
    background: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ĐỒNG BỘ CHIỀU RỘNG MAX-WIDTH 1280PX CHUẨN */
.header-top-container,
.nav-container {
    max-width: 1280px !important;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

.header-top { 
    border-bottom: 1px solid #f1f5f9; 
    background: #ffffff; 
}
.header-top-container {
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-nav-toggle {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px;
    cursor: pointer;
    color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.mobile-nav-toggle:active {
    background: #f1f5f9;
    transform: scale(0.96);
}

.logo-area { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    flex-shrink: 0; 
}
.logo-area img { 
    max-height: 42px; 
    max-width: 190px; 
    object-fit: contain; 
    display: block; 
}
.logo-fallback-text { 
    font-size: 1.25rem; 
    font-weight: 600; 
    color: var(--primary-red); 
    letter-spacing: -0.3px; 
}

/* TÌM KIẾM DỊCH VỤ DESKTOP */
.header-search-box { 
    flex: 1; 
    max-width: 440px; 
    position: relative; 
}
.header-search-form { 
    width: 100%; 
    position: relative; 
}
.header-search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    color: #0f172a;
    transition: all 0.2s ease;
}
.header-search-input:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.search-icon-svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    display: flex;
}

/* DROPDOWN LIVE SEARCH */
.search-dropdown-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; 
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12);
    z-index: 1050;
    overflow: hidden;
    display: none;
}
.search-res-item {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 10px 14px; 
    text-decoration: none;
    color: #334155; 
    border-bottom: 1px solid #f1f5f9; 
    transition: background 0.15s ease;
}
.search-res-item:last-child { 
    border-bottom: none; 
}
.search-res-item:hover { 
    background: #f8fafc; 
}
.search-res-thumb { 
    width: 38px; 
    height: 38px; 
    border-radius: 6px; 
    object-fit: cover; 
    border: 1px solid #e2e8f0; 
    flex-shrink: 0; 
}
.search-res-info { 
    flex: 1; 
    min-width: 0; 
}
.search-res-title { 
    font-size: 14px; 
    font-weight: 600; 
    color: #0f172a; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.search-res-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 12.5px; 
    margin-top: 2px; 
}
.search-res-price { 
    color: var(--primary-red); 
    font-weight: 600; 
}

/* BÁO GIÁ TỰ ĐỘNG HIỆN ĐẠI (DESKTOP) */
.header-quote-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7f7 100%);
    border: 1px solid #fed7d7;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(230,0,18,0.04);
    flex-shrink: 0;
}
.header-quote-modern:hover {
    border-color: #feb2b2;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(230,0,18,0.1);
    transform: translateY(-1px);
}
.quote-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.header-quote-modern:hover .quote-icon-badge {
    transform: scale(1.06);
    background: var(--primary-red);
    color: #ffffff;
}
.quote-text-group { 
    display: flex; 
    flex-direction: column; 
    line-height: 1.25; 
}
.quote-kicker { 
    font-size: 10.5px; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    color: #e60012; 
    text-transform: uppercase; 
}
.quote-headline { 
    font-size: 14px; 
    font-weight: 600; 
    color: #1e293b; 
}

/* CỤM THAO TÁC NGƯỜI DÙNG & CHUÔNG */
.user-actions { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0; 
}

/* ICON CHUÔNG THÔNG BÁO DESKTOP */
.header-bell-btn-desktop {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}
.header-bell-btn-desktop:hover {
    color: var(--primary-red);
    background: #fff1f2;
    border-color: #fecdd3;
}
.bell-dot-indicator {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: var(--primary-red);
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: none;
}

/* NÚT ĐĂNG NHẬP */
.btn-single-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary-red);
    color: #ffffff;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(230,0,18,0.2);
    transition: all 0.15s ease;
}
.btn-single-login:hover { 
    background: var(--primary-red-hover); 
}

/* DROPDOWN USER */
.user-account-dropdown { 
    position: relative; 
}
.user-pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 4px 6px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    user-select: none;
    transition: background 0.15s;
}
.user-pill-btn:hover { 
    background: #f8fafc; 
}
.user-avatar-mini {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.user-avatar-mini img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* SUBMENU TÀI KHOẢN */
.account-menu-sub {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 6px 0;
    box-shadow: 0 12px 28px -4px rgba(15,23,42,0.15);
    list-style: none;
    display: none;
    z-index: 1050;
    margin-top: 6px;
}
.account-menu-sub::before {
    content: '';
    position: absolute;
    top: -12px; left: 0; right: 0; height: 12px;
    background: transparent;
}
.user-account-dropdown:hover .account-menu-sub,
.user-account-dropdown.open .account-menu-sub {
    display: block;
}
.account-menu-sub a {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 11px 16px; 
    color: #334155;
    font-size: 14.5px; 
    text-decoration: none; 
    font-weight: 600; 
    transition: all 0.15s;
}
.account-menu-sub a:hover { 
    background: #f8fafc; 
    color: #0284c7; 
}
.account-menu-divider { 
    height: 1px; 
    background: #f1f5f9; 
    margin: 4px 0; 
}

/* ============================================================== */
/* TẦNG 2: MENU ĐIỀU HƯỚNG NỀN ĐỎ (DESKTOP) + SUBMENU 2 CẤP       */
/* ============================================================== */
.header-nav-bar { 
    background: var(--primary-red); 
}
.nav-container {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}
.nav-menu { 
    display: flex; 
    align-items: center; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    gap: 2px; 
}
.nav-item-root {
    position: relative;
}
.nav-item-root > a {
    display: flex; 
    align-items: center; 
    gap: 6px; 
    padding: 13px 16px;
    color: #ffffff; 
    font-weight: 600; 
    font-size: 15px; 
    text-decoration: none;
    transition: background 0.15s ease;
}
.nav-item-root:hover > a { 
    background: var(--primary-red-hover); 
}

/* SUBMENU DESKTOP THẢ XUỐNG DẠNG DROPDOWN */
.nav-submenu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 10px 25px -4px rgba(15,23,42,0.15);
    list-style: none;
    display: none;
    z-index: 1060;
}
.nav-submenu-dropdown::before {
    content: '';
    position: absolute;
    top: -10px; left: 0; right: 0; height: 10px;
    background: transparent;
}
.nav-item-root:hover .nav-submenu-dropdown {
    display: block;
}
.nav-submenu-dropdown li a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: #334155;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-submenu-dropdown li a:hover {
    background: #f8fafc;
    color: var(--primary-red);
}

.nav-quick-zalo {
    color: #ffffff; 
    font-size: 14px; 
    font-weight: 600; 
    text-decoration: none;
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 6px 14px;
    background: rgba(255,255,255,0.18); 
    border-radius: 18px;
}

/* THANH TÌM KIẾM DI ĐỘNG */
.header-mobile-search-bar {
    display: none;
    padding: 8px 12px 10px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
.mobile-search-input-wrap { 
    position: relative; 
    width: 100%; 
}
.mobile-search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 13.5px;
    outline: none;
    color: #0f172a;
    box-sizing: border-box;
}
.mobile-search-input:focus {
    background: #ffffff;
    border-color: var(--primary-red);
}
.mobile-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* ============================================================== */
/* DRAWER MENU MOBILE SOFT UI: SÁNG, BO GÓC MỀM MẠI, CÓ ICON      */
/* ============================================================== */
.mobile-menu-overlay {
    position: fixed !important; 
    inset: 0 !important; 
    background: rgba(15,23,42,0.45) !important;
    backdrop-filter: blur(4px) !important; 
    z-index: 9998 !important; 
    opacity: 0 !important;
    visibility: hidden !important; 
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.mobile-menu-overlay.active { 
    opacity: 1 !important; 
    visibility: visible !important; 
}

.mobile-menu-sidebar {
    position: fixed !important; 
    top: 0 !important; 
    left: -330px !important; 
    width: 310px !important;
    height: 100vh !important; 
    background: #ffffff !important; 
    z-index: 9999 !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), left 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important; 
    display: flex !important;
    flex-direction: column !important; 
    box-shadow: 10px 0 35px -5px rgba(15,23,42,0.15) !important;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
}
.mobile-menu-sidebar.active { 
    left: 0 !important; 
}

/* HEADER MENU MOBILE: NỀN SÁNG THANH LỊCH (BỎ NỀN ĐEN CŨ) */
.mobile-menu-header {
    padding: 16px 18px; 
    background: #ffffff; 
    color: #0f172a;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}
.mobile-menu-brand-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}
.mobile-menu-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fef2f2;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.mobile-menu-close-btn:active {
    background: #fee2e2;
    color: var(--primary-red);
}

.mobile-menu-list { 
    list-style: none; 
    padding: 12px 10px; 
    margin: 0; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
    flex: 1; 
}

.mobile-menu-item {
    margin-bottom: 4px;
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.15s ease;
}

.mobile-menu-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #1e293b;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 12px;
    transition: all 0.15s ease;
}
.mobile-menu-link-row:active {
    background: #f1f5f9;
}

.mobile-menu-link-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

/* ICON TRÒN DÀNH CHO TỪNG MỤC MENU */
.mobile-menu-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mobile-menu-item:hover .mobile-menu-item-icon {
    background: #eff6ff;
    border-color: #dbeafe;
}

.mobile-submenu-toggle-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.15s;
}

/* SUBMENU CON ĐỔ XUỐNG DẠNG THẺ THỤT LỀ MỀM */
.mobile-submenu-list {
    list-style: none;
    padding: 4px 6px 6px;
    margin: 4px 0 6px 14px;
    background: #f8fafc;
    border-left: 2px solid #e2e8f0;
    border-radius: 0 10px 10px 0;
    display: none;
}
.mobile-submenu-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #475569;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.mobile-submenu-list li a:active,
.mobile-submenu-list li a:hover {
    color: var(--primary-red);
    background: #ffffff;
    font-weight: 600 !important;
}

/* HỘP CUỐI MENU MOBILE */
.mobile-quote-footer-box {
    padding: 14px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}
.btn-mobile-quote-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e60012 0%, #b91c1c 100%);
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(230,0,18,0.25);
    box-sizing: border-box;
}

/* ============================================================== */
/* RESPONSIVE DI ĐỘNG: HEADER TO HƠN, FONT 13PX                   */
/* ============================================================== */
@media (max-width: 992px) {
    .header-nav-bar { display: none; }
    .mobile-nav-toggle { display: block; }
    .header-quote-modern { display: none; }
}

@media (max-width: 768px) {
    .header-search-box { display: none; }
    .header-mobile-search-bar { display: block; }
    
    .header-top-container { 
        padding: 10px 14px !important; 
        gap: 10px; 
    }
    .logo-area img { 
        max-height: 38px !important; 
        max-width: 160px !important; 
    }
    .mobile-nav-toggle svg {
        width: 24px;
        height: 24px;
    }

    .header-bell-btn-desktop { display: none !important; }

    .user-pill-btn { padding: 0 !important; border: none !important; background: transparent !important; }
    .user-pill-btn span, .user-pill-btn svg { display: none !important; }
    .user-avatar-mini { width: 36px !important; height: 36px !important; }
    .btn-single-login { 
        padding: 7px 14px !important; 
        font-size: 13px !important; 
        border-radius: 18px; 
    }

    .account-menu-sub {
        right: -6px;
        top: calc(100% + 10px);
        width: 210px;
    }
    .account-menu-sub a {
        font-size: 13px !important;
        padding: 10px 14px !important;
    }
}
