/* Custom CSS to override default styles */

/* Prevent product card images from being cropped */
.catalog-card-img, .tovar-card-img {
    object-fit: contain !important;
    /* Ensure the image is not forced to stretch if it's small */
    /* height is already fixed at 300px (var(--img-l)) in original CSS, contain ensures it fits inside */
}

.a-card-img-m {
    aspect-ratio: 4 / 3;
    height: auto !important;
    width: 100%;
    display: block;
}

.a-card-img-l {
    aspect-ratio: 4 / 3;
    height: auto !important;
    width: 100%;
    object-fit: cover;
    display: block;
}

.products-card-img {
    aspect-ratio: 3 / 4;
    height: auto !important;
    width: 100%;
    object-fit: cover;
}

.tax-blog_category.term-novosti .blog-card-img {
    aspect-ratio: 4 / 3;
    height: auto !important;
    width: 100%;
    object-fit: cover;
    display: block;
}

.search .blog-card-img {
    height: var(--img-l);
    width: 100%;
    object-fit: contain;
    display: block;
}

@media screen and (max-width: 991px) {
    .search .blog-card-img {
        height: var(--img-m);
    }
}

@media screen and (max-width: 767px) {
    .search .blog-card-img {
        height: var(--img-l);
    }
}

.single .hero-img {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    object-fit: contain;
    display: block;
}

.services-section .service-icon {
    border: none;
}

.services-section .services-grid {
    align-items: stretch;
}

.services-section .services-col {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.services-section .services-card {
    align-items: flex-start;
    padding-left: 10px;
    padding-right: 10px;
	height: 200px;

}

.page-template-page-distributor .hero-img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
}

@media screen and (min-width: 992px) {
    .mission-right-col {
        padding-top: 170px;
    }

    .mission-right-col .h-s {
        order: 1;
    }

    .mission-right-col .mission-img {
        order: 2;
    }
}

.a-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.a-card-content {
    min-width: 0;
}

.banner-col {
    position: relative;
}

.banner-img {
    width: 100%;
    height: auto;
    max-height: 100% !important;
    object-fit: contain;
    position: static !important;
    display: block;
}

.banner-box {
    height: auto !important;
    min-height: 520px;
}

.slider,
.w-slider,
.w-slide,
.w-slider-mask {
    height: auto !important;
}

@media screen and (max-width: 767px) {
    .banner-box {
        display: flex !important;
        flex-direction: column;
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 40px;
        row-gap: 24px;
    }

    .banner-col {
        width: 100%;
        display: block;
    }

    .banner-content {
        margin-top: 40px;
        margin-bottom: 20px !important;
    }
    
    .banner-img {
        margin-top: 20px;
        max-height: none !important;
        height: auto !important;
    }
	.services-section .services-card {
    	height: 230px;
    }

}

@media screen and (max-width: 767px) {
    .services-section .services-grid {
        flex-direction: column;
        row-gap: 0px;
    }

    .services-section .services-col {
        width: 100%;
        border-bottom: 1px solid #E5E5E5;
    }

    .services-section .services-card {
        flex-direction: row;
        align-items: center;
        column-gap: 16px;
        height: auto;
        padding: 16px 0;
    }

    .services-section .service-icon {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }
}

@media screen and (max-width: 767px) {
    .single-product .w-tab-pane .tab-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .single-product .w-tab-pane .tab-content .analog-compare-grid {
        display: inline-grid;
        min-width: 520px;
    }
    .a-card-content {
        padding-top: 0px;
    }
    
}
