/*
Theme Name:   Machic Child
 Theme URI:    http://klbtheme.com/machic/
 Description:  Machic Child Theme
 Author:       KlbTheme
 Author URI:   http://themeforest.net/user/KlbTheme
 Template:     machic
 Version:      1.0.1.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  machic-child
*/

:root {
    --content-width: min(100%, var(--container-max-width, 1140px));
    --color-primary: #1860A1;
    --color-shop-button: #1860A1;
    --color-border-bold: 1px solid #b4b5b6;
    --color-border-light: 1px solid #e5e5e5;
    --display: block;
}

/* ===== Featured Testimonials (empty state) ===== */
.featured-testimonials-section .testimonials-grid {
    display: grid;
    gap: 24px;
}
.featured-testimonials-section .testimonials-grid.has-posts {
    grid-template-columns: repeat(3, 1fr);
}
.featured-testimonials-section .testimonials-grid.is-empty {
    grid-template-columns: 1fr;
    justify-items: center;
}
.featured-testimonials-section .testimonial-column--empty {
    width: 100%;
    max-width: 640px;
}
.featured-testimonials-section .testimonial-card--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
}
.featured-testimonials-section .testimonial-card--empty .testimonial-content {
    width: 100%;
    flex: unset;
}

.custom-sidebar .widget-title,
.widget_product_categories .widget-title {
    display: none;
}

.site-footer .footer-widgets .widget {
	font-size: .875rem;
}

.custom-sidebar .product-categories,
.widget_product_categories .product-categories {
    border: var(--color-border-bold);
    border-radius: 10px;
    list-style: none;
    padding-left: 0;
}

.custom-sidebar .product-categories li a,
.widget_product_categories .product-categories li a,
.shop-content .site-sidebar .widget ul li a {
    display: block;
    padding: 10px;
    border-bottom: var(--color-border-bold);
    font-size: 14px;
    color: var(--color-link);
}

.shop-content .site-sidebar .widget ul > li + li {
    margin-top: 0;
}

.custom-sidebar .product-categories li:last-child a,
.widget_product_categories .product-categories li:last-child a,
.custom-sidebar .product-categories li:last-child a, 
.widget_product_categories .product-categories li:last-child a, 
.shop-content .site-sidebar .widget ul li:last-child a {
    border-bottom: none;
}

.header-desktop .header-main,
.header-desktop .header-nav > .container {
    max-width: var(--content-width);
    margin: 0 auto;
}

.header-type1 .header-desktop .header-main {
    background-color: transparent;
}

.header-type1 .header-desktop .header-addons-icon,
.header-type1 .header-desktop .header-addons-text .sub-text,
.header-type1 .header-desktop .header-addons-text .primary-text {
    color: var(--color-primary);
}

h2 .text-primary {
    color: var(--color-primary)!important;
}

.premium-blog-thumb-effect-wrapper {
    max-height: 174px;
    overflow: hidden;
}

.site-header .header-wrapper {
    justify-content: center;
}

.product-buttons,
.single-product-wrapper .product-info-top .product-actions,
.yith_ywraq_add_item_browse_message {
    display: none;
}

.yith-ywraq-add-to-quote a, 
.yith_ywraq_add_item_browse_message a {
    font-size: inherit!important;
}

.yith-ywraq-add-to-quote .ajax-loading[style*="visibility:hidden"] {
    display: none;
}

.yith-ywraq-add-button {
    text-align: center;
    position: relative;
    height: 100%;
}

.yith-ywraq-add-button .add-request-quote-button {
    height: 100%;
    line-height: 1.25;
}

.yith-ywraq-add-button .add-request-quote-button,
.btn-offer {
    min-height: 46px;
}

.yith-ywraq-add-button .ajax-loading {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.btn-secondary {
    background:#eee;
    border-color:#eee;
    color:#333;
    line-height: 1.3;
    padding: 4px 15px;
    height: auto;
}

.shop-content .content-wrapper.sidebar-left .site-sidebar::before {
    display: none;
}

.product-meta {
    padding: 4px 0;
}

.product-meta span {
    font-size: .825rem;
    color: var(--color-primary);
}

.product-meta span:first-of-type {
    font-weight: 600;
}

.product-meta span:last-of-type {
    color: #000;
}

.product-meta .product-meta-content {
    display: inline-block;
    margin-left: 4px;
}

.product-meta + .product-meta {
    border-top: var(--color-border-light);
}

.products:not(.list-view-products) .product.product-type-simple,
.products:not(.list-view-products) .product .product-wrapper.product-type-1 {
    display: flex;
}

.products:not(.list-view-products) .product.product-type-simple .product-content,
.products:not(.list-view-products) .product.product-type-simple .product-content .content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: 0;
}

.single-product-wrapper form.cart .add_to_cart_button,
.woocommerce.single-product button.single_add_to_cart_button.button {
    margin-left: 0;
    margin-right: 0;
}

.single-product-wrapper .btn-cart-action,
.single-product-wrapper .btn-complimentary-action {
    border-radius: 4px;
    height: 46px;
}

.single-product-wrapper .btn-secondary a {
    color: #333;
}

.single-product-wrapper .btn-secondary:hover a {
    color: #fff;
}

.widget_klb_products_list .products:not(.list-view-products) .product.product-type-simple .product-content {
    flex-direction: row;
}

.widget_klb_products_list .product-title {
    max-height: 40px;
    overflow: hidden;
}

.widget_klb_products_list .content-wrapper {
    margin-right: 20px;
}

.widget_klb_products_list .price {
    flex-direction: row;
}

.widget_klb_products_list .content-wrapper span.price {
    color: var(--color-primary);
}

.products:not(.list-view-products) .product.product-type-simple .product-content .product-title {
    flex-grow: 1;
}

.products:not(.list-view-products) .product.product-type-simple .product-content .product-price-cart {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

.products.list-view-products .product {
    padding: 20px;
}

.products.list-view-products .product .thumbnail-wrapper {
    padding: 0;
}

.products.list-view-products .product .content-wrapper {
    padding-bottom: 0;
}

.products.list-view-products .product .product-title {
    margin-top: -5px;
}

.products.list-view-products .product .product-meta > * {
    position: relative;
    color: var(--color-text-light);
}

.products.list-view-products .product .product-footer-buttons a:not(.add_to_cart_button):not(.added_to_cart),
.products.list-view-products .product .product-list-details {
    display: none;
}

.products .product-link--helper {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.products .product-price-cart a.add_to_cart_button {
	z-index: 3;
}

.products.list-view-products .product .product-footer-buttons.style-2 {
    justify-content: flex-end;
}

.product-meta:empty {
    display: none;
}

.products:not(.list-view-products) .product:hover .product-footer {
    opacity: 0;
    visibility: hidden;
}

.product-card .hover-slider-init {
    border-radius: 6px;
}

.single-product-wrapper .related-products .product-meta:not(:empty) {
    display: block;
}

.home .elementor-element-e29c9af.e-flex > .e-con-inner,
.home .elementor-element-ee8cb81.e-flex > .e-con-inner {
    display: flex;
    flex-direction: row;
}

.home .e-con.elementor-element-7ee0831,
.home .site-content .e-con.e-child .custom-sidebar {
    width: 290px;
}

.home .elementor-element-be99840 {
    max-width: 820px;
}

.product-categories {
	margin-bottom: 0;
}

.home .elementor-widget + .elementor-widget:not(.elementor-widget-machic-banner-box) {
    margin-top: 15px;
}

.home .elementor-element .elementor-widget-container .premium-blog-wrap .premium-blog-post-outer-container {
    padding-right: 0;
    padding-left: 0;
    width: calc(25% - 15px);
}

.home .premium-blog-wrap.premium-blog-even {
    gap: 10px;
    justify-content: center;
}

.home .premium-blog-wrap.premium-blog-even .premium-blog-post-author,
.home .premium-blog-wrap.premium-blog-even .premium-blog-meta-separator,
.home .premium-blog-wrap.premium-blog-even .premium-blog-post-categories,
.home .premium-blog-wrap.premium-blog-even .premium-blog-post-comments {
    display: none;
}

.elementor-element-3f994dd.e-con-full.e-grid.e-con.e-child {
    display: grid;
    gap: 10px;
}

.widget_product_categories,
.widget_custom_html,
.elementor-widget-machic-icon-list {
    margin-bottom: 1.625rem;
}

.widget_custom_html .banner-image {
    height: 390px;
}

.widget_custom_html .banner-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.home .elementor-widget-machic-product-grid:not(.elementor-widget-machic-banner-box) + .elementor-widget-machic-product-grid { 
    margin-top: 1.625rem;
}

.home .premium-blog-thumbnail-container img {
    max-height: 180px;
}

.home .premium-blog-even .premium-blog-post-container {
    max-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home .premium-blog-post-container.premium-blog-skin-modern .premium-blog-content-wrapper {
    top: auto;
    min-height: 244px;
}

.site-footer .footer-widgets .widget {
    color: #fff;
}

.site-footer .klbfooterwidget.widget.widget_media_image {
    max-width: 240px;
}

.testimonials-pagination {
    margin-top: 2.75rem;
}

.premium-blog-entry-meta {
    position: absolute;
    background-color: #ffbd27;
    color: #fff;
    padding: 6px 10px;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.premium-blog-post-container:not(.premium-blog-skin-classic):not(.premium-blog-skin-side):not(.premium-blog-skin-banner) .premium-blog-content-wrapper {
    margin: 0;
}

.home .widget_custom_html .banner-image img {
    height: 100%;
    object-fit: cover;
}

.banner.medium.bordered  {
	border: none;
	box-shadow: 0 25px 25px -15px rgba(0,0,0,.15);
}

.flex-grow-1 {
    flex-grow: 1;
}

.cat-item-15,
.cat-item-240,
.cat-item-239,
.home .widget-shop-features {
    display: none;
}

.home .widget-promo-banner-complimentary {
    max-height: 200px;
    overflow: hidden;
}

.tax-product_cat .widget-promo-banner-complimentary,
.site-header .header-addons.cart-button:hover .cart-dropdown {
    display: none;
}

/** Plugin styles */

.yith_ywraq_add_item_response_message {
    text-align: center;
    font-size: 14px;
    padding: 0 10px;
}

.yith_ywraq_add_item_browse_message {
    display: block;
    text-align: center;
    font-size: 14px;
}

.ywraq-form-table-wrapper .yith-ywraq-mail-form-wrapper {
    padding: 20px 0;
}

.woocommerce.single-product .product .yith-ywraq-add-to-quote {
    margin-top: 0;
    font-size: 14px;
}

.woocommerce.single-product .buy_now_button {
    border: none;
    font-weight: 500;
    font-family: var(--font-primary);
}

.woocommerce.single-product .buy_now_button:hover {
    background-color: var(--color-shop-button-active);
}

.single-product-wrapper .product-info-top form.cart, 
form.variations_form .single_variation_wrap {
    margin-bottom: 0;
}



.button-secondary {
    background-color: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.button-secondary:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.wb_cptb_content .wpcf7-form {
	max-width: 65%;
}

#lidd_mc_inspector {
    cursor: pointer;
}

#lidd_mc_submit {
    margin-right: 10px;
    border: none;
}

#mortgage-calculator-modal .modal-content {
	padding-top: 10px;
}

/**
    Hide conditional groups until they are needed
 */
.conditional-group[data-condition] {
    display: none;
}

/** 
    Initially hide social share, then show when moved to the correct position
    See functions.php for more details
 */
.single-product-container .social-share {
    display: none;
    margin-top: 0;
    flex-grow: 1;
    text-align: center;
}

.refer-to-friend {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 50%;
}

.refer-to-friend .btn-refer-to-friend {
    flex-grow: 1;
}

.product_meta.product-categories {
    display: none;
}

.module-title .entry-content {
    max-width: none;
}

.entry-subtitle:empty {
    display: none;
}

/** 
    Initially hide offer button, then show when moved to the correct position
    See functions.php for more details
 */
.yith-ywraq-add-to-quote {
    display: none;
}

.yith-ywraq-add-to-quote + .clear {
    display: none;
}

.cart.single-ajax {
    display: flex;
    gap: 10px;
    width: 100%;
}

.cart.single-ajax .button {
    flex-grow: 1;
}

.cart.single-ajax .quantity {
    display: none;
}

.additional_information_tab {
    display: none;
}

.gmwqp_popup_op_form {
    max-width: 500px;
    background-color: var(--color-theme-light);
    border-radius: var(--size-border-radius);
    padding: 20px;
}

.gmwqp_popup_op_form .gmqqp_input {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    letter-spacing: -0.03px;
    width: 100%;
    height: 2.5rem!important;
    padding: 0 0.9375rem;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid var(--color-form-border)!important;
    border-radius: var(--size-form-radius)!important;
}

.gmwqp_popup_op_form textarea.gmqqp_input {
    height: 100px!important;
    padding: 0.9375rem;
}

.gmwqp_popup_op_form .gmqqp_submit_btn {
    border-radius: var(--size-form-radius);
    border: none;
}

.elementor-widget-sidebar .product-categories {
    white-space: nowrap;
}

@media screen and (min-width: 64rem) {
    .site-footer {
        margin-top: 3.1875rem;
    }

    .site-footer .footer-widgets {
        padding-top: 5.25rem;
        padding-bottom: 5.25rem;
    }

    body.elementor-default[class*="elementor-page-"] .container > .row {
        justify-content: center;
    }

    #main .shop-content .content-wrapper.sidebar-left .site-sidebar .widget-body,
    #main .shop-content .content-wrapper.sidebar-left .site-sidebar .widget {
        padding-right: 0;
    }

    .banner.vertical .banner-content {
        padding: 1.5rem;
    }

    .products.column-3 {
        justify-content: space-between;
    }

    .single-product-wrapper .product-info-top {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
        padding-top: 1rem;
    }

    .single-product-wrapper .product-info-top .cart {
        margin-right: 0;
    }

    .single-product-wrapper .product-info-top .cart.single-ajax {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .single-product-wrapper .product-info .btn-secondary {
        max-width: 150px;
    }

    .contact-form {
        padding: 28px;
    }
}

@media screen and (min-width: 75rem) {
    body.elementor-default[class*="elementor-page-"] .container {
        max-width: var(--size-site-width);
    }

    .products .product:hover .product-content-fade {
        display: none;
    }
    
    .products.column-3,
    .products.column-4 {
        align-items: unset;
    }

    .products .product {
        background-color: var(--color-background);
        border: var(--color-border-bold);
        -webkit-box-shadow: 0px 1px 15px rgba(62, 68, 90, 0.2);
        box-shadow: 0px 1px 15px rgba(62, 68, 90, 0.2);
        border-radius: 8px;
    }

    .products.column-3 {
        gap: 2%;
    }

    .products.column-3 .product {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 31.3333333333%;
        flex: 0 0 31.3333333333%;
        max-width: 31.3333333333%;
    }

    .products.column-4 {
        gap: 2%;
    }

    .products.column-4 .product {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 23.5%;
        flex: 0 0 23.5%;
        max-width: 23.5%;
        margin-bottom: 15px;
    }

    .custom-sidebar .elementor-element,
    .custom-sidebar .elementor-element .e-con-inner {
        padding: 0;
    }
}