.heritage-header-spacer,
.topbar-spacer { display: block; width: 48px; height: 48px; }
.header-search-button { grid-column: 3; }
.topbar { position: relative; justify-content: center; }
.topbar .wordmark { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.topbar-search { position: absolute; left: 0; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: var(--heritage-ink); font-size: 22px; cursor: pointer; }

body.home-active .bottom-nav { display: grid; }
body.home-active .heritage-footer-nav { display: none; }
.bottom-nav { bottom: 0; height: 78px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 248, 236, .34); background: rgba(244, 233, 213, .30); z-index: 30; }
@media (max-width: 559px) {
  html.ios-standalone body.home-active .bottom-nav { top: calc(100vh - 78px); bottom: auto; }
}
.bottom-nav-group { display: contents; }
.bottom-nav-left, .bottom-nav-right { padding: 0; }
.bottom-nav .nav-link { position: relative; min-width: 0; min-height: 54px; padding: 7px 2px; gap: 5px; color: #11181a; text-shadow: 0 1px 0 rgba(255, 255, 255, .96), 0 0 6px rgba(255, 255, 255, .78); transform: translateY(3px); }
.bottom-nav .nav-link span { display: block; font-size: 11px; font-weight: 800; line-height: 1.1; color: inherit; }
.bottom-nav .nav-link i { width: 17px; height: 17px; font-size: 17px; line-height: 17px; }
.bottom-nav .nav-home { grid-column: 3; width: 100%; height: 58px; margin: 0; padding: 0; justify-self: center; align-self: center; justify-content: center; gap: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #11181a; overflow: visible; z-index: 2; transform: translateY(-5px); }
.bottom-nav .palm-mark { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(17, 24, 26, .42); border-radius: 50%; background: rgba(244, 233, 213, .36); box-shadow: 0 1px 6px rgba(32, 42, 45, .1); backdrop-filter: blur(2px); }
.bottom-nav .palm-mark img { width: 42px; height: 42px; display: block; object-fit: contain; filter: contrast(1.04); }
.bottom-nav .nav-cart .nav-cart-label { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; line-height: 1.1; }
.bottom-nav .nav-cart b { position: static; min-width: 16px; height: 16px; display: inline-grid; place-items: center; padding: 0 3px; border: 1px solid var(--heritage-ink); border-radius: 50%; background: var(--heritage-terra); color: var(--heritage-ink); font: 700 8px/1 Manrope, sans-serif; }
.bottom-nav .nav-cart b[hidden] { display: none; }

.search-dialog { width: min(480px, 100%); min-height: 100dvh; max-height: none; margin: 0 auto; border: 0; border-radius: 0; padding: max(24px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom)); background: var(--heritage-cream); color: var(--heritage-ink); }
.search-dialog::backdrop { background: rgba(18, 28, 30, .78); }
.search-dialog[open] { animation: searchIn .24s ease both; }
@keyframes searchIn { from { opacity: 0; transform: translateY(-18px); } }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--heritage-ink); }
.search-head .eyebrow { margin-bottom: 8px; }
.search-head h2 { margin: 0; font: 400 34px/1.05 Prata, 'Playfair Display', serif; letter-spacing: -.04em; }
.close-dialog { border: 0; background: transparent; color: var(--heritage-ink); font: 300 32px/1 Manrope, sans-serif; cursor: pointer; }
.search-form { padding-top: 24px; }
.search-form label { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--heritage-ink); padding: 0 2px 12px; color: var(--heritage-teal); }
.search-form label i { font-size: 21px; }
.search-form input { width: 100%; border: 0; outline: 0; padding: 2px 0; background: transparent; color: var(--heritage-ink); font: 500 15px Manrope, sans-serif; }
.search-form input::placeholder { color: rgba(32, 42, 45, .48); }
.search-submit { width: 100%; min-height: 46px; margin-top: 18px; border: 1px solid var(--heritage-ink); background: var(--heritage-ink); color: var(--heritage-cream); font: 600 10px Manrope, sans-serif; letter-spacing: .14em; cursor: pointer; }
.search-filter-group { padding-top: 32px; }
.search-filter-group p { margin: 0 0 12px; color: var(--heritage-terra); font: 600 8px/1.3 'DM Mono', monospace; letter-spacing: .16em; text-transform: uppercase; }
.search-filter-group > div { display: flex; flex-wrap: wrap; gap: 8px; }
.search-filter { border: 1px solid var(--heritage-ink); border-radius: 0; background: transparent; color: var(--heritage-ink); padding: 10px 13px; font: 600 10px Manrope, sans-serif; cursor: pointer; }
.search-filter.active { background: var(--heritage-teal); border-color: var(--heritage-teal); color: var(--heritage-cream); }
.search-reset { margin-top: 18px; border: 0; border-bottom: 1px solid var(--heritage-terra); background: transparent; color: var(--heritage-terra); padding: 4px 0; font: 600 10px Manrope, sans-serif; cursor: pointer; }

.wishlist-empty { min-height: calc(100dvh - 180px); display: grid; place-content: center; justify-items: center; padding: 44px 22px 104px; text-align: center; }
.wishlist-empty > i { margin-bottom: 22px; color: var(--heritage-terra); font-size: 34px; }
.wishlist-empty .eyebrow { margin-bottom: 12px; }
.wishlist-empty h2 { margin: 0; color: var(--heritage-ink); font: 400 34px/1.1 Prata, 'Playfair Display', serif; letter-spacing: -.04em; }
.wishlist-empty > p:not(.eyebrow) { max-width: 270px; margin: 15px 0 24px; color: rgba(32, 42, 45, .72); font: 500 13px/1.6 Manrope, sans-serif; }
.wishlist-empty .heritage-secondary { width: min(250px, 100%); }

@media (min-width: 560px) {
  .search-dialog { min-height: calc(100dvh - 36px); margin: 18px auto; }
}

@media (min-width: 900px) {
  .bottom-nav {
    width: min(760px, calc(100vw - 112px));
    height: 68px;
    bottom: 22px;
    padding: 6px 24px;
    border: 1px solid var(--heritage-ink);
    border-radius: 999px;
    background: var(--heritage-cream);
    box-shadow: 0 12px 28px rgba(32, 42, 45, .16);
  }
  .bottom-nav .nav-link { min-height: 48px; padding: 5px 10px; gap: 4px; transform: none; }
  .bottom-nav .nav-link span { font-size: 10px; }
  .bottom-nav .nav-link i { width: 20px; height: 20px; font-size: 19px; }
  .bottom-nav .nav-home { height: 56px; transform: none; }
  .bottom-nav .palm-mark { width: 48px; height: 48px; }
  .bottom-nav .palm-mark img { width: 40px; height: 40px; }
}
