/* ══════════════════════════════════════════════════════════
   Amethez Affiliate — Smart Offer Box
   สไตล์ Minimalist Luxury ตาม Design System หลัก
   ══════════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.aff-section {
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #0f0a1e 0%, #1e0d3d 60%, #0a1829 100%);
  border-radius: 1.25rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  position: relative;
  overflow: hidden;
}
.aff-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Header ── */
.aff-header { margin-bottom: 1.5rem; }
.aff-header-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: white;
  margin-bottom: .35rem;
}
.aff-header-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ── Grid ── */
.aff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  position: relative;
}

/* ── Card ── */
.aff-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s;
}
.aff-card:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(201,168,76,.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
}

/* ── Image ── */
.aff-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  position: relative;
  flex-shrink: 0;
}
.aff-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.aff-img-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: rgba(255,255,255,.04);
}

/* ── Content area ── */
.aff-content {
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Badges ── */
.aff-top-row {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.aff-cat-badge,
.aff-platform-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 2rem;
  letter-spacing: .03em;
}

/* ── Text ── */
.aff-title {
  font-weight: 700;
  font-size: .97rem;
  color: white;
  line-height: 1.4;
  margin-bottom: .3rem;
}
.aff-subtitle {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  line-height: 1.4;
  margin-bottom: .75rem;
}
.aff-cta-text {
  font-size: .84rem;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin-bottom: .75rem;
  font-style: italic;
  border-left: 2px solid rgba(201,168,76,.5);
  padding-left: .75rem;
}
.aff-meta-row {
  display: flex;
  gap: 1rem;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin-bottom: .6rem;
}

/* ── Stars ── */
.aff-rating {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .875rem;
  font-size: .82rem;
}
.aff-stars { color: #f59e0b; letter-spacing: .05em; }
.aff-rating-num { color: white; font-weight: 700; }
.aff-reviews { color: rgba(255,255,255,.4); }

/* ── Price ── */
.aff-price-row {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: 1rem;
}
.aff-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #c9a84c;
}
.aff-price-orig {
  font-size: .85rem;
  color: rgba(255,255,255,.35);
  text-decoration: line-through;
}
.aff-save {
  background: rgba(201,168,76,.15);
  color: #c9a84c;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 1rem;
}

/* ── CTA Button ── */
.aff-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: linear-gradient(135deg, #c9a84c, #b8922e);
  color: #0f0a1e;
  padding: .75rem 1rem;
  border-radius: .6rem;
  font-family: Sarabun, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: all .2s;
  letter-spacing: .02em;
}
.aff-btn:hover {
  background: linear-gradient(135deg, #d4b04f, #c9a84c);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}

/* ── Disclaimer ── */
.aff-disclaimer {
  margin-top: 1.25rem;
  font-size: .73rem;
  color: rgba(255,255,255,.3);
  line-height: 1.5;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .aff-section { padding: 1.25rem; margin: 2rem 0; border-radius: 1rem; }
  .aff-grid { grid-template-columns: 1fr; }
  .aff-img-wrap { height: 140px; }
}
