section.category-display {
    position: relative;
}

.categories-wrapper {
    background: var(--accent);
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 50px;
    padding-bottom: var(--spacing-medium);
}

.categories-title {
    color: var(--white);
    flex: 100%;
    text-align: center;
    margin-bottom: 60px;
}

.product-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 33%;
    position: relative;
    max-width: 33%;
    margin-bottom: 50px;
}

img.category-image {
    object-fit: cover;
    overflow: visible;
    height: clamp(175px, 19vw, 360px);
    position: absolute;
    top: -50px;
}

.product-img-bg {
    width: 100%;
    height: 100%;
}

.product-img-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.category-link-image {
    display: flex;
    justify-content: center;
    width: 100%;
}

.category-link-title {
    align-self: flex-start;
}

.category-title {
    color: var(--white);
    margin: -15px 0 0 20px;
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1200px) {


    .categories-title {
        margin-bottom: 0;
    }

    .product-category {
        flex: 1 0 50%;
        max-width: 50%;
    }

    img.category-image {
        top: 0px;
    }

}

@media (max-width: 768px) {

   .product-category {
        flex: 1 0 100%;
        max-width: 100%;
    }

    img.category-image {
        top: 0px;
        height: 340px;
    }

}
    
/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 576px) { 

    .product-category {
        margin-bottom: 0;
        gap: 20px;
    }

    img.category-image {
        position: relative;
        height: auto;
    }

    .product-img-bg {
        display: none;
    }

    .category-link-image {
        background: var(--white);
        border-radius: 40px;
        padding: 10px;
    }

    .wave-wrapper {
        top: 180px;
    }

}