/* SIN MUDAH V2.9.14 — public product/reward UI refinement */

/* 1. Consistent public product/reward photo presentation */
.product-card .product-image-wrap {
  height: auto !important;
  aspect-ratio: 1 / 1;
  background: #f5f7f6;
}
.product-card .product-image-wrap img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reward-dual-thumb {
  height: auto !important;
  aspect-ratio: 2 / 1.35;
}
.reward-thumb-side img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  padding: 0 !important;
  background: #f4f5f4 !important;
}
.reward-visual-image-wrap {
  height: auto !important;
  aspect-ratio: 4 / 3;
  background: #f4f5f4;
}
.reward-visual-image,
.product-image-stage .reward-visual-image,
.reward-image-stage .reward-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  padding: 0 !important;
  background: #f4f5f4 !important;
}
.pd-slider-container {
  aspect-ratio: 1 / 1;
}
.pd-main-image {
  object-fit: cover !important;
}

/* 2. Product descriptions stay compact and scroll internally */
.pd-description-copy,
.reward-product-scroll {
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  border: 1px solid #e3ebe6;
  border-radius: 12px;
  background: #fbfdfc;
  scrollbar-width: thin;
  scrollbar-color: #8ba99a #eef4f1;
}
.pd-description-copy::-webkit-scrollbar,
.reward-product-scroll::-webkit-scrollbar { width: 8px; }
.pd-description-copy::-webkit-scrollbar-track,
.reward-product-scroll::-webkit-scrollbar-track { background: #eef4f1; border-radius: 999px; }
.pd-description-copy::-webkit-scrollbar-thumb,
.reward-product-scroll::-webkit-scrollbar-thumb { background: #8ba99a; border-radius: 999px; }

/* 3. Customer-service photo/icon in seller/admin contact actions */
.customer-service-action {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.14);
}
.customer-service-action img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wa-admin-float {
  overflow: hidden;
  padding: 0 !important;
}
.wa-admin-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* 4. Reward purchase CTA belongs under the product being purchased */
.reward-buy-under-product {
  padding: 0 16px 16px;
}
.reward-buy-under-product .reward-buy {
  width: 100%;
  min-height: 52px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg,#5d1f78,#8f3eb2) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .35px;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
  box-shadow: 0 10px 24px rgba(93,31,120,.28);
}
.reward-buy-under-product .reward-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

@media (max-width: 720px) {
  .reward-dual-thumb { aspect-ratio: 2 / 1.6; }
  .reward-visual-image-wrap { aspect-ratio: 1 / 1; }
  .pd-description-copy,
  .reward-product-scroll { max-height: 220px; }
}
