/* =============================================================
   HEADER / NAVBAR CSS
   Main Navigation, Search Overlay, User Dropdown, Mobile Drawer
   ============================================================= */

/* Hide Top Bar Completely */
.top-bar {
    display: none !important;
}

/* -------------------------------------------------------------
   GLOBAL HEADER LAYOUT (PREVENTS SCROLLBARS / CLIPPING)
------------------------------------------------------------- */
.header {
    width: 100% !important;
    max-width: 100vw !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    overflow: visible !important;
}

.is-fixed .menu-bar {
    position: relative !important;
    box-shadow: none !important;
    top: auto !important;
    left: auto !important;
}

.menu-bar {
    position: relative !important;
    overflow: visible !important;
}

.menu-bar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1320px !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto !important;
    overflow: visible !important;
}

/* Desktop Header Logo (Single Instance) */
.menu-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-right: 20px !important;
}

.menu-logo img {
    height: 50px !important;
    width: auto !important;
}

/* -------------------------------------------------------------
   DESKTOP LAYOUT (>= 992px)
------------------------------------------------------------- */
@media (min-width: 992px) {
    .menu-links {
        display: flex !important;
        align-items: center !important;
        flex-grow: 1 !important;
        justify-content: flex-start !important;
    }

    .menuicon.open span {
        transform: none !important;
        opacity: 1 !important;
        left: 0 !important;
        background: #333333 !important;
    }

    .menuicon.open::after,
    .menuicon.open::before {
        display: none !important;
        content: none !important;
    }

    .menu-links .menu-logo,
    .menu-drawer-header {
        display: none !important;
    }

    .nav.navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 5px !important;
    }

    .nav.navbar-nav>li {
        white-space: nowrap !important;
    }

    .nav.navbar-nav>li>a {
        font-weight: 500 !important;
        font-size: 13px !important;
        color: #333333 !important;
        padding: 22px 8px !important;
        display: inline-block !important;
        white-space: nowrap !important;
        transition: color 0.2s ease;
        text-transform: uppercase;
    }

    .nav.navbar-nav>li.active>a {
        color: #d9232d !important;
        text-decoration: underline !important;
        text-underline-offset: 6px !important;
        text-decoration-thickness: 2px !important;
    }

    .nav.navbar-nav>li:hover>a {
        color: #d9232d !important;
    }

    .navbar-toggler,
    .navbar-toggler.menuicon,
    button.navbar-toggler,
    .menuicon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Secondary Controls (Search, Language, User Dropdown, Hamburger) */
.secondary-menu {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    overflow: visible !important;
}

/* Base Mobile Hamburger Menu Button (Mobile & Tablet <= 991px ONLY) */
@media (max-width: 991px) {
    .navbar-toggler,
    .navbar-toggler.menuicon {
        display: inline-flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1000 !important;
        float: none !important;
    }

    .navbar-toggler span,
    .navbar-toggler.menuicon span {
        display: block !important;
        width: 20px !important;
        height: 2.2px !important;
        background-color: #063423 !important;
        border-radius: 2px !important;
        opacity: 1 !important;
        position: static !important;
        transform: none !important;
        transition: all 0.25s ease-in-out !important;
        margin: 0 !important;
    }
}

/* Sleek Search Toggle Icon Button */
.main-header-search-btn {
    background: transparent !important;
    border: none !important;
    color: #333333 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease, background-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.main-header-search-btn:hover {
    color: #063423 !important;
    background-color: rgba(6, 52, 35, 0.06) !important;
}

/* Language Switcher Button (Pill Design) */
.btn-lang-btn {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 0 11px !important;
    border-radius: 9999px !important;
    border: 1.5px solid #063423 !important;
    color: #063423 !important;
    background: transparent !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.btn-lang-btn i {
    font-size: 13px !important;
    line-height: 1 !important;
    color: inherit !important;
}

.btn-lang-btn span {
    font-size: 12px !important;
    line-height: 1 !important;
    color: inherit !important;
}

/* Bordered Pill Login Button (Matching Pill Design) */
.header-login-btn {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 9999px !important;
    border: 1.5px solid #063423 !important;
    color: #063423 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.btn-lang-btn:hover,
.header-login-btn:hover {
    background: #063423 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(6, 52, 35, 0.2) !important;
}

.btn-lang-btn:hover i,
.btn-lang-btn:hover span {
    color: #ffffff !important;
}

/* -------------------------------------------------------------
   USER PROFILE DROPDOWN STYLING (LOGGED IN)
------------------------------------------------------------- */
.user-dropdown {
    position: relative;
    display: inline-block;
    overflow: visible !important;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444444 !important;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s ease;
}

.user-dropdown-toggle:hover {
    color: #d9232d !important;
}

.user-dropdown-toggle i.avatar-icon {
    font-size: 20px;
    color: #555555;
}

.user-dropdown-toggle:hover i.avatar-icon {
    color: #d9232d;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-top: 10px solid transparent;
    background-clip: padding-box;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    min-width: 170px;
    display: none;
    z-index: 10000;
}

.user-dropdown:hover .user-dropdown-menu {
    display: block !important;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #333 !important;
    font-size: 13px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.user-dropdown-menu a:hover {
    background: #f8f9fa;
    color: #d9232d !important;
}

/* -------------------------------------------------------------
   FULL-WIDTH SEARCH OVERLAY
------------------------------------------------------------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 100000;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    overflow-y: auto;
}

.search-overlay.open {
    display: block;
    opacity: 1;
}

.search-overlay-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #0b5a26;
    padding-bottom: 12px;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
}

.search-overlay-close-btn {
    font-size: 20px;
    color: #475569;
    text-decoration: none !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-overlay-close-btn:hover {
    color: #0b5a26;
    background: #f1f5f9;
}

.search-overlay-form {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-overlay-form input {
    flex-grow: 1;
    width: 100%;
    border: none;
    font-size: 18px;
    font-weight: 500;
    outline: none;
    color: #0f172a;
    background: transparent;
    padding: 4px 0;
}

.search-overlay-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-overlay-clear-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-overlay-clear-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.search-spinner {
    color: #0b5a26;
    font-size: 17px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

/* Recent Searches Section */
.search-recent-container {
    margin-top: 22px;
}

.search-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.search-recent-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-recent-title i {
    color: #0b5a26;
    font-size: 13px;
}

.search-recent-clear-all {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.search-recent-clear-all:hover {
    color: #ef4444;
}

.search-recent-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-recent-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.search-recent-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.search-recent-item-icon {
    color: #94a3b8;
    font-size: 13px;
    flex-shrink: 0;
}

.search-recent-item-text {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-recent-item-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.search-recent-item-remove:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Omni-Search Dynamic Results Area */
.search-live-results {
    margin-top: 25px;
}

.omni-group {
    margin-bottom: 24px;
}

.omni-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.omni-group-header i {
    color: #0b5a26;
    font-size: 14px;
}

.omni-group-count {
    margin-left: auto;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}

.omni-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.omni-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.omni-item:hover,
.omni-item.active {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.omni-item-media {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #0b5a26;
    flex-shrink: 0;
}

.omni-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.omni-item-media i {
    font-size: 18px;
}

.omni-item-info {
    flex: 1;
    min-width: 0;
}

.omni-item-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.omni-item-title mark {
    background: #fef08a;
    color: #854d0e;
    padding: 1px 3px;
    border-radius: 2px;
}

.omni-item-subtitle {
    font-size: 12.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.omni-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.omni-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
}

.omni-badge-regular {
    background: #f1f5f9;
    color: #475569;
}

.omni-badge-auth {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.omni-badge-auth i {
    font-size: 10px;
}

.omni-item-arrow {
    color: #cbd5e1;
    font-size: 14px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.omni-item:hover .omni-item-arrow,
.omni-item.active .omni-item-arrow {
    color: #0b5a26;
    transform: translateX(2px);
}

.omni-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
}

.omni-empty-icon {
    font-size: 38px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.omni-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.omni-empty-desc {
    font-size: 13px;
    color: #64748b;
}

/* Omni-Search Mobile Responsiveness (Screen <= 576px) */
@media (max-width: 576px) {
    .search-overlay-container {
        padding: 16px 12px 40px;
    }
    .search-overlay-header {
        gap: 8px;
        padding-bottom: 10px;
    }
    .search-overlay-close-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        flex-shrink: 0;
    }
    .search-overlay-form {
        gap: 6px;
    }
    .search-overlay-form input {
        font-size: 14.5px;
        text-overflow: ellipsis;
    }
    .search-overlay-form input::placeholder {
        font-size: 14.5px;
        text-overflow: ellipsis;
    }
    .search-overlay-clear-btn {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    .search-spinner {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    .omni-item {
        padding: 8px 10px;
        gap: 10px;
    }
    .omni-item-media {
        width: 38px;
        height: 38px;
    }
    .omni-item-media i {
        font-size: 16px;
    }
    .omni-item-title {
        font-size: 13.5px;
    }
    .omni-item-subtitle {
        font-size: 11.5px;
    }
    .omni-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* -------------------------------------------------------------
   LAPTOP ADAPTIVITY (992px - 1199px)
------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav.navbar-nav>li>a {
        font-size: 12px !important;
        padding: 22px 5px !important;
    }

    .menu-logo img {
        max-height: 38px !important;
    }

    .user-dropdown-toggle span {
        display: none !important;
    }
}

/* -------------------------------------------------------------
   MOBILE & TABLET VIEW (< 992px)
------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Compact Container Layout */
    .menu-bar .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Compact Mobile Logo */
    .menu-logo {
        margin-right: 8px !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }

    .menu-logo img {
        height: 38px !important;
        max-height: 38px !important;
        width: auto !important;
        max-width: 125px !important;
        object-fit: contain !important;
    }

    /* Compact Mobile Secondary Controls - Perfectly Harmonized 32px Height */
    .secondary-menu {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        float: none !important;
    }

    .main-header-search-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        font-size: 15px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .btn-lang-btn {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 0 11px !important;
        font-size: 12px !important;
        border-radius: 9999px !important;
        border: 1.5px solid #063423 !important;
        white-space: nowrap !important;
        gap: 5px !important;
    }

    .btn-lang-btn i {
        font-size: 13px !important;
        line-height: 1 !important;
        color: inherit !important;
    }

    .btn-lang-btn span {
        font-size: 12px !important;
        line-height: 1 !important;
        color: inherit !important;
    }

    .header-login-btn {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 0 13px !important;
        font-size: 12px !important;
        border-radius: 9999px !important;
        border: 1.5px solid #063423 !important;
        white-space: nowrap !important;
    }

    .user-dropdown-toggle {
        height: 34px !important;
        padding: 0 8px !important;
        font-size: 16px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .user-dropdown-toggle span {
        display: none !important;
    }

    /* Explicit, Guaranteed Mobile Hamburger Button (34px x 34px) */
    .navbar-toggler,
    .navbar-toggler.menuicon {
        display: inline-flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1000 !important;
        float: none !important;
    }

    .navbar-toggler span,
    .navbar-toggler.menuicon span {
        display: block !important;
        width: 20px !important;
        height: 2.2px !important;
        background-color: #063423 !important;
        border-radius: 2px !important;
        opacity: 1 !important;
        position: static !important;
        transform: none !important;
        transition: all 0.25s ease-in-out !important;
        margin: 0 !important;
    }

    .navbar-toggler.menuicon.open span:nth-child(1) {
        transform: translateY(5.7px) rotate(45deg) !important;
    }

    .navbar-toggler.menuicon.open span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }

    .navbar-toggler.menuicon.open span:nth-child(3) {
        transform: translateY(-5.7px) rotate(-45deg) !important;
    }

    .menuicon.open::after,
    .menuicon.open::before {
        display: none !important;
        content: none !important;
    }

    /* Mobile Drawer */
    .menu-links.navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: -300px !important;
        width: 280px !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 99999 !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2) !important;
        transition: left 0.3s ease-in-out !important;
        display: block !important;
        padding: 20px 15px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        scrollbar-width: thin;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    .menu-links.navbar-collapse::-webkit-scrollbar:horizontal,
    .menu-links::-webkit-scrollbar:horizontal,
    #menuDropdown::-webkit-scrollbar:horizontal {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
    }

    .menu-links.navbar-collapse.show,
    .menu-links.navbar-collapse.in {
        left: 0 !important;
    }

    /* Drawer Header (Logo + Close X) */
    .menu-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 20px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .menu-drawer-header .menu-logo,
    .menu-links .menu-logo {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .menu-drawer-header .menu-logo img,
    .menu-links .menu-logo img {
        max-height: 40px !important;
        display: block !important;
        max-width: 120px !important;
    }

    .drawer-close-btn {
        background: #f1f5f9 !important;
        border: none !important;
        color: #475569 !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        font-size: 15px !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }

    .drawer-close-btn:hover {
        background: #e2e8f0 !important;
        color: #d9232d !important;
    }

    .nav.navbar-nav {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .nav.navbar-nav>li {
        width: 100% !important;
        max-width: 100% !important;
        border-bottom: 1px solid #f5f5f5;
        white-space: normal !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .nav.navbar-nav>li>a {
        padding: 12px 5px !important;
        font-size: 14px !important;
        display: block !important;
        color: #333333 !important;
        text-decoration: none !important;
        white-space: normal !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
    }

    .nav.navbar-nav>li.active>a {
        color: #d9232d !important;
        font-weight: 600 !important;
    }
}

/* -------------------------------------------------------------
   MOBILE ADAPTIVITY: PHONES (<= 480px)
------------------------------------------------------------- */
@media (max-width: 480px) {
    .menu-bar .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .menu-logo {
        margin-right: 4px !important;
    }

    .menu-logo img {
        height: 34px !important;
        max-height: 34px !important;
        max-width: 105px !important;
    }

    .secondary-menu {
        gap: 5px !important;
    }

    .main-header-search-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        font-size: 14px !important;
    }

    .btn-lang-btn {
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        font-size: 11.5px !important;
        padding: 0 9px !important;
        border-radius: 9999px !important;
        gap: 3.5px !important;
    }

    .btn-lang-btn i {
        font-size: 12px !important;
    }

    .btn-lang-btn span {
        font-size: 11.5px !important;
    }

    .header-login-btn {
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 11px !important;
        font-size: 11.5px !important;
        border-radius: 9999px !important;
    }

    .navbar-toggler,
    .navbar-toggler.menuicon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 3.5px !important;
    }

    .navbar-toggler span,
    .navbar-toggler.menuicon span {
        width: 19px !important;
        height: 2px !important;
    }

    .navbar-toggler.menuicon.open span:nth-child(1) {
        transform: translateY(5.5px) rotate(45deg) !important;
    }

    .navbar-toggler.menuicon.open span:nth-child(3) {
        transform: translateY(-5.5px) rotate(-45deg) !important;
    }
}

/* -------------------------------------------------------------
   MOBILE ADAPTIVITY: ULTRA NARROW PHONES (<= 360px)
------------------------------------------------------------- */
@media (max-width: 360px) {
    .menu-bar .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .menu-logo img {
        height: 30px !important;
        max-width: 90px !important;
    }

    .secondary-menu {
        gap: 4px !important;
    }

    .main-header-search-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 13px !important;
    }

    .btn-lang-btn {
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        font-size: 10.5px !important;
        padding: 0 7px !important;
        border-radius: 9999px !important;
        gap: 3px !important;
    }

    .btn-lang-btn i {
        font-size: 11px !important;
    }

    .btn-lang-btn span {
        font-size: 10.5px !important;
    }

    .header-login-btn {
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        padding: 0 9px !important;
        font-size: 10.5px !important;
        border-radius: 9999px !important;
    }

    .navbar-toggler,
    .navbar-toggler.menuicon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 3px !important;
    }

    .navbar-toggler span,
    .navbar-toggler.menuicon span {
        width: 17px !important;
        height: 2px !important;
    }

    .navbar-toggler.menuicon.open span:nth-child(1) {
        transform: translateY(5px) rotate(45deg) !important;
    }

    .navbar-toggler.menuicon.open span:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg) !important;
    }
}

/* Backdrop Click-to-Close Overlay */
.menu-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 99990 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    cursor: pointer;
    touch-action: manipulation;
}

.menu-backdrop.show {
    display: block !important;
    opacity: 1 !important;
}

/* Premium Mega Menu Style */
.add-menu-left ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.add-menu-left ul li {
    margin-bottom: 6px;
}

.add-menu-left ul li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px !important;
    border-radius: 8px;
    color: #333 !important;
    font-size: 14px;
    font-weight: 400;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
}

.add-menu-left ul li a::after {
    content: '\f105';
    font-family: 'FontAwesome';
    font-size: 14px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease-in-out;
    color: #d9232d;
}

.add-menu-left ul li a:hover {
    background: #ffffff !important;
    color: #d9232d !important;
    padding-left: 18px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #d9232d;
}

.add-menu-left ul li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.add-menu-right {
    padding: 12px !important;
    display: flex !important;
    align-items: stretch !important;
    background: #ffffff !important;
}

.add-menu-right a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.add-menu-right img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}