
/* Net Yadak product page — automatic same-category related products */
.nyp-figma-product .nyp-related-products,
.nyp-figma-product .nyp-related-products *{
  box-sizing:border-box;
}

.nyp-figma-product .nyp-related-products{
  width:100%;
  margin:84px 0 70px;
  direction:rtl;
}

.nyp-figma-product .nyp-related-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:44px;
  margin-bottom:18px;
  padding:0 2px;
}

.nyp-figma-product .nyp-related-head h2{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0;
  color:#151a20;
  font-size:17px;
  font-weight:850;
  line-height:1.4;
}

.nyp-figma-product .nyp-related-title-icon{
  display:inline-grid;
  width:26px;
  height:26px;
  place-items:center;
  flex:0 0 26px;
  border-radius:50%;
  background:#092e59;
  box-shadow:0 3px 9px rgba(9,46,89,.16);
}

.nyp-figma-product .nyp-related-title-icon .nyp-asset-icon{
  width:16px;
  height:16px;
  opacity:1;
}

.nyp-figma-product .nyp-related-view-all,
.nyp-figma-product .nyp-related-view-all:hover,
.nyp-figma-product .nyp-related-view-all:focus,
.nyp-figma-product .nyp-related-view-all:active{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0;
  direction:ltr;
  color:#262a30;
  background:transparent;
  border:0;
  box-shadow:none;
  text-decoration:none;
  font-size:10px;
  font-weight:600;
}

.nyp-figma-product .nyp-related-view-all-icon{
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  flex:0 0 30px;
  border-radius:7px;
  color:#172335;
  background:#ffc21a;
  box-shadow:0 4px 9px rgba(25,33,43,.10);
  transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease;
}

.nyp-figma-product .nyp-related-view-all-icon .nyp-icon{
  width:15px;
  height:15px;
  stroke-width:1.7;
}

.nyp-figma-product .nyp-related-view-all:hover .nyp-related-view-all-icon,
.nyp-figma-product .nyp-related-view-all:focus-visible .nyp-related-view-all-icon{
  background:#ffd14a;
  box-shadow:0 7px 14px rgba(25,33,43,.14);
  transform:translateY(-1px);
}

.nyp-figma-product .nyp-related-track{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:0;
  width:100%;
  min-width:0;
  border-top:1px solid #eef0f2;
  border-bottom:1px solid #eef0f2;
  overflow:visible;
}

.nyp-figma-product .nyp-related-card{
  position:relative;
  display:flex;
  min-width:0;
  min-height:326px;
  padding:12px 13px 13px;
  flex-direction:column;
  background:#fff;
  border:0;
  border-left:1px solid #eceef0;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease;
}

.nyp-figma-product .nyp-related-card:last-child{
  border-left:0;
}

.nyp-figma-product .nyp-related-card:hover,
.nyp-figma-product .nyp-related-card:focus-within{
  z-index:2;
  background:#fff;
  box-shadow:0 12px 25px rgba(15,23,42,.08);
  transform:translateY(-3px);
}

.nyp-figma-product .nyp-related-image{
  display:grid;
  width:100%;
  height:148px;
  margin:0 0 8px;
  place-items:center;
  overflow:hidden;
  text-decoration:none;
  background:transparent;
}

.nyp-figma-product .nyp-related-image img{
  display:block;
  width:auto;
  height:auto;
  max-width:84%;
  max-height:136px;
  margin:auto;
  object-fit:contain;
  filter:none;
  transition:transform .24s ease;
}

.nyp-figma-product .nyp-related-card:hover .nyp-related-image img{
  transform:translateY(-2px) scale(1.025);
}

.nyp-figma-product .nyp-related-no-image{
  display:grid;
  width:76px;
  height:76px;
  place-items:center;
  border-radius:12px;
  background:#f5f7f9;
}

.nyp-figma-product .nyp-related-no-image .nyp-asset-icon{
  width:28px;
  height:28px;
  filter:brightness(.55);
}

.nyp-figma-product .nyp-related-body{
  display:flex;
  min-width:0;
  flex:1;
  flex-direction:column;
}

.nyp-figma-product .nyp-related-card h3{
  min-height:49px;
  margin:0;
  color:#1c2025;
  font-size:10.5px;
  font-weight:600;
  line-height:1.75;
  text-align:right;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.nyp-figma-product .nyp-related-card h3 a{
  color:inherit;
  text-decoration:none;
}

.nyp-figma-product .nyp-related-card h3 a:hover,
.nyp-figma-product .nyp-related-card h3 a:focus-visible{
  color:#092e59;
}

.nyp-figma-product .nyp-related-producer{
  min-height:17px;
  margin:2px 0 0;
  color:#7d838a;
  font-size:8.5px;
  line-height:1.55;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.nyp-figma-product .nyp-related-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  min-height:20px;
  margin-top:auto;
  padding-top:6px;
  direction:ltr;
  color:#626971;
  font-size:8.5px;
}

.nyp-figma-product .nyp-related-stock{
  display:inline-flex;
  align-items:center;
  gap:4px;
  direction:rtl;
  white-space:nowrap;
}

.nyp-figma-product .nyp-related-stock i{
  display:block;
  width:5px;
  height:5px;
  flex:0 0 5px;
  border-radius:50%;
  background:#d93245;
}

.nyp-figma-product .nyp-related-stock.is-out-stock{
  color:#a6abb0;
}

.nyp-figma-product .nyp-related-stock.is-out-stock i{
  background:#aeb3b8;
}

.nyp-figma-product .nyp-related-rating{
  display:inline-flex;
  align-items:center;
  gap:3px;
  direction:ltr;
  color:#6a5c4c;
  font-size:8.5px;
  font-weight:600;
}

.nyp-figma-product .nyp-related-rating span{
  color:#e9a21d;
  font-size:11px;
  line-height:1;
}

.nyp-figma-product .nyp-related-rating b{
  font-weight:600;
}

.nyp-figma-product .nyp-related-footer{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  min-height:44px;
  margin-top:5px;
  direction:rtl;
}

.nyp-figma-product .nyp-related-cart,
.nyp-figma-product .nyp-related-cart:hover,
.nyp-figma-product .nyp-related-cart:focus,
.nyp-figma-product .nyp-related-cart:active{
  display:grid;
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  padding:0;
  place-items:center;
  flex:0 0 34px;
  border:0;
  border-radius:7px;
  color:#071d38;
  background:#ffbf0d;
  box-shadow:none;
  text-decoration:none;
  transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.nyp-figma-product .nyp-related-cart .nyp-icon{
  width:17px;
  height:17px;
  stroke-width:1.65;
}

.nyp-figma-product .nyp-related-cart:hover,
.nyp-figma-product .nyp-related-cart:focus-visible{
  background:#ffd03d;
  box-shadow:0 8px 15px rgba(255,191,13,.24);
  transform:translateY(-2px);
}

.nyp-figma-product .nyp-related-cart:active{
  transform:scale(.96);
  box-shadow:none;
}

.nyp-figma-product .nyp-related-price{
  display:grid;
  min-width:0;
  gap:3px;
  justify-items:end;
  direction:ltr;
}

.nyp-figma-product .nyp-related-price-old{
  display:flex;
  min-height:14px;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  direction:ltr;
}

.nyp-figma-product .nyp-related-price-old span{
  display:inline-grid;
  min-width:24px;
  height:14px;
  padding:0 4px;
  place-items:center;
  border-radius:4px;
  color:#fff;
  background:#df3344;
  font-size:7px;
  font-weight:850;
  line-height:1;
}

.nyp-figma-product .nyp-related-price-old del{
  color:#9a9fa5;
  font-size:7.5px;
  line-height:1;
  text-decoration-thickness:1px;
  white-space:nowrap;
}

.nyp-figma-product .nyp-related-price-now{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:4px;
  direction:ltr;
}

.nyp-figma-product .nyp-related-price-now strong{
  color:#311318;
  font-size:13.5px;
  font-weight:900;
  line-height:1.05;
  white-space:nowrap;
  letter-spacing:-.35px;
}

.nyp-figma-product .nyp-related-price-now small{
  margin-bottom:1px;
  color:#5f4144;
  font-size:7.5px;
  white-space:nowrap;
}

.nyp-figma-product .nyp-related-price-call strong{
  font-size:10px;
  color:#092e59;
}

@media (max-width:1180px){
  .nyp-figma-product .nyp-related-track{
    grid-template-columns:none;
    grid-auto-flow:column;
    grid-auto-columns:minmax(176px, 19vw);
    justify-content:start;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
  }
  .nyp-figma-product .nyp-related-card{
    scroll-snap-align:start;
  }
}

@media (max-width:820px){
  .nyp-figma-product .nyp-related-products{
    margin:54px 0 52px;
  }
  .nyp-figma-product .nyp-related-head{
    margin-bottom:14px;
  }
  .nyp-figma-product .nyp-related-head h2{
    font-size:15px;
  }
  .nyp-figma-product .nyp-related-track{
    grid-auto-columns:minmax(168px, 58vw);
  }
}

@media (max-width:480px){
  .nyp-figma-product .nyp-related-view-all{
    font-size:9px;
  }
  .nyp-figma-product .nyp-related-view-all-icon{
    width:28px;
    height:28px;
    flex-basis:28px;
  }
  .nyp-figma-product .nyp-related-track{
    grid-auto-columns:minmax(160px, 72vw);
  }
}


/* =========================================================
   v5.7.23 — related product card copied from supplied home-page code
   Source visual structure: .ny-best-card / #nyTopProducts
   ========================================================= */
.nyp-figma-product .nyp-related-track{
  display:flex!important;
  grid-template-columns:none!important;
  gap:18px!important;
  width:100%!important;
  min-width:0!important;
  padding:4px 2px 16px!important;
  border-top:0!important;
  border-bottom:0!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  scroll-snap-type:x proximity!important;
  scrollbar-width:thin!important;
  direction:rtl!important;
}

.nyp-figma-product .nyp-related-home-card{
  position:relative!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex:0 0 286px!important;
  flex-direction:column!important;
  width:286px!important;
  min-width:286px!important;
  max-width:286px!important;
  height:407px!important;
  min-height:407px!important;
  max-height:407px!important;
  margin:0!important;
  padding:15px 16px 16px!important;
  border:1px solid #d9d9d9!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
  direction:rtl!important;
  scroll-snap-align:start!important;
  transition:border-color .24s ease,box-shadow .24s ease,transform .24s ease!important;
}
.nyp-figma-product .nyp-related-home-card:hover,
.nyp-figma-product .nyp-related-home-card:focus-within{
  z-index:2!important;
  border-color:#f2c044!important;
  background:#fff!important;
  box-shadow:0 14px 24px rgba(15,23,42,.09)!important;
  transform:translateY(-3px)!important;
}

.nyp-figma-product .nyp-related-home-card .ny-best-card__image{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 190px!important;
  width:100%!important;
  height:190px!important;
  min-height:190px!important;
  max-height:190px!important;
  margin:0 0 12px!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  text-decoration:none!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-card__image img,
.nyp-figma-product .nyp-related-home-card:hover .ny-best-card__image img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:76%!important;
  max-height:176px!important;
  margin:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
}
.nyp-figma-product .nyp-related-home-no-image{
  display:grid!important;
  width:86px!important;
  height:86px!important;
  place-items:center!important;
  border-radius:12px!important;
  background:#f5f7f9!important;
}
.nyp-figma-product .nyp-related-home-no-image .nyp-asset-icon{width:30px!important;height:30px!important;filter:brightness(.55)!important}

.nyp-figma-product .nyp-related-home-card>h3{
  display:-webkit-box!important;
  flex:0 0 58px!important;
  width:100%!important;
  height:58px!important;
  min-height:58px!important;
  max-height:58px!important;
  margin:0 0 10px!important;
  padding:0!important;
  overflow:hidden!important;
  color:#111!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.78!important;
  text-align:right!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
.nyp-figma-product .nyp-related-home-card>h3 a{
  color:inherit!important;
  font:inherit!important;
  text-decoration:none!important;
}
.nyp-figma-product .nyp-related-home-card>h3 a:hover,
.nyp-figma-product .nyp-related-home-card>h3 a:focus-visible{color:#111!important}

.nyp-figma-product .nyp-related-home-card .ny-best-card__meta{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  flex:0 0 20px!important;
  width:100%!important;
  height:20px!important;
  min-height:20px!important;
  margin:auto 0 0!important;
  padding:0!important;
  color:#4b2024!important;
  font-size:10px!important;
  line-height:1!important;
  direction:ltr!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-card__meta>span:last-child{
  direction:rtl!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-rating{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  color:#39282c!important;
  font-size:10px!important;
  font-weight:700!important;
  white-space:nowrap!important;
  direction:ltr!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-rating svg{
  width:15px!important;
  height:15px!important;
  fill:#f1a219!important;
  stroke:#f1a219!important;
}

.nyp-figma-product .nyp-related-home-card .ny-best-card__footer{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:10px!important;
  flex:0 0 52px!important;
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  margin:12px 0 0!important;
  padding:0!important;
  direction:ltr!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-price{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-end!important;
  gap:5px!important;
  flex:1 1 auto!important;
  min-width:0!important;
  height:50px!important;
  margin:0!important;
  padding:0!important;
  direction:ltr!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-price__old{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  height:18px!important;
  min-height:18px!important;
  margin:0!important;
  direction:ltr!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-price__old.is-empty{visibility:hidden!important}
.nyp-figma-product .nyp-related-home-card .ny-best-price__old>span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:28px!important;
  height:18px!important;
  padding:0 6px!important;
  border:0!important;
  border-bottom:2px solid #d6112d!important;
  border-radius:5px!important;
  background:linear-gradient(180deg,#ff2944 0%,#ee1534 100%)!important;
  color:#fff!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-price__old del{
  margin:0!important;
  color:#96979a!important;
  font-size:9px!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-decoration-thickness:1px!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-price__now{
  display:flex!important;
  align-items:flex-end!important;
  gap:7px!important;
  height:27px!important;
  min-height:27px!important;
  margin:0!important;
  direction:ltr!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-price__now small{
  margin:0 0 2px!important;
  color:#3b1f22!important;
  font-size:8px!important;
  font-weight:500!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.nyp-figma-product .nyp-related-home-card .ny-best-price__now strong{
  margin:0!important;
  color:#310b11!important;
  font-size:22px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:-.4px!important;
  white-space:nowrap!important;
  transform:none!important;
}
.nyp-figma-product .nyp-related-home-card .nyp-related-price-call strong{
  font-size:14px!important;
  color:#310b11!important;
}

.nyp-figma-product .nyp-related-home-card .ny-cart-btn,
.nyp-figma-product .nyp-related-home-card .ny-best-cart,
.nyp-figma-product .nyp-related-home-card .ny-cart-btn:hover,
.nyp-figma-product .nyp-related-home-card .ny-cart-btn:focus,
.nyp-figma-product .nyp-related-home-card .ny-cart-btn:focus-visible,
.nyp-figma-product .nyp-related-home-card .ny-cart-btn:active{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 44px!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:9px!important;
  background:#ffb800!important;
  color:#082144!important;
  box-shadow:none!important;
  font-size:0!important;
  line-height:0!important;
  text-indent:0!important;
  overflow:hidden!important;
  transform:none!important;
  text-decoration:none!important;
}
.nyp-figma-product .nyp-related-home-card .ny-cart-btn>svg,
.nyp-figma-product .nyp-related-home-card .ny-best-cart>svg{
  display:block!important;
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  fill:none!important;
  stroke:#082144!important;
  stroke-width:1.65!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.nyp-figma-product .nyp-related-home-card .ny-cart-btn:hover,
.nyp-figma-product .nyp-related-home-card .ny-cart-btn:focus-visible{
  background:#ffc72e!important;
  box-shadow:0 10px 18px rgba(255,184,0,.26)!important;
  transform:translateY(-2px)!important;
}
.nyp-figma-product .nyp-related-home-card .ny-cart-btn:active{box-shadow:none!important;transform:scale(.96)!important}

@media(max-width:900px){
  .nyp-figma-product .nyp-related-track{gap:14px!important}
  .nyp-figma-product .nyp-related-home-card{flex-basis:260px!important;width:260px!important;min-width:260px!important;max-width:260px!important}
}
@media(max-width:680px){
  .nyp-figma-product .nyp-related-home-card{
    flex-basis:248px!important;
    width:248px!important;
    min-width:248px!important;
    max-width:248px!important;
    height:407px!important;
    min-height:407px!important;
    max-height:407px!important;
    padding:14px!important;
  }
  .nyp-figma-product .nyp-related-home-card .ny-best-card__image{
    flex-basis:190px!important;
    height:190px!important;
    min-height:190px!important;
    max-height:190px!important;
  }
}


/* v6.5.34 — حذف کامل هاور دکمه «مشاهده همه» در صفحه محصول */
.nyp-figma-product .nyp-related-view-all-icon,
.nyp-figma-product .nyp-related-view-all:hover .nyp-related-view-all-icon,
.nyp-figma-product .nyp-related-view-all:focus .nyp-related-view-all-icon,
.nyp-figma-product .nyp-related-view-all:focus-visible .nyp-related-view-all-icon,
.nyp-figma-product .nyp-related-view-all:active .nyp-related-view-all-icon{
  background:#ffc21a !important;
  box-shadow:0 4px 9px rgba(25,33,43,.10) !important;
  transform:none !important;
  transition:none !important;
}
.nyp-figma-product .nyp-related-view-all,
.nyp-figma-product .nyp-related-view-all:hover,
.nyp-figma-product .nyp-related-view-all:focus,
.nyp-figma-product .nyp-related-view-all:focus-visible,
.nyp-figma-product .nyp-related-view-all:active{
  transform:none !important;
  transition:none !important;
  box-shadow:none !important;
  filter:none !important;
}
