/* ── Enhanced Affiliate Cards ── */
.affiliate-section { margin-top: 32px; }
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.affiliate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.affiliate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #93c5fd;
}
.affiliate-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #fbbf24;
  color: #1e293b;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.affiliate-pic {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 10px;
}
.affiliate-img-fallback {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
}
.affiliate-card h4 {
  font-size: 0.9rem;
  margin: 0 0 4px 0;
  font-weight: 600;
  color: #1e293b;
}
.affiliate-stars {
  font-size: 0.8rem;
  color: #f59e0b;
  margin-bottom: 6px;
}
.affiliate-stars .rev-count {
  color: #94a3b8;
  font-size: 0.7rem;
}
.affiliate-features {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  font-size: 0.75rem;
  color: #64748b;
  flex: 1;
}
.affiliate-features li::before { content: "✓ "; color: #22c55e; font-weight: 700; }
.affiliate-features li { margin-bottom: 2px; }
.affiliate-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.affiliate-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2563eb;
}
.cta-btn {
  background: #f59e0b;
  color: #1e293b;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.affiliate-card:hover .cta-btn {
  background: #d97706;
}

@media (prefers-color-scheme: dark) {
  .affiliate-card {
    background: #1e293b;
    border-color: #334155;
  }
  .affiliate-card:hover { border-color: #38bdf8; box-shadow: 0 8px 25px rgba(56,189,248,0.15); }
  .affiliate-card h4 { color: #e2e8f0; }
  .affiliate-pic, .affiliate-img-fallback { background: #0f172a; }
  .affiliate-features { color: #94a3b8; }
  .affiliate-bottom { border-color: #334155; }
  .affiliate-card .price { color: #38bdf8; }
}
