/* =========================================
   TORTILLAS PAGE — MOBILE NAVIGATION
========================================= */

.tortillas-nav-toggle,
.tortillas-mobile-overlay,
.tortillas-mobile-drawer,
.mobile-order-label {
    display: none;
}

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.tortillas-mobile-open {
        overflow: hidden;
    }

    /* TOP NAVBAR */

    .home-nav {
        position: relative;
        z-index: 1000;

        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) 76px !important;
        align-items: center !important;
        gap: 9px !important;

        width: 100% !important;
        min-height: 68px;
        padding: 10px 12px !important;
        box-sizing: border-box !important;

        background: #ffffff;
        box-shadow: 0 4px 18px rgba(50, 28, 21, 0.08);
    }

    .home-nav-links {
        display: none !important;
    }

    /* HAMBURGER */

    .tortillas-nav-toggle {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;

        width: 42px;
        height: 42px;
        box-sizing: border-box;

        border-radius: 11px;
        background: #fff8f1;
        box-shadow: 0 5px 16px rgba(50, 28, 21, 0.1);

        cursor: pointer;
    }

    .tortillas-nav-toggle i {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #321c15;
    }

    /* BRAND */

    .home-nav-brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;

        display: flex !important;
        align-items: center !important;
        gap: 8px !important;

        min-width: 0 !important;
        overflow: hidden !important;
    }

    .home-nav-brand div {
        min-width: 0;
        overflow: hidden;
    }

    .home-nav-brand strong {
        display: block !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .home-nav-brand small {
        display: none !important;
    }

    /* ORDER BUTTON */

    a.home-nav-order-button {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        height: 40px !important;

        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;

        border-radius: 999px !important;
        background: #b80000 !important;
        color: #ffffff !important;

        box-shadow: 0 7px 18px rgba(184, 0, 0, 0.22) !important;

        font-family: "Poppins", sans-serif !important;
        text-decoration: none !important;
    }

    a.home-nav-order-button::before,
    a.home-nav-order-button::after {
        display: none !important;
        content: none !important;
    }

    a.home-nav-order-button span.desktop-order-label,
    a.home-nav-order-button span.home-nav-order-arrow {
        display: none !important;
    }

    a.home-nav-order-button span.mobile-order-label {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;

        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    /* OVERLAY */

    .tortillas-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9998;

        visibility: hidden;
        opacity: 0;

        background: rgba(30, 15, 10, 0.6);
        backdrop-filter: blur(3px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .tortillas-mobile-overlay.is-open {
        visibility: visible;
        opacity: 1;
    }

    /* DRAWER */

    .tortillas-mobile-drawer {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;

        width: min(86vw, 350px);
        height: 100dvh;

        padding: 22px;
        box-sizing: border-box;
        overflow-y: auto;

        background: #ffffff;
        box-shadow: 20px 0 50px rgba(30, 15, 10, 0.24);

        transform: translateX(-105%);
        transition: transform 0.3s ease;
    }

    .tortillas-mobile-drawer.is-open {
        transform: translateX(0);
    }

    .tortillas-mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        padding-bottom: 20px;
        border-bottom: 1px solid rgba(50, 28, 21, 0.12);
    }

    .tortillas-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;

        color: #321c15;
        text-decoration: none;
    }

    .tortillas-mobile-brand div {
        display: flex;
        flex-direction: column;
    }

    .tortillas-mobile-brand strong {
        font-family: "Playfair Display", serif;
        font-size: 18px;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .tortillas-mobile-brand small {
        margin-top: 3px;
        color: #8d756a;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
    }

    .tortillas-mobile-close {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;

        border: none;
        border-radius: 50%;

        background: #f3e6da;
        color: #321c15;

        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .tortillas-mobile-links {
        display: flex;
        flex-direction: column;
        gap: 7px;
        padding-top: 22px;
    }

    .tortillas-mobile-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-height: 54px;
        padding: 0 16px;
        box-sizing: border-box;

        border-radius: 13px;

        color: #382019;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }

    .tortillas-mobile-links a:hover,
    .tortillas-mobile-links a.active {
        background: #f5e9dd;
    }

    .tortillas-mobile-links .tortillas-mobile-order {
        justify-content: center;
        gap: 12px;

        margin-top: 14px;
        min-height: 56px;

        background: #b80000;
        color: #ffffff;

        box-shadow: 0 12px 26px rgba(184, 0, 0, 0.22);
    }
}

@media (max-width: 420px) {

    .home-nav {
        grid-template-columns: 40px minmax(0, 1fr) 72px !important;
        gap: 7px !important;
        padding-inline: 9px !important;
    }

    .tortillas-nav-toggle {
        width: 40px;
        height: 40px;
    }


    .home-nav-brand strong {
        font-size: 12px !important;
    }

    a.home-nav-order-button {
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        height: 40px !important;
    }
}