/* Navegación móvil de la Maestra 1. Sin JavaScript se conservan los enlaces visibles. */
body[data-storefront-template="master_01"] .m1-menu-toggle { display: none; }

@media (max-width: 760px) {
    body[data-storefront-template="master_01"].m1-menu-ready header { z-index: 50; }
    body[data-storefront-template="master_01"].m1-menu-ready .container.nav {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 3px 10px;
        min-height: 0;
        padding: 9px 10px;
    }
    body[data-storefront-template="master_01"].m1-menu-ready .brand { grid-column: 1; grid-row: 1; min-width: 0; }
    body[data-storefront-template="master_01"].m1-menu-ready .brand > span:last-child { min-width: 0; }
    body[data-storefront-template="master_01"].m1-menu-ready .brand :is(strong, small) { max-width: 100%; }
    body[data-storefront-template="master_01"].m1-menu-ready .mark { width: 42px; height: 42px; flex-basis: 42px; }
    body[data-storefront-template="master_01"].m1-menu-ready .store-status {
        grid-column: 1 / 3; grid-row: 2; justify-self: start; width: fit-content; max-width: calc(100% - 52px); margin: 0 0 0 52px;
        padding: 3px 8px; font-size: .68rem; line-height: 1.2;
    }
    body[data-storefront-template="master_01"] .m1-menu-toggle {
        grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center;
        gap: 8px; min-height: 46px; padding: 0 13px; border: 1px solid var(--store-custom-border);
        border-radius: 14px; background: color-mix(in srgb, var(--orange) 14%, var(--store-custom-surface));
        color: var(--store-custom-text); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer;
    }
    body[data-storefront-template="master_01"] .m1-menu-icon { display: grid; gap: 5px; width: 18px; }
    body[data-storefront-template="master_01"] .m1-menu-icon span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
    body[data-storefront-template="master_01"] .m1-menu-toggle[aria-expanded="true"] .m1-menu-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
    body[data-storefront-template="master_01"] .m1-menu-toggle[aria-expanded="true"] .m1-menu-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
    body[data-storefront-template="master_01"].m1-menu-ready .container.nav nav { display: none; }
    body[data-storefront-template="master_01"].m1-menu-ready .m1-menu-toggle[aria-expanded="true"] + nav {
        position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 2;
        display: grid; gap: 3px; width: auto; max-height: calc(100dvh - 120px); overflow-y: auto;
        overscroll-behavior: contain; margin: 0; padding: 9px; border: 1px solid var(--store-custom-border);
        border-radius: 18px; background: var(--store-custom-surface);
        box-shadow: 0 18px 46px color-mix(in srgb, var(--store-custom-bg) 55%, transparent);
    }
    body[data-storefront-template="master_01"].m1-menu-ready .container.nav nav :is(a, button) {
        display: flex; align-items: center; min-height: 46px; width: 100%; padding: 10px 13px;
        border-radius: 11px; color: var(--store-custom-text); font-size: .9rem; text-align: left;
    }
    body[data-storefront-template="master_01"].m1-menu-ready .container.nav nav .nav-action { gap: 8px; }
    body[data-storefront-template="master_01"].m1-menu-ready :is(.m1-menu-toggle, .container.nav nav :is(a, button)):focus-visible {
        outline: 3px solid var(--orange2); outline-offset: 2px;
    }
}
