/* ==========================================================================
   MENU LATERAL DO CELULAR
   --------------------------------------------------------------------------
   Painel que entra pela esquerda com fundo escurecido (SidePanel.js).
   ========================================================================== */

.scrim {
    position: fixed;
    inset: 0;
    z-index: 69;
    background: rgba(22,24,29,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}

.panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 70;
    width: min(360px,88vw);
    background: #fff;
    transform: translateX(-102%);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top,0px);
}

.panel-head {
    background: var(--red);
    color: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-head b {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.panel-head button {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.panel nav {
    flex: 1;
    overflow: auto;
    padding: 10px 20px;
}

.panel nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 1.15rem;
}

.panel nav a::after {
    content: "›";
    color: var(--red);
    font-size: 1.5rem;
}

.panel-foot {
    padding: 16px 20px calc(18px + env(safe-area-inset-bottom,0px));
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
}

body.panel-open {
    overflow: hidden;
}

body.panel-open .scrim {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease;
}

body.panel-open .panel {
    transform: none;
}
