/* ============================================
   RL MARKET 2.0 - PÁGINA DE PRODUTO
   ============================================ */

.rl-prod-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ===== BREADCRUMB ===== */
.rl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #64748B;
}

.rl-breadcrumb a {
  color: #1E40AF;
  text-decoration: none;
  font-weight: 600;
}

.rl-breadcrumb a:hover { text-decoration: underline; }

.rl-breadcrumb i { font-size: 0.625rem; color: #CBD5E1; }

.rl-bc-current {
  color: #0F172A;
  font-weight: 600;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== GRID PRINCIPAL ===== */
.rl-prod-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #E2E8F0;
}

/* ===== GALERIA ===== */
.rl-prod-gallery { position: relative; }

.rl-platform-badge-big {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 800;
  border-radius: 50px 0 50px 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .2);
}

.rl-prod-discount-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(90deg, #EF4444, #F97316);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 800;
  border-radius: 0 0 0 50px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulseBadge 2s ease-in-out infinite;
  text-transform: uppercase;
}

.rl-prod-main-img {
  width: 100%;
  aspect-ratio: 1;
  background: #F8FAFC;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-prod-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== INFO ===== */
.rl-prod-info { display: flex; flex-direction: column; gap: 1.25rem; }

.rl-prod-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
}

.rl-prod-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #64748B;
}

.rl-prod-meta .product-stars { display: inline-flex; align-items: center; gap: 2px; color: #FBBF24; }
.rl-prod-meta .product-stars strong { color: #475569; margin-left: 4px; }
.rl-prod-meta .product-stars .far { color: #CBD5E1; }

.rl-meta-sep { color: #CBD5E1; }

/* ===== PRICE BOX ===== */
.rl-prod-price-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #FEF3C7 100%);
  border: 2px solid #FBBF24;
  border-radius: 14px;
  padding: 1.5rem;
}

.rl-price-old {
  font-size: 0.875rem;
  color: #94A3B8;
}

.rl-price-old span { text-decoration: line-through; }

.rl-price-now {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #1E40AF;
  line-height: 1;
  margin: 6px 0;
}

.rl-price-install {
  font-size: 0.9375rem;
  color: #059669;
  font-weight: 700;
}

.rl-price-install i { margin-right: 4px; }

.rl-shipping-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #059669;
  color: #fff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 10px;
  text-transform: uppercase;
}

/* ===== AÇÕES ===== */
.rl-prod-actions { display: flex; flex-direction: column; gap: 10px; }

.rl-btn-buy-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, .35);
  transition: all .2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.rl-btn-buy-big::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: btnShine 3s ease-in-out infinite;
}

.rl-btn-buy-big:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 185, 129, .5); }

.rl-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.rl-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem 0.6rem;
  background: #fff;
  color: #475569;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all .2s;
}

.rl-quick-btn:hover {
  border-color: #1E40AF;
  color: #1E40AF;
  background: #EFF6FF;
}

.rl-quick-btn.active {
  border-color: #EF4444;
  color: #EF4444;
  background: #FEE2E2;
}

/* ===== TRUST POINTS ===== */
.rl-trust-points {
  list-style: none;
  padding: 1.25rem;
  background: #F8FAFC;
  border-radius: 12px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rl-trust-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #475569;
  font-weight: 600;
}

.rl-trust-points i {
  color: #059669;
  width: 16px;
  text-align: center;
}

/* ===== DESCRIÇÃO ===== */
.rl-prod-desc {
  margin-top: 2rem;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #E2E8F0;
}

.rl-prod-desc h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-prod-desc h2 i { color: #1E40AF; }

.rl-desc-content {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
}

/* ===== COMPARADOR ===== */
.rl-compare-section {
  margin-top: 2rem;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #E2E8F0;
}

.rl-compare-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-compare-section h2 i { color: #F97316; }

.rl-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.rl-compare-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}

.rl-compare-card:hover { border-color: #1E40AF; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30, 64, 175, .12); }

.rl-compare-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.rl-compare-info { flex: 1; min-width: 0; }

.rl-compare-info h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rl-compare-price { font-size: 1.125rem; font-weight: 800; color: #1E40AF; }

.rl-compare-diff {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
}

.rl-compare-diff.up   { background: #FEE2E2; color: #B91C1C; }
.rl-compare-diff.down { background: #D1FAE5; color: #065F46; }

/* ===== MODAL ALERTA ===== */
.rl-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .65);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rl-modal.open { display: flex; }

.rl-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}

.rl-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #94A3B8;
  cursor: pointer;
}

.rl-modal-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0F172A;
}

.rl-modal-content h3 i { color: #F97316; margin-right: 6px; }

.rl-modal-content p { font-size: 0.875rem; color: #64748B; margin-bottom: 1rem; }

.rl-modal-content form { display: flex; flex-direction: column; gap: 10px; }

.rl-modal-content label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #475569;
  margin-top: 6px;
}

.rl-modal-content input {
  padding: 0.75rem 1rem;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.9375rem;
  outline: none;
  transition: border .2s;
}

.rl-modal-content input:focus { border-color: #1E40AF; }

.rl-alert-feedback {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

.rl-alert-feedback.success { color: #059669; }
.rl-alert-feedback.error   { color: #DC2626; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .rl-prod-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .rl-trust-points { grid-template-columns: 1fr; }
  .rl-quick-actions { grid-template-columns: 1fr; }
}
