/* Phase 11: coupon cards, on both the coupons index page and embedded
   inside article pages. Dashed border evokes a ticket/coupon. */

.coupon-section {
  margin: 32px auto;
  max-width: 760px;
  padding: 0 20px;
}

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.coupon-card {
  background: var(--color-white);
  border: 2px dashed var(--color-korat-orange);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.coupon-card__shop-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.coupon-card__shop {
  font-size: 12.5px;
  color: var(--color-korat-orange);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.coupon-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.coupon-card__desc {
  font-size: 13.5px;
  color: var(--color-charcoal-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}

.coupon-card__price {
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 6px;
  font-size: 14.5px;
}

.coupon-card__remaining {
  font-size: 12.5px;
  color: var(--color-charcoal-soft);
  margin-bottom: 14px;
}

.coupon-card__remaining strong {
  color: var(--color-korat-orange-dark);
}

.coupon-card .btn {
  width: 100%;
  justify-content: center;
}

.coupon-card .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.coupon-card__shop-link {
  display: block;
  font-size: 12.5px;
  margin-top: 10px;
  color: var(--color-charcoal-soft);
}
