/* Native Woo preporuke: izolovano od akcijske strane i početne. */
body.ks-site.single-product .product > .related.products {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:none !important;
  margin-top:32px !important;
  padding:26px 22px 24px !important;
  border:0 !important;
  border-radius:12px !important;
  background:#f4f8fc !important;
}
body.ks-site.single-product .product > .related.products > h2 {
  margin:0 0 22px !important;
  color:#102a4d !important;
  font-family:inherit !important;
  font-size:clamp(26px,3vw,32px) !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  letter-spacing:normal !important;
}
body.ks-site.single-product :is(.related.products,.upsells.products) ul.products {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.ks-site.single-product :is(.related.products,.upsells.products) ul.products::before,
body.ks-site.single-product :is(.related.products,.upsells.products) ul.products::after { display:none !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) ul.products li.product {
  display:flex !important; float:none !important; width:auto !important; min-width:0 !important; height:100% !important;
  margin:0 !important; padding:0 0 16px !important; overflow:hidden !important; flex-direction:column !important;
  border:1px solid #d9e5ef !important; border-radius:10px !important; background:#fff !important;
  box-shadow:0 5px 16px rgba(16,47,85,.05) !important;
}
body.ks-site.single-product :is(.related.products,.upsells.products) .astra-shop-thumbnail-wrap {
  position:relative !important; display:grid !important; height:230px !important; overflow:hidden !important;
  place-items:center !important; padding:0 !important; background:#fff !important; border:0 !important; box-shadow:none !important;
}
/* Astra card-action prekriva celu fotografiju kod jednostavnih proizvoda i
 * pokreće AJAX add-to-cart. Uklanja se samo iz bloka preporuka. */
body.ks-site.single-product .related.products .astra-shop-thumbnail-wrap > .ast-on-card-button {
  display:none !important; pointer-events:none !important;
}
body.ks-site.single-product :is(.related.products,.upsells.products) .astra-shop-thumbnail-wrap > a { display:block !important; width:100% !important; height:100% !important; background:#fff !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .astra-shop-thumbnail-wrap > a > img,
body.ks-site.single-product :is(.related.products,.upsells.products) a.woocommerce-LoopProduct-link > img {
  display:block !important; width:100% !important; height:230px !important; min-width:0 !important; min-height:0 !important;
  max-width:100% !important; max-height:230px !important; box-sizing:border-box !important; margin:0 !important;
  padding:18px !important; border:0 !important; border-radius:0 !important; background:#fff !important;
  box-shadow:none !important; object-fit:contain !important; object-position:center !important; aspect-ratio:auto !important;
}
body.ks-site.single-product :is(.related.products,.upsells.products) li:is(.post-23,.post-256,.post-257,.post-258,.post-259,.post-260,.post-261,.post-262,.post-263,.post-264,.post-265,.post-266,.post-267) .astra-shop-thumbnail-wrap > a > img { padding:26px 38px !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) li:is(.post-269,.post-270,.post-271,.post-272,.post-273,.post-274,.post-275,.post-276,.post-277,.post-1162,.post-1250) .astra-shop-thumbnail-wrap > a > img { padding:34px !important; }

/* Oznaka je UI element, nikada fotografija proizvoda. */
body.ks-site.single-product :is(.related.products,.upsells.products) span.onsale {
  position:absolute !important; z-index:5 !important; top:12px !important; right:12px !important; bottom:auto !important; left:auto !important;
  display:inline-flex !important; width:auto !important; height:30px !important; min-width:0 !important; min-height:0 !important;
  max-width:max-content !important; margin:0 !important; padding:6px 9px !important; align-items:center !important;
  border-radius:999px !important; background:#1479db !important; color:#fff !important; line-height:1 !important;
}
body.ks-site.single-product :is(.related.products,.upsells.products) span.onsale .ks-sale-brand {
  display:inline-flex !important; width:auto !important; height:18px !important; margin:0 !important; padding:0 !important;
  align-items:center !important; gap:5px !important; color:#fff !important; font-size:10px !important; line-height:1 !important; white-space:nowrap !important;
}
body.ks-site.single-product :is(.related.products,.upsells.products) span.onsale .ks-sale-brand > img {
  display:block !important; width:16px !important; height:16px !important; min-width:16px !important; min-height:16px !important;
  max-width:16px !important; max-height:16px !important; margin:0 !important; padding:0 !important; flex:0 0 16px !important;
  border:0 !important; background:transparent !important; object-fit:contain !important; aspect-ratio:1 !important; transform:none !important;
}
body.ks-site.single-product :is(.related.products,.upsells.products) span.onsale .ks-sale-brand > span { display:inline !important; width:auto !important; overflow:visible !important; white-space:nowrap !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .ast-onsale-card { display:none !important; }

body.ks-site.single-product :is(.related.products,.upsells.products) .astra-shop-summary-wrap { display:flex !important; flex:1 !important; min-width:0 !important; padding:14px 16px 0 !important; flex-direction:column !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .ast-woo-product-category { min-height:16px !important; margin:0 0 3px !important; font-size:11px !important; line-height:1.35 !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .woocommerce-loop-product__title {
  display:-webkit-box !important; min-height:63px !important; max-height:63px !important; overflow:hidden !important;
  margin:0 0 10px !important; padding:0 !important; color:#102f55 !important; font-size:16px !important; line-height:1.32 !important;
  -webkit-box-orient:vertical; -webkit-line-clamp:3;
}
body.ks-site.single-product :is(.related.products,.upsells.products) .price {
  order:2 !important; height:144px !important; min-height:144px !important; margin-top:auto !important; padding-top:12px !important; overflow:visible !important;
  border-top:1px solid #d9e5ef !important; white-space:normal !important; text-overflow:clip !important;
}
body.ks-site.single-product :is(.related.products,.upsells.products) .astra-shop-summary-wrap:not(:has(.price))::after {
  content:""; display:block; order:2; height:144px; min-height:144px; margin-top:auto; border-top:1px solid #d9e5ef;
}
body.ks-site.single-product :is(.related.products,.upsells.products) .price :is(.ks-dual-price,.ks-3m-price) { display:flex !important; min-width:0 !important; flex-direction:column !important; gap:5px !important; white-space:normal !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .price :is(.ks-dual-price__with-tax,.ks-3m-price__with-tax) { display:flex !important; min-width:0 !important; flex-wrap:wrap !important; gap:1px 4px !important; color:#1479db !important; font-size:19px !important; font-weight:800 !important; line-height:1.2 !important; white-space:normal !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .price :is(.ks-dual-price__with-tax,.ks-3m-price__with-tax) small { flex-basis:100% !important; font-size:11px !important; line-height:1.3 !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .price :is(.ks-dual-price__without-tax,.ks-3m-price__without-tax) { display:block !important; color:#61758a !important; font-size:11px !important; line-height:1.4 !important; white-space:normal !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .ks-sale-price { gap:3px !important; margin:0 !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .ks-sale-price__old { font-size:12px !important; line-height:1.3 !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .ks-sale-price__current { font-size:12px !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .ks-sale-price__current strong { font-size:19px !important; line-height:1.15 !important; white-space:normal !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .ks-sale-price :is(.ks-sale-price__old,.ks-sale-price__current,.ks-sale-price__net) small { font-size:11px !important; line-height:1.3 !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) .ks-sale-price__saving { font-size:12px !important; line-height:1.3 !important; }
body.ks-site.single-product :is(.related.products,.upsells.products) :is(.button,.ks-inquiry-loop-button) {
  order:3 !important;
  width:calc(100% - 32px) !important; max-width:none !important; min-height:46px !important; height:auto !important;
  margin:12px 16px 0 !important; padding:8px 11px !important; align-self:stretch !important;
}
@media(max-width:900px){
  body.ks-site.single-product .product > .related.products {
    margin-top:24px !important;
    padding:20px 12px !important;
  }
  body.ks-site.single-product .product > .related.products > h2 {
    margin-bottom:18px !important;
    font-size:24px !important;
  }
  body.ks-site.single-product :is(.related.products,.upsells.products) ul.products{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width:600px){body.ks-site.single-product :is(.related.products,.upsells.products) ul.products{grid-template-columns:1fr !important;}body.ks-site.single-product :is(.related.products,.upsells.products) .astra-shop-thumbnail-wrap,body.ks-site.single-product :is(.related.products,.upsells.products) .astra-shop-thumbnail-wrap>a>img{height:240px !important;max-height:240px !important;}}

/* Samo „Možda vas zanima“ koristi prirodnu visinu cene. Snažniji selektor
 * nadjačava ranije pilot rezerve, bez promene zasebnih Upsells kartica. */
body.ks-site.single-product .product > .related.products ul.products li.product .astra-shop-summary-wrap .price {
  height:auto !important;
  min-height:0 !important;
}
body.ks-site.single-product .product > .related.products ul.products li.product .astra-shop-summary-wrap:not(:has(.price))::after {
  content:none !important;
  display:none !important;
  height:0 !important;
  min-height:0 !important;
  margin:0 !important;
  border:0 !important;
}
body.ks-site.single-product .product > .related.products ul.products li.product .astra-shop-summary-wrap:not(:has(.price)) :is(.button,.ks-inquiry-loop-button) {
  margin-top:auto !important;
}

