.pps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 25px 0;
}

.pps-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.pps-badge {
  align-self: flex-start;
  display: inline-block;
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 999px;
}

.pps-badge--green { background: #16a34a; }
.pps-badge--orange { background: #f59e0b; }
.pps-badge--blue { background: #2563eb; }
.pps-badge--purple { background: #7c3aed; }
.pps-badge--teal { background: #0f766e; }
.pps-badge--gray { background: #4b5563; }

.pps-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.pps-summary {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 12px;
  color: #4b5563;
}

.pps-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 164px;
  margin: 0 0 12px;
}

.pps-img {
  display: block;
  width: min(100%, 180px);
  height: 150px;
  object-fit: contain;
}

.pps-rating {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
}

.pps-specs { margin: 0; }
.pps-spec { margin: 7px 0; font-size: 14px; }
.pps-spec dt, .pps-spec dd { display: inline; margin: 0; }
.pps-spec dt { font-weight: 700; }
.pps-spec dt::after { content: ": "; }

.pps-footer {
  margin-top: auto;
  padding-top: 14px;
  text-align: center;
}

.pps-btn {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.pps-btn-primary { background: #ff9900; color: #fff; }
.pps-btn-secondary { display: block; margin-top: 9px; color: #0073aa; font-weight: 600; }
.pps-btn:hover, .pps-btn:focus-visible { filter: brightness(0.94); }

@media (max-width: 520px) {
  .pps-grid { gap: 14px; }
  .pps-card { padding: 16px; }
}

/* AAWP/Amazon shortcode image output inside the winner grid */
.pps-img-wrap > a,
.pps-img-wrap .amazon-product-fields,
.pps-img-wrap .aawp-product__image {
  display: block;
  max-width: 100%;
}

.pps-img-wrap img {
  display: block;
  width: min(100%, 180px);
  height: 150px;
  margin: 0 auto;
  object-fit: contain;
}