html { scroll-behavior: smooth; }

/* Nav bar */
.map-stack-nav { margin: 20px 0 12px; }
.map-stack-nav__inner { display: flex; flex-wrap: wrap; gap: 10px; }
.map-stack-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--theme-color-bd_color, #ddd);
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease;
  background: var(--theme-color-bg_color, #fff);
  color: var(--theme-color-text_dark, #111);
}
.map-stack-nav__btn:hover,
.map-stack-nav__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  outline: none;
}
.map-stack-nav__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.map-stack-nav__icon i { font-size: 18px; line-height: 1; }
.map-stack-nav__text { font-size: 14px; white-space: nowrap; }

/* Anchor offset for sticky header */
.map-stack-anchor {
  display: block;
  scroll-margin-top: 120px;
}

/* Divider icon centered on the separator line (circle) */
.map-stack-sep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.map-stack-sep__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--theme-color-bd_color, #ddd);
  background: var(--theme-color-bg_color, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}
.map-stack-sep__icon i { font-size: 18px; line-height: 1; }

/* Ensure the circle can sit on top of the stack border */
.single-product .woocommerce-stacks .woocommerce-stack {
  position: relative;
}

/* Hide the big heading inside the description stack */
.single-product .woocommerce-stack.woocommerce-stack-description h2,
.single-product .woocommerce-stack.woocommerce-stack-description h1,
.single-product .woocommerce-stack.woocommerce-stack-description h3 {
  display: none !important;
}

/* Make sure the separator shows right at the top of the description stack */
.single-product .woocommerce-stack.woocommerce-stack-description .map-stack-sep {
  margin-top: 0 !important;
}

/* Optional: if there is extra top spacing from the stack container, reduce it */
.single-product .woocommerce-stack.woocommerce-stack-description {
  padding-top: 0 !important;
}


@media (max-width: 480px) {
  .map-stack-nav__btn { padding: 9px 10px; }
  .map-stack-nav__text { font-size: 13px; }
}
