/* ==========================================================
   MAHAU MOBILE NAV — navegação global para clientes
   Apenas mobile/tablet. Não altera o layout desktop.
   ========================================================== */

:root{
  --mahau-mobile-bg:rgba(7,7,9,.97);
  --mahau-mobile-panel:#0a0a0d;
  --mahau-mobile-border:rgba(255,255,255,.08);
  --mahau-mobile-text:#fff;
  --mahau-mobile-muted:rgba(255,255,255,.50);
  --mahau-mobile-purple:#a653eb;
}

/* desktop: nada muda */
.mahau-customer-mobile-top,
.mahau-customer-mobile-drawer,
.mahau-customer-mobile-backdrop,
.mahau-customer-mobile-bottom{
  display:none;
}

@media(max-width:900px){

  body{
    padding-top:62px !important;
    padding-bottom:76px !important;
  }

  /* barra superior */
  .mahau-customer-mobile-top{
    position:fixed;
    inset:0 0 auto 0;
    z-index:11990;
    height:62px;
    display:grid;
    grid-template-columns:44px 1fr 44px;
    align-items:center;
    gap:10px;
    padding:0 10px;
    box-sizing:border-box;
    background:var(--mahau-mobile-bg);
    border-bottom:1px solid var(--mahau-mobile-border);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .mahau-customer-mobile-menu,
  .mahau-customer-mobile-home{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.09);
    background:#111115;
    color:#fff;
    text-decoration:none;
    font-size:1.05rem;
    padding:0;
  }

  .mahau-customer-mobile-brand{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    text-decoration:none;
    color:#fff;
  }

  .mahau-customer-mobile-brand img{
    width:34px;
    height:34px;
    object-fit:contain;
  }

  .mahau-customer-mobile-brand span{
    min-width:0;
    display:flex;
    flex-direction:column;
    line-height:1.02;
  }

  .mahau-customer-mobile-brand small{
    color:#c988ff;
    font-size:.53rem;
    font-weight:950;
    letter-spacing:.12em;
  }

  .mahau-customer-mobile-brand strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:.80rem;
  }

  /* backdrop */
  .mahau-customer-mobile-backdrop{
    position:fixed;
    inset:0;
    z-index:12000;
    background:rgba(0,0,0,.68);
    backdrop-filter:blur(5px);
    -webkit-backdrop-filter:blur(5px);
  }

  .mahau-customer-mobile-backdrop.open{
    display:block;
  }

  /* drawer */
  .mahau-customer-mobile-drawer{
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    z-index:12001;
    width:min(88vw,355px);
    display:flex;
    flex-direction:column;
    transform:translateX(-104%);
    transition:transform .22s ease;
    background:
      radial-gradient(circle at 20% 0%,rgba(127,49,196,.14),transparent 30%),
      var(--mahau-mobile-panel);
    border-right:1px solid var(--mahau-mobile-border);
    box-shadow:30px 0 80px rgba(0,0,0,.5);
  }

  .mahau-customer-mobile-drawer.open{
    transform:translateX(0);
  }

  .mahau-customer-mobile-drawer-head{
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    border-bottom:1px solid rgba(255,255,255,.07);
  }

  .mahau-customer-mobile-drawer-brand{
    display:flex;
    align-items:center;
    gap:10px;
  }

  .mahau-customer-mobile-drawer-brand img{
    width:46px;
    height:46px;
    object-fit:contain;
  }

  .mahau-customer-mobile-drawer-brand span{
    display:flex;
    flex-direction:column;
  }

  .mahau-customer-mobile-drawer-brand small{
    color:#c988ff;
    font-size:.57rem;
    font-weight:950;
    letter-spacing:.12em;
  }

  .mahau-customer-mobile-drawer-brand strong{
    color:#fff;
    font-size:.92rem;
  }

  .mahau-customer-mobile-close{
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.08);
    background:#111115;
    color:#fff;
    font-size:1rem;
  }

  .mahau-customer-mobile-links{
    padding:12px;
    overflow-y:auto;
    overscroll-behavior:contain;
    display:flex;
    flex-direction:column;
    gap:5px;
  }

  .mahau-customer-mobile-section{
    margin:12px 8px 5px;
    color:#a969de;
    font-size:.57rem;
    font-weight:950;
    letter-spacing:.14em;
  }

  .mahau-customer-mobile-links a{
    min-height:48px;
    padding:0 12px;
    display:grid;
    grid-template-columns:28px 1fr auto;
    gap:8px;
    align-items:center;
    border-radius:12px;
    border:1px solid transparent;
    background:rgba(255,255,255,.014);
    color:rgba(255,255,255,.72);
    text-decoration:none;
    font-size:.82rem;
    font-weight:820;
  }

  .mahau-customer-mobile-links a .icon{
    text-align:center;
    font-size:1rem;
  }

  .mahau-customer-mobile-links a .arrow{
    color:rgba(255,255,255,.24);
  }

  .mahau-customer-mobile-links a.active{
    color:#fff;
    border-color:rgba(190,111,255,.17);
    background:rgba(132,54,200,.12);
  }

  .mahau-customer-mobile-drawer-foot{
    margin-top:auto;
    padding:12px;
    border-top:1px solid rgba(255,255,255,.07);
  }

  .mahau-customer-mobile-drawer-foot a{
    min-height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    text-decoration:none;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
    background:#111115;
    font-size:.8rem;
    font-weight:850;
  }

  /* bottom navigation */
  .mahau-customer-mobile-bottom{
    position:fixed;
    inset:auto 0 0 0;
    z-index:11989;
    min-height:66px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    padding:5px 5px calc(5px + env(safe-area-inset-bottom));
    box-sizing:border-box;
    background:rgba(7,7,9,.97);
    border-top:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .mahau-customer-mobile-bottom a,
  .mahau-customer-mobile-bottom button{
    min-width:0;
    border:0;
    background:transparent;
    color:rgba(255,255,255,.47);
    text-decoration:none;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    font:inherit;
    padding:2px 3px;
  }

  .mahau-customer-mobile-bottom .icon{
    font-size:1.08rem;
    line-height:1;
  }

  .mahau-customer-mobile-bottom small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width:100%;
    font-size:.56rem;
    font-weight:850;
  }

  .mahau-customer-mobile-bottom a.active{
    color:#c981ff;
  }

  .mahau-customer-mobile-bottom button{
    cursor:pointer;
  }

  body.mahau-customer-menu-open{
    overflow:hidden;
  }

  /* checkout/inputs: mantém conteúdo acima do menu inferior */
  input,
  select,
  textarea,
  button{
    scroll-margin-top:78px;
    scroll-margin-bottom:90px;
  }
}
