/* Shared sticky navigation behavior for every Chinese static route. */

.cn,
.artist-cn {
  overflow-x: clip;
  overflow-y: visible;
}

.shop-nav,
.cn-nav.static,
.artist-site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
}

.shop-nav,
.cn-nav.static {
  -webkit-backdrop-filter: saturate(110%) blur(14px);
  backdrop-filter: saturate(110%) blur(14px);
}

.shop-nav {
  background: rgb(242 239 231 / 94%);
}

/* The homepage navigation shares the opening frame with the full-viewport hero. */
.cn-shop-home .shop-nav {
  color: #f5f0e7;
  margin-bottom: -76px;
  border-bottom-color: rgb(245 240 231 / 22%);
  background: linear-gradient(180deg, rgb(10 9 8 / 50%), rgb(10 9 8 / 8%));
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    backdrop-filter 240ms ease;
}

.cn-shop-home .shop-nav.is-scrolled {
  color: #22211d;
  background: rgb(242 239 231 / 94%);
  -webkit-backdrop-filter: saturate(110%) blur(14px);
  backdrop-filter: saturate(110%) blur(14px);
}

.cn-nav.static {
  background: rgb(238 233 221 / 94%);
}

.shop-nav.is-scrolled,
.cn-nav.static.is-scrolled {
  border-bottom-color: rgb(34 33 29 / 24%);
  box-shadow: 0 12px 28px rgb(28 37 32 / 8%);
}

.artist-site-nav {
  margin-bottom: -78px;
}

.artist-site-nav.is-scrolled {
  color: #f4efe7;
  background: rgb(21 26 23 / 94%);
  border-bottom-color: rgb(244 239 231 / 18%);
  box-shadow: 0 12px 28px rgb(10 12 11 / 16%);
  -webkit-backdrop-filter: saturate(90%) blur(14px);
  backdrop-filter: saturate(90%) blur(14px);
}

.artist-index .artist-site-nav {
  color: #211f1a;
  background: rgb(238 233 221 / 94%);
  margin-bottom: 0;
  -webkit-backdrop-filter: saturate(110%) blur(14px);
  backdrop-filter: saturate(110%) blur(14px);
}

.artist-index .artist-site-nav.is-scrolled {
  color: #211f1a;
  border-bottom-color: rgb(33 31 26 / 22%);
  box-shadow: 0 12px 28px rgb(28 37 32 / 8%);
}

@media (max-width: 1000px) {
  .cn-shop-home .shop-nav > nav {
    color: #22211d;
  }
}

:where(.cn, .artist-cn) [id] {
  scroll-margin-top: 104px;
}

@media (max-width: 620px) {
  .shop-nav,
  .cn-nav.static,
  .artist-site-nav {
    z-index: 120;
  }

  .cn-shop-home .shop-nav {
    margin-bottom: -66px;
  }

  :where(.cn, .artist-cn) [id] {
    scroll-margin-top: 88px;
  }
}

/* 2026-09-02: shared Harlowelife + 或泊生活 navigation lockup. */
:where(.shop-nav, .cn-nav.static) .cn-brand,
.artist-site-nav .artist-site-brand,
.shop-footer .cn-brand {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 128px;
  height: 48px;
}

:where(.shop-nav, .cn-nav.static) .cn-brand > *,
.artist-site-nav .artist-site-brand > *,
.shop-footer .cn-brand > * {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(.shop-nav, .cn-nav.static) .cn-brand::before,
.artist-site-nav .artist-site-brand::before,
.shop-footer .cn-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: center / contain no-repeat url("./harlowelife-header-logo-black.png");
}

.cn-shop-home .shop-nav .cn-brand::before,
.artist-site-nav .artist-site-brand::before,
.shop-footer .cn-brand::before {
  background-image: url("./harlowelife-header-logo-white.png");
}

.cn-shop-home .shop-nav.is-scrolled .cn-brand::before,
.artist-index .artist-site-nav .artist-site-brand::before {
  background-image: url("./harlowelife-header-logo-black.png");
}

@media (max-width: 620px) {
  :where(.shop-nav, .cn-nav.static) .cn-brand,
  .artist-site-nav .artist-site-brand,
  .shop-footer .cn-brand {
    width: 112px;
    height: 42px;
  }
}

/* Mobile detail navigation: keep the menu, remove the presale shortcut. */
@media (max-width: 1000px) {
  .cn-nav.static > .cn-nav-cta {
    display: none !important;
  }

  .cn-nav.static > .cn-menu {
    display: block;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    color: inherit;
  }

  .cn-nav.static > .cn-menu:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  .cn-nav.static > nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    top: 100%;
    z-index: 1;
    border-bottom: 1px solid rgb(34 33 29 / 18%);
    box-shadow: 0 16px 30px rgb(28 37 32 / 10%);
  }
}
