/* RP Mobile Shell — canonical bottom navigation and drawer geometry.
   Loaded after page-specific styles so Home, Shop and content pages share one shell. */
@media (max-width:767px){
  :root{--bottom-nav:66px}
  body.rp-theme{padding-bottom:calc(var(--bottom-nav) + env(safe-area-inset-bottom))}
  body.rp-theme .bottom-nav{
    position:fixed!important;inset:auto 0 0 0!important;z-index:120!important;display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;width:100%!important;max-width:none!important;
    height:calc(var(--bottom-nav) + env(safe-area-inset-bottom))!important;min-height:calc(var(--bottom-nav) + env(safe-area-inset-bottom))!important;
    margin:0!important;padding:0 0 env(safe-area-inset-bottom)!important;overflow:hidden!important;transform:none!important;
    contain:layout paint;isolation:isolate;border:0!important;border-top:1px solid var(--line,#e5e1dc)!important;
    border-radius:0!important;background:#fff!important;box-shadow:0 -6px 22px rgba(17,16,15,.06)!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important
  }
  body.rp-theme .bottom-nav>a,body.rp-theme .bottom-nav>button{
    position:relative;z-index:1;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    width:100%!important;min-width:0!important;height:var(--bottom-nav)!important;min-height:var(--bottom-nav)!important;
    margin:0!important;padding:5px 1px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;
    color:#595652!important;font-size:8px!important;font-weight:850!important;line-height:1!important;letter-spacing:.015em!important;
    text-align:center;text-transform:uppercase;box-shadow:none!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent
  }
  body.rp-theme .bottom-nav>a:hover,body.rp-theme .bottom-nav>button:hover,
  body.rp-theme .bottom-nav>a:focus-visible,body.rp-theme .bottom-nav>button:focus-visible,
  body.rp-theme .bottom-nav .is-active{color:#111!important;background:transparent!important}
  body.rp-theme .bottom-nav .rp-icon{display:block;width:21px!important;height:21px!important;flex:0 0 21px}
  body.rp-theme .bottom-nav-label{display:block!important;width:100%;min-width:0;min-height:10px!important;overflow:hidden;white-space:nowrap!important;text-overflow:ellipsis}
  body.rp-theme .rp-site-footer-block .bottom-nav,body.rp-theme .site-footer .bottom-nav{display:none!important}
  body.rp-theme #drawer.drawer{
    position:fixed!important;inset:auto 0 0 0!important;z-index:210!important;display:flex;flex-direction:column;
    width:100vw!important;max-width:none!important;height:min(82dvh,720px)!important;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)))!important;
    margin:0!important;border:0!important;border-radius:24px 24px 0 0!important;background:#fff!important;
    box-shadow:0 -18px 52px rgba(17,16,15,.2)!important;overflow:hidden!important;transform:translateY(102%)!important;
    transition:transform .28s cubic-bezier(.2,.8,.2,1)!important
  }
  body.rp-theme #drawer.drawer.open{transform:translateY(0)!important}
  body.rp-theme #drawer .drawer-head{
    flex:0 0 60px!important;min-height:60px!important;height:60px!important;display:flex!important;align-items:center!important;
    gap:8px!important;padding:8px 12px!important;border-bottom:1px solid var(--line,#e7e1d9)!important;background:#fff!important
  }
  body.rp-theme #drawer .drawer-head h2{
    flex:1;min-width:0;margin:0!important;font-size:14px!important;line-height:1!important;letter-spacing:.11em!important;
    text-transform:uppercase;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis
  }
  body.rp-theme #drawer .drawer-head .icon-button,body.rp-theme #drawer [data-drawer-back]{
    width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;flex:0 0 38px!important;
    margin:0!important;padding:0!important;border:1px solid var(--line,#e4ddd4)!important;border-radius:999px!important;
    background:#fff!important;display:grid!important;place-items:center!important
  }
  body.rp-theme #drawer [data-drawer-back][hidden]{visibility:hidden!important;display:grid!important}
  body.rp-theme #drawer .drawer-body{
    flex:1 1 auto!important;min-width:0!important;min-height:0!important;width:100%!important;height:auto!important;
    padding:18px!important;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fff!important
  }
  body.rp-theme .drawer-overlay{position:fixed!important;inset:0!important;z-index:200!important}
  body.rp-theme.drawer-open{overflow:hidden!important}
}
@media (max-width:767px){
  body.rp-theme #drawer[data-drawer-type="magazine"]{height:min(82dvh,760px)!important;background:#faf7f2!important}
  body.rp-theme #drawer[data-drawer-type="magazine"] .drawer-head{background:#faf7f2!important;border-bottom:0!important}
  body.rp-theme #drawer[data-drawer-type="magazine"] .drawer-body{padding:0!important;overflow:hidden!important;background:#faf7f2!important}
}