/* =========================================================
   HITECH IRONMONGERIES
   HEADER + PRODUCTS NAVIGATION
   ========================================================= */


/* =========================================================
   MAIN MENU
   ========================================================= */

.hitech-main-menu {
    align-items: center;
}

.hitech-main-menu > .menu-item {
    position: relative;
    margin-left: 24px;
}

.hitech-main-menu > .menu-item > a {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #222;
    font-weight: 500;

    text-decoration: none;
    white-space: nowrap;

    padding: 10px 0;

    transition: color .2s ease;
}

.hitech-main-menu > .menu-item > a:hover {
    color: #102B5C;
}


/* =========================================================
   PRODUCTS ARROW
   ========================================================= */

.hitech-dropdown-arrow {
    font-size: 12px;
    line-height: 1;
}


/* =========================================================
   PRODUCTS DROPDOWN
   ========================================================= */

.hitech-products-menu {
    position: relative;
}

.hitech-products-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    min-width: 270px;

    margin: 0;
    padding: 12px 0;

    list-style: none;

    background: #fff;

    box-shadow: 0 10px 35px rgba(0, 0, 0, .12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;

    z-index: 100000;
}


/* Open Products dropdown */

.hitech-products-menu:hover > .hitech-products-dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   PRODUCT CATEGORY ITEMS
   ========================================================= */

.hitech-category-menu-item {
    position: relative;

    list-style: none;
}

.hitech-category-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 20px;

    color: #222;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease;
}

.hitech-category-menu-item > a:hover {
    background: #f5f5f5;

    color: #102B5C;
}


/* =========================================================
   SECOND / THIRD LEVEL SUBMENUS
   ========================================================= */

.hitech-category-menu-item.has-children > .hitech-submenu {
    position: absolute;

    top: -12px;
    left: 100%;

    min-width: 250px;

    margin: 0;
    padding: 12px 0;

    list-style: none;

    background: #fff;

    box-shadow: 0 10px 35px rgba(0, 0, 0, .12);

    opacity: 0;
    visibility: hidden;

    transform: translateX(8px);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;

    z-index: 100001;
}


/* Open submenu */

.hitech-category-menu-item.has-children:hover > .hitech-submenu {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* =========================================================
   SUBMENU ARROW
   ========================================================= */

.hitech-menu-arrow {
    margin-left: 20px;

    color: #32b57f;

    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   HEADER
   ========================================================= */

/*
 * IMPORTANT:
 *
 * The entire header stack is fixed by:
 *
 * #hitech-header-stack
 *
 * Therefore #site-header MUST NOT be fixed.
 */

#site-header {

    position: relative !important;

    top: auto !important;
    left: auto !important;
    right: auto !important;

    width: 100%;

    margin: 0;

    background: #fff;

    border-bottom: 1px solid #eeeeee;

    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);

    z-index: 2;
}


/* =========================================================
   HEADER INNER ELEMENTS
   ========================================================= */

#site-header .container,
#site-header .navbar,
#site-header .navbar-collapse {

    background: #fff;
}


/* =========================================================
   NAVBAR
   ========================================================= */

#site-header .navbar {

    min-height: 90px;

    padding: 8px 0;

    margin: 0;
}


/* =========================================================
   LOGO
   ========================================================= */

#site-header .navbar-brand {

    display: flex;
    align-items: center;

    flex-shrink: 0;

    margin-right: 45px;

    padding: 0;
}

#site-header .navbar-brand img.site-logo {

    display: block;

    width: auto;

    height: 70px;

    max-height: 70px;
}


/* =========================================================
   NAVIGATION AREA
   ========================================================= */

#site-header .navbar-collapse {

    flex-grow: 1;
}

#site-header .hitech-main-menu {

    display: flex;
    align-items: center;

    margin-left: 0;
}


/* =========================================================
   REQUEST QUOTE
   ========================================================= */

#site-header .btn-primary {

    margin-left: 25px !important;

    white-space: nowrap;
}


/* =========================================================
   STICKY CLASS
   ========================================================= */

/*
 * theme.js may still add the .sticky class.
 *
 * We deliberately keep the class harmless because the
 * parent #hitech-header-stack is already fixed.
 */

#site-header.sticky {

    position: relative !important;

    top: auto !important;
    left: auto !important;
    right: auto !important;

    width: 100%;

    margin: 0;

    background: #fff;

    border-bottom: 1px solid #eeeeee;

    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);

    z-index: 2;
}


/*
 * Do NOT shrink the header when sticky.
 *
 * This prevents the logo/menu from jumping when scrolling.
 */

#site-header.sticky .navbar {

    min-height: 90px;

    padding: 8px 0;
}

#site-header.sticky .navbar-brand img.site-logo {

    height: 70px;

    max-height: 70px;
}

#site-header.sticky .hitech-main-menu > .menu-item > a {

    color: #222;
}

#site-header.sticky .btn-primary {

    color: #fff;
}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

@media (max-width: 991px) {

    #site-header {

        position: relative !important;

        top: auto !important;
        left: auto !important;
        right: auto !important;
    }


    #site-header .navbar {

        min-height: 80px;

        padding: 10px 0;
    }


    #site-header .navbar-brand {

        margin-right: 0;
    }


    #site-header .navbar-brand img.site-logo {

        height: 60px;

        max-height: 60px;
    }


    /* Mobile navigation */

    #site-header .hitech-main-menu {

        align-items: stretch;

        padding-top: 15px;
    }

    #site-header .hitech-main-menu > .menu-item {

        margin-left: 0;

        border-bottom: 1px solid #eee;
    }

    #site-header .hitech-main-menu > .menu-item > a {

        padding: 13px 0;
    }


    /* Mobile Products dropdown */

    .hitech-products-dropdown,
    .hitech-category-menu-item.has-children > .hitech-submenu {

        position: static;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        transform: none;

        display: none;
    }


    /* Mobile Products */

    .hitech-products-menu:hover > .hitech-products-dropdown {

        display: block;
    }

    .hitech-category-menu-item.has-children:hover > .hitech-submenu {

        display: block;
    }


    /* Mobile category links */

    .hitech-category-menu-item > a {

        padding: 11px 15px;
    }


    /* Mobile Request Quote */

    #site-header .btn-primary {

        display: inline-block;

        margin: 20px 0 15px !important;
    }


    /* Sticky class remains normal */

    #site-header.sticky {

        position: relative !important;

        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    #site-header.sticky .navbar {

        min-height: 80px;

        padding: 10px 0;
    }

    #site-header.sticky .navbar-brand img.site-logo {

        height: 60px;

        max-height: 60px;
    }

}


/* =========================================================
   WORDPRESS ADMIN BAR
   ========================================================= */

/*
 * IMPORTANT:
 *
 * The admin bar moves the ENTIRE header stack.
 * We do NOT move #site-header separately.
 */

body.admin-bar #hitech-header-stack {

    top: 32px !important;
}



/* =========================================================
   FINAL HITECH STICKY HEADER STACK
   ========================================================= */

#hitech-header-stack {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    z-index: 99999 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #fff;
}


/* Top bar stays inside the fixed stack */

#hitech-header-stack .top-bar {
    position: relative !important;

    top: auto !important;
    left: auto !important;
    right: auto !important;

    width: 100% !important;

    margin: 0 !important;
}


/* Main menu stays directly below top bar */

#hitech-header-stack #site-header {
    position: relative !important;

    top: auto !important;
    left: auto !important;
    right: auto !important;

    width: 100% !important;

    margin: 0 !important;

    background: #fff !important;
}


/* WordPress admin bar */

body.admin-bar #hitech-header-stack {
    top: 32px !important;
}


/* Page clearance */

body {
    padding-top: 130px;
}

body.admin-bar {
    padding-top: 162px;
}
@media (max-width: 782px) {

    body.admin-bar #hitech-header-stack {

        top: 46px !important;
    }

}

/* =========================================================
   FINAL HITECH STICKY HEADER STACK
   ========================================================= */

#hitech-header-stack {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    z-index: 99999 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #fff;
}


/* Top bar stays inside the fixed stack */

#hitech-header-stack .top-bar {
    position: relative !important;

    top: auto !important;
    left: auto !important;
    right: auto !important;

    width: 100% !important;

    margin: 0 !important;
}


/* Main menu stays directly below top bar */

#hitech-header-stack #site-header {
    position: relative !important;

    top: auto !important;
    left: auto !important;
    right: auto !important;

    width: 100% !important;

    margin: 0 !important;

    background: #fff !important;
}


/* WordPress admin bar */

body.admin-bar #hitech-header-stack {
    top: 32px !important;
}


/* Page clearance */

body {
    padding-top: 130px;
}

body.admin-bar {
    padding-top: 162px;
}

/* =========================================================
   DROPDOWN VISIBILITY
   Allow product menus to extend outside fixed header
   ========================================================= */

#hitech-header-stack,
#hitech-header-stack #site-header,
#hitech-header-stack #site-header .container,
#hitech-header-stack #site-header .navbar,
#hitech-header-stack #site-header .navbar-collapse {
    overflow: visible !important;
}


/* =========================================================
   PRODUCT DROPDOWN
   ========================================================= */

#hitech-header-stack .hitech-products-menu {
    position: relative !important;
}

#hitech-header-stack .hitech-products-dropdown {
    z-index: 1000000 !important;
}


/* =========================================================
   CHILD SUBMENUS
   ========================================================= */

#hitech-header-stack
.hitech-category-menu-item.has-children {
    position: relative !important;
}

#hitech-header-stack
.hitech-category-menu-item.has-children > .hitech-submenu {
    z-index: 1000001 !important;
}


/* =========================================================
   HOVER STATE
   ========================================================= */

#hitech-header-stack
.hitech-products-menu:hover
> .hitech-products-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

#hitech-header-stack
.hitech-category-menu-item.has-children:hover
> .hitech-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}
/* =========================================================
   HITECH — MOBILE HEADER
   ========================================================= */

@media (max-width: 991px) {

    /*
     * Keep the header stack in normal document flow.
     */
    #hitech-header-stack {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;

        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;

        z-index: 99999 !important;
    }


    /*
     * Top contact/social bar scrolls away normally.
     */
    #hitech-header-stack .top-bar {
        position: relative !important;

        top: auto !important;
        left: auto !important;
        right: auto !important;

        width: 100% !important;
    }


    /*
     * Main navigation.
     *
     * IMPORTANT:
     * Do not use position: sticky here because
     * #site-header is inside a wrapper that ends
     * immediately after the header.
     */
    #hitech-header-stack #site-header,
    #hitech-header-stack #site-header.sticky {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        z-index: 999999 !important;

        background: #fff !important;

        margin: 0 !important;

        border-bottom: 1px solid #eeeeee !important;

        box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    }


    /*
     * Mobile navbar size.
     */
    #hitech-header-stack #site-header .navbar,
    #hitech-header-stack #site-header.sticky .navbar {
        min-height: 80px !important;

        padding: 10px 0 !important;
    }


    /*
     * Mobile logo.
     */
    #hitech-header-stack #site-header .navbar-brand img.site-logo,
    #hitech-header-stack #site-header.sticky .navbar-brand img.site-logo {
        height: 60px !important;

        max-height: 60px !important;
    }


    /*
     * Remove desktop sticky behaviour.
     */
    #hitech-header-stack #site-header.sticky {
        transform: none !important;
    }


    /*
     * Prevent page content from going underneath
     * the fixed mobile navigation.
     */
    body {
        padding-top: 80px !important;
    }

    body.admin-bar {
        padding-top: 80px !important;
    }
}


/* =========================================================
   WORDPRESS ADMIN BAR — MOBILE
   ========================================================= */

@media (max-width: 782px) {

    #hitech-header-stack #site-header,
    #hitech-header-stack #site-header.sticky {
        top: 46px !important;
    }

    body.admin-bar {
        padding-top: 126px !important;
    }
}

/* =========================================================
   HITECH — MOBILE KEEP ENTIRE HEADER STICKY
   ========================================================= */

@media (max-width: 991px) {

    #hitech-header-stack {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        z-index: 99999 !important;

        background: #fff !important;
    }

    #hitech-header-stack .top-bar {
        position: relative !important;

        top: auto !important;
        left: auto !important;
        right: auto !important;

        width: 100% !important;
    }

    #hitech-header-stack #site-header {
        position: relative !important;

        top: auto !important;
        left: auto !important;
        right: auto !important;

        width: 100% !important;
    }

    body {
        padding-top: 130px !important;
    }
}


/* WordPress admin bar */
@media (max-width: 782px) {

    body.admin-bar #hitech-header-stack {
        top: 46px !important;
    }

    body.admin-bar {
        padding-top: 176px !important;
    }
}
/* =========================================================
   GTRANSLATE TOP BAR
========================================================= */

.hitech-language-top-bar {
    display: block !important;
    width: 100% !important;
}

.hitech-language-top-bar .container {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

.hitech-language-selector {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
}

.hitech-language-selector .gtranslate_wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
}

@media (max-width: 991px) {
    .hitech-language-top-bar {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
    }

    .hitech-language-top-bar .container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hitech-language-selector,
    .hitech-language-selector .gtranslate_wrapper {
        display: flex !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* GTranslate — force language selector to far right of top bar */
.hitech-language-top-bar {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.hitech-language-top-bar > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.hitech-language-selector {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.hitech-language-selector .gtranslate_wrapper {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* GTranslate: absolute right position inside top bar */
.hitech-language-top-bar {
    position: relative !important;
}

.hitech-language-top-bar .container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hitech-language-selector {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    width: auto !important;
    z-index: 10 !important;
}

.hitech-language-selector .gtranslate_wrapper {
    margin: 0 !important;
}


#hitech-header-stack{display:flex!important;flex-direction:column!important}#hitech-header-stack .hitech-language-top-bar{order:1!important;flex:0 0 40px!important;height:40px!important;min-height:40px!important}#hitech-header-stack #site-header{order:2!important}@media (min-width:992px){#hitech-header-stack #site-header,#hitech-header-stack #site-header.sticky{top:40px!important}}

/* =========================================================
   HITECH — COMPACT GTRANSLATE TOP BAR
========================================================= */

#hitech-header-stack {
    display: flex !important;
    flex-direction: column !important;
}

#hitech-header-stack .hitech-language-top-bar {
    position: relative !important;
    display: block !important;
    flex: 0 0 40px !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#hitech-header-stack .hitech-language-top-bar > .container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

#hitech-header-stack .hitech-language-selector {
    position: absolute !important;
    top: 50% !important;
    right: 20px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20 !important;
}

#hitech-header-stack .hitech-language-selector .gtranslate_wrapper {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#hitech-header-stack #site-header {
    position: relative !important;
    top: auto !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
}

#hitech-header-stack #site-header.sticky {
    top: auto !important;
}

body {
    padding-top: 170px !important;
}

body.admin-bar {
    padding-top: 202px !important;
}

@media (max-width: 991px) {
    #hitech-header-stack .hitech-language-top-bar {
        flex-basis: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }

    #hitech-header-stack .hitech-language-top-bar > .container {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }

    #hitech-header-stack .hitech-language-selector {
        right: 15px !important;
    }

    body {
        padding-top: 130px !important;
    }

    body.admin-bar {
        padding-top: 176px !important;
    }
}

/* HITECH — GTranslate flag spacing */
.hitech-language-selector a.gt-current-lang,
.hitech-language-selector a[data-gt-lang] {
    margin-left: 8px !important;
}

.hitech-language-selector a.gt-current-lang:first-child,
.hitech-language-selector a[data-gt-lang]:first-child {
    margin-left: 0 !important;
}



/* =========================================================
   QUOTE LIST
   ========================================================= */

#site-header .hitech-quote-list-nav {

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #222;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
}

#site-header .hitech-quote-list-nav:hover {

    color: #32b57f;
    text-decoration: none;
}

#site-header .hitech-quote-list-count {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 21px;
    height: 21px;

    padding: 0 6px;

    border-radius: 50%;

    background: #32b57f;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 991px) {

    #site-header .hitech-quote-list-nav {

        margin-left: 0 !important;
        margin-top: 10px;
    }

}
