:root {
    --venus-core-upc-image-aspect: 1;
    --venus-core-upc-max-height-desktop: 320px;
    --venus-core-upc-max-height-mobile: 190px;
    --venus-core-upc-title-line-height: 1.45;
    --venus-core-upc-title-lines: 2;
}

body.venus-core-uniform-product-cards .wd-carousel .wd-carousel-item,
body.venus-core-uniform-product-cards .wd-products:not(.wd-products-alt) .product-grid-item {
    display: flex;
}

body.venus-core-uniform-product-cards .wd-product .product-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.venus-core-uniform-product-cards .wd-product .product-element-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

body.venus-core-uniform-product-cards .wd-product .product-element-top .product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: var(--venus-core-upc-image-aspect);
    max-height: var(--venus-core-upc-max-height-desktop);
}

body.venus-core-uniform-product-cards .wd-product .product-element-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.venus-core-uniform-product-cards .wd-product .wd-buttons {
    margin-top: 0;
}

body.venus-core-uniform-product-cards .wd-product .wd-add-btn {
    margin-top: auto;
}

body.venus-core-uniform-product-cards .jet-listing-grid .jet-listing-grid__item {
    display: flex;
}

body.venus-core-uniform-product-cards .jet-listing-grid .jet-listing-grid__item > .wd-negative-gap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

body.venus-core-uniform-product-cards .jet-listing-grid .jet-listing-grid__item > .wd-negative-gap .e-con-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.venus-core-uniform-product-cards .jet-listing-grid .elementor-widget-image .elementor-widget-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

body.venus-core-uniform-product-cards .jet-listing-grid .elementor-widget-image .elementor-widget-container > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: var(--venus-core-upc-image-aspect);
    max-height: var(--venus-core-upc-max-height-desktop);
}

body.venus-core-uniform-product-cards .jet-listing-grid .elementor-widget-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

body.venus-core-uniform-product-cards .jet-listing-grid .elementor-element-8aebabf {
    margin-top: auto;
}

body.venus-core-uniform-product-cards .jet-listing-grid .elementor-element-caae51a .elementor-heading-title {
    display: -webkit-box;
    -webkit-line-clamp: var(--venus-core-upc-title-lines);
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--venus-core-upc-title-line-height);
    min-height: calc(var(--venus-core-upc-title-lines) * var(--venus-core-upc-title-line-height) * 1em);
    width: 100%;
}

body.venus-core-uniform-product-cards .jet-listing-grid .elementor-element-caae51a .elementor-heading-title a {
    display: inherit;
    color: inherit;
    text-decoration: none;
}

body.venus-core-uniform-product-cards .wd-product .wd-entities-title,
body.venus-core-uniform-product-cards .wd-product .wd-entities-title a {
    display: -webkit-box;
    -webkit-line-clamp: var(--venus-core-upc-title-lines);
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--venus-core-upc-title-line-height);
    min-height: calc(var(--venus-core-upc-title-lines) * var(--venus-core-upc-title-line-height) * 1em);
}

@media (max-width: 767px) {
    body.venus-core-uniform-product-cards .wd-product .product-element-top .product-image-link {
        max-height: var(--venus-core-upc-max-height-mobile);
    }

    body.venus-core-uniform-product-cards .jet-listing-grid .elementor-widget-image .elementor-widget-container > a {
        max-height: var(--venus-core-upc-max-height-mobile);
        min-height: var(--venus-core-upc-max-height-mobile);
    }

    body.venus-core-uniform-product-cards .jet-listing-grid .jet-listing-grid__item {
        max-width: 100% !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        min-width: 100% !important;
        display: block !important;
    }
    
    body.venus-core-uniform-product-cards .jet-listing-grid .jet-listing-grid__items {
        display: block !important;
        grid-template-columns: 1fr !important;
    }
}

.wd-cats.products .hover-mask {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
