/* Menu inferior do cliente, discreto como o cabeçalho. */
.pc-bottom-nav{display:none}
@media(max-width:760px){
  body.pc-has-bottom-nav{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
  .pc-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
    bottom:calc(9px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);
    width:min(450px,calc(100% - 22px));padding:6px;z-index:120;
    border:1px solid var(--line,#E9D4AA);border-radius:21px;
    background:rgba(255,254,250,.92);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);
    box-shadow:0 12px 35px rgba(10,9,3,.13);color:var(--muted,#6B593B)}
  .pc-bottom-nav a{min-width:0;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    border-radius:15px;color:var(--muted,#6B593B);font-size:10px;line-height:1.1;font-weight:800;text-align:center;text-decoration:none}
  .pc-bottom-nav a svg{display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .pc-bottom-nav a[aria-current=page]{color:var(--ink,#0A0903);background:var(--acid,#FFC100)}
  .pc-bottom-nav a:focus-visible{outline:2px solid var(--sky,#FF8200);outline-offset:2px}
  body.pc-has-bottom-nav .cartbar{bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
  #lista{scroll-margin-top:95px}
}

/* Mantém altura constante na navegação pública durante a rolagem. */
@media(max-width:760px){
  .pc-bottom-nav{height:68px;min-height:68px;flex-shrink:0;align-content:center}
}
/* R7: a loja usa rolagem interna do cardápio. Seu menu é um rodapé fixo
   na estrutura flex da tela, nunca dentro do elemento que rola. */
@media(max-width:760px){
  /* Apenas o body da loja é travado; o html da página inicial fica livre para rolar. */
  body.pc-store-layout{height:100%;height:100dvh;overflow:hidden!important}
  body.pc-store-layout.pc-has-bottom-nav{padding-bottom:0!important;min-height:0}
  body.pc-store-layout .pc-bottom-nav{
    position:relative!important;left:auto!important;bottom:auto!important;
    transform:none!important;flex:0 0 auto;align-self:center;
    width:min(450px,calc(100% - 22px));margin:6px auto max(9px,env(safe-area-inset-bottom,0px));
    z-index:180;min-height:66px;
  }
  body.pc-store-layout main.store-scroll-area{padding-bottom:18px!important;min-height:0}
  body.pc-store-layout .cartbar{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
}

/* R9 — dock encostado na base, sem aparência de menu flutuante ao rolar no iOS.
   O navegador pode recolher sua barra de endereço; a área segura permanece respeitada. */
@media(max-width:760px){
  body.pc-has-bottom-nav{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
  .pc-bottom-nav{left:0!important;right:0!important;bottom:0!important;transform:none!important;
    width:100%!important;max-width:none!important;
    height:calc(68px + env(safe-area-inset-bottom,0px))!important;
    min-height:calc(68px + env(safe-area-inset-bottom,0px))!important;
    padding:5px max(10px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px))!important;
    border-radius:19px 19px 0 0!important;border-bottom:0!important;
    box-shadow:0 -5px 22px rgba(10,9,3,.08)!important}
  .pc-bottom-nav a{min-height:54px}
  body.pc-has-bottom-nav .cartbar{bottom:calc(73px + env(safe-area-inset-bottom,0px))!important}
  body.pc-store-layout.pc-has-bottom-nav{padding-bottom:0!important}
  body.pc-store-layout .pc-bottom-nav{position:relative!important;left:auto!important;right:auto!important;
    bottom:auto!important;transform:none!important;align-self:stretch!important;
    width:100%!important;max-width:none!important;margin:0!important;flex:0 0 auto!important;
    z-index:180}
  body.pc-store-layout main.store-scroll-area{padding-bottom:18px!important}
}
