/* Payslashes Product Card V2.1 — fully isolated from legacy product-card rules */
article.pcv2-card,
article.pcv2-card * { box-sizing: border-box; }

article.pcv2-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dfe6ef !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .09) !important;
  color: #172033 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  isolation: isolate !important;
}
article.pcv2-card:hover { transform: translateY(-2px) !important; box-shadow: 0 12px 28px rgba(15, 23, 42, .14) !important; }

article.pcv2-card > .pcv2-media {
  position: relative !important;
  flex: 0 0 210px !important;
  display: block !important;
  width: 100% !important;
  height: 210px !important;
  min-height: 210px !important;
  max-height: 210px !important;
  margin: 0 !important;
  padding: 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-bottom: 1px solid #edf1f6 !important;
  border-radius: 18px 18px 0 0 !important;
  background: #f8fafc !important;
}
article.pcv2-card .pcv2-image-link { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 100% !important; overflow: hidden !important; }
article.pcv2-card .pcv2-main-img,
article.pcv2-card .pcv2-hover-img { display: block !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; margin: 0 !important; padding: 0 !important; object-fit: contain !important; object-position: center !important; }
article.pcv2-card .pcv2-hover-img { position: absolute !important; inset: 14px !important; width: calc(100% - 28px) !important; height: calc(100% - 28px) !important; opacity: 0 !important; transition: opacity .2s ease !important; }
article.pcv2-card:hover .pcv2-hover-img { opacity: 1 !important; }
article.pcv2-card .pcv2-placeholder { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; height: 100% !important; color: #94a3b8 !important; }

article.pcv2-card .pcv2-badges { position: absolute !important; z-index: 4 !important; top: 10px !important; left: 10px !important; right: 52px !important; display: flex !important; flex-wrap: wrap !important; gap: 4px !important; }
article.pcv2-card .pcv2-badge { display: inline-flex !important; align-items: center !important; min-height: 22px !important; padding: 3px 7px !important; border-radius: 999px !important; background: #0f766e !important; color: #fff !important; font-size: 10px !important; font-weight: 800 !important; line-height: 1 !important; }
article.pcv2-card .pcv2-wishlist,
article.pcv2-card .pcv2-preview { position: absolute !important; z-index: 5 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 38px !important; height: 38px !important; padding: 0 !important; border: 1px solid #e2e8f0 !important; border-radius: 50% !important; background: rgba(255,255,255,.96) !important; color: #334155 !important; }
article.pcv2-card .pcv2-wishlist { top: 10px !important; right: 10px !important; }
article.pcv2-card .pcv2-preview { right: 10px !important; bottom: 10px !important; cursor: pointer !important; }
article.pcv2-card .pcv2-wishlist.active { color: #dc2626 !important; background: #fff1f2 !important; }

article.pcv2-card > .pcv2-body {
  position: static !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 310px !important;
  min-height: 310px !important;
  max-height: 310px !important;
  margin: 0 !important;
  padding: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
}
article.pcv2-card .pcv2-content {
  position: static !important;
  flex: 0 0 132px !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 132px !important;
  min-height: 132px !important;
  max-height: 132px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 4px !important;
  overflow: hidden !important;
}
article.pcv2-card .pcv2-meta { flex: 0 0 25px !important; display: flex !important; align-items: center !important; gap: 6px !important; min-width: 0 !important; }
article.pcv2-card .pcv2-category,
article.pcv2-card .pcv2-brand { display: inline-flex !important; align-items: center !important; min-width: 0 !important; height: 25px !important; padding: 0 8px !important; border-radius: 999px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; font-size: 10px !important; font-weight: 800 !important; line-height: 25px !important; text-transform: uppercase !important; }
article.pcv2-card .pcv2-category { flex: 1 1 auto !important; background: #eef4ff !important; color: #24436f !important; }
article.pcv2-card .pcv2-category span { overflow: hidden !important; text-overflow: ellipsis !important; }
article.pcv2-card .pcv2-brand { flex: 0 1 34% !important; justify-content: center !important; background: #eef2f7 !important; color: #334155 !important; }
article.pcv2-card h3.pcv2-title { position: static !important; flex: 0 0 42px !important; display: block !important; width: 100% !important; height: 42px !important; min-height: 42px !important; max-height: 42px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; color: #172033 !important; font-size: 14px !important; font-weight: 800 !important; line-height: 1.45 !important; }
article.pcv2-card h3.pcv2-title a { display: -webkit-box !important; width: 100% !important; color: inherit !important; text-decoration: none !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
article.pcv2-card .pcv2-spec { flex: 0 0 22px !important; display: block !important; width: 100% !important; height: 22px !important; margin: 0 !important; overflow: hidden !important; white-space: nowrap !important; text-overflow: ellipsis !important; color: #64748b !important; font-size: 11.5px !important; line-height: 22px !important; }
article.pcv2-card .pcv2-price { flex: 0 0 35px !important; display: flex !important; align-items: center !important; gap: 8px !important; width: 100% !important; height: 35px !important; margin: 0 !important; overflow: hidden !important; }
article.pcv2-card .pcv2-current-price { color: #f97316 !important; font-size: 19px !important; font-weight: 900 !important; line-height: 1 !important; }
article.pcv2-card .pcv2-original-price { color: #94a3b8 !important; font-size: 11px !important; text-decoration: line-through !important; }

article.pcv2-card .pcv2-commerce {
  position: static !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 0 0 !important;
  gap: 4px !important;
  overflow: hidden !important;
}
article.pcv2-card .pcv2-promo { flex: 0 0 20px !important; display: flex !important; align-items: center !important; min-height: 20px !important; color: #b45309 !important; font-size: 10px !important; font-weight: 800 !important; }
article.pcv2-card .pcv2-promo.is-empty { visibility: hidden !important; }
article.pcv2-card .pcv2-delivery { flex: 0 0 28px !important; display: inline-flex !important; align-items: center !important; align-self: flex-start !important; gap: 6px !important; max-width: 100% !important; height: 28px !important; padding: 0 9px !important; border-radius: 999px !important; font-size: 11px !important; font-weight: 800 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
article.pcv2-card .pcv2-delivery.is-free { border: 1px solid #b8dfcc !important; background: #eaf8f1 !important; color: #05603f !important; }
article.pcv2-card .pcv2-delivery.is-paid { border: 1px solid #f0d6a5 !important; background: #fff7e8 !important; color: #8a4b08 !important; }
article.pcv2-card .pcv2-activity { flex: 0 0 22px !important; display: flex !important; align-items: center !important; gap: 6px !important; min-height: 22px !important; color: #3157a4 !important; font-size: 10.5px !important; font-weight: 700 !important; }
article.pcv2-card .pcv2-activity.is-empty { visibility: hidden !important; }
article.pcv2-card .pcv2-stock-row { flex: 0 0 25px !important; display: flex !important; align-items: center !important; gap: 6px !important; min-height: 25px !important; overflow: hidden !important; }
article.pcv2-card .pcv2-stock,
article.pcv2-card .pcv2-shipping { display: inline-flex !important; align-items: center !important; min-height: 23px !important; padding: 3px 8px !important; border-radius: 999px !important; font-size: 10.5px !important; font-weight: 800 !important; white-space: nowrap !important; }
article.pcv2-card .pcv2-stock { background: #eaf8f1 !important; color: #05603f !important; }
article.pcv2-card .pcv2-stock.is-out { background: #fff0f0 !important; color: #a51d1d !important; }
article.pcv2-card .pcv2-shipping { background: #edf7ff !important; color: #17638d !important; }
article.pcv2-card .pcv2-actions { flex: 0 0 70px !important; display: grid !important; grid-template-columns: 1fr 1fr !important; grid-template-rows: 32px 34px !important; gap: 4px 6px !important; width: 100% !important; min-height: 70px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
article.pcv2-card .pcv2-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; min-width: 0 !important; height: 32px !important; margin: 0 !important; padding: 0 8px !important; border: 1px solid #cbd5e1 !important; border-radius: 9px !important; text-decoration: none !important; font-size: 11px !important; font-weight: 800 !important; line-height: 1 !important; }
article.pcv2-card .pcv2-view { background: #fff !important; color: #334155 !important; }
article.pcv2-card .pcv2-cart { background: #eef4ff !important; color: #24436f !important; }
article.pcv2-card .pcv2-buy { grid-column: 1 / -1 !important; height: 34px !important; border-color: #f97316 !important; background: #f97316 !important; color: #fff !important; }
article.pcv2-card .pcv2-btn.is-disabled { opacity: .55 !important; cursor: not-allowed !important; }

@media (max-width: 767px) {
  article.pcv2-card { height: 454px !important; min-height: 454px !important; max-height: 454px !important; border-radius: 14px !important; }
  article.pcv2-card > .pcv2-media { flex-basis: 158px !important; height: 158px !important; min-height: 158px !important; max-height: 158px !important; padding: 9px !important; }
  article.pcv2-card > .pcv2-body { height: 296px !important; min-height: 296px !important; max-height: 296px !important; padding: 9px !important; }
  article.pcv2-card .pcv2-content { flex-basis: 124px !important; height: 124px !important; min-height: 124px !important; max-height: 124px !important; }
  article.pcv2-card h3.pcv2-title { font-size: 12.5px !important; }
  article.pcv2-card .pcv2-current-price { font-size: 16px !important; }
  article.pcv2-card .pcv2-category, article.pcv2-card .pcv2-brand { font-size: 8.5px !important; padding: 0 6px !important; }
  article.pcv2-card .pcv2-actions { grid-template-rows: 30px 32px !important; min-height: 66px !important; }
  article.pcv2-card .pcv2-btn { height: 30px !important; font-size: 10px !important; }
  article.pcv2-card .pcv2-buy { height: 32px !important; }
}

/* Payslashes Product Card V2.2 — final visible-footer and premium-density polish */
article.pcv2-card {
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
  border-color: #dbe4ef !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .10) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
article.pcv2-card:hover {
  transform: translateY(-4px) !important;
  border-color: #c9d7e8 !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .16) !important;
}

article.pcv2-card > .pcv2-media {
  flex: 0 0 190px !important;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  padding: 12px !important;
}

article.pcv2-card > .pcv2-body {
  flex: 0 0 330px !important;
  height: 330px !important;
  min-height: 330px !important;
  max-height: 330px !important;
  padding: 12px !important;
}

article.pcv2-card .pcv2-content {
  flex: 0 0 124px !important;
  height: 124px !important;
  min-height: 124px !important;
  max-height: 124px !important;
  gap: 3px !important;
}
article.pcv2-card .pcv2-meta { flex-basis: 24px !important; min-height: 24px !important; }
article.pcv2-card .pcv2-category,
article.pcv2-card .pcv2-brand {
  height: 24px !important;
  min-height: 24px !important;
  line-height: 24px !important;
  padding-inline: 9px !important;
}
article.pcv2-card .pcv2-category { flex: 1 1 70% !important; }
article.pcv2-card .pcv2-brand { flex: 0 1 30% !important; }
article.pcv2-card h3.pcv2-title {
  flex-basis: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 1.38 !important;
}
article.pcv2-card .pcv2-spec {
  flex-basis: 20px !important;
  height: 20px !important;
  line-height: 20px !important;
}
article.pcv2-card .pcv2-price {
  flex-basis: 31px !important;
  height: 31px !important;
}

article.pcv2-card .pcv2-commerce {
  flex: 0 0 182px !important;
  height: 182px !important;
  min-height: 182px !important;
  max-height: 182px !important;
  padding-top: 2px !important;
  gap: 3px !important;
  overflow: visible !important;
}
article.pcv2-card .pcv2-promo {
  flex-basis: 18px !important;
  min-height: 18px !important;
  height: 18px !important;
}
article.pcv2-card .pcv2-promo.is-empty,
article.pcv2-card .pcv2-activity.is-empty {
  display: none !important;
}
article.pcv2-card .pcv2-delivery {
  flex-basis: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding-inline: 10px !important;
}
article.pcv2-card .pcv2-activity {
  flex-basis: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
}
article.pcv2-card .pcv2-stock-row {
  flex-basis: 23px !important;
  height: 23px !important;
  min-height: 23px !important;
}
article.pcv2-card .pcv2-stock,
article.pcv2-card .pcv2-shipping {
  min-height: 22px !important;
  padding: 2px 8px !important;
}
article.pcv2-card .pcv2-actions {
  flex: 0 0 68px !important;
  height: 68px !important;
  min-height: 68px !important;
  grid-template-rows: 31px 33px !important;
  gap: 4px 7px !important;
  margin-top: auto !important;
  overflow: visible !important;
}
article.pcv2-card .pcv2-btn {
  height: 31px !important;
  border-radius: 11px !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}
article.pcv2-card .pcv2-btn:hover:not(.is-disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 12px rgba(15, 23, 42, .12) !important;
}
article.pcv2-card .pcv2-cart {
  border-color: #bfd0eb !important;
  background: #eaf2ff !important;
  color: #173f78 !important;
}
article.pcv2-card .pcv2-buy {
  display: inline-flex !important;
  height: 33px !important;
  min-height: 33px !important;
  border: 1px solid #ea580c !important;
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
  box-shadow: 0 5px 12px rgba(234, 88, 12, .20) !important;
  visibility: visible !important;
  opacity: 1 !important;
}
article.pcv2-card .pcv2-buy:hover:not(.is-disabled) {
  background: linear-gradient(135deg, #ea580c, #c2410c) !important;
  box-shadow: 0 7px 16px rgba(234, 88, 12, .28) !important;
}

@media (max-width: 767px) {
  article.pcv2-card {
    height: 448px !important;
    min-height: 448px !important;
    max-height: 448px !important;
  }
  article.pcv2-card > .pcv2-media {
    flex-basis: 150px !important;
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }
  article.pcv2-card > .pcv2-body {
    flex-basis: 298px !important;
    height: 298px !important;
    min-height: 298px !important;
    max-height: 298px !important;
    padding: 9px !important;
  }
  article.pcv2-card .pcv2-content {
    flex-basis: 116px !important;
    height: 116px !important;
    min-height: 116px !important;
    max-height: 116px !important;
  }
  article.pcv2-card .pcv2-commerce {
    flex-basis: 164px !important;
    height: 164px !important;
    min-height: 164px !important;
    max-height: 164px !important;
  }
  article.pcv2-card .pcv2-actions {
    flex-basis: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    grid-template-rows: 29px 31px !important;
  }
  article.pcv2-card .pcv2-btn { height: 29px !important; }
  article.pcv2-card .pcv2-buy { height: 31px !important; min-height: 31px !important; }
}

/* Payslashes Product Card V2.3 — final alignment, readable specs, and unclipped footer */
article.pcv2-card {
  height: 536px !important;
  min-height: 536px !important;
  max-height: 536px !important;
}

article.pcv2-card > .pcv2-media {
  flex: 0 0 180px !important;
  height: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
  padding: 11px !important;
}

article.pcv2-card > .pcv2-body {
  flex: 0 0 356px !important;
  height: 356px !important;
  min-height: 356px !important;
  max-height: 356px !important;
  padding: 12px !important;
  overflow: hidden !important;
}

article.pcv2-card .pcv2-content {
  flex: 0 0 148px !important;
  height: 148px !important;
  min-height: 148px !important;
  max-height: 148px !important;
  gap: 4px !important;
}

article.pcv2-card .pcv2-meta {
  flex: 0 0 24px !important;
  height: 24px !important;
  min-height: 24px !important;
}

article.pcv2-card h3.pcv2-title {
  flex: 0 0 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
}

article.pcv2-card .pcv2-spec {
  flex: 0 0 34px !important;
  display: -webkit-box !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  white-space: normal !important;
  line-height: 17px !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

article.pcv2-card .pcv2-price {
  flex: 0 0 36px !important;
  height: 36px !important;
  min-height: 36px !important;
}

article.pcv2-card .pcv2-commerce {
  flex: 0 0 184px !important;
  height: 184px !important;
  min-height: 184px !important;
  max-height: 184px !important;
  padding-top: 2px !important;
  gap: 3px !important;
  overflow: hidden !important;
}

/* Keep optional activity space reserved so every footer aligns. */
article.pcv2-card .pcv2-activity.is-empty {
  display: flex !important;
  visibility: hidden !important;
}

/* Discounts may collapse without affecting the footer baseline. */
article.pcv2-card .pcv2-promo.is-empty {
  display: none !important;
}

article.pcv2-card .pcv2-actions {
  flex: 0 0 72px !important;
  height: 72px !important;
  min-height: 72px !important;
  grid-template-rows: 32px 36px !important;
  gap: 4px 7px !important;
  margin-top: auto !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}

article.pcv2-card .pcv2-btn {
  height: 32px !important;
  border-radius: 12px !important;
}

article.pcv2-card .pcv2-buy {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 12px !important;
}

@media (max-width: 767px) {
  article.pcv2-card {
    height: 466px !important;
    min-height: 466px !important;
    max-height: 466px !important;
  }

  article.pcv2-card > .pcv2-media {
    flex-basis: 146px !important;
    height: 146px !important;
    min-height: 146px !important;
    max-height: 146px !important;
    padding: 8px !important;
  }

  article.pcv2-card > .pcv2-body {
    flex-basis: 320px !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    padding: 9px !important;
  }

  article.pcv2-card .pcv2-content {
    flex-basis: 136px !important;
    height: 136px !important;
    min-height: 136px !important;
    max-height: 136px !important;
  }

  article.pcv2-card .pcv2-spec {
    flex-basis: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    line-height: 15px !important;
  }

  article.pcv2-card .pcv2-commerce {
    flex-basis: 166px !important;
    height: 166px !important;
    min-height: 166px !important;
    max-height: 166px !important;
  }

  article.pcv2-card .pcv2-actions {
    flex-basis: 66px !important;
    height: 66px !important;
    min-height: 66px !important;
    grid-template-rows: 29px 33px !important;
  }

  article.pcv2-card .pcv2-btn { height: 29px !important; }
  article.pcv2-card .pcv2-buy { height: 33px !important; min-height: 33px !important; }
}
