.food-category {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.food-category::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgb(20 14 12 / 8%) 15%, rgb(20 14 12 / 76%) 100%);
    content: "";
    pointer-events: none;
}

.food-category img {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.food-category:hover img,
.food-product:hover .food-product__visual img {
    transform: scale(1.04);
}

.food-category > :not(img) {
    position: relative;
    z-index: 2;
}

.food-product__visual {
    background: none;
    opacity: 1;
}

.food-product__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.food-product__visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(20 14 12 / 4%) 18%, rgb(20 14 12 / 76%) 100%);
    content: "";
}

.food-product > div:last-child {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .food-category img,
    .food-product__visual img {
        transition: none;
    }
}