/* NEXUS v743 — All Products cards + desktop gallery benefits */

/* 1) «همه محصولات» دقیقاً از همان عرض/فاصله کارت‌های ریل استفاده می‌کند. */
html body .nxn-grid.nxp5-as-rail{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(0,var(--nxn-w,156px)))!important;
  gap:var(--nxn-gap,14px)!important;
  width:100%!important;
  padding:4px 0 24px!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  justify-content:start!important;
  align-items:start!important;
}
html body .nxn-grid.nxp5-as-rail > .nxn-card{
  width:var(--nxn-w,156px)!important;
  max-width:var(--nxn-w,156px)!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
html body .nxn-grid.nxp5-as-rail > .nxn-card .nxn-media{
  width:100%!important;
  height:auto!important;
  aspect-ratio:var(--nx594-img-ar,1 / 1.12)!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
html body .nxn-grid.nxp5-as-rail > .nxn-card .nxn-media .nxn-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
html body .nxn-grid.nxp5-as-rail > .nxn-card .nxn-link,
html body .nxn-grid.nxp5-as-rail > .nxn-card .nxn-price{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}

/* فقط اعداد عنوان محصول لاتین؛ متن فارسی عنوان دست‌نخورده. این قانون عمداً آخر فایل است. */
html body .nxn-card .nxn-title .nx-latnum,
html body .nxn-grid.nxp5-as-rail .nxn-title .nx-latnum,
html body .nxr .nxn-card .nxn-title .nx-latnum{
  font-family:Arial,"Segoe UI",Roboto,sans-serif!important;
  font-feature-settings:"lnum" 1,"tnum" 1!important;
  font-variant-numeric:lining-nums tabular-nums!important;
  direction:ltr!important;
  unicode-bidi:isolate!important;
}

/* 2) مزایای بالای/کنار گالری در دسکتاپ حتماً بعد از گالری قرار بگیرند؛ بدون باکس اضافه. */
@media (min-width:992px){
  html body.nxd-page .nxd-gallery{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
  }
  html body.nxd-page .nxd-gallery > .nxd-g-top{order:1!important;position:relative!important;}
  html body.nxd-page .nxd-gallery > .nxd-thumbs{order:2!important;}
  html body.nxd-page .nxd-gallery > .nxd-tiles{order:3!important;}
  html body.nxd-page .nxd-gallery > .nxd-code{order:4!important;}
  html body.nxd-page .nxd-gallery > .nxd-gallery-benefits{
    order:5!important;
    position:static!important;
    clear:both!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0 22px!important;
    width:100%!important;
    margin:18px 0 0!important;
    padding:14px 0 0!important;
    border:0!important;
    border-top:1px solid var(--nxd-line,#e3e8ef)!important;
    background:transparent!important;
  }
  html body.nxd-page .nxd-gallery > .nxd-gallery-benefits .nxd-gallery-benefit{
    min-height:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    display:flex!important;
    align-items:flex-start!important;
    gap:8px!important;
  }
  html body.nxd-page .nxd-gallery > .nxd-gallery-benefits .nxd-gb-icon{
    width:30px!important;height:30px!important;flex:0 0 30px!important;
    border-radius:50%!important;
    background:var(--nxd-card2,#f3f6fa)!important;
    color:var(--nxd-acc,#0b6fe0)!important;
  }
  html body.nxd-page .nxd-gallery > .nxd-gallery-benefits .nxd-gallery-benefit b{
    font-size:11.5px!important;line-height:1.6!important;
  }
  html body.nxd-page .nxd-gallery > .nxd-gallery-benefits .nxd-gallery-benefit small{
    font-size:9.5px!important;line-height:1.6!important;
  }
}

@media (max-width:991px){
  html body.nxd-page .nxd-gallery > .nxd-gallery-benefits{display:none!important;}
}
