/* =========================================================
   COMMON PRODUCT CARD (for horizontal rows)
========================================================= */
.Common_Product_Card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.Common_Product_Card:hover {
  color: inherit;
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.Common_Product_Card:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

/* ---------- Image ---------- */
.Common_Product_Card .img_holder {
  position: relative;
  aspect-ratio: 1 / 0.92;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.Common_Product_Card .prod_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.Common_Product_Card:hover .prod_img {
  transform: scale(1.05);
}

.Common_Product_Card .img_placeholder {
  font-size: 28px;
  color: #cbd5e1;
}

.Common_Product_Card .off_badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- Text ---------- */
.Common_Product_Card .text_holder {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 2px 0;
}

.Common_Product_Card .price_row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 6px;
}

.Common_Product_Card .price {
  font-size: 17px;
  font-weight: 700;
  color: #1e40af;
}

.Common_Product_Card .mrp {
  font-size: 11.5px;
  color: #9ca3af;
  text-decoration: line-through;
}

.Common_Product_Card .title {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.Common_Product_Card .unit {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.Common_Product_Card .view_link {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f97316;
}

.Common_Product_Card .view_icon {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.Common_Product_Card:hover .view_icon {
  transform: translateX(3px);
}

@media (max-width: 575px) {
  .Common_Product_Card .price {
    font-size: 15px;
  }

  .Common_Product_Card .title {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .Common_Product_Card,
  .Common_Product_Card .prod_img,
  .Common_Product_Card .view_icon {
    transition: none;
  }

  .Common_Product_Card:hover,
  .Common_Product_Card:hover .prod_img,
  .Common_Product_Card:hover .view_icon {
    transform: none;
  }
}
