/* Stone Galleria | Product Navigation V2 | 2026-11-03
   Integrated compact product identity + section tabs + original wishlist/share actions.
   JavaScript only adds .sg-pnav2-source AFTER confirming all dependencies.
   The original H1 and original functional action buttons remain untouched. */
.product-dp nav.sticky-menu-product.sg-pnav2-source {
  position: static !important;
  top: auto !important;
  transform: none !important;
}

#sg-pnav2 {
  box-sizing: border-box;
  position: fixed !important;
  inset-inline: 0;
  top: var(--sg-sticky-top, var(--sg-nav-h, 80px));
  z-index: 900;
  display: grid;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr) 104px;
  align-items: center;
  min-height: 52px;
  width: 100%;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid rgba(44,37,29,.12);
  box-shadow: 0 5px 15px rgba(0,0,0,.055);
  color: #34302c;
  font-family: Jost, 'Helvetica Neue', Arial, sans-serif;
  text-align: start;
  transition: top .35s cubic-bezier(.2,.7,.2,1);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
#sg-pnav2.sg-pnav2-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
#sg-pnav2, #sg-pnav2 * { box-sizing: border-box; }
#sg-pnav2 .sg-pnav2-name {
  min-width: 0;
  padding-inline: 24px 12px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#sg-pnav2 .sg-pnav2-track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  width: 100%;
  max-width: none;
  min-height: 52px;
  padding: 0 2px;
  margin: 0;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#sg-pnav2 .sg-pnav2-track::-webkit-scrollbar { display: none; }
#sg-pnav2 .sg-pnav2-track a {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #4b4742;
  text-decoration: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
}
#sg-pnav2 .sg-pnav2-track a[hidden] { display: none !important; }
#sg-pnav2 .sg-pnav2-track a:hover,
#sg-pnav2 .sg-pnav2-track a:focus-visible,
#sg-pnav2 .sg-pnav2-track a.sg-pnav2-active {
  color: #886744;
  border-bottom-color: #967551;
}
#sg-pnav2 .sg-pnav2-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 5px;
  padding-inline: 3px 14px;
}
#sg-pnav2 .sg-pnav2-action {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid rgba(70,55,40,.16);
  border-radius: 50%;
  background: #fff;
  color: #28231e;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.03);
  -webkit-tap-highlight-color: transparent;
}
#sg-pnav2 .sg-pnav2-action svg {
  display: block;
  width: 20px;
  height: 20px;
}
#sg-pnav2 .sg-pnav2-action:hover { background: #f7f3ee; }
#sg-pnav2 button.sg-pnav2-action:focus-visible {
  outline: 2px solid #8f6a43;
  outline-offset: 2px;
}
#sg-pnav2 button.sg-pnav2-action:disabled { opacity: .55; cursor: wait; }
#sg-pnav2 .sg-pnav2-action[aria-pressed='true'] svg path {
  fill: #8f6a43 !important;
  stroke: #8f6a43 !important;
}
#sg-pnav2 .sg-pnav2-menu {
  position: absolute;
  top: calc(100% + 7px);
  inset-inline-end: 10px;
  z-index: 20;
  width: 190px;
  padding: 6px;
  background: #fff;
  color: #28231e;
  border: 1px solid #e7dfd5;
  border-radius: 11px;
  box-shadow: 0 14px 32px rgba(30,20,10,.14);
}
#sg-pnav2 .sg-pnav2-menu[hidden] { display: none !important; }
#sg-pnav2 .sg-pnav2-menu button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 7px;
  color: #28231e;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: start;
  cursor: pointer;
}
#sg-pnav2 .sg-pnav2-menu button:hover,
#sg-pnav2 .sg-pnav2-menu button:focus-visible { background: #f6f2ed; }
.product-dp [data-sg-pnav2-target] {
  scroll-margin-top: calc(var(--sg-sticky-top, 0px) + var(--sg-pnav2-height, 52px) + 14px) !important;
}
@media (max-width: 992px) {
  #sg-pnav2 {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 44px;
    min-height: 88px;
  }
  #sg-pnav2 .sg-pnav2-name {
    grid-column: 1;
    grid-row: 1;
    padding-inline: 15px 5px;
    font-size: 13px;
  }
  #sg-pnav2 .sg-pnav2-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 3px;
    padding-inline: 0 12px;
  }
  #sg-pnav2 .sg-pnav2-action {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
  #sg-pnav2 .sg-pnav2-action svg { width: 19px; height: 19px; }
  #sg-pnav2 .sg-pnav2-track {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 44px;
    padding: 0 8px;
    justify-content: flex-start;
    gap: 3px;
    border-top: 1px solid #f0ede9;
  }
  #sg-pnav2 .sg-pnav2-track a {
    min-height: 44px;
    padding: 0 8px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sg-pnav2 { transition: none; }
}
