/* Waway · menú móvil estable, opaco y por encima del contenido */
.menu-fondo-movil {
  display: none;
}

@media (max-width: 980px) {
  html { scroll-padding-top: 20px !important; }

  html body > header.site-header {
    position: relative !important;
    inset: auto !important;
    z-index: 1700 !important;
    transform: none !important;
    transition: box-shadow .2s ease !important;
  }

  html body > header.site-header .container {
    position: relative !important;
    z-index: 1702 !important;
  }

  .menu-fondo-movil {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(25, 20, 17, .58);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    backdrop-filter: blur(3px);
    transition: opacity .22s ease, visibility .22s ease;
  }

  .menu-fondo-movil.activo {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  html body > header.site-header .site-nav,
  html body > header.site-header .container > nav {
    position: fixed !important;
    top: var(--menu-mobile-top, 88px) !important;
    right: 14px !important;
    bottom: auto !important;
    left: 14px !important;
    z-index: 1701 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: auto !important;
    max-height: 0 !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 24px !important;
    background: #fffdfb !important;
    box-shadow: 0 28px 80px rgba(29, 22, 18, .32) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: max-height .28s ease, opacity .22s ease, transform .22s ease, visibility .22s ease !important;
  }

  html body > header.site-header .site-nav.abierto,
  html body > header.site-header .container > nav.abierto {
    max-height: calc(100dvh - var(--menu-mobile-top, 88px) - 14px) !important;
    padding: 10px !important;
    border-color: rgba(64, 48, 39, .12) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  html body > header.site-header .site-nav ul,
  html body > header.site-header .container > nav ul {
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 4px !important;
    background: #fffdfb !important;
  }

  html body > header.site-header .site-nav a,
  html body > header.site-header .container > nav a,
  html body > header.site-header .nav-categorias-toggle {
    color: #241f1b !important;
  }

  html body.menu-abierto {
    overflow: hidden !important;
  }

  html body.menu-abierto > header.site-header .menu-toggle {
    position: relative;
    z-index: 1703;
    background: #fff !important;
  }
}


/* Botón de carrito legible dentro del menú móvil */
@media (max-width: 980px) {
  html body > header.site-header .site-nav a.nav-carrito,
  html body > header.site-header .container > nav a.nav-carrito {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 56px !important;
    padding: 14px 18px !important;
    border-radius: 999px !important;
    background: #211d1a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body > header.site-header .site-nav a.nav-carrito .contador-carrito,
  html body > header.site-header .container > nav a.nav-carrito .contador-carrito {
    display: inline-flex !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    background: #c96a4c !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,.22) !important;
  }
}
