/* Net Yadak v5.7.2 — restore product hero/sidebar proportions to supplied reference.
   Loaded last on single product pages. SEO/admin changes are intentionally untouched. */

@media (min-width:1100px){
  .nyp-figma-product .nyp-container{
    width:min(1548px,calc(100% - 46px))!important;
    max-width:1548px!important;
    margin:28px auto 90px!important;
  }

  .nyp-figma-product .nyp-product-layout{
    display:grid!important;
    grid-template-columns:375px minmax(0,1fr)!important;
    gap:18px!important;
    align-items:start!important;
    direction:ltr!important;
  }
  .nyp-figma-product .nyp-product-layout>*{direction:rtl!important}

  /* LEFT PURCHASE COLUMN */
  .nyp-figma-product .nyp-buy-card{
    width:375px!important;
    max-width:375px!important;
    gap:18px!important;
  }
  .nyp-figma-product .nyp-social-row{
    min-height:56px!important;
    height:56px!important;
    padding:7px 14px!important;
    border-radius:9px!important;
    background:#e91538!important;
    box-shadow:none!important;
  }
  .nyp-figma-product .nyp-social-row strong{
    min-width:0!important;
    max-width:190px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:800!important;
  }
  .nyp-figma-product .nyp-deal-timer{gap:6px!important}
  .nyp-figma-product .nyp-deal-timer span{
    width:42px!important;
    height:42px!important;
    border-radius:7px!important;
    color:#e91538!important;
    font-size:16px!important;
    font-weight:800!important;
  }
  .nyp-figma-product .nyp-deal-timer b{font-size:15px!important}

  .nyp-figma-product .nyp-buy-box,
  .nyp-figma-product .nyp-installment-box{
    width:100%!important;
    min-width:0!important;
    padding:20px 16px 18px!important;
    border:1px solid #d7dce1!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .nyp-figma-product .nyp-buy-box{min-height:292px!important}
  .nyp-figma-product .nyp-buy-title,
  .nyp-figma-product .nyp-installment-box h3{
    margin:0 0 22px!important;
    padding:0!important;
    text-align:right!important;
    color:#17191d!important;
    font-size:23px!important;
    line-height:1.35!important;
    font-weight:900!important;
  }
  .nyp-figma-product .nyp-buy-status-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    min-height:34px!important;
    margin:0 0 17px!important;
  }
  .nyp-figma-product .nyp-sale-label{
    min-width:92px!important;
    min-height:33px!important;
    padding:0 14px!important;
    border:0!important;
    border-radius:999px!important;
    background:#e91538!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:800!important;
  }
  .nyp-figma-product .nyp-stock,
  .nyp-figma-product .nyp-stock.in-stock,
  .nyp-figma-product .nyp-stock.out-stock{
    gap:7px!important;
    color:#e3263f!important;
    font-size:13px!important;
    font-weight:650!important;
    white-space:nowrap!important;
  }
  .nyp-figma-product .nyp-stock .nyp-stock-asset{
    width:22px!important;
    height:22px!important;
    flex:0 0 22px!important;
  }
  .nyp-figma-product .nyp-price-row{
    display:flex!important;
    align-items:flex-end!important;
    justify-content:space-between!important;
    gap:12px!important;
    min-height:44px!important;
    margin:0 0 17px!important;
  }
  .nyp-figma-product .nyp-price-row del{
    margin:0 0 5px!important;
    color:#9ea4aa!important;
    font-size:15px!important;
    text-decoration-thickness:1.5px!important;
  }
  .nyp-figma-product .nyp-current-price{gap:6px!important}
  .nyp-figma-product .nyp-current-price strong{
    color:#1d2024!important;
    font-size:32px!important;
    line-height:1!important;
    font-weight:900!important;
  }
  .nyp-figma-product .nyp-current-price span{
    margin-bottom:3px!important;
    color:#666c73!important;
    font-size:14px!important;
  }
  .nyp-figma-product .nyp-order-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 52px!important;
    gap:12px!important;
    height:52px!important;
    min-height:52px!important;
    margin:0!important;
    direction:ltr!important;
  }
  .nyp-figma-product .nyp-order-button{
    height:52px!important;
    min-height:52px!important;
    padding:0 18px!important;
    border-radius:8px!important;
    background:#ffbf18!important;
    color:#1e2329!important;
    font-size:15px!important;
    font-weight:800!important;
    gap:10px!important;
  }
  .nyp-figma-product .nyp-order-button .nyp-icon{width:23px!important;height:23px!important}
  .nyp-figma-product .nyp-buy-qty{
    width:52px!important;
    min-width:52px!important;
    height:52px!important;
    min-height:52px!important;
    grid-template-columns:18px 1fr!important;
    border:2px solid #e9ab20!important;
    border-radius:8px!important;
  }
  .nyp-figma-product .nyp-buy-spin-buttons{width:18px!important;height:48px!important}
  .nyp-figma-product .nyp-buy-spin-buttons button{
    width:18px!important;
    height:24px!important;
    color:#a4a9ae!important;
    font-size:8px!important;
  }
  .nyp-figma-product .nyp-buy-qty>input{
    height:48px!important;
    font-size:16px!important;
    line-height:48px!important;
  }
  .nyp-figma-product .nyp-recommend{
    min-height:38px!important;
    height:38px!important;
    margin:14px 0 0!important;
    padding:0 12px!important;
    border-radius:8px!important;
    background:#dff4c8!important;
    color:#68a936!important;
    font-size:13px!important;
    font-weight:500!important;
  }
  .nyp-figma-product .nyp-recommend .nyp-asset-icon{width:21px!important;height:21px!important}

  /* Installment card */
  .nyp-figma-product .nyp-installment-box{
    min-height:315px!important;
    padding:22px 16px 18px!important;
  }
  .nyp-figma-product .nyp-installment-box h3{margin-bottom:24px!important}
  .nyp-figma-product .nyp-installment-grid{gap:14px!important}
  .nyp-figma-product .nyp-installment-option>span{
    margin-bottom:7px!important;
    font-size:14px!important;
    color:#25292e!important;
  }
  .nyp-figma-product .nyp-mini-stepper{
    height:52px!important;
    min-height:52px!important;
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    border:1px solid #d2d6da!important;
    border-radius:10px!important;
  }
  .nyp-figma-product .nyp-mini-stepper>button{
    width:40px!important;
    min-width:40px!important;
    height:50px!important;
    min-height:50px!important;
    background:#fff!important;
    color:#0b3568!important;
    font-size:23px!important;
  }
  .nyp-figma-product .nyp-mini-stepper>button:hover,
  .nyp-figma-product .nyp-mini-stepper>button:focus,
  .nyp-figma-product .nyp-mini-stepper>button:focus-visible,
  .nyp-figma-product .nyp-mini-stepper>button:active{
    background:#edf3f9!important;
    color:#082f61!important;
    box-shadow:none!important;
    outline:0!important;
  }
  .nyp-figma-product .nyp-mini-stepper .nyp-stepper-value{height:50px!important}
  .nyp-figma-product .nyp-mini-stepper input{
    width:24px!important;
    min-width:24px!important;
    height:48px!important;
    line-height:48px!important;
    font-size:16px!important;
  }
  .nyp-figma-product .nyp-mini-stepper em{font-size:13px!important}
  .nyp-figma-product .nyp-installment-amount{
    height:48px!important;
    min-height:48px!important;
    margin:18px 0 0!important;
    padding:0 14px!important;
    border-radius:9px!important;
    background:#dcf5c5!important;
  }
  .nyp-figma-product .nyp-installment-amount span{font-size:13px!important}
  .nyp-figma-product .nyp-installment-amount b{font-size:14px!important}
  .nyp-figma-product .nyp-outline-btn{
    height:52px!important;
    min-height:52px!important;
    margin:18px 0 0!important;
    border:2px solid #eba900!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#17191d!important;
    font-size:16px!important;
    font-weight:650!important;
  }
  .nyp-figma-product .nyp-outline-btn .nyp-icon{width:24px!important;height:24px!important}

  /* MAIN PRODUCT PANEL */
  .nyp-figma-product .nyp-product-main{min-width:0!important}
  .nyp-figma-product .nyp-product-card{
    display:grid!important;
    grid-template-columns:43% minmax(0,1fr)!important;
    gap:24px!important;
    min-height:570px!important;
    height:570px!important;
    padding:24px 28px 20px!important;
    border:1px solid #d7dce1!important;
    border-radius:12px!important;
    background:#fff!important;
    overflow:hidden!important;
    direction:rtl!important;
  }

  .nyp-figma-product .nyp-summary{
    display:flex!important;
    flex-direction:column!important;
    min-height:524px!important;
    height:524px!important;
    padding:8px 0 0!important;
    text-align:right!important;
  }
  .nyp-figma-product .nyp-summary h1{
    margin:0 0 10px!important;
    color:#111418!important;
    font-size:26px!important;
    line-height:1.6!important;
    font-weight:900!important;
    text-align:right!important;
  }
  .nyp-figma-product .nyp-summary-meta{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    direction:ltr!important;
    min-height:40px!important;
    margin:0 0 16px!important;
    padding:0 0 16px!important;
    border-bottom:1px solid #d8dce0!important;
    color:#555b62!important;
    font-size:13px!important;
  }
  .nyp-figma-product .nyp-summary-meta-right{
    display:flex!important;
    align-items:center!important;
    gap:13px!important;
    direction:ltr!important;
  }
  .nyp-figma-product .nyp-summary-meta-right a{color:#2164ff!important;font-size:13px!important;font-weight:650!important}
  .nyp-figma-product .nyp-meta-rating b{font-size:13px!important}
  .nyp-figma-product .nyp-stars span{font-size:15px!important}
  .nyp-figma-product .nyp-product-sku{font-size:13px!important;color:#535960!important}

  .nyp-figma-product .nyp-update{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:center!important;
    width:min(66%,410px)!important;
    min-height:44px!important;
    margin:8px auto 25px!important;
    padding:8px 14px!important;
    border-radius:9px!important;
    background:#dff5c8!important;
    color:#55a62f!important;
    font-size:13px!important;
    font-weight:500!important;
    text-align:center!important;
  }
  .nyp-figma-product .nyp-update .nyp-asset-icon{width:23px!important;height:23px!important;flex:0 0 23px!important}

  .nyp-figma-product .nyp-summary-heading{
    justify-content:center!important;
    margin:0 0 15px!important;
  }
  .nyp-figma-product .nyp-summary-heading h2{
    margin:0!important;
    color:#171a1e!important;
    font-size:20px!important;
    font-weight:900!important;
  }
  .nyp-figma-product .nyp-quick-specs{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px 14px!important;
  }
  .nyp-figma-product .nyp-quick-specs>div{
    min-height:68px!important;
    padding:10px 14px!important;
    border:1px solid #bdc3c8!important;
    border-radius:10px!important;
    background:#fff!important;
    align-items:flex-start!important;
    justify-content:center!important;
    text-align:right!important;
  }
  .nyp-figma-product .nyp-quick-specs span{
    width:100%!important;
    margin-bottom:2px!important;
    color:#676c72!important;
    font-size:13px!important;
    line-height:1.4!important;
    text-align:right!important;
  }
  .nyp-figma-product .nyp-quick-specs b{
    width:100%!important;
    color:#16191c!important;
    font-size:15px!important;
    line-height:1.5!important;
    font-weight:650!important;
    text-align:right!important;
  }
  .nyp-figma-product .nyp-all-features{
    display:flex!important;
    align-items:center!important;
    direction:ltr!important;
    gap:12px!important;
    width:100%!important;
    margin:18px 0 0!important;
    color:#245bff!important;
    font-size:14px!important;
    font-weight:650!important;
    white-space:nowrap!important;
  }
  .nyp-figma-product .nyp-all-features:before{
    content:""!important;
    flex:1!important;
    height:1px!important;
    background:#dfe2e5!important;
  }
  .nyp-figma-product .nyp-summary-footer{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    direction:rtl!important;
    min-height:52px!important;
    margin-top:auto!important;
    padding-top:13px!important;
    border-top:1px solid #dfe2e5!important;
    gap:14px!important;
  }
  .nyp-figma-product .nyp-product-category,
  .nyp-figma-product .nyp-product-category b,
  .nyp-figma-product .nyp-product-category a,
  .nyp-figma-product .nyp-product-category span,
  .nyp-figma-product .nyp-share-line,
  .nyp-figma-product .nyp-share-line .nyp-share-label{
    font-size:13px!important;
  }
  .nyp-figma-product .nyp-share-line{gap:9px!important}
  .nyp-figma-product .nyp-share-line a,
  .nyp-figma-product .nyp-share-line button{width:25px!important;height:25px!important}
  .nyp-figma-product .nyp-share-line .nyp-asset-icon{width:19px!important;height:19px!important}

  .nyp-figma-product .nyp-gallery{
    min-height:524px!important;
    height:524px!important;
    padding:0!important;
  }
  .nyp-figma-product .nyp-main-image-wrap{
    height:392px!important;
    padding:24px 72px 4px 28px!important;
  }
  .nyp-figma-product .nyp-main-image-wrap img{
    width:auto!important;
    height:auto!important;
    max-width:82%!important;
    max-height:330px!important;
    object-fit:contain!important;
  }
  .nyp-figma-product .nyp-gallery-actions{
    top:8px!important;
    right:8px!important;
    gap:9px!important;
  }
  .nyp-figma-product .nyp-gallery-actions button,
  .nyp-figma-product .nyp-gallery-actions button:hover,
  .nyp-figma-product .nyp-gallery-actions button:focus-visible,
  .nyp-figma-product .nyp-gallery-actions button:active,
  .nyp-figma-product .nyp-gallery-actions button.is-active,
  .nyp-figma-product .nyp-gallery-actions button[aria-pressed="true"]{
    width:42px!important;
    height:42px!important;
    border:1px solid #d4d9dd!important;
    border-radius:8px!important;
    background:#fff!important;
    box-shadow:0 2px 8px rgba(15,31,49,.06)!important;
  }
  .nyp-figma-product .nyp-gallery-actions button .nyp-asset-icon,
  .nyp-figma-product .nyp-gallery-actions button svg{width:20px!important;height:20px!important}

  .nyp-figma-product .nyp-thumb-row{
    grid-template-columns:46px minmax(0,1fr) 46px!important;
    gap:10px!important;
    margin-top:auto!important;
  }
  .nyp-figma-product .nyp-gallery-arrow{
    width:46px!important;
    height:68px!important;
    border:1px solid #d8dcdf!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#31363b!important;
    font-size:28px!important;
  }
  .nyp-figma-product .nyp-thumbs{
    justify-content:flex-start!important;
    gap:24px!important;
    padding:0!important;
  }
  .nyp-figma-product .nyp-thumb{
    flex:0 0 72px!important;
    width:72px!important;
    height:68px!important;
    padding:6px 9px!important;
    border:0!important;
    border-right:1px solid #e1e3e5!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .nyp-figma-product .nyp-thumb:first-child{
    border:1px solid #d8dcdf!important;
    border-radius:9px!important;
  }

  /* Trust strip visible immediately under product card, like the reference. */
  .nyp-figma-product .nyp-trust-strip{
    display:grid!important;
    grid-template-columns:repeat(4,1fr)!important;
    min-height:116px!important;
    margin:24px 0 0!important;
    padding:14px 18px!important;
    border-radius:10px!important;
    background:#0a386d!important;
  }
  .nyp-figma-product .nyp-trust-strip>div{
    min-height:76px!important;
    gap:12px!important;
  }
  .nyp-figma-product .nyp-trust-strip i{
    width:50px!important;
    height:50px!important;
  }
  .nyp-figma-product .nyp-trust-strip .nyp-asset-icon{width:46px!important;height:46px!important}
  .nyp-figma-product .nyp-trust-strip b{font-size:16px!important}
  .nyp-figma-product .nyp-trust-strip small{font-size:11px!important;color:#ffcf3e!important}
}

/* Tablet: keep proportions reasonable without inheriting the desktop fixed heights. */
@media (min-width:821px) and (max-width:1099px){
  .nyp-figma-product .nyp-container{width:calc(100% - 28px)!important;max-width:none!important}
  .nyp-figma-product .nyp-product-layout{grid-template-columns:285px minmax(0,1fr)!important;gap:14px!important}
  .nyp-figma-product .nyp-buy-card{width:285px!important;max-width:285px!important}
}

/* v5.7.3 — Description show-more button fix
 * Keep the Persian label upright and keep the control inside the content card.
 */
.nyp-figma-product .nyp-description-box{
  position:relative!important;
}
.nyp-figma-product .nyp-description-box .nyp-content{
  padding-bottom:82px!important;
}
.nyp-figma-product button.nyp-show-more,
.nyp-figma-product button.nyp-show-more:hover,
.nyp-figma-product button.nyp-show-more:focus,
.nyp-figma-product button.nyp-show-more:focus-visible,
.nyp-figma-product button.nyp-show-more:active{
  position:absolute!important;
  right:34px!important;
  bottom:18px!important;
  z-index:6!important;
  display:inline-flex!important;
  direction:rtl!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  width:max-content!important;
  min-width:0!important;
  margin:0!important;
  padding:5px 0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  background-image:none!important;
  color:#111!important;
  box-shadow:none!important;
  transform:none!important;
  text-align:right!important;
  font-size:18px!important;
  font-weight:500!important;
  line-height:1.4!important;
  white-space:nowrap!important;
}
/* An old frontend rule rotated every span in expanded state. The span now
 * contains the text label, so explicitly keep it upright. */
.nyp-figma-product button.nyp-show-more > span[data-show-more-label],
.nyp-figma-product .nyp-description-box.is-expanded button.nyp-show-more > span[data-show-more-label],
.nyp-figma-product button.nyp-show-more:hover > span[data-show-more-label],
.nyp-figma-product button.nyp-show-more:focus > span[data-show-more-label],
.nyp-figma-product button.nyp-show-more:active > span[data-show-more-label]{
  display:inline-block!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  color:#111!important;
  background:transparent!important;
  transform:none!important;
  rotate:0deg!important;
  scale:1!important;
  direction:rtl!important;
  unicode-bidi:plaintext!important;
}
.nyp-figma-product button.nyp-show-more .nyp-icon{
  width:24px!important;
  height:24px!important;
  flex:0 0 24px!important;
  color:#26c879!important;
  stroke:#26c879!important;
  fill:none!important;
  transform:none!important;
  transition:transform .2s ease!important;
}
.nyp-figma-product button.nyp-show-more .nyp-icon *{stroke:currentColor!important}
/* Only the chevron rotates — never the Persian label. */
.nyp-figma-product .nyp-description-box.is-expanded button.nyp-show-more .nyp-icon{
  transform:rotate(180deg)!important;
}
@media(max-width:820px){
  .nyp-figma-product .nyp-description-box .nyp-content{padding-bottom:66px!important}
  .nyp-figma-product button.nyp-show-more,
  .nyp-figma-product button.nyp-show-more:hover,
  .nyp-figma-product button.nyp-show-more:focus,
  .nyp-figma-product button.nyp-show-more:active{
    right:18px!important;
    bottom:14px!important;
    gap:7px!important;
    font-size:15px!important;
  }
  .nyp-figma-product button.nyp-show-more .nyp-icon{
    width:20px!important;
    height:20px!important;
    flex-basis:20px!important;
  }
}


/* v5.7.15 — smaller "نمایش بیشتر / نمایش کمتر" control */
.nyp-figma-product button.nyp-show-more,
.nyp-figma-product button.nyp-show-more:hover,
.nyp-figma-product button.nyp-show-more:focus,
.nyp-figma-product button.nyp-show-more:focus-visible,
.nyp-figma-product button.nyp-show-more:active{
  font-size:14px!important;
  font-weight:500!important;
  gap:7px!important;
}
.nyp-figma-product button.nyp-show-more .nyp-icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
@media(max-width:820px){
  .nyp-figma-product button.nyp-show-more,
  .nyp-figma-product button.nyp-show-more:hover,
  .nyp-figma-product button.nyp-show-more:focus,
  .nyp-figma-product button.nyp-show-more:active{
    font-size:13px!important;
    gap:6px!important;
  }
  .nyp-figma-product button.nyp-show-more .nyp-icon{
    width:16px!important;
    height:16px!important;
    flex-basis:16px!important;
  }
}
