/*
|--------------------------------------------------------------------------
| ONLINEFOODIES - ELEGANT BURGER
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| BODY
|--------------------------------------------------------------------------
*/

body {
    background: #efefef;
}


/*
|--------------------------------------------------------------------------
| WRAPPER
|--------------------------------------------------------------------------
*/

.of-roost-wrapper {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| CATEGORÍAS
|--------------------------------------------------------------------------
*/

.of-category-bar {

    display: flex;

    gap: 12px;

    overflow-x: auto;

    margin-bottom: 30px;

    padding: 10px 0;

    scrollbar-width: thin;
}


.of-category-btn {

    background: #000;

    color: #fff !important;

    padding: 12px 20px;

    border-radius: 100px;

    text-decoration: none !important;

    font-weight: bold;

    white-space: nowrap;

    transition: 0.2s;

    display: inline-block;
}


.of-category-btn:hover {

    background: #111;

    color: #fff !important;
}


/*
|--------------------------------------------------------------------------
| TÍTULO CATEGORÍA
|--------------------------------------------------------------------------
*/

.of-category-title {

    margin-top: 50px;

    margin-bottom: 25px;

    font-size: 36px !important;

    font-weight: 900 !important;

    color: #222 !important;

    line-height: 1.1;
}


/*
|--------------------------------------------------------------------------
| GRID
|--------------------------------------------------------------------------
*/

.of-roost-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/*
|--------------------------------------------------------------------------
| CARD
|--------------------------------------------------------------------------
*/

.of-roost-card {

    background: #000;

    border-radius: 28px;

    overflow: hidden;

    color: #fff;

    position: relative;

    min-height: 100%;
}


/*
|--------------------------------------------------------------------------
| IMAGEN
|--------------------------------------------------------------------------
*/

.of-roost-image {

    padding: 30px;

    text-align: center;
}


.of-roost-image img {

    width: 100%;

    max-width: 100%;

    height: auto;

    display: block;

    margin: auto;
}


/*
|--------------------------------------------------------------------------
| CONTENIDO
|--------------------------------------------------------------------------
*/

.of-roost-content {

    padding: 25px;
}


/*
|--------------------------------------------------------------------------
| TÍTULO PLATO
|--------------------------------------------------------------------------
*/

.of-roost-card h3,
.of-roost-card h3 a,
.of-roost-card .entry-title,
.of-roost-card .entry-title a {

    color: #ffffff !important;

    font-weight: 900 !important;

    text-transform: uppercase !important;

    letter-spacing: 1px !important;

    font-size: 26px !important;

    line-height: 1.1 !important;

    margin: 0 0 15px 0 !important;

    padding: 0 !important;

    text-decoration: none !important;
}


/*
|--------------------------------------------------------------------------
| DESCRIPCIÓN
|--------------------------------------------------------------------------
*/

.of-roost-description,
.of-roost-description p {

    color: #cccccc !important;

    line-height: 1.5 !important;

    margin-bottom: 20px !important;

    font-size: 16px !important;
}


/*
|--------------------------------------------------------------------------
| PRECIO
|--------------------------------------------------------------------------
*/

.of-roost-price {

    color: red !important;

    font-size: 32px !important;

    font-weight: 900 !important;

    line-height: 1 !important;
}


/*
|--------------------------------------------------------------------------
| ALÉRGENOS
|--------------------------------------------------------------------------
*/

.of-allergens {

    margin-top: 15px;

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


/*
|--------------------------------------------------------------------------
| ALÉRGENO ANTIGUO / COMPATIBILIDAD
|--------------------------------------------------------------------------
*/

.of-allergen {

    background: rgba(255, 255, 255, .15);

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 12px;

    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| PREVISUALIZACIÓN ALÉRGENOS
|--------------------------------------------------------------------------
*/

.of-allergens-preview {

    display: flex;

    gap: 8px;

    flex-wrap: wrap;

    margin-top: 15px;

    margin-bottom: 15px;

    align-items: center;
}


/*
|--------------------------------------------------------------------------
| BOTÓN ALÉRGENO
|--------------------------------------------------------------------------
*/

.of-allergen-icon {

    width: 34px;

    height: 34px;

    padding: 0;

    margin: 0;

    border: 0;

    background: transparent;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    line-height: 1;

    appearance: none;

    -webkit-appearance: none;

    border-radius: 50%;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.of-allergen-icon img {

    width: 30px;

    height: 30px;

    display: block;

    object-fit: contain;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.of-allergen-icon:hover {

    opacity: 0.9;

    transform: translateY(-1px);
}


.of-allergen-icon:hover img {

    transform: scale(1.08);
}


.of-allergen-icon:active {

    transform: scale(0.94);
}


.of-allergen-icon:focus-visible {

    outline: 2px solid #ffffff;

    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| POPUP ALÉRGENOS
|--------------------------------------------------------------------------
|
| El popup se coloca encima del VIEWPORT ACTUAL.
|
| No mueve la carta.
|
|--------------------------------------------------------------------------
*/

.of-allergen-modal {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    width: 100%;

    height: 100%;

    height: 100dvh;

    z-index: 999999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    overflow: hidden;

    overscroll-behavior: none;
}


.of-allergen-modal.is-visible {

    display: flex;
}


/*
|--------------------------------------------------------------------------
| FONDO DEL POPUP
|--------------------------------------------------------------------------
|
| Aquí recuperamos el blur sutil.
|
| La carta permanece exactamente donde estaba,
| pero visualmente queda desenfocada.
|
|--------------------------------------------------------------------------
*/

.of-allergen-modal-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.42);

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);

    cursor: pointer;

    touch-action: none;
}


/*
|--------------------------------------------------------------------------
| VENTANA DEL POPUP
|--------------------------------------------------------------------------
*/

.of-allergen-modal-box {

    position: relative;

    z-index: 2;

    width: min(82vw, 320px);

    min-height: 110px;

    padding: 28px 55px 28px 24px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 22px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.35);

    text-align: center;

    display: flex;

    align-items: center;

    justify-content: center;

    touch-action: none;
}


/*
|--------------------------------------------------------------------------
| TÍTULO POPUP
|--------------------------------------------------------------------------
*/

.of-allergen-modal-title {

    font-size: 24px;

    font-weight: 800;

    line-height: 1.2;

    color: #222222;

    margin: 0;

    padding: 0;
}


/*
|--------------------------------------------------------------------------
| BOTÓN CERRAR
|--------------------------------------------------------------------------
*/

.of-allergen-modal-close {

    position: absolute;

    top: 8px;

    right: 10px;

    width: 40px;

    height: 40px;

    border: 0;

    background: transparent;

    font-size: 32px;

    line-height: 1;

    cursor: pointer;

    color: #555555;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;
}


.of-allergen-modal-close:hover {

    color: #000000;
}


.of-allergen-modal-close:focus-visible {

    outline: 2px solid #000000;

    outline-offset: 2px;

    border-radius: 8px;
}


/*
|--------------------------------------------------------------------------
| BOTÓN FLOTANTE VOLVER ARRIBA
|--------------------------------------------------------------------------
*/

.of-back-top {

    position: fixed !important;

    right: 18px !important;

    bottom: 22px !important;

    width: 56px !important;

    height: 56px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    padding: 0 !important;

    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.25) !important;

    border-radius: 50% !important;

    background: rgba(0, 0, 0, 0.55) !important;

    color: #ffffff !important;

    font-size: 30px !important;

    font-weight: 700 !important;

    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 2147483647 !important;

    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.25) !important;

    box-sizing: border-box !important;
}


.of-back-top.is-visible {

    opacity: 0.70 !important;

    visibility: visible !important;

    pointer-events: auto !important;

    transform: translateY(0);
}


.of-back-top.is-visible:hover {

    opacity: 0.90 !important;
}


.of-back-top:active {

    transform: scale(0.92);
}


.of-back-top:focus-visible {

    outline: 2px solid #ffffff;

    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| BOTONES CATEGORÍAS RECTANGULARES
|--------------------------------------------------------------------------
*/

.fb_filter_wrapper ul li {

    border-radius: 16px !important;

    overflow: hidden !important;
}


.fb_filter_wrapper ul li a {

    border-radius: 16px !important;

    min-height: 62px !important;

    padding: 14px 20px !important;
}


/*
|--------------------------------------------------------------------------
| DESKTOP
|--------------------------------------------------------------------------
*/

@media only screen and (min-width: 1024px) {

    .fb_filter_wrapper ul li a {

        border-radius: 18px !important;

        min-height: 72px !important;

    }

}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .of-roost-grid {

        grid-template-columns: repeat(2, 1fr);

    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {


    /*
    |--------------------------------------------------------------------------
    | GRID
    |--------------------------------------------------------------------------
    */

    .of-roost-grid {

        grid-template-columns: 1fr;

    }


    /*
    |--------------------------------------------------------------------------
    | TÍTULO PLATO
    |--------------------------------------------------------------------------
    */

    .of-roost-card h3,
    .of-roost-card h3 a,
    .of-roost-card .entry-title,
    .of-roost-card .entry-title a {

        font-size: 26px !important;

    }


    /*
    |--------------------------------------------------------------------------
    | CATEGORÍAS
    |--------------------------------------------------------------------------
    */

    .fb_filter_wrapper ul li {

        min-width: 220px !important;

    }


    .fb_filter_wrapper ul li a {

        border-radius: 16px !important;

        min-height: 64px !important;

        font-size: 15px !important;

    }


    /*
    |--------------------------------------------------------------------------
    | ALÉRGENOS
    |--------------------------------------------------------------------------
    */

    .of-allergen-icon {

        width: 34px;

        height: 34px;

    }


    .of-allergen-icon img {

        width: 30px;

        height: 30px;

    }


    /*
    |--------------------------------------------------------------------------
    | POPUP MOBILE
    |--------------------------------------------------------------------------
    */

    .of-allergen-modal {

        padding: 18px;

        height: 100dvh;

    }


    .of-allergen-modal-box {

        width: min(88vw, 330px);

        min-height: 105px;

        padding: 26px 52px 26px 20px;

        border-radius: 20px;

    }


    .of-allergen-modal-title {

        font-size: 21px;

    }


    .of-allergen-modal-close {

        top: 7px;

        right: 8px;

        width: 40px;

        height: 40px;

        font-size: 30px;

    }


    /*
    |--------------------------------------------------------------------------
    | FLECHA MOBILE
    |--------------------------------------------------------------------------
    */

    .of-back-top {

        width: 56px !important;

        height: 56px !important;

        right: 16px !important;

        bottom: calc(
            20px + env(safe-area-inset-bottom)
        ) !important;

        font-size: 29px !important;

    }

}