/*
Theme Name:   Manufacturer Child
Theme URI:    elektrotehnoprom.com.ua
Description:  Child theme for Manufacturer
Author:       Webugol
Template:     manufacturer
Version:      1.0.0
Text Domain:  manufacturer-child
*/

#masthead {
    position: fixed!important;
    top: 0;
    left: 0;
    width: 100%;
    transition-duration: .25s;
}

header .ti-search {
    font-weight: 900;
    color: #fff;
    transition-duration: .25s;
}

header.scroll-down .ti-search,
.tax-product_cat #masthead .ti-search,
.post-type-archive #masthead .ti-search,
.single #masthead .ti-search,
.page-id-350 #masthead .ti-search,
.page-id-528 #masthead .ti-search,
.page-id-12510 #masthead .ti-search {
    color: #0d1024;
}

header.scroll-down,
.tax-product_cat #masthead,
.post-type-archive #masthead,
.single #masthead,
.page-id-350 #masthead,
.page-id-528 #masthead,
.page-id-12510 #masthead {
    background-color: #fff!important;
}

.man_logo_img {
    position: relative;
}

.man_logo_img:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url("/wp-content/uploads/2018/07/logo-1.webp");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    transition-duration: .25s;
}

.man_logo_img img {
    transition-duration: .25s;
    opacity: 1;
}

.scroll-down .man_logo_img img,
.tax-product_cat .man_logo_img img,
.post-type-archive .man_logo_img img,
.single .man_logo_img img,
.page-id-350 .man_logo_img img,
.page-id-528 .man_logo_img img,
.page-id-12510 .man_logo_img img {
    opacity: 0;
}

.scroll-down .man_logo_img:after,
.tax-product_cat .man_logo_img:after,
.post-type-archive .man_logo_img:after,
.single .man_logo_img:after,
.page-id-350 .man_logo_img:after,
.page-id-528 .man_logo_img:after,
.page-id-12510 .man_logo_img:after {
    opacity: 1;
}

.scroll-down .elementor-social-icon svg,
.tax-product_cat .elementor-social-icon svg,
.post-type-archive .elementor-social-icon svg,
.single .elementor-social-icon svg,
.page-id-350 .elementor-social-icon svg,
.page-id-528 .elementor-social-icon svg,
.page-id-12510 .elementor-social-icon svg {
    fill: #0d1024;
}

.elementor-social-icon svg,
.elementor-button-icon .e-font-icon-svg {
    transition-duration: .25s;
}


.scroll-down .main-header,
.tax-product_cat .main-header,
.post-type-archive .main-header,
.single .main-header,
.page-id-350 .main-header,
.page-id-528 .main-header,
.page-id-12510 .main-header {
    border-color: #ebebeb!important;
}

@media (max-width: 1024px) {
    header .sm_menu {
        top: 150px;
    }
}

@media (min-width: 1025px) {
    .scroll-down .sm_menu .menu-item:not(.contacts-modal-btn) a,
    .tax-product_cat .sm_menu .menu-item:not(.contacts-modal-btn) a,
    .post-type-archive .sm_menu .menu-item:not(.contacts-modal-btn) a,
    .single .sm_menu .menu-item:not(.contacts-modal-btn) a,
    .page-id-350 .sm_menu .menu-item:not(.contacts-modal-btn) a,
    .page-id-528 .sm_menu .menu-item:not(.contacts-modal-btn) a,
    .page-id-12510 .sm_menu .menu-item:not(.contacts-modal-btn) a {
        color: #0d1024!important;
    }
}

.admin-bar #masthead {
    top: 32px;
}

.sm_nav_menu > li.nav-btn > a:before,
.archive .woocommerce-products-header,
.archive .stm-products-catalog__filter .stm-sort-by-options {
    display: none;
}

header .sm_nav_menu > li.nav-btn > a,
.global-btn {
    display: inline-flex;
    padding: 8px 22px;
    background-color: #5872F7;
    border-radius: 10px;
    color: #fff!important;
    transition-duration: .25s;
}

header .sm_nav_menu > li.nav-btn > a:hover,
.global-btn:hover {
    background-color: #3F5AE4;
}

.man_adv_box .btn.btn_transparent {
    padding-right: 12px;
    padding-left: 12px;
    border-radius: 10px;
}

.man_adv_box .btn.btn_transparent i {
    margin-left: 8px;
}

.man_adv_box .btn.btn_transparent:hover {
    color: #fff!important;
}

.man_adv_box .man_adv_box_block_cont {
    padding: 42px 24px 56px;
}

.man_adv_box .man_adv_box_block_cont .pseudo-h2 + p {
    margin-top: 24px;
    margin-bottom: 40px;
}

.man_button_round .wpcf7-form [type="submit"] {
    border-radius: 10px!important;
}

.wpcf7-form > p {
    position: relative;
}

.wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.wpcf7 form.sent .wpcf7-response-output {
   visibility: hidden;
}

@media (min-width: 1025px) {
    .sm_nav_menu {
        display: flex;
        align-items: center;
    }
}

.post-type-archive-product .man_intro_cont {
    padding-top: 180px;
}

.hero-form .wpcf7-form-control-wrap {
    margin-bottom: 0;
}

.hero-form form > p {
    position: relative;
}

.hero-form .wpcf7-spinner {
    position: absolute;
    right: 3px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
}

.stm-products-main.grid .stm-product-item__image {
    height: 100%;
}

.stm-products-main .stm-product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
}

.stm-products-main.grid .stm-product-item .stm-product-item__content {
    padding: 24px 0 0;
}

.stm-products-main .stm-product-item img {
    object-fit: contain;
    height: 100% !important;
    max-width: none !important;
}

.home__category-item div {
    height: auto;
}

.home__category-item img {
    object-fit: contain;
    height: 44px;
    margin-bottom: 24px;
}

.home__category-item.home__category-tkd img {
    height: 54px;
    margin-bottom: 14px;
}

.product-custom-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 24px;
    text-align: center;
}

.product-custom-link p {
    margin-bottom: 0;
    color: #0d1024;
}

.elementor-block-hover-white:hover .product-custom-link p {
    color: #0d1024!important;
}

.product-hero__logo {
    height: 56px;
    width: auto;
    margin-bottom: -17px;
}

.ti-mobile + span a:hover,
.ti-email + span a:hover {
    color: #34AFDF;
}

.product-card {
    transition-duration: .25s;
}

.product-card > .elementor-widget-wrap {
    z-index: 1;
    overflow: hidden;
}

.product-card .elementor-button-icon svg {
    transition-duration: .25s;
}

.product-card:hover {
    transform: translateY(-16px);
}

.product-card:hover > .elementor-widget-wrap:after {
    background-color: rgb(0 20 67 / 80%);
}

.product-card > .elementor-widget-wrap:after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgb(0 20 67 / 40%);
    z-index: -1;
    transition-duration: .25s;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 100vh;
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    font-family: "Exo 2", sans-serif;
    overflow-y: auto;
}

.modal-content .h2 {
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    color: #3a426d;
}

.modal-content .wpcf7-submit {
    font-family: "Exo 2", sans-serif;
    background-color: #34AFDF;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border-radius: 80px;
    transition-duration: .25s;
}

.modal-content .wpcf7-submit:hover {
    background-color: #187296;
}

.modal-content span.wpcf7-spinner {
    position: absolute;
    right: 44px;
    margin: 12px 0 0;
}

.modal-content .wpcf7-not-valid-tip {
    margin-top: -6px;
    font-size: 12px !important;
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 32px;
    background: transparent;
    border-width: 0;
    cursor: pointer;
    line-height: 1 !important;
}

.archive .stm-products-catalog__filter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.archive .woocommerce-product-search {
    position: relative;
    width: 100%;
    margin-top: 24px;
}

.woocommerce-product-search .search-field {
    width: 100%;
    margin: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 36px;
}

.archive .woocommerce-product-search .search-btn {
    position: absolute;
    right: 0;
    top: 50%;
    display: flex;
    margin: 0 !important;
    padding: 8px;
    background-color: transparent !important;
    color: #3a426d;
    transform: translateY(-50%);
}

.archive .search__no-results .woocommerce-product-search {
    width: 50%;
    margin: 0 auto;
    min-width: 300px;
}

.search__no-results-buttons {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.search__no-results-buttons .global-btn {
    min-width: 160px;
    justify-content: center;
}


@media (max-width: 1024px) {
    .sm_menu {
        top: 100px;
    }

    .sm_menu_toggle_close {
        position: absolute;
        left: 50%;
        top: 14px;
        background-color: #5872f7;
        font-size: 18px;
        transform: translateX(calc(-50% - 5px));
    }

    .elementor-header .sm_menu_toggle:hover {
        background-color: #5872f7;
    }
}

@media (min-width: 768px) {
    .hero-form form > p {
        display: flex;
        column-gap: 16px;
        align-items: flex-end;
        margin-bottom: 0;
    }

    .hero-form form > p br {
        display: none;
    }

    .hero-form .wpcf7-submit {
        max-width: 160px;
    }

    .home__category-item div {
        height: 100%;
    }

    .archive .stm-products-catalog__filter {
        flex-direction: row-reverse;
        align-items: center;
    }

    .archive .woocommerce-product-search {
        width: 320px;
        margin-top: 0;
    }

    .archive .woocommerce-product-search .search-field {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

@media (min-width: 1025px) {
    .hero-form .wpcf7-spinner {
        right: 9px;
    }

    .stm-products-main .stm-product-item {
        height: 280px;
    }

    .home__category-item {
        transform: translateY(0);
        transition-duration: .25s;
    }

    .home__category-item:hover {
        transform: translateY(-16px);
    }

    img.product-hero__logo {
        height: 72px;
    }

    .product-custom-link {
        padding-bottom: 0;
    }

    .product-custom-link p {
        max-width: 118px;
        margin-right: auto;
        margin-left: auto;
    }

    .product-custom-link__big p {
        margin-right: auto;
        margin-left: auto;
        max-width: 65%;
    }

}

