/* ==================================================

   CATALYST NAV — Shared navigation component

   ================================================== */

.catalyst-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 56px;
  padding-top: env(safe-area-inset-top, 0);
  border-bottom: 1px solid var(--border);
  /*
   * iOS Safari has a load-bearing bug: when html has `overflow-x: hidden|clip`
   * (shared.css:3 + :194), `backdrop-filter` on `position:fixed` descendants
   * fails to sample the scrolled content behind — the blur renders against a
   * static containing block instead of the visual viewport. Chrome ignores
   * this ancestor interaction; Safari does not. Result: content was visible
   * "through" the nav bar at 0.8 alpha because the blur never landed.
   *
   * Fix: 0.92 alpha so the bar reads as solid even when blur silently fails,
   * forced-own compositing layer (translate3d + isolation) so Safari pins the
   * nav into its own paint context. The blur becomes progressive enhancement.
   *
   * Follow-up task: audit the horizontal-overflow element causing the
   * overflow-x hack and eliminate it, then remove overflow-x from html. That
   * is the real load-bearing fix — the overflow-x was added for a symptom.
   */
  background: rgba(245, 243, 240, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  will-change: backdrop-filter;
  isolation: isolate;
}

.catalyst-nav__logo {
  /* CATALYST-DESIGN-SYSTEM.md §4: icon + wordmark side-by-side, 10px gap. */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
}

.catalyst-nav .catalyst-nav__logo-img {
  height: 30px;
  width: 30px;
  display: block;
  max-height: 30px;
  flex-shrink: 0;
}

.catalyst-nav__logo-wordmark {
  font-family: "Satoshi Variable", "Satoshi", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #eb622e;          /* --c-burnt per design system */
  white-space: nowrap;
}

/* Menu-open state: keep icon visible, hide wordmark so the flower sits clean under the X. */
body.menu-open .catalyst-nav__logo-wordmark {
  display: none;
}

.catalyst-nav__center {
  display: flex;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.catalyst-nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}

.catalyst-nav__link:hover {
  color: var(--carbon);
}

.catalyst-nav__cta {
  font-size: 12px;
  font-weight: 400;
  color: var(--carbon);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 7px 20px;
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  transition: all 0.3s;
}

.catalyst-nav__cta:hover {
  background: var(--carbon);
  color: var(--bg);
  border-color: var(--carbon);
}

.catalyst-nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.catalyst-nav__hamburger {
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  position: relative;
  z-index: 210;
}

.catalyst-nav__hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--carbon);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  transform-origin: center;
}

.catalyst-nav__hamburger.is-open {
  background: rgb(255, 255, 255, 0.05);
  border: 1px solid rgb(255, 255, 255, 0.2);
  border-radius: 50%;
}

.catalyst-nav__hamburger.is-open:hover {
  border-color: rgb(255, 255, 255, 0.4);
}

.catalyst-nav__hamburger.is-open .catalyst-nav__hamburger-line {
  background: rgb(255, 255, 255, 0.6);
}

.catalyst-nav__hamburger.is-open:hover .catalyst-nav__hamburger-line {
  background: #fff;
}

.catalyst-nav__hamburger.is-open .catalyst-nav__hamburger-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.catalyst-nav__hamburger.is-open .catalyst-nav__hamburger-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

body.curtain-open .catalyst-nav__account-btn,
body.curtain-open .catalyst-nav__center {
  display: none !important;
}

body.menu-open .catalyst-nav__cta-pill {
  display: none !important;
}

.catalyst-nav__account-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--carbon);
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s;
}

.catalyst-nav__account-btn:hover {
  background: var(--surface-warm);
}

.catalyst-nav__account-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.catalyst-nav__link--active {
  color: var(--carbon);
  font-weight: 500;
}

.catalyst-nav__cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--carbon);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  transition: all 0.3s;
}

.catalyst-nav__cta-pill-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* Mobile Item pill fully retired 2026-04-19 — keep the class hidden everywhere
   in case any cached page ships with the old markup before the theme re-renders. */
.catalyst-nav__cta-pill--mobile {
  display: none !important;
}

.catalyst-nav__cta-pill:hover {
  background: var(--carbon);
  color: var(--bg);
  border-color: var(--carbon);
}

.catalyst-nav__cart-btn {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.catalyst-nav__cart-btn.is-empty {
  display: none;
}

.catalyst-nav__cart-btn:hover {
  border-color: var(--border-hover);
}

.catalyst-nav__cart-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--carbon);
  fill: none;
  stroke-width: 1.5;
}

.catalyst-nav.catalyst-nav--dark {
  background: rgb(14, 14, 14, 0.96);
  border-bottom-color: rgb(255, 255, 255, 0.06);
}

.catalyst-nav.catalyst-nav--dark .catalyst-nav__logo {
  color: #fff;
}

.catalyst-nav.catalyst-nav--dark .catalyst-nav__link {
  color: rgb(255, 255, 255, 0.6);
}

.catalyst-nav.catalyst-nav--dark .catalyst-nav__link:hover {
  color: #fff;
}

.catalyst-nav.catalyst-nav--dark .catalyst-nav__cta-pill {
  color: #fff;
  border-color: rgb(255, 255, 255, 0.2);
}

.catalyst-nav.catalyst-nav--dark .catalyst-nav__cta-pill:hover {
  background: #fff;
  color: var(--bg-dark);
  border-color: #fff;
}

.catalyst-nav.catalyst-nav--dark .catalyst-nav__account-btn {
  color: #fff;
}

.catalyst-nav.catalyst-nav--dark .catalyst-nav__hamburger-line {
  background: #fff;
}

@media (max-width: 899px) {
  .catalyst-nav {
    padding: 0 24px;
  }

  .catalyst-nav__center {
    gap: 24px;
  }

  .catalyst-nav__hamburger {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 899px) {
  .catalyst-nav {
    padding: 0 20px;
  }

  .catalyst-nav__cta-pill {
    font-size: 10px;
    padding: 5px 12px;
    white-space: nowrap;
  }
}

@media (max-width: 599px) {
  .catalyst-nav {
    padding: 0 20px;
  }

  .catalyst-nav__center {
    display: none;
  }

  .catalyst-nav__right {
    gap: 12px;
    flex: 1;
    margin-left: 16px;
    justify-content: flex-end;
  }

  .catalyst-nav__cta {
    display: none;
  }

  /* Mobile: hide both pills. Item pill removed 2026-04-19 per Victor. */
  .catalyst-nav__cta-pill--desktop,
  .catalyst-nav__cta-pill--mobile {
    display: none;
  }
}

@media (max-width: 599px) {
  .catalyst-nav {
    padding: 0 16px;
  }

  /* Mobile touch targets — minimum 44px (Apple HIG) */
  .catalyst-nav__cart-btn {
    width: 44px;
    height: 44px;
  }

  .catalyst-nav__account-btn {
    width: 44px;
    height: 44px;
  }

  .catalyst-nav__hamburger {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 389px) {
  .catalyst-nav__right {
    gap: 8px;
    margin-left: 12px;
  }

  .catalyst-nav__cta-pill {
    font-size: 10px;
    padding: 5px 12px;
  }
}
