/* =========================================================
   Noor Shop - Product Card
   ========================================================= */
.ns-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(7, 28, 31, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(7, 28, 31, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ns-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(7, 28, 31, 0.1);
  border-color: rgba(42, 74, 17, 0.18);
}

.ns-product-card__media {
  position: relative;
  background: #f4f7f7;
  overflow: hidden;
}

.ns-product-card__image-link {
  display: block;
  position: relative;
  z-index: 1;
}

.ns-product-card__image {
  display: block !important;
  width: 100%;
  height: 220px;
  object-fit: cover;
  position: relative !important;
  z-index: 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.45s ease;
}

.ns-product-card:hover .ns-product-card__image {
  transform: scale(1.05);
}

.ns-product-card__badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #2a4a11;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ns-product-card__badge--new {
  background: #133236;
}

.ns-product-card__tools {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ns-product-card__tool-form {
  margin: 0;
}

.ns-product-card__tool {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ns-ink);
  box-shadow: 0 6px 16px rgba(7, 28, 31, 0.12);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ns-product-card__tool:hover {
  background: #2a4a11;
  color: #fff;
  transform: translateY(-1px);
}

.ns-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 16px 18px;
}

.ns-product-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #c4a35a;
  font-size: 12px;
}

.ns-product-card__rating span {
  margin-inline-start: 4px;
  color: var(--ns-muted);
  font-size: 12px;
  font-weight: 600;
}

.ns-product-card__title {
  margin: 0;
  font-family: var(--ltn__heading-font, 'Rajdhani', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.ns-product-card__title a {
  color: var(--ns-ink) !important;
  transition: color 0.2s ease;
}

.ns-product-card__title a:hover {
  color: var(--ns-green) !important;
}

.ns-product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.ns-product-card__price-current {
  color: var(--ns-green);
  font-size: 1.05rem;
  font-weight: 700;
}

.ns-product-card__price-old {
  color: var(--ns-muted);
  font-size: 0.9rem;
}

.ns-product-card__actions {
  margin-top: auto;
  padding-top: 12px;
}

.ns-product-card__cart-form {
  margin: 0;
}

.ns-product-card__cart-btn {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a4a11 0%, #3d5f1c 100%);
  color: #fff !important;
  font-family: var(--ltn__heading-font, 'Rajdhani', sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(42, 74, 17, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  text-decoration: none !important;
  position: relative;
}

.ns-product-card__cart-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(42, 74, 17, 0.28);
  filter: brightness(1.05);
}

.ns-product-card__cart-btn i {
  font-size: 13px;
}

.ns-product-card__cart-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: none;
  animation: nsCartSpin 0.7s linear infinite;
}

.ns-product-card__cart-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
  cursor: wait;
}

.ns-product-card__cart-btn.is-loading .ns-product-card__cart-spinner,
.ns-ajax-cart-btn.is-loading .ns-product-card__cart-spinner {
  display: inline-block;
}

.ns-product-card__cart-btn.is-loading i,
.ns-product-card__cart-btn.is-loading .ns-product-card__cart-label,
.ns-ajax-cart-btn.is-loading i,
.ns-ajax-cart-btn.is-loading .ns-product-card__cart-label {
  display: none;
}

.ns-ajax-cart-btn {
  position: relative;
}

.ns-ajax-cart-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
  cursor: wait;
}

@keyframes nsCartSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .ns-product-card__image {
    height: 170px;
  }

  .ns-product-card__cart-btn span {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .ns-product-card__tools {
    flex-direction: row;
  }
}
