.template4-featuredProducts-title {
    text-align: center;
    font-family: 'Montserrat';
    font-size: 40px;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 32px;
    margin-top: 100px;
}
.template4-featuredProducts-description {
    text-align: center;
    max-width: 600px;
    font-family: 'Montserrat';
    font-size: 18px;
    font-weight: 500;
    line-height: 150%;
    margin: 0 auto 30px;
    color: var(--e-global-color-primary);
}
.featuredProducts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    justify-content: center;
    margin-bottom: 48px;
    margin-top: 48px;
}
.product-card {
    background: #fff;
    position: relative;
    width: 253px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-card-opacity {
    width: 253px;
    position: relative;
}
.product-image-container {
    position: relative;
    width: 253px;
    height: 253px;
    overflow: hidden;
    border-radius: 20px;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-image-container:hover .product-image {
    transform: scale(1.05);
}
.template4-product-title {
    color: black;
    font-family: 'Montserrat';
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    margin-top: 24px;
}
.product-information {
    padding: 20px;
    text-align: center;
}
.product-image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.product-image-container:hover .overlay {
    opacity: 1;
}
.template4-product-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 2;
    font-family: 'Montserrat';
    font-size: 18px;
    font-weight: 600;
    padding: 10px 32px;
    border-radius: 24px;
    border: 2px solid #fff;
    white-space: nowrap;
    text-align: center;
    background: transparent;
    color: #fff;
    text-decoration: none;
}
.template4-product-button:hover {
    background: #fff;
    color: var(--e-global-color-primary);
}
.product-image-container:hover .template4-product-button {
    opacity: 1;
    visibility: visible;
}
.template4-view-all-button {
    font-family: 'Montserrat';
    font-size: 18px;
    font-weight: 600;
    padding: 10px 32px;
    border-radius: 24px;
    background: var(--e-global-color-primary);
    color: #fff;
    text-decoration: none;
    margin-bottom: 100px; 
    display: inline-block;      
}
.template4-view-all-button:hover {
    background: #6e6e6e;
    color: #fff;
}
.swiper-featuredProducts-t2 {
    position: relative;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .featuredProducts-header {
        justify-content: center !important;
        align-items: center !important;
    }
    #esiletostetud-tooted .swiper-slide {
        justify-content: center;
    }
    .template4-featuredProducts-title {
        font-size: 24px;
        margin-bottom: 16px;
        margin-top: 40px;    
    }
    .product-information {
        padding-top: 0;
    }
    .template4-featuredProducts-description {
        font-size: 16px;
        margin-bottom: 24px;
        max-width: 350px;
    }
    .template4-view-all-button {
        margin-top: 24px;
        margin-bottom: 40px;
        font-size: 16px;
        padding: 8px 24px;
    }
    .template4-product-button {
        font-size: 16px;
        padding: 8px 24px;
    }
    .featuredProducts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        justify-items: center;
        margin-bottom: 0;
    }
    .d-flex {
        display: grid !important;
    }
    .pb-5 {
        padding-bottom: 0 !important;
    }
    .mb-5 {
        margin-bottom: 0 !important;
    }
}