/* Shafaq 1.5.25 — WooCommerce single product polish. */
body.single-product .ts-woocommerce-shell{max-width:var(--ts-container);margin-inline:auto;overflow:visible}
body.single-product .woocommerce div.product.type-product{position:relative}
body.single-product .woocommerce-product-gallery{min-width:0}
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery .flex-viewport{background:#fbfcfd}
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img{object-fit:contain!important}
body.single-product .summary{min-width:0}
body.single-product .summary .price{font-weight:900;color:#16934e}
body.single-product .summary .woocommerce-product-details__short-description{background:#f8fafc;border:1px solid #edf1f5;border-radius:15px;padding:14px 16px}
body.single-product .ts-single-features{background:#fff}
body.single-product .ts-purchase-panel{border-color:#e2e8ef;background:linear-gradient(180deg,#fbfdff,#f6f9fc)}
body.single-product .woocommerce-tabs{grid-column:1/-1!important;border:1px solid #e6ebf1!important;border-radius:20px!important;padding:22px!important;background:#fff!important;margin-top:18px!important}
body.single-product .woocommerce-Tabs-panel{min-width:0}
body.single-product #reviews #comments,
body.single-product #review_form_wrapper{padding:14px;border:1px solid #edf1f5;border-radius:14px;background:#fbfcfe}
body.single-product #review_form_wrapper{margin-top:14px}

/* Related/up-sell products fill the page as a clean grid. No horizontal rail. */
body.single-product .related.products,
body.single-product .up-sells.upsells{
  grid-column:1/-1!important;
  width:100%!important;
  min-width:0;
  overflow:visible!important;
  margin-top:18px!important;
  padding:22px!important;
  background:#fff!important;
  border:1px solid #e5ebf1!important;
  border-radius:20px!important;
  box-shadow:0 10px 28px rgba(26,45,67,.045)
}
body.single-product .related.products>h2,
body.single-product .up-sells.upsells>h2{
  margin:0 0 18px!important;
  padding:0 12px 0 0;
  border-right:4px solid var(--ts-accent);
  color:#20344c;
  font-size:19px!important;
  line-height:1.7
}
body.single-product .related.products ul.products,
body.single-product .up-sells.upsells ul.products{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  overflow:visible!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important
}
body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after,
body.single-product .up-sells.upsells ul.products::before,
body.single-product .up-sells.upsells ul.products::after{display:none!important}
body.single-product .related.products ul.products li.product,
body.single-product .up-sells.upsells ul.products li.product{
  float:none!important;
  clear:none!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:11px!important;
  border:1px solid #e6ebf0!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
body.single-product .related.products ul.products li.product:hover,
body.single-product .up-sells.upsells ul.products li.product:hover{transform:translateY(-3px);border-color:#d7e1e9!important;box-shadow:0 12px 28px rgba(22,45,67,.08)!important}
body.single-product .related.products ul.products li.product a img,
body.single-product .up-sells.upsells ul.products li.product a img{width:100%!important;aspect-ratio:1/1;height:auto!important;object-fit:contain!important;margin:0 0 10px!important;padding:8px;border-radius:12px;background:#f8fafc}
body.single-product .related.products .woocommerce-loop-product__title,
body.single-product .up-sells.upsells .woocommerce-loop-product__title{font-size:12px!important;line-height:1.75!important;min-height:42px;padding:0!important;color:#283a50}
body.single-product .related.products .price,
body.single-product .up-sells.upsells .price{font-size:12px!important;font-weight:800!important;color:#1e8050!important}
body.single-product .related.products .button,
body.single-product .up-sells.upsells .button{width:100%;text-align:center;margin-top:8px!important;font-size:11px!important;padding:9px 6px!important;border-radius:10px!important}

@media(max-width:1250px){
  body.single-product .related.products ul.products,
  body.single-product .up-sells.upsells ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:900px){
  body.single-product .related.products ul.products,
  body.single-product .up-sells.upsells ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
  body.single-product .woocommerce-tabs{padding:14px!important;border-radius:15px!important}
  body.single-product .related.products,
  body.single-product .up-sells.upsells{padding:13px!important;border-radius:16px!important}
  body.single-product .related.products ul.products,
  body.single-product .up-sells.upsells ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.single-product .related.products ul.products li.product,
  body.single-product .up-sells.upsells ul.products li.product{padding:8px!important;border-radius:13px!important}
  body.single-product .related.products .woocommerce-loop-product__title,
  body.single-product .up-sells.upsells .woocommerce-loop-product__title{font-size:10.5px!important;min-height:36px}
}
