/* 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,#dedede)!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:var(--muted,#737373)!important;font-size:10px!important;font-weight:850!important;line-height:1.15!important;letter-spacing:0!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:var(--text,#050505)!important;background:transparent!important}
  /* Keep keyboard focus unmistakable and inside the clipped mobile bar. */
  body.rp-theme .bottom-nav>a:focus-visible,
  body.rp-theme .bottom-nav>button:focus-visible,
  body.rp-theme .mobile-header .brand:focus-visible {
    outline:3px solid var(--rp-brand-brown-dark,#634721)!important;
    outline-offset:-4px!important;
    border-radius:8px!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:visible;white-space:normal!important;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5!important}
  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,#dedede)!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:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:0 0 44px!important;
    margin:0!important;padding:0!important;border:1px solid var(--line,#dedede)!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:var(--rp-cream,#f5f3ee)!important}
  body.rp-theme #drawer[data-drawer-type="magazine"] .drawer-head{background:var(--rp-cream,#f5f3ee)!important;border-bottom:0!important}
  body.rp-theme #drawer[data-drawer-type="magazine"] .drawer-body{padding:0!important;overflow:hidden!important;background:var(--rp-cream,#f5f3ee)!important}
}

/* Shared footer accordion: parity with Home on every mobile template. */
/* PRSTUDIO_FOOTER_ACCORDION_FIX_20261003 */
.site-footer .footer-accordion-trigger[hidden],
.site-footer .footer-desktop-title[hidden],
.site-footer .site-footer-col-links[hidden] {
  display: none !important;
}
@media (min-width: 768px) {
  .site-footer .footer-accordion-trigger {
    display: none !important;
  }
  .site-footer .footer-desktop-title {
    display: block;
  }
  .site-footer .site-footer-col-links {
    display: contents !important;
  }
}
@media (max-width: 767px) {
  .site-footer .site-footer-inner {
    gap: 0 !important;
  }
  .site-footer .site-footer-col {
    display: block !important;
    gap: 0 !important;
    border-top: 1px solid var(--line);
  }
  .site-footer .site-footer-col h2.footer-desktop-title {
    display: none !important;
  }
  .site-footer .footer-accordion-trigger:not([hidden]) {
    width: 100%;
    min-height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
    text-align: left;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
  }
  .site-footer .footer-accordion-icon {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .site-footer .footer-accordion-icon::before,
  .site-footer .footer-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
  }
  .site-footer .footer-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .site-footer .footer-accordion-trigger[aria-expanded="true"] .footer-accordion-icon::after {
    opacity: 0;
  }
  .site-footer .site-footer-col-links:not([hidden]) {
    display: grid !important;
    gap: 0;
  }
  .site-footer .site-footer-col-links > :where(a, .footer-cookie-button) {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,.055);
  }
}

/* Social pills / footer accordion separation. Shared by Home, Shop and product. */
@media (max-width:767px) {
  body.rp-theme .site-footer .footer-social-links {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    max-width: 100%;
    gap: 6px;
    justify-content: flex-start;
    direction: ltr;
    margin: 14px 0 10px;
  }
  body.rp-theme .site-footer .footer-social-links :where(a, .footer-cookie-button) {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 10px;
    white-space: nowrap;
  }
  body.rp-theme .site-footer .site-footer-brand {
    min-width: 0;
  }
}
