/* Vertically center header items */
.ct-header .ct-header-container,
.ct-header-start,
.ct-header-middle,
.ct-header-end,
.ct-header-middle .widget,
.mega-menu-currency-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
		
}

/* Header container */
.ct-header .ct-header-container {
    justify-content: space-between;
}

/* Logo adjustments */
.ct-header .site-branding img {
 
	flex-shrink: 1; 
    flex-grow: 1; 
    min-width: 80px; 
    min-height: 60px;
    max-height: 80px; 
    max-width: 100%;
}

.mega-menu-currency-wrapper{
	
	margin-left: 40px;
	padding-top: 5px;
}
.mega-menu-wrap .mega-menu > li > a {
    font-size: 14px !important;
}



/* When the screen width is 1024px or smaller */
@media (max-width: 1400px) {
    .mega-menu-wrap .mega-menu > li > a {
        font-size: 13px !important;
    }
}

@media (max-width: 1300px) {
    .mega-menu-wrap .mega-menu > li > a {
        font-size: 12px !important;
    }
}




@media (max-width: 1200px) {
    .mega-menu-wrap .mega-menu > li > a {
        font-size: 11px !important;
    }
}

/* Adjust logo size on smaller screens */
@media (max-width: 768px) {
    .ct-header .site-branding img {
        max-height: 50px;
        min-height: 35px;
    }
}

@media (max-width: 480px) {
    .ct-header .site-branding img {
        max-height: 40px;
        min-height: 30px;
    }
}


/* Middle column adjustments */
.ct-header-middle {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}

.selectron23 {
    margin-top: 10px;
}

/* Megamenu adjustments */
.mega-menu {
    display: flex;
    flex-wrap: nowrap;
    flex-grow: 1;
    min-width: 0;
}


/* Force the off-canvas panel to full height on mobile */
@media (max-width: 768px) {
    /* Targeting the off-canvas container when active */
    #offcanvas.ct-panel.ct-header.active {
        display: block !important; /* Remove any flex display if inherited */
        position: fixed; 
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow-y: auto;
        background: #fff; /* Ensure background is defined for clarity */
        z-index: 99999; /* Make sure it's above other elements */
    }

    /* The inner panel content can also be ensured full height if needed */
    #offcanvas.ct-panel.ct-header.active .ct-panel-content,
    #offcanvas.ct-panel.ct-header.active .ct-panel-content-inner {
        height: auto;
    }

    /* If necessary, reset alignment on the header or panel elements inside */
    #offcanvas.ct-panel.ct-header.active .ct-panel-inner {
        align-items: flex-start;
        justify-content: flex-start;
    }
	
	#mega-menu-wrap-menu_1 {
		display: none;
		}
}