/* =========================================================
   PRODUCT CARD (grocery style)
========================================================= */
.Product_Card {
  display: flex;
  flex-direction: column;
  height: calc(100% - 1.5rem); /* mb-4 */
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: left;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}



/* ---------- Image ---------- */
.Product_Card .pc_media {
  position: relative;
  aspect-ratio: 1 / 0.5;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f3f4f6;
}

.Product_Card .pc_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .Product_Card:hover .pc_img {
    transform: scale(1.05);
  }
}

/* Offer badge (top-left of the image) */
.Product_Card .pc_offer_badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(0deg, #ef5400, #ff6e0c);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
}

/* Position for the shared BookmarkBtn (wishlist) */
.Product_Card .pc_bookmark_position {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
}

/* ---------- Details ---------- */
.Product_Card .pc_body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 2px 0;
}

.Product_Card .pc_price_row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.Product_Card .pc_price {
  font-size: 18px;
  font-weight: 700;
  color: #1e40af;
  line-height: 1.2;
}

.Product_Card .pc_mrp {
  font-size: 12px;
  color: #9ca3af;
  text-decoration: line-through;
}

.Product_Card .pc_off {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
}

.Product_Card .pc_name {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
  cursor: pointer;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.Product_Card .pc_unit {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* ---------- ADD button / stepper (AddToCartButton) ---------- */
.Product_Card .pc_add_btn {
  margin-top: auto;
}

/* gap above the button even when the card is short */
.Product_Card .pc_body > :nth-last-child(2) {
  margin-bottom: 10px;
}

@media (max-width: 575px) {
  .Product_Card .pc_price {
    font-size: 16px;
  }

  .Product_Card .pc_name {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .Product_Card,
  .Product_Card .pc_img {
    transition: none;
  }

  .Product_Card:hover,
  .Product_Card:hover .pc_img {
    transform: none;
  }
}
