/**
 * Sticky header layout — custom classes only (no Elementor defaults).
 */
html.softro-has-admin-bar {
    margin-top: 0 !important;
}

body.softro-header-sticky.softro-has-admin-bar {
    padding-top: var(--softro-admin-bar-offset, 32px);
}

.softro-site-header-shell {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
    height: var(--softro-header-height, 70px);
    min-height: var(--softro-header-height, 70px);
    max-height: var(--softro-header-height, 70px);
    overflow: visible;
    line-height: 0;
}

.softro-site-page-shell,
.softro-site-content-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

/* .softro-site-content-wrap > .elementor {
    margin: 0 !important;
    padding: 0 !important;
} */

body.softro-header-sticky .softro-site-header-shell {
    pointer-events: none;
}

body.softro-header-sticky .softro-site-header-shell .site-header {
    pointer-events: auto;
}

body.softro-header-sticky .site-header[data-softro-header-two],
body.softro-header-sticky .site-header.softro-header-widget-shell {
    position: fixed;
    top: var(--softro-admin-bar-offset, 0);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.softro-header-widget-shell {
    margin: 0;
}

.softro-page-top-section {
    margin-top: 0 !important;
}

@media (max-width: 782px) {
    body.softro-header-sticky.softro-has-admin-bar {
        padding-top: var(--softro-admin-bar-offset, 46px);
    }
}

.site-header .header-search-results-inner {
    min-height: 48px;
}

.site-header .header-search-loading,
.site-header .header-search-empty {
    margin: 8px 0 4px;
    color: #6b6b6b;
    font-size: 14px;
    font-weight: 500;
}

.site-header .header-search-page-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 42px;
    color: #202020;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.site-header .header-search-page-link:hover {
    color: var(--red, #ed1b24);
}

.site-header .header-search-thumb img {
    object-fit: cover;
    display: block;
}

.site-header .header-search-title {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}

.site-header .header-search-page-link > span:last-child {
    margin-left: auto;
    color: #b8b8b8;
    font-size: 24px;
    font-weight: 300;
}

/* Tablet + mobile mega menu */
@media (max-width: 1100px) {
    .site-header .has-mega > .nav-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        line-height: 46px;
    }

    .site-header .has-mega > .nav-item .chevron {
        flex: 0 0 auto;
        margin-left: 12px;
        transition: transform 0.2s ease;
    }

    .site-header .has-mega > .nav-item[aria-expanded="true"] .chevron {
        transform: rotate(225deg) translate(-2px, -1px);
    }

    .site-header .has-mega > .mega-menu,
    .site-header .has-mega > .mega-menu2,
    .site-header .has-mega > .mega-menu3 {
        position: static;
        width: 100%;
        max-width: none;
        transform: none;
        margin: 8px 0 12px;
        padding: 16px;
        border: 1px solid #eeeeee;
        border-radius: 10px;
        box-shadow: none;
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        max-height: min(70vh, 520px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .has-mega > .mega-menu::before,
    .site-header .has-mega > .mega-menu2::before,
    .site-header .has-mega > .mega-menu3::before {
        display: none;
    }

    .site-header .has-mega > .mega-menu.is-open,
    .site-header .has-mega > .mega-menu2.is-open,
    .site-header .has-mega > .mega-menu3.is-open {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header .mega-menu .grid-design,
    .site-header .mega-menu3 .grid-design,
    .site-header .mega-menu3 .grid-design.three {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        width: 100%;
    }

    /* .site-header .mega-menu.is-open .elementor,
    .site-header .mega-menu2.is-open .elementor,
    .site-header .mega-menu3.is-open .elementor,
    .site-header .mega-menu.is-open .mega-column,
    .site-header .mega-menu2.is-open .mega-column,
    .site-header .mega-menu3.is-open .mega-column {
        display: block;
        width: 100%;
    } */

    .site-header .mega-menu.is-open .grid-design,
    .site-header .mega-menu3.is-open .grid-design,
    .site-header .mega-menu3.is-open .grid-design.three {
        display: grid;
    }

    .site-header .mega-column h3,
    .site-header .mega-menu2 h3 {
        margin-bottom: 14px;
        white-space: normal;
        font-size: 15px;
    }

    .site-header .mega-menu .tool-link,
    .site-header .mega-menu3 .tool-link,
    .site-header .mega-menu2 .edit-link {
        white-space: normal;
        min-height: 40px;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .site-header .mega-menu .tool-link img,
    .site-header .mega-menu3 .tool-link img,
    .site-header .mega-menu2 .edit-link img {
        flex: 0 0 auto;
        width: 32px;
        height: 32px;
        object-fit: contain;
    }
}

@media (max-width: 767px) {
    .site-header .mega-menu .grid-design,
    .site-header .mega-menu3 .grid-design,
    .site-header .mega-menu3 .grid-design.three {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .site-header .has-mega > .mega-menu,
    .site-header .has-mega > .mega-menu2,
    .site-header .has-mega > .mega-menu3 {
        padding: 14px;
        max-height: min(65vh, 460px);
    }
}

@media (max-width: 480px) {
    .site-header .mega-menu .tool-link,
    .site-header .mega-menu3 .tool-link,
    .site-header .mega-menu2 .edit-link {
        font-size: 13px;
        gap: 10px;
    }
}
