/*
 * IG Single Product Sections + Sticky TOC
 * Minimal styles (Ignavo-safe)
 */

.igsp-wrap { margin-top: 0; }

/* Full-bleed section background applied to our root wrapper (Ignavo-safe).
   Keeps content constrained by theme container but stretches background to viewport. */
.igsp-wrap[data-igsp-root] {
  position: relative;
  background: #f8f9fa;
  padding: 28px 0;
}

@supports (clip-path: inset(0)) {
  .igsp-wrap[data-igsp-root] {
    box-shadow: 0 0 0 100vmax #f8f9fa;
    clip-path: inset(0 -100vmax);
  }
}
.igsp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "content toc";
  gap: 24px;
  align-items: start;
}

.igsp-content {
  min-width: 0;
  grid-area: content;
}

.igsp-section {
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

.igsp-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.igsp-title {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 12px 0;
}

.igsp-body { min-width: 0; }

.igsp-toc {
  min-width: 0;
  grid-area: toc;
  /* JS handles sticky positioning (Ignavo layouts often break CSS sticky via overflow/transform ancestors). */
  position: relative;
  align-self: stretch;
}

.igsp-toc-box {
  position: relative;
  width: 100%;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

/* JS fallback (only when needed) */
.igsp-toc-box.igsp-fixed {
  position: fixed;
  top: var(--igsp-sticky-top, 16px);
  z-index: 30;
}
.igsp-toc-box.igsp-abs {
  position: absolute;
  bottom: auto;
}

.igsp-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.igsp-toc-link {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.igsp-toc-link:hover {
  border-color: rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
}

.igsp-toc-link.is-active {
  border-color: rgba(0,0,0,.18);
  background: rgba(0,0,0,.06);
  font-weight: 600;
}

/* Mobile/tablet */
@media (max-width: 991px) {
  .igsp-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "toc"
      "content";
  }
  .igsp-toc { position: relative; top: auto; }
  .igsp-toc-box {
    position: relative;
    top: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }
  .igsp-toc-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,.10);
  }
  .igsp-toc-link {
    white-space: nowrap;
    flex: 0 0 auto;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 12px 14px;
    background: transparent;
  }
  .igsp-toc-link:hover {
    border-color: transparent;
    background: rgba(0,0,0,.03);
  }
  .igsp-toc-link.is-active {
    background: transparent;
    border-color: transparent;
    border-bottom-color: currentColor;
  }
}


/* Price note under Woo price (single product) */
.price-info {
    display: block;
    width: 100%;
    font-size: 12px;
    margin: 0;
    color: rgb(134, 142, 150);
    white-space: nowrap;
}
