/* NetYadak v6.4.5 — final unified product-card skin
   Reference: the supplied tall white card with centered product image,
   two-line title, rating/stock row, price at left and a single yellow cart at right. */

/* --------------------------------------------------------------------------
   1) HOME: force every product section onto the same component, even when a
      cached Elementor copy is still carrying old section-specific classes.
   -------------------------------------------------------------------------- */
html body .ny-home .ny-unified-cards > .ny-best-card,
html body .ny-home #nyTopProducts .ny-best-card,
html body .ny-home #nySpecial .ny-best-card,
html body .ny-home .ny-section--flash .ny-best-card {
  position:relative!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:407px!important;
  height:407px!important;
  max-height:407px!important;
  padding:16px 17px 17px!important;
  border:1px solid #d8d8d8!important;
  border-radius:10px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:none!important;
  direction:rtl!important;
  transform:none!important;
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
html body .ny-home .ny-unified-cards > .ny-best-card:hover,
html body .ny-home .ny-unified-cards > .ny-best-card:focus-within,
html body .ny-home #nyTopProducts .ny-best-card:hover,
html body .ny-home #nyTopProducts .ny-best-card:focus-within,
html body .ny-home #nySpecial .ny-best-card:hover,
html body .ny-home #nySpecial .ny-best-card:focus-within,
html body .ny-home .ny-section--flash .ny-best-card:hover,
html body .ny-home .ny-section--flash .ny-best-card:focus-within {
  border-color:#f2c044!important;
  box-shadow:0 12px 24px rgba(15,23,42,.08)!important;
  transform:none!important;
}

html body .ny-home .ny-best-card > .ny-best-card__image {
  display:grid!important;
  place-items:center!important;
  flex:0 0 196px!important;
  width:100%!important;
  height:196px!important;
  min-height:196px!important;
  max-height:196px!important;
  margin:12px 0 14px!important;
  padding:0!important;
  overflow:hidden!important;
  background:transparent!important;
}
html body .ny-home .ny-best-card > .ny-best-card__image img,
html body .ny-home .ny-best-card:hover > .ny-best-card__image img {
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:70%!important;
  max-height:185px!important;
  margin:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:none!important;
  transform:none!important;
}
html body .ny-home .ny-best-card > h3 {
  display:-webkit-box!important;
  flex:0 0 54px!important;
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  margin:0 0 13px!important;
  padding:0!important;
  overflow:hidden!important;
  color:#151515!important;
  font-size:14px!important;
  font-weight:500!important;
  line-height:1.72!important;
  text-align:right!important;
  white-space:normal!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
html body .ny-home .ny-best-card > h3 a {
  color:inherit!important;
  font:inherit!important;
  text-decoration:none!important;
}
html body .ny-home .ny-best-card > .ny-best-card__meta {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  height:20px!important;
  min-height:20px!important;
  margin:auto 0 0!important;
  padding:0!important;
  color:#4d2828!important;
  direction:ltr!important;
  font-size:11px!important;
  line-height:1!important;
}
html body .ny-home .ny-best-card > .ny-best-card__meta > span:last-child {
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  direction:rtl!important;
  white-space:nowrap!important;
}
html body .ny-home .ny-best-card .ny-best-rating {
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  color:#3f3631!important;
  direction:ltr!important;
  font-size:11px!important;
  font-weight:600!important;
  white-space:nowrap!important;
}
html body .ny-home .ny-best-card .ny-best-rating svg {
  display:block!important;
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  fill:#e8a12b!important;
  stroke:#e8a12b!important;
}
html body .ny-home .ny-best-card > .ny-best-card__footer {
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  margin:12px 0 0!important;
  padding:0!important;
  direction:ltr!important;
}
html body .ny-home .ny-best-card .ny-best-price {
  position:relative!important;
  display:block!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  height:50px!important;
  margin:0!important;
  padding:0!important;
  direction:ltr!important;
}
html body .ny-home .ny-best-card .ny-best-price__old {
  position:static!important;
  display:block!important;
  min-height:0!important;
  margin:0!important;
}
html body .ny-home .ny-best-card .ny-best-price__old span {
  position:absolute!important;
  top:0!important;
  left:0!important;
  display:grid!important;
  place-items:center!important;
  min-width:26px!important;
  width:auto!important;
  height:18px!important;
  padding:0 6px!important;
  border-radius:5px!important;
  background:#ee1736!important;
  color:#fff!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1!important;
}
html body .ny-home .ny-best-card .ny-best-price__old del {
  position:absolute!important;
  top:4px!important;
  left:36px!important;
  color:#929397!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
html body .ny-home .ny-best-card .ny-best-price__now strong {
  position:absolute!important;
  top:23px!important;
  left:35px!important;
  margin:0!important;
  color:#321014!important;
  font-size:25px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:-1px!important;
  white-space:nowrap!important;
  transform:none!important;
}
html body .ny-home .ny-best-card .ny-best-price__now small {
  position:absolute!important;
  top:31px!important;
  left:0!important;
  margin:0!important;
  color:#3c2224!important;
  font-size:9px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

/* --------------------------------------------------------------------------
   2) CART: exactly ONE real SVG. Kill all historic pseudo icons, theme icons,
      WooCommerce loading glyphs and the secondary "view cart" link.
   -------------------------------------------------------------------------- */
html body .ny-home a.ny-cart-btn,
html body .ny-home a.ny-best-cart,
html body .ny-home button.ny-cart-btn,
html body .ny-home button.ny-best-cart,
html body .nyp-category-card a.nyp-card-cart,
html body .nyp-related-home-card a.ny-cart-btn {
  position:relative!important;
  display:grid!important;
  place-items: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;
  color:#082144!important;
  background:#ffb800!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;
}
html body .ny-home a.ny-cart-btn::before,
html body .ny-home a.ny-cart-btn::after,
html body .ny-home a.ny-best-cart::before,
html body .ny-home a.ny-best-cart::after,
html body .ny-home button.ny-cart-btn::before,
html body .ny-home button.ny-cart-btn::after,
html body .ny-home button.ny-best-cart::before,
html body .ny-home button.ny-best-cart::after,
html body .nyp-category-card a.nyp-card-cart::before,
html body .nyp-category-card a.nyp-card-cart::after,
html body .nyp-related-home-card a.ny-cart-btn::before,
html body .nyp-related-home-card a.ny-cart-btn::after {
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  background:none!important;
  background-image:none!important;
  animation:none!important;
}
html body .ny-home a.ny-cart-btn > svg,
html body .ny-home a.ny-best-cart > svg,
html body .ny-home button.ny-cart-btn > svg,
html body .ny-home button.ny-best-cart > svg,
html body .nyp-category-card a.nyp-card-cart > svg,
html body .nyp-related-home-card a.ny-cart-btn > svg {
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:21px!important;
  height:21px!important;
  min-width:21px!important;
  min-height:21px!important;
  flex:0 0 21px!important;
  margin:0!important;
  padding:0!important;
  fill:none!important;
  stroke:#082144!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  transform:none!important;
}
html body .ny-home a.ny-cart-btn > svg ~ *,
html body .ny-home a.ny-best-cart > svg ~ * {
  display:none!important;
}
html body .ny-home .added_to_cart.wc-forward,
html body .nyp-category-card .added_to_cart.wc-forward,
html body .nyp-related-home-card .added_to_cart.wc-forward {
  display:none!important;
}

/* --------------------------------------------------------------------------
   3) CATEGORY / BRAND / VEHICLE ARCHIVES: the same card proportions.
   -------------------------------------------------------------------------- */
@media (min-width:781px) {
  html body.nyp-category-page .nyp-category-card {
    position:relative!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    height:407px!important;
    min-height:407px!important;
    max-height:407px!important;
    padding:16px 17px 17px!important;
    border:1px solid #d8d8d8!important;
    border-radius:10px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:none!important;
    transform:none!important;
  }
  html body.nyp-category-page .nyp-card-image {
    display:grid!important;
    place-items:center!important;
    flex:0 0 196px!important;
    height:196px!important;
    min-height:196px!important;
    max-height:196px!important;
    margin:12px 0 14px!important;
  }
  html body.nyp-category-page .nyp-card-image img {
    width:auto!important;
    height:auto!important;
    max-width:70%!important;
    max-height:185px!important;
    object-fit:contain!important;
    transform:none!important;
  }
  html body.nyp-category-page .nyp-card-title {
    display:-webkit-box!important;
    flex:0 0 54px!important;
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
    margin:0 0 13px!important;
    color:#151515!important;
    font-size:14px!important;
    font-weight:500!important;
    line-height:1.72!important;
    text-align:right!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
  }
  html body.nyp-category-page .nyp-card-producer { display:none!important; }
  html body.nyp-category-page .nyp-card-meta {
    width:100%!important;
    margin:auto 0 0!important;
    font-size:11px!important;
  }
  html body.nyp-category-page .nyp-card-price-row {
    width:100%!important;
    height:52px!important;
    min-height:52px!important;
    margin:12px 0 0!important;
  }
}

/* --------------------------------------------------------------------------
   4) RELATED PRODUCTS: same box, same cart, same hierarchy.
   -------------------------------------------------------------------------- */
html body .nyp-figma-product .nyp-related-home-card {
  height:407px!important;
  min-height:407px!important;
  max-height:407px!important;
  padding:16px 17px 17px!important;
  border:1px solid #d8d8d8!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
  transform:none!important;
}
html body .nyp-figma-product .nyp-related-home-card .ny-best-card__image {
  flex:0 0 196px!important;
  height:196px!important;
  min-height:196px!important;
  max-height:196px!important;
  margin:12px 0 14px!important;
}
html body .nyp-figma-product .nyp-related-home-card .ny-best-card__image img {
  max-width:70%!important;
  max-height:185px!important;
  transform:none!important;
}
html body .nyp-figma-product .nyp-related-home-card > h3 {
  flex:0 0 54px!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  margin:0 0 13px!important;
  font-size:14px!important;
  line-height:1.72!important;
}

/* Mobile keeps the same visual language without forcing desktop dimensions. */
@media (max-width:780px) {
  html body .ny-home .ny-best-card,
  html body.nyp-category-page .nyp-category-card,
  html body .nyp-figma-product .nyp-related-home-card {
    border:1px solid #d8d8d8!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
}
