.featuredProducts-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.featuredProducts-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #6c757d;
}
.featuredProducts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    justify-content: center;
}
.product-card {
    background: #ffffff7e;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    width: 100%;
    max-width: 350px;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.product-information {
    position: relative;
    padding: 15px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Initially hide the button */
.product-information .btn {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show the button when hovering over the card */
.product-card:hover .btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.product-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Dark transparent background */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Show the overlay on hover */
.product-card:hover .overlay {
    opacity: 1;
    visibility: visible;
}

/* The button style remains as it is */
.product-information .btn {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show the button when hovering over the card */
.product-card:hover .btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}


.product-information p {
    min-height: 20px; /* Reserve space for price */
}
.product-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.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;
    }
}