/* =========================================================
   B.BOLD — Main Menu (matches the Release 001 homepage)
   ink #0C0C0C · paper #F4EFE6 · gold #E0A458 · mute #B3AA9C
   ========================================================= */

/* ---------- Desktop: header menu ---------- */
/* keep the wordmark from being squeezed by the menu */
.header-wrapper .logo-wrapper { flex: 0 0 auto !important; }
.header-wrapper .logo-wrapper .header_logo { width: auto !important; height: auto; max-height: 40px; }
.header-wrapper .wide-nav { padding: 0 40px !important; }
#site-navigation { display: flex !important; justify-content: center; width: 100%; }

#site-navigation > li.root-item {
  padding-bottom: 0 !important;
  margin: 0 10px;
}
#site-navigation > li.root-item > a.nasa-title-menu {
  position: relative;
  padding: 18px 0 !important;
  font-family: var(--font-body, 'Barlow'), sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.72) !important;
  transition: color 0.25s ease;
}
/* WordPress marks every #anchor link as "current" on the homepage — neutralise that */
#site-navigation > li.current-menu-item > a.nasa-title-menu {
  color: rgba(244, 239, 230, 0.72) !important;
}
/* gold rule that draws in on hover */
#site-navigation > li.root-item > a.nasa-title-menu::after {
  content: "" !important;
  position: absolute;
  left: 0;
  right: 0.2em;
  bottom: 10px;
  top: auto;
  width: auto;
  height: 1px;
  background: var(--gold, #E0A458) !important;
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
#site-navigation > li.root-item > a.nasa-title-menu:hover,
#site-navigation > li.root-item > a.nasa-title-menu:focus-visible {
  color: var(--paper, #F4EFE6) !important;
}
#site-navigation > li.root-item > a.nasa-title-menu:hover::after,
#site-navigation > li.root-item > a.nasa-title-menu:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- Mobile: slide-in menu panel ---------- */
#nasa-menu-sidebar-content,
#nasa-menu-sidebar-content .nasa-mobile-nav-wrap {
  background: var(--ink, #0C0C0C) !important;
  color: var(--paper, #F4EFE6);
}
#nasa-menu-sidebar-content .ns-menu-heading {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}
#nasa-menu-sidebar-content .nasa-close-menu-mobile {
  background: var(--gold, #E0A458) !important;
  color: var(--ink, #0C0C0C) !important;
}

#mobile-navigation {
  counter-reset: bbold-menu;
  padding: 12px 0 24px;
  background: transparent !important;
}
#mobile-navigation > li.root-item {
  counter-increment: bbold-menu;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12) !important;
  background: transparent !important;
}
#mobile-navigation > li.root-item > a.nasa-title-menu {
  display: flex !important;
  align-items: baseline;
  gap: 16px;
  padding: 18px 24px !important;
  background: transparent !important;
  font-family: var(--font-heading, 'Antonio'), sans-serif !important;
  font-weight: 700 !important;
  font-size: 28px !important;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--paper, #F4EFE6) !important;
  transition: color 0.2s ease;
}
/* section numbers, like the 01 · 02 · 03 strip in the hero */
#mobile-navigation > li.root-item > a.nasa-title-menu::before {
  content: counter(bbold-menu, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 22px;
  font-family: var(--font-body, 'Barlow'), sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold, #E0A458);
}
#mobile-navigation > li.root-item > a.nasa-title-menu:hover,
#mobile-navigation > li.root-item > a.nasa-title-menu:active {
  color: var(--gold, #E0A458) !important;
}

/* account row at the bottom of the panel */
#nasa-menu-sidebar-content .nasa-menusub-for-mobile,
#nasa-menu-sidebar-content .nasa-menusub-for-mobile li,
#nasa-menu-sidebar-content .nasa-menusub-for-mobile a {
  background: var(--ink, #0C0C0C) !important;
  color: var(--mute, #B3AA9C) !important;
  border-color: rgba(244, 239, 230, 0.12) !important;
  font-family: var(--font-body, 'Barlow'), sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* land a little below the sticky header when jumping to a section */
#why, #release, #inside, #made-once, #promise, #faq {
  scroll-margin-top: 72px;
}

/* ---------- Mobile: bottom bar (Size guide · Claim yours · Cart · Help) ---------- */
.nasa-bottom-bar {
  background: var(--ink, #0C0C0C) !important;
  border-top: 1px solid rgba(244, 239, 230, 0.12) !important;
  box-shadow: none !important;
}
.nasa-bottom-bar .bb-bot {
  display: grid;
  grid-template-columns: 1fr 1.9fr 1fr 1fr;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  list-style: none;
}
.nasa-bottom-bar .bb-bot-item {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.nasa-bottom-bar .bb-bot-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  color: rgba(244, 239, 230, 0.72) !important;
  font-family: var(--font-body, 'Barlow'), sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nasa-bottom-bar .bb-bot-link,
.nasa-bottom-bar .bb-bot-link span {
  text-decoration: none !important;
}
.nasa-bottom-bar .bb-bot-link svg {
  width: 22px;
  height: 22px;
}
.nasa-bottom-bar .bb-bot-link:active,
.nasa-bottom-bar .bb-bot-link:hover {
  color: var(--gold, #E0A458) !important;
}
.nasa-bottom-bar .bb-bot-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: var(--gold, #E0A458);
  color: var(--ink, #0C0C0C) !important;
  font-family: var(--font-heading, 'Antonio'), sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nasa-bottom-bar .bb-bot-cta:active,
.nasa-bottom-bar .bb-bot-cta:hover {
  background: #F0C084;
}
.nasa-bottom-bar .bb-bot-count {
  position: absolute;
  top: -5px;
  left: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--gold, #E0A458);
  color: var(--ink, #0C0C0C);
  font-family: var(--font-body, 'Barlow'), sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
}
.nasa-bottom-bar .bb-bot-count[data-count="0"] {
  display: none;
}
/* product page: Elessi adds no room for the bar there, so keep the footer clear of it */
@media (max-width: 767px) {
  body.bb-bot-on-product {
    padding-bottom: 81px;
  }
}

/* ---------- Mobile product page: sticky Add to cart bar, opened by Claim yours ---------- */
.bb-atc-close {
  display: none;
}
@media (max-width: 767px) {
  .nasa-bottom-bar {
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  body.bb-atc-open .nasa-bottom-bar {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }
  .nasa-add-to-cart-fixed {
    background: var(--ink, #0C0C0C) !important;
    border-top: 1px solid rgba(244, 239, 230, 0.12) !important;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  body.has-nasa-cart-fixed .nasa-add-to-cart-fixed {
    transform: translateY(0);
  }
  .nasa-add-to-cart-fixed .nasa-title-clone h3 {
    margin: 0;
    color: var(--paper, #F4EFE6) !important;
    font-family: var(--font-heading, 'Antonio'), sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }
  .nasa-add-to-cart-fixed .nasa-title-clone .price,
  .nasa-add-to-cart-fixed .nasa-title-clone .price * {
    color: var(--gold, #E0A458) !important;
    font-family: var(--font-body, 'Barlow'), sans-serif;
    font-weight: 600;
    font-size: 14px;
  }
  .nasa-add-to-cart-fixed .nasa-toggle-variation_wrap-clone {
    color: rgba(244, 239, 230, 0.72) !important;
    font-family: var(--font-body, 'Barlow'), sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
  }
  .nasa-add-to-cart-fixed .nasa-fixed-product-variations-wrap {
    background: var(--ink, #0C0C0C) !important;
    border-top: 1px solid rgba(244, 239, 230, 0.12);
    padding: 14px 12px !important;
  }
  .nasa-add-to-cart-fixed .nasa-fixed-product-variations,
  .nasa-add-to-cart-fixed .nasa-attr-ux_wrap-clone {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px !important;
  }
  .nasa-add-to-cart-fixed .nasa-attr-ux-clone {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 38px;
    margin: 0 !important;
    padding: 0 10px;
    border: 1px solid rgba(244, 239, 230, 0.3) !important;
    background: transparent !important;
    color: var(--paper, #F4EFE6) !important;
    font-family: var(--font-body, 'Barlow'), sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    opacity: 1 !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .nasa-add-to-cart-fixed .nasa-attr-ux-clone .nasa-attr-bg {
    display: none !important;
  }
  .nasa-add-to-cart-fixed .nasa-attr-ux-clone .nasa-attr-text {
    color: inherit !important;
  }
  .nasa-add-to-cart-fixed .nasa-attr-ux-clone.selected {
    background: var(--gold, #E0A458) !important;
    border-color: var(--gold, #E0A458) !important;
    color: var(--ink, #0C0C0C) !important;
  }
  /* sizes stay open while the bar is open, so the toggle is not needed */
  body.bb-atc-open .nasa-add-to-cart-fixed .nasa-toggle-variation_wrap {
    display: none !important;
  }
  .nasa-add-to-cart-fixed .nasa-fixed-product-info button.bb-atc-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 0;
    height: 34px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 1px solid rgba(244, 239, 230, 0.25) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--paper, #F4EFE6) !important;
    box-shadow: none !important;
    line-height: 1;
    cursor: pointer;
  }
}
