/* Niba Tours v1.6.10: STRICTLY presentation fixes on single-product pages.
   Category archives, Elementor editor, product content, and animations are unchanged. */

/* Katschberg: Classic editor / WPBakery can wrap the entire itinerary in a
   strong/b element or nested div/span rather than plain paragraph text.
   Reset weights throughout the PROGRAM only, not the headings, price or buttons. */
body.single-product.niba-katschberg-program .shop-main-content .product-content,
body.single-product.niba-katschberg-program .shop-main-content .product-content :is(p, div, span, li, strong, b, em) {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-size: clamp(16px, 1.12vw, 18px) !important;
  line-height: 1.72 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
/* Preserve headings and short program labels. */
body.single-product.niba-katschberg-program .shop-main-content .product-content :is(h1,h2,h3,h4,h5,h6),
body.single-product.niba-katschberg-program .shop-main-content .product-content :is(h1,h2,h3,h4,h5,h6) * {
  font-weight: 800 !important;
}

/* Disable leftover floating heading accents, including a possible ::before
   from the old theme. The real page-heading border remains intact. */
body.single-product :is(.shop-main-content, .woocommerce) :is(h1.heading-block,h2.heading-block,.niba-trip-heading-refined)::before,
body.single-product :is(.shop-main-content, .woocommerce) :is(h1.heading-block,h2.heading-block,.niba-trip-heading-refined)::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}

/* Keep existing partner advertisement artwork above any legacy absolutely
   positioned line. No resizing, cropping or filtering of sponsor artwork. */
body.single-product :is(.sidebar,.shop-sidebar,#sidebar,aside,.widget,.widget-area) img {
  position: relative !important;
  z-index: 5 !important;
}
/* If the old theme injects a pseudo underline into sidebar headings,
   remove it only from the sidebar, not across the page. */
body.single-product :is(.sidebar,.shop-sidebar,#sidebar,aside,.widget-area) :is(.heading-block,.widget-title)::before,
body.single-product :is(.sidebar,.shop-sidebar,#sidebar,aside,.widget-area) :is(.heading-block,.widget-title)::after {
  content: none !important;
  display: none !important;
}

/* v1.6.11: confirmed in Chrome DevTools; remove ONLY the floating accent
   on the main trip heading. This cannot affect the sidebar banner image. */
body.single-product.niba-trip-hero-mounted h1.niba-trip-heading-refined::after,
body.niba-trip-hero-mounted .woocommerce h1.niba-trip-heading-refined::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  background: none !important;
}

/* v1.6.12 — Katschberg: original offer uses heading tags in places for
   long itinerary paragraphs (e.g. 1.DAN), so previous fixes for p/strong
   missed them. Target ONLY the full travel-program card on this one product.
   This deliberately does not affect page title, price, menu, category cards,
   header branding, hero artwork, or any other product. */
body.single-product.niba-katschberg-program .woocommerce .shop-main-content .product-content,
body.single-product.niba-katschberg-program .woocommerce .shop-main-content .product-content :is(p,div,span,li,b,strong,h1,h2,h3,h4,h5,h6),
body.single-product.niba-katschberg-program .woocommerce .shop-main-content .product-content :is(p,div,span,li,b,strong,h1,h2,h3,h4,h5,h6) :is(span,b,strong,em),
body.single-product.niba-katschberg-program .shop-main-content .product-content :is(p,div,span,li,b,strong,h1,h2,h3,h4,h5,h6) {
  font-family: Arial,Helvetica,sans-serif !important;
  font-size: clamp(16px,1.1vw,18px) !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
/* Preserve intentional short headings when they use semantic heading tags
   and do not contain the body paragraphs. */
body.single-product.niba-katschberg-program .shop-main-content .product-content > :is(h2,h3,h4) {
  margin-top: 1.15em !important;
}
