/* --- WP Block Header
-------------------------------------------------------- */
header,
header>.block-editor-block-list__block {
    position: static !important;
}

body header .wp-site-logo.is-layout-flex,
body header .wp-site-logo {
    gap: 14px;
}

.wp-block-group.wp-site-logo {
    max-width: 400px;
}

header:before {
    z-index: 2 !important;
    max-height: 150px;
}

.wp-block-main-header .wp-block-buttons .is-style-outline> :where(.wp-block-button__link),
.wp-block-main-header .wp-block-buttons :where(.wp-block-button__link).is-style-outline {
    padding: 9px 28px;
}

header .wp-block-buttons .wp-block-button__link {
    margin-top: 0;
}



.woocommerce-account .header-transparent .wp-block-main-header .wp-block-group .wp-block-buttons .wp-block-button .wp-block-button__link::before {
    filter: none;
}

.header-transparent .wp-block-main-header .wp-block-group .wp-block-buttons .wp-block-button .wp-block-button__link::before {
    filter: invert(1);
}



.wp-header-right .wp-block-high-performance-pro-header-search,
.wp-header-right .wp-block-buttons.wp-block-account {
    display: none;
}

.wp-block-main-header .wp-block-high-performance-pro-header-search button:hover svg {
    fill: var(--wp--preset--color--text-link);
}


@media screen and (max-width: 1199px) {
    .items-justified-right.wp-block-navigation {
        --navigation-layout-justify: flex-start;
        --navigation-layout-justification-setting: flex-start;
    }
}

/* Clickable header transparent on editor */
header.block-editor-block-list__block:has(.header-transparent) {
    position: absolute !important;
    width: 100%;
    z-index: 999;
    min-height: 110px;
}

/* --- WP Block Site title Style
-------------------------------------------------------- */
.wp-block-site-title {
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--body-default);
    line-height: 1.458333333333333;
}

.wp-block-site-title a {
    text-decoration: none;
}

.wp-block-site-title a:hover,
.wp-block-site-title a:focus {
    color: var(--wp--preset--color--text-link);
}

.wp-block-site-tagline {
    opacity: 0.6;
}

/* --- WP Block Navigation Main
-------------------------------------------------------- */

@media screen and (max-width: 74.9375em) {}

.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block,
.block-editor-block-list__block .wp-block-navigation__container.block-editor-block-list__layout {
    width: auto !important;
}

.wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.wp-block-navigation-item__content.wp-block-navigation-item__content:focus,
.wp-block-navigation-submenu:hover>.wp-block-navigation-item__content:hover,
.wp-block-navigation-submenu:hover>.wp-block-navigation-item__content:focus,
.wp-block-navigation-submenu:focus>.wp-block-navigation-item__content,
.wp-block-navigation-submenu:hover>.wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item:hover>a,
.wp-block-navigation .wp-block-navigation-item:focus>a {
    text-decoration: none;
    color: var(--wp--preset--color--text-link) !important;
}

.wp-block-navigation .wp-block-navigation-item:hover .wp-block-navigation__submenu-icon svg,
.wp-block-navigation-submenu:hover .wp-block-navigation__submenu-icon svg,
.wp-block-navigation-submenu:hover>.wp-block-navigation__submenu-icon svg {
    stroke: var(--wp--preset--color--text-link) !important;
}

.wp-block-buttons-header .wp-block-buttons .wp-block-button .wp-block-button__link {
    margin-top: 0;
}

.wp-block-navigation .wp-block-navigation__submenu-container {
    padding: 7px 0;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    z-index: 4;
    width: 100%;
    border: 1px solid var(--wp--preset--color--border-default-color);
    top: 100%;
    padding: 14px 0;
    transition: all 0.4s;
    min-width: 240px;
    height: auto;
    box-sizing: border-box;

}

.wp-block-footer .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    top: auto;
    bottom: 100%;
}

.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container,
.wp-block-navigation.items-justified-right .wp-block-page-list>.has-child .wp-block-navigation__submenu-container,
.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,
.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container {
    left: auto;
    right: 0;
}

.wp-block-navigation .wp-block-navigation__submenu-container {
    min-width: 240px !important;
}

.wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container {
    top: 100%
}

.wp-block-footer .wp-block-navigation .has-child:hover .wp-block-navigation__submenu-container {
    top: auto;
}

.wp-block-centered-menu .wp-block-navigation {
    text-align: center;
}


.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    font-size: var(--wp--preset--font-size--extra-small);
    font-weight: var(--wp--custom--typography--font-weight--regular);
    text-transform: capitalize;
}


.wp-block-navigation.items-justified-space-between .wp-block-page-list>.has-child:last-child .wp-block-navigation__submenu-container,
.wp-block-navigation.items-justified-space-between>.wp-block-navigation__container>.has-child:last-child .wp-block-navigation__submenu-container {
    left: 0;
    right: auto;
}

.wp-block-main-header .wp-block-fse-pro-header-search,
.wp-block-main-header .wp-block-fse-pro-icons {
    display: none;
}


.wp-block-main-header .wp-block-navigation,
.wp-block-main-header .wc-block-mini-cart.wp-block-woocommerce-mini-cart {
    margin-left: auto;
}

.wp-block-main-header .wp-block-navigation .wp-block-navigation {
    margin: 0;
}

.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):focus>.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):focus-within>.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
    height: auto;
    min-width: 200px;
    opacity: 1;
    overflow: visible;
    visibility: visible;
    width: auto;
}

@media screen and (max-width:1199px) {
    .wp-block-main-header .wp-block-navigation.items-justified-center {
        --navigation-layout-justification-setting: flex-start;
        --navigation-layout-justify: flex-start;
    }
}

.wp-block-main-header .wc-block-mini-cart__button .wc-block-mini-cart__icon {
    height: 26px;
    width: 26px;
    color: var(--wp--preset--color--color-light);
}

.wp-block-main-header .wc-block-mini-cart__button:hover .wc-block-mini-cart__icon {

    color: var(--wp--preset--color--text-link);
}

/** Custom Header Search **/

.wp-block-main-header form.wp-block-search__button-outside.wp-block-search__icon-button.dummy-icon.wp-block-search {
    display: none
}

.wp-header-right .wp-block-search .wp-block-search__label {
    max-width: 1400px;
    display: block;
    font-size: var(--wp--custom--typography--font-size--heading-six);
    margin: 0 0 14px;
    font-weight: var(--wp--custom--typography--font-weight--medium);
    text-transform: capitalize
}

.dummy-icon .wp-block-search__button {
    padding: 5px;
    background-color: transparent;
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    transition: none;
    background-image: none
}

.dummy-icon .wp-block-search__button::after {
    display: none
}

.dummy-icon .wp-block-search__button svg {
    transition: none
}

.dummy-icon input {
    display: none
}

.search-toggle .search-popup .wp-block-search__button {
    z-index: 1;
    position: absolute;
    right: 14px;
    top: 10px
}

.search-toggle .search-popup .wp-block-search__button:hover {
    background-color: transparent
}

.search-toggle .wp-block-search__button {
    z-index: 1
}

.search-toggle .search-product {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
    visibility: visible;
    width: 100%;
    margin: 0 auto;
    padding: 0
}

.search-toggle .search-product input[type="search"] {
    border: none;
    opacity: 1;
    position: relative;
    padding: 0 14px;
    visibility: visible;
    box-sizing: border-box;
    height: 50px;
    border-radius: 0
}

.search-toggle .search-product input[type="search"]:focus {
    border: none
}

.search-toggle .wp-block-search button.wp-block-search__button {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: center
}

.search-toggle .search-product.wp-block-search button.wp-block-search__button:before {
    content: 'Search'
}

.search-toggle .wp-block-group.alignfull.wp-block-section.wp-block-popular-products.wp-product-showcase.is-layout-constrained {
    padding: 0;
    max-width: 1400px;
    width: 100%
}

.search-toggle .search-popup {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
    visibility: visible;
    margin-block-start: 0;
    z-index: 10;
    box-shadow: rgba(0, 0, 0, .04) 0 4px 6px -1px, rgba(0, 0, 0, .06) 0 2px 4px -1px
}

.search-container .dummy-icon.wp-block-search {
    margin-block-start: 0;
    padding: 0
}

.search-toggle .wp-header-right .wp-block-search__button::before {
    content: '';
    background-image: url(assets/images/close.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 12px;
    top: 12px;
    display: block;
    filter: invert(1)
}

.search-toggle .wp-header-right .dummy-icon .wp-block-search__button svg {
    opacity: 0
}

.wp-header-right {
    position: relative
}

.wp-header-right .wp-block-search__button svg {
    fill: var(--wp--preset--color--foreground);
    width: 32px;
    height: 32px
}

.wp-header-right .search-product .wp-block-search__button svg {
    fill: var(--wp--preset--color--foreground)
}

.search-product.wp-block-search {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    z-index: 3
}

.search-toggle .search-product.wp-block-search {
    opacity: 1;
    visibility: visible;
    top: 100%;
    margin-block-start: 0;
    background-image: var(--wp--preset--gradient--testimonial-bg-color);
    padding: 21px
}

.dummy-icon.wp-block-search {
    box-sizing: border-box;
    padding: 0
}

.search-product.wp-block-search .wp-block-search button.wp-block-search__button {
    background: transparent;
    padding: 0
}

.block-editor-block-list__block .wp-block-search button.wp-block-search__button {
    margin: 0;
    margin-left: auto
}

.wp-primary-search {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wp-primary-search .wp-search-toggle-container:has(a:focus-visible) {
    outline: -webkit-focus-ring-color auto 1px;
}

.wp-primary-search .wp-search-toggle-container .wp-search-toggle .wp-element-button {
    width: 16px;
    height: 17px;
    display: inline-block;
    -webkit-mask: url(assets/images/search.svg) no-repeat 50% 50%;
    mask-size: auto;
    mask: url(assets/images/search.svg) no-repeat 50% 50%;

    background-color: var(--wp--preset--color--color-light);
    // text-indent: -9999px;
    transition: 0.2s ease-in-out;

}

.wp-primary-search .wp-search-toggle-container:has(a:focus-visible) .wp-search-toggle .wp-element-button,
.wp-primary-search .wp-search-toggle-container:hover .wp-search-toggle .wp-element-button {
    background-color: var(--wp--preset--color--text-link);
}

.wp-primary-search .wp-search-container {
    position: absolute;
    top: 0;
    border: none;
    background-color: var(--wp--preset--color--color-dark);
    padding: 21px;
    margin: 0;
    z-index: 2;
    right: 0;
    left: auto;
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: 20vh;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}



.wp-primary-search .wp-search-toggle-container .wp-block-button__link {
    padding: 21px !important;
    border-radius: 0 !important;
    text-indent: -9999px;
    width: 42px;
    border: none;
    height: 42px;
    background-color: var(--wp--preset--color--color-light);

    &::before,
    &::after {
        display: none;
    }

    /* not CSS, skip */
}

.wp-primary-search .wp-search-toggle-container .wp-block-button__link:focus,
.wp-primary-search .wp-search-toggle-container .wp-block-button__link:focus-visible {
    outline: 2px solid var(--wp--preset--color--text-link);
    outline-offset: 4px;
    border-radius: 2px;
}

.wp-primary-search.toggled-on .wp-search-container {
    opacity: 1;
    visibility: visible;
    height: 60vh;
}

.wp-primary-search.toggled-on .wp-search-toggle .wp-element-button {
    -webkit-mask: url(assets/images/close.svg) no-repeat 50% 50%;
    mask-size: auto;
    mask: url(assets/images/close.svg) no-repeat 50% 50%;
    mask-size: auto;
    -webkit-mask-size: cover;
    mask-size: cover;
    width: 24px;
    height: 24px;
    background-color: var(--wp--preset--color--color-light);
    transform: scale(0.65);

    &:hover,
    &:focus {
        background-color: var(--wp--preset--color--text-link);
    }
}

.wp-primary-search.toggled-on .wp-search-toggle:focus-within {
    outline: -webkit-focus-ring-color auto 1px;

}

.wp-primary-search .wp-block-search__button {

    color: var(--wp--preset--color--color-light);
    border: none;
    font-size: var(--wp--preset--font-size--section-title);
    position: absolute;
    right: 15px;
    padding: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;

    width: 18px;
    height: 20px;
    display: inline-block;
    -webkit-mask: url(assets/images/search.svg) no-repeat 50% 50%;
    mask-size: auto;
    mask: url(assets/images/search.svg) no-repeat 50% 50%;
    mask-size: auto;
    -webkit-mask-size: cover;
    mask-size: cover;
    background-color: var(--wp--preset--color--color-light);
    text-indent: -9999px;

    transition: 0.2s ease-in-out;


    &:hover {
        background-color: var(--wp--preset--color--button-color);
    }

    svg {
        opacity: 0;
        visibility: hidden;
    }

    &:hover {
        color: var(--wp--preset--color--text-link);
    }
}

body::before {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    content: '';
    background-color: var(--wp--preset--color--night-rider);
    opacity: 0;
    z-index: 9;
    transition: all 0.4s;
    visibility: hidden;

}

body.show-search::before {
    opacity: 0.5;
    visibility: visible;
}

.wp-block-main-header form.wp-block-search__icon-button.wp-block-search {
    width: 95%;
    max-width: 1200px;
}

.wp-search-container .wp-block-search input {
    background: transparent;
    border: none;
    padding: 21px 50px 21px 0;
    border-bottom: 2px solid var(--wp--preset--color--body-text);
    color: #fff;
    font-size: var(--wp--preset--font-size--section-title);
    transition: all 0.4s;
    transition-delay: 0.3s;
}

.style-variation-dark .wp-search-container .wp-block-search input {

    border-bottom: 2px solid var(--wp--preset--color--border-default-color);

}

.wp-search-container .wp-block-search input:focus {
    border-bottom: 2px solid var(--wp--preset--color--meta);
}

.wp-search-container .wp-block-search__inside-wrapper {
    background: transparent;
    border: none;
    position: relative;
}

.wp-block-group.wp-primary-search.is-layout-flow.wp-block-group-is-layout-flow.toggled-on .wp-search-toggle {
    position: fixed;
    z-index: 10;
    right: 30px;
    top: 30px;
}

.admin-bar .wp-block-group.wp-primary-search.is-layout-flow.wp-block-group-is-layout-flow.toggled-on .wp-search-toggle {
    top: 60px;
}

.wp-block-search .wp-block-search__label {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--wp--preset--font-family--syne);
}

.wc-block-mini-cart .wc-block-mini-cart__amount {
    color: var(--wp--preset--color--color-light);
    font-size: var(--wp--preset--font-size--extra-small);

    &::before {
        content: "(";

    }

    &::after {
        content: ")";
    }
}

.woocommerce-page .wc-block-mini-cart .wc-block-mini-cart__amount,
.woocommerce .wc-block-mini-cart .wc-block-mini-cart__amount {
    color: var(--wp--preset--color--foreground);
}

.wp-block-group.wp-header-search-cart {
    gap: 0;
    margin-right: -10px;


    .wp-block-woocommerce-customer-account {

        color: var(--wp--preset--color--color-light);

        &:hover,
        &:focus {
            color: var(--wp--preset--color--text-link);

        }

        a {
            display: flex;
            align-items: center;
            color: var(--wp--preset--color--color-light);

            &:hover,
            &:focus {
                color: var(--wp--preset--color--text-link);
            }

            svg {
                width: 26px;
                height: 26px;
            }


        }
    }


}

.woocommerce-page .wp-block-group.wp-header-search-cart .wp-block-woocommerce-customer-account a {
    color: var(--wp--preset--color--foreground);

    &:hover,
    &:focus {
        color: var(--wp--preset--color--text-link);
    }
}

.header-transparent.block-editor-block-list__block {
    background-color: var(--wp--preset--color--foreground);
}

header .header-transparent.block-editor-block-list__block {
    background-color: transparent;
}