/* ==========================================================================
   1. CSS Core Layout
   ========================================================================== */
#masthead.site-header {
    position: relative !important;
    z-index: 99999 !important;
    background-color: #ffffff !important; /* Tránh việc theme ép nền trong suốt trên trang sản phẩm */
    width: 100% !important;
}

   .fpt-nav-container { 
    background-color: #ffffff; 
    border-bottom: 1px solid #f3f4f6; 
    position: sticky; 
    top: 0; 
    z-index: 99999; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    width: 100% !important;
    box-sizing: border-box !important;
}

.fpt-nav-wrap { 
    max-w: 100%; 
    margin-left: auto; 
    margin-right: auto; 
    padding-left: 1.5rem; 
    padding-right: 1.5rem; 
}

@media (min-width: 768px) { 
    .fpt-nav-wrap { 
        padding-left: 8rem; 
        padding-right: 8rem; 
    } 
}

.fpt-flex-row { 
    display: flex; 
    justify-content: space-between; 
    height: 4rem; 
    align-items: center; 
}

/* ==========================================================================
   2. Logo & Desktop Navigation Links
   ========================================================================== */
.fpt-logo-img { 
    height: 32px !important; 
    width: auto !important; 
    max-width: 200px !important; /* Khóa giới hạn chiều rộng tối đa */
    display: block !important; 
    object-fit: contain !important;
}

@media (min-width: 768px) { 
    .fpt-logo-img { 
        height: 40px !important; 
        max-width: 250px !important;
    } 
}

.fpt-menu-desktop { 
    display: none; 
}

@media (min-width: 768px) { 
    .fpt-menu-desktop { 
        display: flex; 
        align-items: center; 
    } 
}

.fpt-space-links { 
    display: flex; 
    align-items: center; 
    margin-right: 3rem; 
}

.fpt-space-links > * + * { 
    margin-left: 2.5rem; 
}

.fpt-nav-link { 
    font-size: 15px; 
    font-weight: 750 !important; 
    color: #374151; 
    transition: all 0.2s; 
    text-decoration: none !important; 
}

.fpt-nav-link:hover { 
    color: #1d4ed8; 
}

/* ==========================================================================
   3. Button Tải Ứng Dụng
   ========================================================================== */
.fpt-btn-download { 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    padding: 0.625rem 1.5rem !important; 
    background-color: #1d4ed8 !important; 
    color: #ffffff !important; 
    font-size: 13px !important; 
    font-weight: 900 !important; 
    font-family: 'Inter', -apple-system, sans-serif !important;
    border-radius: 9999px !important; 
    transition: all 0.2s !important; 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; 
    text-decoration: none !important; 
    white-space: nowrap !important; 
    border: none !important; 
    line-height: 1.5 !important; 
}

.fpt-btn-download:hover { 
    background-color: #1e40af !important; 
    transform: scale(1.05) !important; 
    color: #ffffff !important; 
}

.fpt-btn-download:active { 
    transform: scale(0.95) !important; 
}

/* ==========================================================================
   4. Desktop Dropdown Menu (Mục Hỗ Trợ)
   ========================================================================== */
.fpt-relative-group { 
    position: relative; 
    display: inline-block; 
}

.fpt-dropdown-btn { 
    display: inline-flex !important; 
    align-items: center !important; 
    font-size: 15px !important; 
    font-weight: 750 !important; 
    color: #374151 !important; 
    background: transparent !important; 
    border: none !important; 
    cursor: pointer; 
    transition: color 0.2s; 
    padding: 0 !important; 
    margin: 0 !important; 
    box-shadow: none !important; 
    outline: none !important; 
    height: auto !important; 
    width: auto !important; 
    line-height: inherit !important; 
}

.fpt-relative-group:hover .fpt-dropdown-btn { 
    color: #1d4ed8 !important; 
}

.fpt-dropdown { 
    position: absolute; 
    right: 0; 
    top: 100%; 
    margin-top: 0.75rem; 
    width: 16rem; 
    background-color: #ffffff; 
    border: 1px solid #e5e7eb; 
    border-radius: 1rem; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
    z-index: 60; 
    overflow: hidden; 
    visibility: hidden; 
    opacity: 0; 
    transform: translateY(10px); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.fpt-relative-group:hover .fpt-dropdown { 
    visibility: visible; 
    opacity: 1; 
    transform: translateY(0); 
}

.fpt-relative-group:hover .fpt-arrow { 
    transform: rotate(180deg); 
    color: #1d4ed8; 
}

.menu-item-hover { 
    display: flex; 
    align-items: center; 
    padding: 0.75rem 1rem; 
    font-size: 14px; 
    font-weight: 750; 
    color: #374151; 
    text-decoration: none !important; 
    border-bottom: 1px solid #f3f4f6; 
    transition: all 0.2s; 
    background: transparent; 
}

.menu-item-hover:hover { 
    background-color: #f0f7ff !important; 
    color: #1d4ed8 !important; 
}

.icon-box { 
    width: 2rem; 
    flex-shrink: 0; 
    color: #2563eb; 
    transition: transform 0.2s; 
    display: flex; 
    align-items: center; 
}

.menu-item-hover:hover .icon-box { 
    transform: scale(1.1); 
    color: #1d4ed8; 
}

/* ==========================================================================
   5. Mobile Menu & Trigger
   ========================================================================== */
.fpt-mobile-trigger { 
    display: block; 
    padding: 0.5rem !important; 
    color: #4b5563 !important; 
    background: transparent !important; 
    border: none !important; 
    cursor: pointer; 
    box-shadow: none !important; 
    height: auto !important; 
    width: auto !important; 
    line-height: normal !important; 
    outline: none !important; 
    margin: 0 !important; 
}

@media (min-width: 768px) { 
    .fpt-mobile-trigger { 
        display: none; 
    } 
}

.fpt-mobile-menu { 
    display: block; 
    background-color: #ffffff; 
    width: 100%; 
    border-top: 1px solid #f3f4f6; 
    position: absolute; 
    z-index: 999; 
    left: 0; 
    top: 4rem; 
}

@media (min-width: 768px) { 
    .fpt-mobile-menu { 
        display: none; 
    } 
}

/* ==========================================================================
   6. Global WordPress Fixes (Tắt nháy & reset link)
   ========================================================================== */
[x-cloak] { 
    display: none !important; 
}

nav a, 
nav a:hover, 
nav a:focus, 
nav a:visited, 
nav a:active {
    text-decoration: none !important; 
    border-bottom: none !important; 
    box-shadow: none !important; 
    outline: none !important;
}