/* Parya Shop v9 — focused fix: single product + homepage magazine only. */

/* ===== Product page: balanced two-column hero ===== */
body.single-product .parya-product-page-v9{padding-top:34px!important}
body.single-product .parya-product-page-v9>.container{max-width:1240px!important}
body.single-product .parya-single-product-v9{display:block!important;width:100%!important}
body.single-product .parya-single-main-v9{
  display:grid!important;
  grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr)!important;
  gap:28px!important;
  align-items:stretch!important;
  width:100%!important;
}
body.rtl.single-product .parya-single-gallery-v9{grid-column:2!important;grid-row:1!important}
body.rtl.single-product .parya-single-summary-v9{grid-column:1!important;grid-row:1!important}
body.single-product .parya-single-gallery-v9,
body.single-product .parya-single-summary-v9{min-width:0!important;width:100%!important;height:100%!important}
body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery{
  position:relative!important;top:auto!important;
  width:100%!important;height:100%!important;min-height:540px!important;
  margin:0!important;padding:14px!important;
  display:flex!important;flex-direction:column!important;
  border:1px solid #f0e4e9!important;border-radius:28px!important;background:#fff!important;
  box-shadow:0 16px 46px rgba(78,39,58,.06)!important;overflow:hidden!important;
}
body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery__wrapper{flex:1!important;min-height:0!important}
body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery__image a{
  height:500px!important;max-height:500px!important;aspect-ratio:auto!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:linear-gradient(180deg,#fff,#fffafd)!important;border-radius:20px!important;overflow:hidden!important;
}
body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery__image img{
  width:100%!important;height:100%!important;max-height:500px!important;object-fit:contain!important;padding:18px!important;
}
body.single-product .parya-single-gallery-v9 .flex-control-thumbs{flex:0 0 auto!important}
body.single-product .parya-single-summary-v9{
  min-height:540px!important;padding:28px!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  border-radius:28px!important;box-shadow:0 16px 46px rgba(78,39,58,.06)!important;
}
body.single-product .parya-single-summary-v9 .product_title{font-size:clamp(28px,2.8vw,38px)!important;line-height:1.45!important;margin-bottom:8px!important}
body.single-product .parya-single-summary-v9 .price{margin:4px 0 14px!important}
body.single-product .parya-single-summary-v9 .woocommerce-product-details__short-description{margin-bottom:4px!important}
body.single-product .parya-single-summary-v9 form.cart{margin-top:18px!important}
body.single-product .parya-single-summary-v9 .product_meta{margin-top:auto!important;padding-top:16px!important;border-top:1px solid #f0e4e9!important}

/* Full-width assurance strip: never sits under just one product column. */
body.single-product .parya-single-trust-full{display:block!important;width:100%!important;clear:both!important;margin:26px 0 0!important}
body.single-product .parya-product-confidence-v9{
  width:100%!important;max-width:none!important;margin:0!important;
  display:grid!important;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr)!important;
  gap:28px!important;padding:24px 28px!important;border-radius:26px!important;
}
body.single-product .parya-product-confidence-v9 .parya-confidence-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.single-product .parya-single-below-v9{margin-top:34px!important;width:100%!important;clear:both!important}
body.single-product .parya-single-below-v9>.woocommerce-tabs,
body.single-product .parya-single-below-v9>.related.products,
body.single-product .parya-single-below-v9>.upsells.products{width:100%!important;max-width:none!important;clear:both!important;float:none!important}

/* ===== Homepage magazine: compact uniform editorial cards ===== */
.parya-home-magazine{padding-top:62px!important;padding-bottom:70px!important;background:linear-gradient(180deg,#fff 0,#fff9fc 100%)!important}
.parya-home-magazine .section-head{align-items:center!important;margin-bottom:22px!important}
.parya-home-magazine .section-head h2{font-size:clamp(25px,2.6vw,34px)!important;margin:3px 0!important}
.parya-home-magazine .section-head p{font-size:11px!important}
.parya-home-magazine .section-head>a{display:inline-flex!important;align-items:center!important;min-height:40px!important;padding:0 14px!important;border:1px solid #f0e4e9!important;border-radius:12px!important;background:#fff!important;font-size:10px!important;font-weight:850!important}
.parya-home-mag-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
  width:100%!important;
}
.parya-home-mag-card,
.parya-home-mag-card:first-child{
  display:flex!important;flex-direction:column!important;
  grid-column:auto!important;grid-row:auto!important;
  width:100%!important;min-width:0!important;height:100%!important;
  border-radius:22px!important;overflow:hidden!important;background:#fff!important;
  border:1px solid #f0e4e9!important;box-shadow:0 10px 30px rgba(79,40,58,.035)!important;
}
.parya-home-mag-media,
.parya-home-mag-card:first-child .parya-home-mag-media{
  display:block!important;width:100%!important;height:auto!important;min-height:0!important;
  aspect-ratio:4/3!important;overflow:hidden!important;background:#fff3f7!important;
}
.parya-home-mag-media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important}
.parya-home-mag-body{padding:15px 16px 17px!important;display:flex!important;flex-direction:column!important;flex:1!important;min-width:0!important}
.parya-home-mag-meta{min-height:18px!important;display:flex!important;flex-wrap:wrap!important;gap:8px 12px!important;font-size:8px!important}
.parya-home-mag-body h3{font-size:15px!important;line-height:1.85!important;margin:7px 0!important;min-height:56px!important}
.parya-home-mag-body p{font-size:10px!important;line-height:1.9!important;color:#786c73!important;margin:0 0 12px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.parya-home-mag-more{margin-top:auto!important;padding-top:5px!important}

@media(max-width:1080px){
 body.single-product .parya-single-main-v9{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:20px!important}
 body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery,
 body.single-product .parya-single-summary-v9{min-height:490px!important}
 body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery__image a{height:448px!important;max-height:448px!important}
 body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery__image img{max-height:448px!important}
 .parya-home-mag-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px){
 body.single-product .parya-single-main-v9{grid-template-columns:1fr!important}
 body.rtl.single-product .parya-single-gallery-v9,
 body.rtl.single-product .parya-single-summary-v9{grid-column:1!important;grid-row:auto!important}
 body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery,
 body.single-product .parya-single-summary-v9{min-height:0!important}
 body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery__image a{height:auto!important;max-height:none!important;aspect-ratio:1/1!important}
 body.single-product .parya-single-gallery-v9 .woocommerce-product-gallery__image img{max-height:none!important;padding:10px!important}
 body.single-product .parya-product-confidence-v9{grid-template-columns:1fr!important}
 .parya-home-mag-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
 body.single-product .parya-product-page-v9{padding-top:18px!important}
 body.single-product .parya-single-summary-v9{padding:18px!important}
 body.single-product .parya-product-confidence-v9{padding:20px!important}
 body.single-product .parya-product-confidence-v9 .parya-confidence-grid{grid-template-columns:1fr!important}
 .parya-home-magazine{padding-top:44px!important;padding-bottom:50px!important}
 .parya-home-mag-grid{grid-template-columns:1fr!important;gap:14px!important}
 .parya-home-mag-body h3{min-height:0!important}
}
