/* Affiliate AI — Public Styles
   ============================= */

/* ── Product Box ─────────────────────────────────────────────────────────── */
.aai-product-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin: 24px 0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

@media (max-width: 600px) {
  .aai-product-box { flex-direction: column; }
}

.aai-product-image {
  flex: 0 0 180px;
}

.aai-product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.aai-product-info {
  flex: 1;
}

.aai-product-title {
  font-size: 1.1rem;
  margin: 0 0 10px;
  line-height: 1.4;
}

.aai-product-title a {
  text-decoration: none;
  color: inherit;
}

.aai-product-title a:hover {
  color: #e47911;
}

.aai-product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.aai-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.aai-rating-count {
  font-size: 0.85rem;
  color: #6b7280;
}

.aai-product-price {
  margin-bottom: 16px;
}

.aai-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b12704;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.aai-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #f59e0b;
  color: #111 !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .15s;
}

.aai-btn:hover {
  background: #d97706;
}

.aai-btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* ── Disclaimer ──────────────────────────────────────────────────────────── */
.aai-disclaimer {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 12px;
}

/* ── Featured Products Grid ──────────────────────────────────────────────── */
.aai-featured-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.aai-featured-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.aai-featured-item img {
  max-width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px;
}

.aai-featured-item h4 {
  font-size: 0.9rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

.aai-featured-item .aai-price {
  font-size: 1rem;
  margin-bottom: 10px;
}

/* ── Comparison Table ────────────────────────────────────────────────────── */
.aai-comparison-wrapper {
  overflow-x: auto;
  margin: 24px 0;
}

.aai-comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.aai-comparison-table th,
.aai-comparison-table td {
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  text-align: center;
  vertical-align: middle;
}

.aai-comparison-table thead th {
  background: #f9fafb;
  font-weight: 600;
}

.aai-comparison-table thead th:first-child,
.aai-comparison-table tbody td:first-child {
  text-align: left;
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.aai-comparison-table thead th img {
  max-width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.aai-comparison-table tbody tr:hover td {
  background: #fffbeb;
}

.aai-cta-row td {
  background: #fafafa;
}

/* ── Pros / Cons (used inside AI-generated review HTML) ─────────────────── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
}

.pros-cons ul {
  list-style: none;
  padding: 16px;
  border-radius: 8px;
  margin: 0;
}

.pros-cons ul:first-child {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pros-cons ul:last-child {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.pros-cons ul li::before {
  margin-right: 6px;
  font-weight: 700;
}

.pros-cons ul:first-child li::before { content: '✓ '; color: #16a34a; }
.pros-cons ul:last-child  li::before { content: '✗ '; color: #dc2626; }
