/* --- Global Container Fixes --- */

.mhf-main-wrapper {

    font-family: 'Source Sans Pro', sans-serif;

    width: 100%;

    background: #fff;

    overflow: visible; /* Prevents cutting off dropdowns or shadows */

    position: relative;

    z-index: 9999;

}



/* --- Top Bar Styling --- */

.mhf-top-bar {

    background-color: #f4f4f4;

    font-size: 14px;

    padding: 6px 0; /* Reduced padding */

    border-bottom: 1px solid #ddd;

}



.mhf-top-bar a {

    color: #333 !important;

    text-decoration: none !important;

    font-weight: 600;

}



/* --- Tightened Nav Spacing --- */

.mhf-nav-container {

    padding-top: 5px;

    padding-bottom: 45px;

}



/* --- Logo Adjustments --- */

.mhf-logo-img {

    max-width: 100px; /* Slightly larger for better visibility */

    height: auto;

    display: block;

}



/* --- Navigation Tabs (Persistent Gradients) --- */

.mhf-nav-list {

    display: flex;

    gap: 6px;

    list-style: none;

    padding: 0;

    margin: 0;

    flex-wrap: wrap;

}



.mhf-nav-item {

    display: inline-flex;

    align-items: center;

    padding: 8px 12px;

    background: linear-gradient(to right, #184292 0%, #4c3188 100%) !important;

    color: #fff !important;

    border-radius: 4px;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;

    transition: transform 0.2s ease;

}



.mhf-nav-item:hover {

    transform: translateY(-2px);

    color: #fff !important;

    opacity: 0.9;

}



.mhf-nav-item i {

    margin-right: 6px;

    font-size: 13px;

}



/* --- Currency Dropdown Grid --- */

.mhf-dropdown-menu {

    display: none;

    position: absolute;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 8px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.15);

    z-index: 10000;

    margin-top: 5px;

    padding: 12px;

    width: 300px; /* Wide enough for 3 columns */

}



.mhf-dropdown:hover .mhf-dropdown-menu {

    display: block;

}



.mhf-currency-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 6px;

}



.mhf-curr-opt {

    border: 1px solid #eee;

    padding: 6px;

    text-align: center;

    font-size: 11px;

    cursor: pointer;

    border-radius: 4px;

    background: #fff;

    font-weight: 600;

}



.mhf-curr-opt.active {

    background: #014bae;

    color: #fff;

    border-color: #014bae;

}



.mhf-cart-btn i {

    font-size: 18px;

    color: #333;

}



/* --- Mobile Responsiveness (Safeguard) --- */

@media (max-width: 991px) {

    .mhf-nav-list {

        display: none; /* Toggle handled by JS */

        flex-direction: column;

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        background: #fff;

        padding: 15px;

        box-shadow: 0 5px 10px rgba(0,0,0,0.1);

        z-index: 999;

    }

    .mhf-nav-list.active {

        display: flex;

    }

    .mhf-nav-item {

        width: 100%;

        justify-content: center;

        margin-bottom: 5px;

    }

    .mhf-mobile-toggle {

        font-size: 24px;

        cursor: pointer;

    }

    .mhf-logo-img {

    max-width: 60px;

    }

}