
/* =========================================
   SK XPRES RESPONSIVE HOMEPAGE MEDIA
========================================= */

/* Image containers */
.hero-image picture,
.offer-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Images */
.hero-image picture img,
.offer-image picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Videos */
.hero-image video,
.offer-image video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop and Mobile visibility */
.responsive-media-mobile {
    display: none !important;
}

.responsive-media-desktop {
    display: block !important;
}

/* Mobile screens */
@media (max-width: 767px) {
    .responsive-media-desktop {
        display: none !important;
    }

    .responsive-media-mobile {
        display: block !important;
    }
}


/* =========================================================
   SK XPRES - HOMEPAGE PRODUCT CARD ALIGNMENT FIX
========================================================= */

#products .product-grid {
    display: grid;
    grid-auto-rows: 1fr;
    align-items: stretch;
}

#products .product-grid > .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

#products .product-grid > .product-card > .product-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

#products .product-grid > .product-card .product-info h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    height: 2.8em;
    min-height: 2.8em;
    max-height: 2.8em;
    overflow: hidden;
    overflow-wrap: anywhere;
}

#products .product-grid > .product-card .product-actions {
    margin-top: auto;
}


/* SK XPRES - PRODUCT TITLE AND CARD HEIGHT FIX */

#shop-products .product-grid,
#products .product-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

#shop-products .product-grid .product-card,
#products .product-grid .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

#shop-products .product-grid .product-card .product-info,
#products .product-grid .product-card .product-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

#shop-products .product-grid .product-card .product-info h3,
#products .product-grid .product-card .product-info h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    min-height: 2.8em;
    max-height: 2.8em;
}

#shop-products .product-grid .product-card .product-actions,
#products .product-grid .product-card .product-actions {
    margin-top: auto;
}
