.mobile-shop-nav { display: none; }

@media (max-width: 680px) and (hover: none) and (pointer: coarse) {
  .has-mobile-shop-nav {
    --shop-nav-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    --shop-nav-clearance: calc(72px + var(--shop-nav-bottom));
    padding-bottom: var(--shop-nav-clearance);
  }

  .has-mobile-shop-nav .shop-header .nav { padding-bottom: 9px; }
  .has-mobile-shop-nav .shop-header .shop-actions:not(.shop-actions--staff),
  .has-mobile-shop-nav .shop-header .shop-actions > a:not(.staff-shortcut) { display: none; }

  .mobile-shop-nav {
    position: fixed;
    z-index: 9;
    bottom: var(--shop-nav-bottom);
    inset-inline: max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 410px;
    margin-inline: auto;
    gap: 4px;
    padding: 5px;
    border: 1px solid #cddbcf;
    border-radius: 26px;
    background: #fffdf8;
    color: var(--dark);
    box-shadow: 0 7px 24px #153c2c2e;
  }

  .mobile-shop-nav a {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 52px;
    padding: 4px 2px;
    gap: 3px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }

  .mobile-shop-nav a[aria-current] {
    background: #e8f0e4;
    color: var(--green);
    box-shadow: inset 0 -2px #cfab61;
  }

  .mobile-shop-nav svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-shop-nav-icon { position: relative; }
  .mobile-shop-count:not([hidden]) {
    position: absolute;
    inset-inline-start: 72%;
    top: -4px;
    min-width: 18px;
    padding: 1px 4px;
    border: 1px solid #fffdf8;
    border-radius: 100px;
    background: #eed196;
    color: var(--dark);
    font-size: .625rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
  }

  .has-mobile-shop-nav .cart-feedback { bottom: var(--shop-nav-clearance); }
}
