/* ============================================================
   Affiliate Pro — Frontend Styles
   Product Card + Checkout Bridge Page
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600&display=swap');

:root {
  --afp-card-bg:       #ffffff;
  --afp-card-border:   #e8eaed;
  --afp-card-shadow:   0 4px 24px rgba(0,0,0,0.08);
  --afp-accent:        #e67e00;
  --afp-accent-dark:   #c96b00;
  --afp-success:       #16a34a;
  --afp-danger:        #dc2626;
  --afp-text:          #111827;
  --afp-muted:         #6b7280;
  --afp-light:         #f9fafb;
  --afp-font:          'Sora', sans-serif;
  --afp-serif:         'Playfair Display', serif;
  --afp-radius:        14px;
}

/* ── Product Card ─────────────────────────────────────────── */
.afp-product-card {
  font-family: var(--afp-font);
  background: var(--afp-card-bg);
  border: 1px solid var(--afp-card-border);
  border-radius: var(--afp-radius);
  box-shadow: var(--afp-card-shadow);
  margin: 36px 0;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.25s;
}
.afp-product-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.13); }

.afp-card-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
}

/* Left: media */
.afp-card-media {
  background: var(--afp-light);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--afp-card-border);
}

.afp-img-wrap { position: relative; width: 100%; }
.afp-product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.afp-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.afp-price-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, var(--afp-accent), var(--afp-accent-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  box-shadow: 0 3px 10px rgba(230,126,0,0.4);
}

/* Right: body */
.afp-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}

.afp-product-name {
  font-family: var(--afp-serif);
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--afp-text);
  margin: 0 0 10px;
  line-height: 1.3;
}
.afp-short-review {
  font-size: 14px;
  color: var(--afp-muted);
  font-style: italic;
  margin: 0 0 14px;
  line-height: 1.5;
}
.afp-description {
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Pros / Cons */
.afp-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.afp-pros, .afp-cons { background: var(--afp-light); border-radius: 10px; padding: 14px; }
.afp-pros { border-left: 3px solid var(--afp-success); }
.afp-cons { border-left: 3px solid var(--afp-danger); }

.afp-pc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.afp-pros-label { color: var(--afp-success); }
.afp-cons-label { color: var(--afp-danger); }

.afp-pros ul, .afp-cons ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.afp-pros ul li, .afp-cons ul li {
  font-size: 13px;
  color: #374151;
  display: flex;
  gap: 8px;
  line-height: 1.4;
}
.afp-pro-icon { color: var(--afp-success); font-weight: 700; flex-shrink: 0; }
.afp-con-icon { color: var(--afp-danger);  font-weight: 700; flex-shrink: 0; }

/* Card footer */
.afp-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--afp-card-border);
}
.afp-price-inline { font-size: 20px; font-weight: 700; color: var(--afp-accent); }

/* Buy Button */
.afp-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--afp-accent), var(--afp-accent-dark));
  color: #fff !important;
  font-family: var(--afp-font);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(230,126,0,0.35);
  width: 100%;
  justify-content: center;
}
.afp-buy-btn:hover {
  box-shadow: 0 6px 20px rgba(230,126,0,0.5);
  transform: translateY(-1px);
}
.afp-buy-btn-inline { width: auto; font-size: 13px; padding: 10px 18px; }

/* Auto-link inside posts */
.afp-auto-link {
  color: var(--afp-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(230,126,0,0.4);
}
.afp-auto-link:hover { color: var(--afp-accent-dark); }

/* ── Checkout Bridge Page ─────────────────────────────────── */
.afp-checkout-wrap {
  font-family: var(--afp-font);
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.afp-checkout-breadcrumb {
  font-size: 13px;
  color: var(--afp-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.afp-checkout-breadcrumb a { color: var(--afp-accent); text-decoration: none; }
.afp-checkout-breadcrumb a:hover { text-decoration: underline; }

.afp-checkout-card {
  background: var(--afp-card-bg);
  border: 1px solid var(--afp-card-border);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  overflow: hidden;
}

.afp-co-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
  background: linear-gradient(160deg, #f9fafb, #f3f4f6);
  border-bottom: 1px solid var(--afp-card-border);
}
.afp-co-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  object-fit: contain;
}
.afp-co-img-placeholder {
  width: 200px; height: 200px;
  background: #e5e7eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.afp-co-price {
  text-align: center;
}
.afp-co-price-label { font-size: 12px; color: var(--afp-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; display: block; margin-bottom: 4px; }
.afp-co-price-val   { font-size: 32px; font-weight: 700; color: var(--afp-accent); }

.afp-co-content { padding: 40px; }

.afp-co-name {
  font-family: var(--afp-serif);
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--afp-text);
  margin: 0 0 16px;
  line-height: 1.25;
}

.afp-co-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 14px;
  font-style: italic;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.afp-co-review-badge svg { color: #f59e0b; flex-shrink: 0; }

.afp-co-section { margin-bottom: 30px; }
.afp-co-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--afp-muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--afp-card-border);
}

.afp-co-description { font-size: 15px; line-height: 1.75; color: #374151; }

.afp-co-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.afp-co-pros, .afp-co-cons {
  background: var(--afp-light);
  border-radius: 10px;
  padding: 16px 18px;
}
.afp-co-pros { border-left: 3px solid var(--afp-success); }
.afp-co-cons { border-left: 3px solid var(--afp-danger); }
.afp-co-pros ul, .afp-co-cons ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.afp-co-pros ul li, .afp-co-cons ul li {
  font-size: 14px; color: #374151;
  display: flex; gap: 8px; line-height: 1.4;
}

/* CTA Section */
.afp-co-cta-section {
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 2px solid rgba(230,126,0,0.2);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}
.afp-co-cta-tagline {
  font-family: var(--afp-serif);
  font-size: 22px;
  color: var(--afp-text);
  margin-bottom: 8px;
}
.afp-co-cta-price { font-size: 28px; font-weight: 700; color: var(--afp-accent); margin-bottom: 24px; }

.afp-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--afp-accent), var(--afp-accent-dark));
  color: #fff;
  font-family: var(--afp-font);
  font-size: 17px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(230,126,0,0.4);
  transition: all 0.25s;
  margin-bottom: 16px;
}
.afp-continue-btn:hover {
  box-shadow: 0 10px 32px rgba(230,126,0,0.55);
  transform: translateY(-2px);
}
.afp-continue-btn:active { transform: scale(0.98); }
.afp-continue-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.afp-co-disclaimer {
  font-size: 12px;
  color: var(--afp-muted);
  margin: 0;
}

.afp-checkout-error { color: var(--afp-danger); font-style: italic; padding: 20px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 700px) {
  .afp-card-inner { grid-template-columns: 1fr; }
  .afp-card-media { border-right: none; border-bottom: 1px solid var(--afp-card-border); }
  .afp-pros-cons, .afp-co-pros-cons { grid-template-columns: 1fr; }
  .afp-co-content { padding: 24px; }
  .afp-co-media   { padding: 24px; }
  .afp-continue-btn { font-size: 15px; padding: 15px 28px; }
}
