/* ==========================================
   HEADER
   ========================================== */
#vg-header-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
    min-height: unset !important;
}

.header {
    min-height: 108px;
    height: auto;
    padding-bottom: 20px;
}
.header-inner-container{
    padding-block: 0px !important;
    justify-content: space-between;
}

.logo-wrapper { display: flex; align-items: center; margin: 0px auto}
.logo-inside img,
.logo-wrapper img { max-height: 80px; width: auto; }
.logo-wrapper img { padding-left: 9px; }

/* Logo inside margin */

@media (max-width: 992px) {
    .header { padding-bottom: 20px; border-bottom: 1px solid #ccc; min-height: unset; padding-top: 20px}
    .logo-wrapper .logo-inside { margin: 0 !important; }
    .woo-header { padding: 0 !important; }
    .search-wrap { margin: 0 !important; position: relative !important; }
    .search-wrap .search-inside { margin: 0 auto !important; padding: 0 !important; }
    .logo-inside img, .logo-wrapper img{
        max-height: 60px;
    }
}
@media (max-width: 480px) {
    .logo-wrapper .logo-inside { margin: 0px 0 0 !important; }
}

/* Header widget areas alignment */
.woo-header { padding: 10px 0; }
.search-wrap { padding: 0 !important; }
.search-wrap .search-inside { width: 300px; margin-top: 7px; }

/* Layout-4 header adjustments */
.layout-4 #vg-header-wrapper .search-wrap .search-inside { padding: 35px 0px; }
.layout-4 #vg-header-wrapper .woo-header { padding: 28px 0; }

/* ==========================================
   NAV BAR
   ========================================== */
.vg-bottom-bar { background: var(--nav-bg); z-index: 10; }

.vg-bottom-bar .menu-primary {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.vg-bottom-bar .menu-primary > li { position: relative; }

.vg-bottom-bar .menu-primary > li > a {
    display: block;
    padding: 12px 15px;
    color: var(--nav-text);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.vg-bottom-bar .menu-primary > li > a:hover,
.vg-bottom-bar .menu-primary > li.current-menu-item > a {
    color: var(--nav-hover);
    background: rgba(0,0,0,0.1);
}

/* Dropdowns */
.vg-bottom-bar .menu-primary .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    z-index: 9999;
    border: 1px solid #ddd;
    list-style: none;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 0;
}

.vg-bottom-bar .menu-primary li:hover > .sub-menu { display: block; }

.vg-bottom-bar .menu-primary .sub-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--heading);
    font-size: 13px;
}

.vg-bottom-bar .menu-primary .sub-menu li a:hover {
    background: var(--accent);
    color: #fff;
}

/*!* Mega menu alignment *!*/
/*#mega-menu-primary > li:nth-last-child(2),*/
/*#mega-menu-primary > li:last-child { float: right !important; }*/
#mega-menu-wrap-primary #mega-menu-primary a.mega-menu-link { cursor: pointer; display: inline; text-transform: uppercase !important; }

/* ==========================================
   STICKY HEADER (entire header)
   ========================================== */
#vg-header-wrapper.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9990;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ==========================================
   MOBILE MENU
   ========================================== */
.responsive-navigation { padding: 10px 0; }
.tools_button { cursor: pointer; font-size: 22px; color: var(--heading); }

/* Mobile offcanvas */
.vg-menu {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100%;
    z-index: 99999;
    background: #fff;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    padding: 20px 0;
}
.vg-menu.open { display: block; }

.vg-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
}
.vg-menu-overlay.open { display: block; }

.vg-menu .mobile-navigation ul { list-style: none; margin: 0; padding: 0; }
.vg-menu .mobile-navigation ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--heading);
    border-bottom: 1px solid #f0f0f0;
}

/* Mobile submenu toggle */
.mobile-navigation .menu-item-has-children { position: relative; }
.mobile-navigation .more {
    position: absolute;
    right: 0; top: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--body);
}
.mobile-navigation .sub-menu { display: none; padding-left: 15px; }


/* Mobile menu close button — outside the right edge of menu */
.vg-menu .mobile-menu-close {
    position: fixed;
    top: 16px;
    left: 292px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 300;
    color: #1b1b1b;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50%;
    text-decoration: none;
    line-height: 1;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease, box-shadow 0.2s ease;
}
.vg-menu .mobile-menu-close:hover,
.vg-menu .mobile-menu-close:focus {
    background: #1b1b1b;
    color: #fff;
    transform: rotate(90deg);
    box-shadow: 0 6px 18px rgba(0,0,0,0.30);
}


/* Mobile search toggle button */
.mobile-search-toggle {
    display: none;
    color: var(--heading, #1b1b1b);
    font-size: 22px;
    padding: 10px 12px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}
.mobile-search-toggle:hover, .mobile-search-toggle:focus {
    color: var(--accent, #c7d8c6);
}
@media (max-width: 991px) {
    .mobile-search-toggle { display: inline-flex !important; }
}
.mobile-search-toggle:hover, .mobile-search-toggle:focus { color: #c7d8c6; }

/* Mobile search popup */
.mobile-search-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99998;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-search-popup.open { opacity: 1; visibility: visible; }
.mobile-search-inner {
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.mobile-search-inner input[type="search"], .mobile-search-inner input[name="s"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.mobile-search-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 36px;
    text-decoration: none;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}
.mobile-search-close:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); color: #fff; }
body.search-popup-open { overflow: hidden; }
@media only screen and (max-width: 992px) {
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        height: auto !important;
        line-height: 22px;
        padding: 10px !important;
        background: var(--nav-bg);
    }
    .vg-menu{
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }
}