/* CHELECH: menu móvil de sucursales. El header de escritorio no se altera. */
.chelech-mobile-dept-overlay,
.chelech-mobile-dept-drawer,
.chelech-mobile-dept-trigger { display: none; }
.chelech-mobile-dept-overlay[hidden],
.chelech-mobile-dept-drawer[hidden] { display: none !important; }
/* El wrapper es transparente para CSS Grid en escritorio: mantiene el buscador centrado. */
.chelech-header-top .chelech-mobile-search-row { display: contents; }
.chelech-header-top .chelech-mobile-search-row > .chelech-product-search {
    justify-self: center;
    width: 100%;
    max-width: 520px;
    min-width: 0;
    margin: 0;
}
@media (min-width: 768px) and (max-width: 900px) {
    .chelech-header-top .chelech-mobile-search-row > .chelech-product-search { max-width: 340px; }
}
@media (max-width: 767px) {
    .chelech-header-top .chelech-mobile-search-row {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 0;
        gap: 8px;
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
    }
    .chelech-header-top .chelech-mobile-search-row > .chelech-product-search {
        flex: 1 1 0;
        justify-self: stretch;
        min-width: 0;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .chelech-header-top .chelech-mobile-search-row > .chelech-product-search .wp-block-search__inside-wrapper {
        min-height: 48px;
        padding-left: 12px;
    }
    .chelech-header-top .chelech-mobile-search-row > .chelech-product-search .wp-block-search__button {
        flex-basis: 40px;
        min-width: 40px;
        width: 40px;
        height: 44px;
        padding: 7px;
        margin-left: 0;
    }
    .chelech-header-top .chelech-mobile-search-row > .chelech-product-search .wp-block-search__button svg {
        width: 21px;
        height: 21px;
    }
    /* Tres líneas sobre el amarillo del header: sin caja oscura ni sombra.
       Área táctil 48×48 intacta para accesibilidad. */
    .chelech-mobile-dept-trigger,
    .chelech-mobile-dept-trigger:hover,
    .chelech-mobile-dept-trigger:active {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 48px;
        width: 48px;
        min-width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        background-image: none;
        color: #1a2d3d;
        box-shadow: none;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .chelech-mobile-dept-trigger svg { width: 24px; height: 24px; flex: none; }
    .chelech-mobile-dept-overlay:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100018;
        background: rgba(12,25,40,.57);
    }
    .chelech-mobile-dept-drawer:not([hidden]) {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        position: fixed;
        inset-block: 0;
        left: 0;
        z-index: 100019;
        width: min(92vw, 395px);
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: max(18px, env(safe-area-inset-top, 0px)) 0 max(16px, env(safe-area-inset-bottom, 0px));
        border: none;
        border-radius: 0 18px 18px 0;
        background: #fff;
        color: #1b2b3e;
        font-family: inherit;
        box-shadow: 8px 0 35px rgba(13,30,48,.22);
        overscroll-behavior: contain;
    }
    .chelech-mobile-dept-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 0 18px 17px;
        border-bottom: 1px solid #e6ecf2;
    }
    .chelech-mobile-dept-kicker {
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        font-weight: 750;
        color: #728296;
        letter-spacing: .04em;
    }
    .chelech-mobile-dept-header h2 {
        margin: 0;
        font-size: 19px;
        font-weight: 800;
        line-height: 1.25;
        color: #17283a;
    }
    .chelech-mobile-dept-close {
        display: grid;
        flex: 0 0 44px;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f1f4f7;
        color: #3a4e62;
        font-size: 28px;
        cursor: pointer;
    }
    .chelech-mobile-dept-groups {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 4px 12px 12px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .chelech-mobile-dept-group { border-bottom: 1px solid #e6ecf2; }
    .chelech-mobile-dept-branch {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        width: 100%;
        min-height: 54px;
        padding: 12px 9px;
        background: #fff;
        border: 0;
        color: #25394f;
        font-family: inherit;
        font-size: 15px;
        font-weight: 760;
        text-align: left;
        cursor: pointer;
        touch-action: manipulation;
    }
    .chelech-mobile-dept-branch[aria-expanded="true"] { background: #fff9da; }
    .chelech-mobile-dept-branch svg { flex: none; transition: transform .15s; }
    .chelech-mobile-dept-branch[aria-expanded="true"] svg { transform: rotate(180deg); }
    .chelech-mobile-dept-links[hidden] { display: none !important; }
    .chelech-mobile-dept-links { padding: 4px 4px 10px 13px; background: #fafbfd; }
    .chelech-mobile-dept-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 45px;
        padding: 10px 8px;
        border-bottom: 1px solid #e8edf2;
        color: #31485f !important;
        font-size: 13px;
        font-weight: 560;
        line-height: 1.3;
        text-decoration: none !important;
    }
    .chelech-mobile-dept-links a:last-child { border-bottom: none; }
    .chelech-mobile-dept-links a span { flex: none; color: #8595a4; font-size: 18px; }
    .chelech-mobile-dept-all {
        display: flex;
        flex: 0 0 auto;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        margin: 12px 18px 0;
        padding: 12px 14px;
        border-radius: 9px;
        background: #ffe51b;
        color: #182a3b !important;
        font-size: 14px;
        font-weight: 780;
        text-decoration: none !important;
    }
    .chelech-mobile-dept-trigger:focus-visible,
    .chelech-mobile-dept-drawer :is(button,a):focus-visible {
        outline: 2px solid #155f9b;
        outline-offset: -2px;
    }
    body.chelech-mobile-dept-open { overflow: hidden; }
    body.chelech-mobile-dept-open .joinchat { opacity: 0; pointer-events: none; }
}
@media(min-width:768px) {
    .chelech-mobile-dept-overlay, .chelech-mobile-dept-drawer,
    .chelech-mobile-dept-trigger { display: none !important; }
}
@media(prefers-reduced-motion: reduce) {
    .chelech-mobile-dept-branch svg { transition: none; }
}

.chelech-mobile-dept-links a.is-category-root{font-weight:800;}
