/* === DealMania-style cards (uniform height, full image visible) === */

/* Grid: fixed-width cards lined left */
.pt-offers-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill, 259px) !important; /* card width */
  gap:18px !important;
  justify-content:flex-start !important;
  align-items:start !important;
}

/* Card shell */
.pt-offer-card{
  width:259px !important;                 /* fixed card width */
  height:408px !important;                /* fixed total card height */
  background:#fff !important;
  border:1px solid #eee !important;
  border-radius:20px !important;
  box-shadow:0 4px 4px rgba(0,0,0,.25) !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  position:relative !important;
  color:#212529 !important;
  font:400 16px/24px system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif !important;
}

/* Discount ribbon */
.pt-badge{
  position:absolute !important;
  top:10px; left:10px;
  background:#1d9bf0 !important;
  color:#fff !important;
  font-weight:700 !important;
  font-size:13px !important;
  padding:6px 12px !important;
  border-bottom-right-radius:14px !important;
  border-top-left-radius:8px !important;
  z-index:2 !important;
}

/* IMAGE: fixed-height box; image fully visible (no crop) */
.pt-image{
  position:relative !important;
  height:185px !important;                /* uniform image area */
  overflow:hidden !important;
  background:#ffff !important;          /* subtle letterbox */
  border-top-left-radius:20px !important;
  border-top-right-radius:20px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Full image visible, scaled down; no crop */
.pt-image img{
  position:relative !important;
  max-width:100% !important;
  max-height:100% !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;          /* << key: show whole image */
  object-position:center center !important;
  display:block !important;
  margin:0 !important;
  border-radius:0 !important;
}

/* Body */
.pt-body{
  padding:12px 16px !important;
  display:flex !important;
  flex-direction:column !important;
  flex:1 !important;
}

/* Store row */
.pt-store{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin-bottom:6px !important;
  color:#666 !important;
  font-size:13px !important;
}
.pt-store-logo{
  height:20px !important;
  width:auto !important;
  border-radius:4px !important;
}

/* Title (2 lines, normal weight) */
.pt-title{
  font-size:15px !important;
  font-weight:400 !important;
  color:#212529 !important;
  line-height:1.4 !important;
  margin:0 0 6px !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}

/* Price row */
.pt-price{
  display:flex !important;
  gap:10px !important;
  align-items:baseline !important;
  margin:0 0 10px !important;
}
.pt-mrp{
  font-size:14px !important;
  color:#999 !important;
  text-decoration:line-through !important;
}
.pt-sale{
  font-size:16px !important;
  font-weight:700 !important;
  color:#111 !important;
}

/* CTA pinned to bottom */
.pt-btn{
  margin-top:auto !important;
  display:block !important;
  text-align:center !important;
  background:#22c55e !important;
  color:#fff !important;
  padding:10px 12px !important;
  border-radius:10px !important;
  text-decoration:none !important;
  font-size:15px !important;
  font-weight:600 !important;
}
.pt-btn:hover{ filter:brightness(.95) !important }

/* Meta (time) */
.pt-meta{
  font-size:12px !important;
  color:#777 !important;
  margin-top:6px !important;
}

/* Mobile: stack to full width */
@media (max-width:560px){
  .pt-offers-grid{ grid-template-columns:1fr !important }
  .pt-offer-card{ width:100% !important }
}
