.wc-mbnav{ display:none; }
@media (max-width: 991px) and (pointer: coarse), (hover: none) and (pointer: coarse) {
  .wc-mbnav{ position:fixed; left:0; right:0; bottom:0; z-index:999999; display:block; pointer-events:auto; }

  /* blocker: covers a small strip above the nav to hide floating pagination dots or other controls */
  .wc-mbnav__blocker {
    position:fixed;
    left:0;
    right:0;
    bottom:72px;       /* same vertical gap as nav top */
    height:56px;       /* tweak if your theme dots are taller */
    z-index:999998;
    /* background: #ffffff;  match your nav background; change to theme color if needed */
    box-shadow: 0 -8px 20px rgba(0,0,0,0.03);
    pointer-events:none; /* allow taps to pass through if needed */
  }

  .wc-mbnav__inner{ display:flex; gap:6px; margin:0 auto; background:#000; border-radius:18px 18px 0 0; padding:8px 10px; max-width:760px; box-shadow:0 -6px 24px rgba(0,0,0,.08); align-items:center; justify-content:space-between; }

  .wc-mbnav__item{ display:flex; flex-direction:column; align-items:center; text-decoration:none; color:#111; font-size:12px; flex:1 1 0; padding:6px 6px; }
  .wc-mbnav__icon{ display:inline-flex; width:36px; height:36px; align-items:center; justify-content:center; border-radius:50%; border:1px solid #eee; margin-bottom:4px; }
  .wc-mbnav__label{ font-size:12px; line-height:1; color:#fff; }

  /* search overlay */
  .wc-mbnav__search{ position:fixed; left:10px; right:10px; bottom:72px; z-index:1000000; display:none; background:rgba(255,255,255,0.98); border-radius:12px; padding:10px; box-shadow:0 10px 30px rgba(0,0,0,.08); }
  .wc-mbnav__search[aria-hidden="false"]{ display:block; }
  .wc-mbnav__searchform{ display:flex; gap:8px; align-items:center; }
  .wc-mbnav__searchform input[type="search"]{ flex:1 1 auto; padding:10px 12px; border-radius:10px; border:1px solid #eee; }
  .wc-mbnav__searchform button{ background:#111; color:#fff; border-radius:10px; border:none; padding:10px 12px; cursor:pointer; }
  .wc-mbnav__search-close{ background:transparent; border:0; font-size:16px; padding:6px; }

  /* safe-area padding so the nav doesn't overlap phone home indicators */
  .wc-mbnav__inner { padding-bottom: calc(env(safe-area-inset-bottom, 12px) + 6px); padding-left: 12px; padding-right:12px; }
}

/* Small tweak: ensure plugin hidden on non-touch desktop even in narrow windows */
@media (min-width: 992px){
  .wc-mbnav{ display:none !important; }
  .wc-mbnav__search{ display:none !important; }
}