/* Phone-only bottom menu (every page). Wide screens (900px and up) keep the header as it is. */

/* ---- Bottom menu ---- */
.bnav { display: none; }
@media (max-width: 899px) {
  .bnav {
    position: fixed; z-index: 58; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 252, 245, .97); border-top: 1px solid #e6d8b8;
    box-shadow: 0 -10px 26px -14px rgba(10, 13, 45, .28);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .bnav a {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 3px;
    min-height: 52px; padding: 6px 2px 4px; border-radius: 12px;
    color: #5b5f7a; font-size: .72rem; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none;
  }
  .bnav .icon { width: 23px; height: 23px; }
  .bnav a:active { background: #f3ead7; }
  .bnav a:focus-visible { outline: 3px solid var(--sun-500, #d4af5a); outline-offset: -3px; }
  .bnav a[aria-current="page"] { color: #171b4a; }
  .bnav a[aria-current="page"] .icon { color: #b8913a; }
  .bnav a[aria-current="page"]::before {
    content: ""; position: absolute; top: -6px; left: 50%; width: 30px; height: 3px; margin-left: -15px;
    border-radius: 3px; background: #d4af5a;
  }

  /* Room for the menu, and lift the other bottom bars above it. */
  body.has-bnav { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.has-bnav .mcta { display: none !important; }
  body.has-bnav .cart-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.has-bnav .toasts { bottom: calc(150px + env(safe-area-inset-bottom)); }
  body.has-bnav .mobile-bar { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  body.has-bnav .mobile-bar.away { transform: translateY(calc(100% + 90px)); }
  /* The menu has Home, so the shop page's "Customers" back button is not needed on phone (it made the header too wide). */
  body.has-bnav .hd-back { display: none; }
}

/* Small phones: the "Shop page · private" label at the top made the page wider than the screen. */
@media (max-width: 400px) {
  .private-pill { gap: 4px; padding: 5px 9px; font-size: .74rem; }
  .private-pill .icon { width: 14px; height: 14px; }
}
@media (max-width: 370px) { .private-pill .icon { display: none; } }
