.dm-generic-product-widget {
    display: flex;
    gap: 20px;
    overflow: hidden;
}

.dm-product-items {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 100%;
}

.dm-product-item {
    flex: 1;
    position: relative;
    background: #f9f9f9;
    overflow: hidden;
    transition: transform 0.3s ease;
}



.dm-product-item-image {
    width: 100%;
    height: 620px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.dm-product-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2)); /* Gradient from black to transparent */
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease; /* Fade-in effect */
}

.dm-product-item-content-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    transform: translateY(100%); /* Start hidden */
    transition: transform 0.3s ease; /* Slide-in effect */
    color: #fff; /* White text */
    text-align: left;
}

.dm-product-item:hover .dm-product-item-content {
    opacity: 1; /* Show the background gradient */
}

.dm-product-item:hover .dm-product-item-content-text {
    transform: translateY(0); /* Slide in the text */
}

.dm-product-item-content-text h3 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
    color: white;
}

.dm-product-item-content-text p {
    font-size: 14px;
    margin: 0;
}

/* Mobile layout adjustments */
@media screen and (max-width: 768px) {
    .dm-product-items {
        flex-direction: column-reverse; /* Change to vertical layout with reversed order */
        gap: 0; /* Add spacing between items */
    }

    .dm-product-item-image {
        height: 400px; /* Adjust image height for smaller screens */
    }

    .dm-product-item-content-text h3 {
        font-size: 24px; /* Adjust heading size for mobile */
    }

    .dm-product-item-content-text p {
        font-size: 12px; /* Adjust paragraph size for mobile */
    }
}
