/* Niba Tours 1.5.1 - non-destructive cosmetic polish for SINGLE PRODUCT pages ONLY.
   No changes to products, text, images, booking forms, sidebar ads or newsletter. */

/* Original oval logo is 158x83px. Display at <= native resolution to avoid soft enlargement. */
body.single-product .niba-izlet-header .niba-izlet-logo img {
  width:clamp(108px,10vw,148px)!important;
  max-width:148px!important;height:auto!important;max-height:78px!important;
  object-fit:contain!important;image-rendering:auto!important;
  filter:contrast(1.09) saturate(1.04)!important;
  transform:translateZ(0);border-radius:0!important;
}

/* Refine the new dynamic product presentation without changing the actual photo. */
body.single-product .shop-main-content .niba-trip-hero {
  gap:clamp(20px,2.6vw,36px)!important;
  padding:clamp(16px,2.5vw,30px)!important;
  border:1px solid #f0dfd4!important;
  background:linear-gradient(125deg,#fffdfb 0%,#fff9f4 100%)!important;
  box-shadow:0 13px 36px rgba(56,28,25,.10)!important;
  border-radius:26px!important;
}
body.single-product .shop-main-content .niba-trip-hero .niba-trip-media {
  position:relative!important;overflow:hidden!important;
  border:4px solid #ffffff!important;
  border-radius:23px!important;
  box-shadow:0 12px 26px rgba(38,27,24,.17)!important;
  background:#241c20!important;
}
body.single-product .shop-main-content .niba-trip-hero .niba-trip-photo {
  object-fit:cover!important;object-position:center!important;
  border:0!important;box-shadow:none!important;
  filter:none!important;transform:none!important;
}
body.single-product .shop-main-content .niba-trip-info .niba-trip-kicker {
  display:inline-flex!important;align-self:flex-start!important;
  padding:7px 12px!important;border-radius:100px!important;
  background:#fff0e9!important;color:#bb1623!important;
}
body.single-product .shop-main-content .niba-trip-title-price h2 {
  line-height:1.17!important;letter-spacing:-.025em!important;
}
body.single-product .shop-main-content .niba-trip-fact {
  border-color:#ead6cd!important;box-shadow:0 2px 8px rgba(66,20,26,.04)!important;
}

/* Classic theme fallback when its large original banner is still displayed.
   Restrict to the product cover region, NOT .product-content (full WPBakery program).
   Do not set fixed aspect/height or transform the existing image. */
body.single-product .woocommerce .shop-main-content > .product,
body.single-product .shop-main-content > .product {
  border-radius:21px!important;
  box-shadow:0 10px 30px rgba(40,27,24,.09)!important;
  border:1px solid #efe0d6!important;
  overflow:hidden;
}
body.single-product .shop-main-content > .product img {
  max-width:100%;height:auto;
}

/* Full original description: warm card, breathing room, unchanged paragraphs and lists. */
body.single-product .shop-main-content .product-content {
  max-width:100%!important;
  background:#fffaf6!important;
  border:1px solid #eadbd0!important;
  border-left:4px solid #c71925!important;
  border-radius:21px!important;
  box-shadow:0 9px 28px rgba(67,34,27,.07)!important;
  padding:clamp(23px,3.4vw,48px)!important;
}
body.single-product .shop-main-content .product-content::before {
  content:'PROGRAM PUTOVANJA'!important;
  color:#ba1623!important;letter-spacing:.15em!important;
  font-size:12px!important;margin-bottom:23px!important;
  padding-bottom:12px;border-bottom:1px solid #e8d5ca;
}
body.single-product .shop-main-content .product-content > p,
body.single-product .shop-main-content .product-content li {
  font-size:clamp(16px,1.12vw,18px)!important;
  line-height:1.79!important;
  color:#433b38!important;
  margin-bottom:1.17em!important;
}
body.single-product .shop-main-content .product-content > p:first-child {
  margin-top:0!important;
  padding-bottom:10px;
  border-bottom:1px solid #eee1d8;
  font-size:clamp(21px,2vw,29px)!important;
  color:#342326!important;
  line-height:1.36!important;
}
body.single-product .shop-main-content .product-content strong,
body.single-product .shop-main-content .product-content b {color:#35262a!important}
body.single-product .shop-main-content .product-content ul,
body.single-product .shop-main-content .product-content ol {
  padding-inline-start:1.4em!important;
  margin:10px 0 25px!important;
}
body.single-product .shop-main-content .product-content img {
  height:auto!important;max-width:100%!important;
  border-radius:14px!important;
}
@media(max-width:700px){
 body.single-product .shop-main-content .product-content {
  padding:20px!important;border-radius:15px!important;
 }
 body.single-product .shop-main-content .niba-trip-hero .niba-trip-media {
  border-width:3px!important;border-radius:16px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.single-product .shop-main-content .niba-trip-hero *,body.single-product .shop-main-content .niba-trip-hero *::before {transition:none!important}
}


/* Niba Tours 1.5.2: consistent, commanding heading for every trip.
   Old theme renders an h1 heading-block; dynamic trip hero uses its own h2.
   CSS-only, no post content, images or WooCommerce values are changed. */
body.single-product main.page .woocommerce > h1.heading-block,
body.single-product .woocommerce h1.heading-block,
body.single-product .shop-main-content > h1.heading-block {
  display:block!important;
  max-width:100%!important;
  margin:12px 0 22px!important;
  padding:0 0 17px!important;
  border:0!important;
  border-bottom:1px solid #ead4cd!important;
  background:transparent!important;
  color:#312326!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:clamp(29px,3.3vw,49px)!important;
  font-weight:900!important;
  line-height:1.12!important;
  letter-spacing:-.038em!important;
  text-transform:none!important;
  overflow-wrap:break-word!important;
  position:relative!important;
  text-shadow:none!important;
}
body.single-product main.page .woocommerce > h1.heading-block::after,
body.single-product .woocommerce h1.heading-block::after,
body.single-product .shop-main-content > h1.heading-block::after {
  content:''!important;position:absolute!important;bottom:-2px!important;left:0!important;
  width:clamp(72px,11vw,145px)!important;height:4px!important;
  border-radius:999px!important;background:linear-gradient(90deg,#c71925,#f9ea00)!important;
}
body.single-product .shop-main-content .niba-trip-hero .niba-trip-title-price h2 {
  color:#381d23!important;
  font:900 clamp(27px,3vw,47px)/1.1 Arial,Helvetica,sans-serif!important;
  letter-spacing:-.044em!important;
  text-transform:none!important;
  overflow-wrap:break-word!important;
  padding:0 0 17px!important;
  margin:0!important;
  position:relative!important;
}
body.single-product .shop-main-content .niba-trip-hero .niba-trip-title-price h2::after {
  content:'';position:absolute;left:0;bottom:0;
  width:clamp(64px,8vw,106px);height:4px;border-radius:50px;
  background:linear-gradient(90deg,#d7192a,#f9ea00);
}
@media(max-width:700px){
 body.single-product .woocommerce h1.heading-block{font-size:clamp(27px,7vw,38px)!important;line-height:1.15!important}
 body.single-product .shop-main-content .niba-trip-hero .niba-trip-title-price h2{font-size:clamp(26px,7vw,34px)!important}
}


/* 1.5.3: style ONE actual page title in its original position.
   Only active after successful enhanced hero mounting. */
body.single-product.niba-trip-hero-mounted .woocommerce h1.heading-block,
body.niba-trip-hero-mounted .woocommerce > h1.heading-block,
body.niba-trip-hero-mounted h1.niba-trip-heading-refined {
  display:block!important;visibility:visible!important;
  width:auto!important;max-width:100%!important;float:none!important;
  margin:14px 0 22px!important;padding:0 0 20px!important;
  color:#471d27!important;font:900 clamp(28px,3.2vw,48px)/1.13 Arial,Helvetica,sans-serif!important;
  letter-spacing:-.035em!important;text-transform:none!important;
  overflow-wrap:break-word!important;text-align:left!important;
  border:0!important;border-bottom:1px solid #ecd9cd!important;
  background:transparent!important;text-shadow:none!important;
}
/* v1.6.11: the old floating title accent overlapped the partner ad.
   Remove the decorative pseudo-element rather than trying to cover it. */
body.niba-trip-hero-mounted h1.niba-trip-heading-refined::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
body.niba-trip-hero-mounted .shop-main-content .niba-trip-original-suppressed { display:none!important; }
body.niba-trip-hero-mounted .shop-main-content .niba-trip-hero .niba-trip-title-price { display:none!important; }
body.niba-trip-hero-mounted .shop-main-content .niba-trip-hero { margin-top:0!important; }
@media(max-width:700px){
 body.niba-trip-hero-mounted h1.niba-trip-heading-refined {font-size:clamp(27px,7vw,36px)!important;margin-bottom:15px!important;}
}
