.mini-cards {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(150px, 1fr) );
    grid-gap: 20px;
}

.mini-cards .mini-product-card {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: 300px;
    position: relative;
}

.mini-cards .mini-product-card .price {
    font-size: 0.9em;
    font-weight: 700;
}

.mini-cards .mini-product-card .add-to-cart,
.mini-cards .mini-product-card .add-to-cart a {
    width: 100%;
}

.cart-container aside.cross-sells-wrapper {
    /* Hide the cross sell after the cart */
    display: none;
}

.cart-container aside.cross-sells-wrapper.large-screen {
    /* Show the custom cross sell after the cart on large screens */
    display: grid;
}

.cart-container .cross-sells .products {
    display: grid;
    /* grid-template-columns: repeat( auto-fit, minmax(150px, 1fr) ); */
    grid-template-columns: repeat( 2, 1fr );
    grid-gap: 20px;
}

@media (max-width: 768px) {
    .cart-container aside.cross-sells-wrapper.large-screen {
        /* Hide the custom cross sells on small screens */
        display: none;
    }
    .cart-container aside.cross-sells-wrapper {
        /* But show the default cross sells on small screens */
        display: block;
    }
    .cart-container .cross-sells .products {
        grid-template-columns: repeat( 3, 1fr );
    }
}


@media (max-width: 480px ){
    .cart-container .cross-sells .products {
        grid-template-columns: repeat( 1, 1fr );
    }

    .single-product .cross-sells .mini-product-card:nth-child(n+3) {
        display: none;
    }

}

.cart-container .cross-sells .products .product-small {
    width: 100%;
    max-width: 100%;
}


.cart-container .cross-sells .products .product-small .show-on-hover {
    opacity: 1;
}

.product-small > .col-inner {
    height: 100%;
}

.product-small.box .box-image {
    width: 100%;
}

.product-small.box .box-image .image-tools {
    opacity: 1;
}

.mini-product-card .image-tools.hide-for-small ,
.product-small.box .box-image .image-tools.hide-for-small {
    display: flex !important;
}

.mini-product-card .image-wrapper .cart-icon ,
.product-small.box .box-image .image-tools .cart-icon {
    background-color: white;
    padding: 7px 3px 0;
    border-radius: 2px;
}

.product-small .box-text .add-to-cart ,
.product-small .box-text .add-to-cart .button {
    display: none;
}

.mini-product-card .image-wrapper {
    position: relative;
}

.mini-product-card .image-wrapper .grid-tools {
    position: absolute;
    opacity: 1;
    pointer-events: all;
}

.mini-product-card .image-wrapper .grid-tools a {
    background: none;
}

.mini-product-card .image-wrapper .grid-tools a:hover strong {
    background: #578848;
}

.mini-product-card .add-to-cart-grid {
    position: absolute;
}

.single-product .has-equal-box-heights .product-small .box-image {
    padding-top: 100% !important;
}

.single-product .has-equal-box-heights .product-small .image-glow .attachment-woocommerce_thumbnail {
    height: auto;
    aspect-ratio: 1/1;
    top: auto;
    object-fit: fill;
}

.products .alt-title {
    font-weight: 700;
    color: #578848;
}