.promo-bar {
  position: sticky;
  top: 0;
  z-index: 42;
  height: var(--promo-h);
  background: var(--sky);
  color: var(--black);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.promo-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
  padding: 10px 0;
}

.promo-track span {
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 41;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  color: #ffffff;
  transition: background 0.4s ease, color 0.4s ease;
  border-bottom: 1px solid transparent;
  margin-bottom: calc(var(--header-h) * -1);
  width: 100%;
  max-width: 100%;
}

.site-header a,
.site-header .icon-btn,
.site-header .nav a {
  color: inherit;
}

.site-header svg {
  stroke: currentColor;
}

body:has(.promo-bar) .site-header {
  top: var(--promo-h);
}

.site-header.is-scrolled {
  background: var(--white);
  color: var(--charcoal);
  border-bottom-color: var(--line);
}

.site-header.is-scrolled a,
.site-header.is-scrolled .icon-btn,
.site-header.is-scrolled .nav a {
  color: var(--charcoal);
}

.site-header.is-scrolled svg {
  stroke: var(--charcoal);
}

.site-header.is-solid {
  border-bottom-color: transparent;
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.logo {
  display: block;
  width: 148px;
  height: 44px;
}

@media (max-width: 1500px) and (min-width: 981px) {
  .header-inner {
    max-width: 70%;
    gap: 16px;
  }

  .logo {
    width: 120px;
    height: 36px;
  }

  .nav {
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 700;
  }

  .product-card {
    padding: 10px 10px 14px;
    gap: 6px;
    border-radius: 16px;
  }

  .product-media {
    border-radius: 16px;
  }

  .product-type {
    font-size: 11px;
  }

  .product-name {
    font-size: 14px;
  }

  .btn-cart {
    min-height: 38px;
    padding: 0 20px;
    font-size: 11px;
  }

  .site-footer {
    padding: 56px 0 24px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-logo {
    max-width: 120px;
  }
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-white { display: block; }
.logo-dark { display: none; }

.site-header.is-scrolled .logo-white { display: none; }
.site-header.is-scrolled .logo-dark { display: block; }

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-weight: 700;
  opacity: 0.92;
  transition: opacity var(--ease);
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
}

.nav a:hover::after,
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: currentColor;
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-toggle {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
  z-index: 85;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer,
.search-overlay,
.mobile-nav {
  position: fixed;
  z-index: 90;
  background: var(--white);
  color: var(--black);
  max-width: 100%;
}

.drawer {
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  transform: translateX(100%);
  transition: transform var(--ease);
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.drawer.is-open {
  transform: none;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.search-overlay {
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  padding: 24px;
  transition: opacity var(--ease);
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-popup {
  background: var(--white);
  border-radius: 20px;
  width: min(820px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  transform: translateY(16px);
  transition: transform var(--ease);
}

.search-overlay.is-open .search-popup {
  transform: none;
}

.search-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.search-popup-head button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background var(--ease);
}

.search-popup-head button:hover {
  background: var(--off);
}

.search-input-wrap {
  position: relative;
  margin-bottom: 28px;
}

.search-input-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  padding: 14px 48px 14px 16px;
  outline: none;
  transition: border-color var(--ease);
}

.search-input-wrap input:focus {
  border-color: var(--blue);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-keywords {
  margin-bottom: 28px;
}

.search-keywords h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-tags a,
.keyword-tags button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 13px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.keyword-tags a:hover,
.keyword-tags button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.search-recent h4,
.search-results h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.recent-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.recent-img {
  aspect-ratio: 1;
  background: var(--product-stage, #f5f4f0);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.recent-img img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.recent-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.recent-price {
  font-size: 13px;
  color: var(--muted);
}

.search-results {
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

.search-results[hidden],
.search-recent[hidden] {
  display: none;
}

.search-page-hits {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.search-page-hits a,
.search-results > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.search-page-hits a:hover {
  color: var(--teal-deep);
}

@media (max-width: 640px) {
  .search-popup {
    padding: 24px 20px;
  }
  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer {
    padding-bottom: 100px !important;
  }
}

.mobile-nav {
  top: 0;
  left: 0;
  width: min(360px, 100%);
  height: 100%;
  padding: 28px;
  transform: translateX(-100%);
  transition: transform var(--ease);
}

.mobile-nav.is-open {
  transform: none;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  background: var(--sky);
  padding: 72px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 32px;
}

.footer-grid h3 {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--charcoal);
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--black);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 12px;
  color: var(--charcoal);
}

.footer-bottom > p {
  justify-self: start;
}

.footer-logo {
  width: 160px;
  justify-self: center;
}

.footer-bottom .pay-row {
  justify-self: end;
}

.pay-row {
  display: flex;
  gap: 8px;
}

.pay-chip {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-social {
  color: var(--white);
  transition: opacity var(--ease);
}

.footer-social:hover {
  opacity: 0.7;
}

.footer-acc-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 18px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: inherit;
  text-align: left;
  cursor: default;
}

.footer-acc-btn .footer-acc-icon {
  display: none;
}

.footer-acc-body {
  display: block;
}

.featured-products {
  background: var(--white);
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(65, 65, 65, 0.08);
  padding: 12px 12px 16px;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.product-card:hover {
  border-color: #d8d3cc;
  box-shadow: 0 16px 36px rgba(65, 65, 65, 0.14);
}

.product-media {
  position: relative;
  width: 100%;
  background: var(--product-stage);
  border-radius: 20px;
  overflow: hidden;
}

.product-media::before,
.camp-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../images/product-bottle-hover.png") center / cover no-repeat;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
  border-radius: inherit;
}

.product-card:hover .product-media::before,
.product-card:focus-within .product-media::before,
.camp-card:hover .camp-media::before,
.camp-card:focus-within .camp-media::before {
  opacity: 1;
}

.product-visual {
  display: block;
  width: 100%;
  background: var(--product-stage);
}

.camp-media .product-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.product-card .product-visual img,
.product-card .product-media > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 14px rgba(40, 36, 32, 0.18));
}

.product-visual img,
.product-media > img,
.gallery-main img,
.cart-thumb img,
.quick-modal-media img,
.camp-media img {
  width: 78%;
  height: 82%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 14px rgba(40, 36, 32, 0.18));
}

.camp-media img {
  width: 72%;
  height: auto;
  max-height: 86%;
  margin-inline: auto;
}

.product-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px;
  background: rgba(245, 244, 240, 0.25);
  backdrop-filter: blur(0.5px);
  border-radius: 24px;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}

.product-card:hover .product-hover,
.product-card:focus-within .product-hover,
.camp-card:hover .product-hover,
.camp-card:focus-within .product-hover {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
}

.hover-wish {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background var(--ease), transform var(--ease);
}

.hover-wish:hover {
  transform: scale(1.1);
}

.hover-wish svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 1.6;
}

.hover-wish.is-on svg {
  fill: var(--coral);
  stroke: var(--coral);
}

.quick-view {
  min-height: 38px;
  padding: 0 20px;
  border-radius: var(--pill);
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background var(--ease);
  width: auto;
}

.quick-view:hover {
  background: var(--blue);
}

.btn-cart {
  width: auto;
  justify-content: center;
  min-height: 42px;
  padding: 0 28px;
  /* margin-top: 6px; */
  background: var(--navy);
  color: var(--white);
}

.section-head .btn-cart,
.campaign-copy .btn-cart {
  margin-top: 0;
}

.btn-cart:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.card-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--ease), transform var(--ease);
}

.product-card:hover .card-actions {
  opacity: 1;
  transform: none;
}

.card-actions button {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.card-actions svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

@media (hover: none) {
  .product-hover {
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
  }
  .product-hover .quick-view {
    display: none;
  }
}

.quick-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 95;
  width: min(860px, calc(100% - 32px));
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--white);
  color: var(--black);
  border-radius: 22px;
  padding: 28px;
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.quick-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.quick-modal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.quick-modal-media {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--product-stage);
  display: grid;
  place-items: center;
}

.product-type {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  letter-spacing: 0.12em;
}

.pagination a,
.pagination span {
  min-width: 28px;
  text-align: center;
}

.pagination .is-active {
  border-bottom: 1px solid var(--black);
}

.cart-freeship {
  margin-bottom: 20px;
  font-size: 13px;
}

.cart-freeship strong {
  color: var(--blue);
}

.freeship-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.freeship-fill {
  height: 100%;
  background: var(--sky);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.cart-thumb {
  width: 72px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--product-stage);
  display: grid;
  place-items: center;
}

.cart-line-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.cart-line-info .product-name {
  font-weight: 600;
  font-size: 14px;
}

.cart-line-meta {
  color: var(--muted);
  font-size: 12px;
}

.cart-remove {
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  align-self: start;
}

.cart-remove:hover {
  text-decoration: underline;
}

.cart-line-price {
  text-align: right;
  font-size: 14px;
  white-space: nowrap;
}

.cart-actions-row {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.cart-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  transition: background var(--ease);
}

.cart-action-btn:hover {
  background: var(--off);
}

.drawer-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.drawer-foot .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
}

.drawer-foot .btn-dark {
  background: var(--blue);
  color: var(--black);
}

.drawer-foot .btn-dark:hover {
  background: var(--coral);
}

.cart-terms {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  cursor: pointer;
}

.cart-terms a {
  text-decoration: underline;
}

.cart-foot-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-foot-btns .btn-ghost {
  border: 1px solid var(--black);
  justify-content: center;
}

.cart-foot-btns .btn-cart {
  justify-content: center;
}

.cart-continue {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.cart-continue a {
  text-decoration: underline;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  z-index: 30;
}

@media (max-width: 980px) {
  /* Fixed (not sticky): overflow-x:hidden on html/body breaks sticky */
  .promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 42;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-bottom: 0;
    z-index: 41;
  }

  body:has(.promo-bar) .site-header {
    top: var(--promo-h);
  }

  /* Keep document offset that in-flow promo used to provide */
  body:has(.promo-bar) {
    padding-top: var(--promo-h);
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .logo {
    justify-self: start;
  }

  .header-utils {
    justify-self: end;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom > p,
  .footer-logo,
  .footer-bottom .pay-row {
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .quick-modal-grid {
    grid-template-columns: 1fr;
  }

  .quick-modal-media {
    max-height: 320px;
  }
}


@media (max-width: 640px) {
  .drawer:not(.drawer-left) {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: min(88vh, 100%);
    border-radius: 20px 20px 0 0;
    transform: translateY(110%);
  }

  .drawer:not(.drawer-left).is-open {
    transform: translateY(0);
  }

  .drawer-left {
    top: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    transform: translateX(-100%) !important;
  }

  .drawer-left.is-open {
    transform: translateX(0) !important;
  }

  body:has(.drawer.is-open) .mobile-bottom-nav,
  body:has(.search-overlay.is-open) .mobile-bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
  }

  .mobile-bottom-nav {
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid > .footer-acc {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  .footer-acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 16px 0;
    cursor: pointer;
  }

  .footer-acc-btn .footer-acc-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    transition: transform 0.28s ease;
  }

  .footer-acc.is-open .footer-acc-icon {
    transform: rotate(180deg);
  }

  .footer-acc-body {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .footer-acc.is-open .footer-acc-body {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .footer-acc-inner {
    padding: 0 0 16px;
    overflow: hidden;
  }

  .footer-acc-inner > :first-child {
    margin-top: 0;
  }

  .footer-acc-inner > :last-child {
    margin-bottom: 0;
  }

  .quick-modal {
    padding: 20px;
    width: min(860px, calc(100% - 20px));
  }

  .quick-modal-media {
    max-height: 240px;
  }

  .search-popup {
    padding: 20px 16px;
    border-radius: 16px;
  }
}

@media (hover: none) {
  .quick-view {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ── Mobile bottom navigation ── */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 980px) {


  .to-top {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 0;
    pointer-events: none;
  }

  .mnav-bar {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    height: calc(72px + env(safe-area-inset-bottom, 0px));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--sky);
    border-radius: 28px 28px;
    box-shadow: 0 -8px 28px rgba(44, 204, 211, 0.32);
    pointer-events: auto;
    overflow: hidden;
    margin: 10px;
  }

  .mnav-notch {
    position: absolute;
    top: 6px;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    left: 6px;
    width: calc((100% - 12px) / 5);
    transform: translateX(calc(var(--mnav-active, 0) * 100%));
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
  }

  .mnav-notch[hidden] {
    display: none;
  }

  .mnav-notch-inner {
    position: absolute;
    inset: 0 6px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(65, 65, 65, 0.08);
  }

  .mnav-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    padding: 6px 2px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.28s ease;
  }

  .mnav-item svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mnav-item.is-active {
    color: var(--charcoal);
  }

  .mnav-item.is-active svg {
    stroke: var(--charcoal);
  }

  .mnav-item-menu {
    color: #fff;
  }

  .mnav-item-menu.is-active {
    color: var(--charcoal);
  }

  .mnav-item-menu.is-active svg {
    stroke: var(--charcoal);
  }

  .mnav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 11px;
  }

  .mnav-item[data-mnav="articulation"] span {
    font-size: 9px;
    letter-spacing: 0;
  }

  .mnav-item[data-mnav="collection"] span {
    font-size: 10px;
  }
}

/* Menu popup (fade-in) */
.mnav-menu-popup {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
  padding: 16px 16px calc(96px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.mnav-menu-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mnav-menu-panel {
  width: min(420px, 100%);
  max-height: min(72vh, 560px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.32s ease;
  -webkit-overflow-scrolling: touch;
}

.mnav-menu-popup.is-open .mnav-menu-panel {
  transform: none;
}

.mnav-menu-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.mnav-menu-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mnav-menu-links {
  display: grid;
  gap: 0;
}

.mnav-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line, #e6e2dc);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.mnav-menu-links a:last-child {
  border-bottom: 0;
}

.mnav-menu-links a:hover {
  color: var(--blue, #00b7bd);
}

.mnav-menu-links a::after {
  content: "→";
  opacity: 0.35;
  font-size: 14px;
}

@media (min-width: 981px) {
  .mnav-menu-popup {
    display: none !important;
  }


}
