/* VL Interactive Menu Widget */
.vl-interactive-menu-widget {
    position: relative;
    width: 100%;
    padding-left: 5vw;
    padding-right: 5vw;
    box-sizing: border-box;
}

/* Category buttons */
.vl-interactive-menu-widget .vl-cats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2vw;
}

.vl-interactive-menu-widget .vl-cat {
    /* Size/font overridden by Elementor controls when set */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    font-family: 'Inter', sans-serif;
    border: 0px solid; /* border-color via cat_border_color control */
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: 0.5s ease;
}

/* Hover/active colors via Elementor controls: cat_hover_bg, cat_active_bg, cat_active_color */

/* Menu items container */
.vl-interactive-menu-widget .vl-items {
    margin-top: 5vh;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    position: relative;
}

/* Individual menu item row — padding via item_padding, border-color via item_border_color */
.menu-item {
    position: relative;
    cursor: pointer;
    width: 100%;
    padding-top: 2.5vw;
    padding-bottom: 2.5vw;
    border-bottom: 1px solid #222222;
}

.menu-item:first-child {
    border-top: 1px solid #222222;
}

/* Menu item text — overridden by Elementor controls when set */
.menu-item-text {
    font-family: 'TanPearl', sans-serif;
    font-size: 4vw;
    line-height: 1;
    margin: 0;
    padding: 0;
    transition: color 0.4s ease;
}

/* Price display */
.menu-item-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.5vw;
    font-weight: 300;
    margin-top: 0.5vw;
}

/* Hover-reveal image container (per item, absolutely positioned) */
.hover-reveal {
    position: absolute;
    z-index: 1000;
    top: 50%;
    left: 50%;
    width: 17.5vw;
    height: 45vh;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    overflow: visible;
}

.hover-reveal__inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hover-reveal__img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Mobile preview fallback */
.vl-mobile-preview {
    width: 40vw;
    height: 60vw;
    margin-top: 3vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vl-mobile-preview.is-visible {
    opacity: 1;
}

.vl-mobile-preview-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .vl-interactive-menu-widget {
        padding-left: 3vw;
        padding-right: 3vw;
    }

    .vl-interactive-menu-widget .vl-cat {
        height: 6vw !important;
        padding: 0 3vw !important;
        width: auto !important;
        font-size: 1.8vw !important;
    }

    .vl-interactive-menu-widget .vl-items {
        margin-top: 3vh;
    }

    .menu-item {
        padding-top: 3vw !important;
        padding-bottom: 3vw !important;
    }

    .menu-item-text {
        font-size: 5.5vw !important;
        line-height: 1.3 !important;
    }

    .menu-item-price {
        font-size: 2.5vw !important;
        margin-top: 1vw;
    }

    /* Hide hover-reveal images on tablet */
    .hover-reveal {
        display: none !important;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .vl-interactive-menu-widget .vl-cats {
        gap: 2.5vw;
    }

    .vl-interactive-menu-widget .vl-cat {
        height: 11vw !important;
        padding: 0 5vw !important;
        width: auto !important;
        font-size: 3.2vw !important;
        border-radius: 6vw;
        border-width: 1.5px;
    }

    .vl-interactive-menu-widget .vl-items {
        margin-top: 6vw;
    }

    .menu-item {
        padding: 5vw 0 !important;
    }

    .menu-item-text {
        font-size: 7vw !important;
        line-height: 1.3 !important;
    }

    .menu-item-price {
        font-size: 3.5vw !important;
        margin-top: 1.5vw;
    }
}
