/* ===== BlessingBliss - Conversion Psychology Optimization ===== */

/* ===== Product Rating Stars ===== */
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.product-rating .stars {
  display: flex;
  gap: 1px;
}

.product-rating .star {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.product-rating .star.empty {
  color: rgba(201, 162, 39, 0.25);
}

.product-rating .rating-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-rating .rating-text strong {
  color: var(--gold);
}

/* ===== Sold Count Badge ===== */
.sold-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--brass);
  margin-bottom: 8px;
}

.sold-count svg {
  width: 12px;
  height: 12px;
}

/* ===== Stock Urgency Indicator ===== */
.stock-urgency {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  animation: urgencyPulse 2s ease-in-out infinite;
}

.stock-urgency.low {
  background: rgba(192, 57, 43, 0.15);
  border-color: rgba(192, 57, 43, 0.4);
}

.stock-urgency .stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.6);
  flex-shrink: 0;
}

.stock-urgency .stock-text {
  color: #e8a87c;
}

.stock-urgency .stock-text strong {
  color: #e74c3c;
}

@keyframes urgencyPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* ===== Viewing Now Indicator ===== */
.viewing-now {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.viewing-now .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a8a3a;
  position: relative;
  flex-shrink: 0;
}

.viewing-now .pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #5a8a3a;
  animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* ===== Enhanced CTA Button with Pulse ===== */
.btn-primary {
  position: relative;
  overflow: visible;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5);
  animation: ctaPulse 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

/* ===== Trust Badges ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  margin-top: 16px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.trust-badge svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  opacity: 0.8;
}

.trust-badge .badge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ===== Free Shipping Progress Bar ===== */
.shipping-progress {
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.shipping-progress .progress-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.shipping-progress .progress-text strong {
  color: var(--gold);
}

.shipping-progress .progress-bar {
  height: 6px;
  background: rgba(201, 162, 39, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.shipping-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.4);
}

.shipping-progress .progress-unlocked {
  color: var(--success);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== Product Card Hover Enhancement ===== */
.product-card {
  position: relative;
}

.product-card .product-info {
  position: relative;
}

/* Quick-add reveal on hover */
.product-card .quick-add-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(13, 11, 8, 0.95) 0%, transparent 100%);
  padding: 20px 12px 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.product-card:hover .quick-add-overlay {
  transform: translateY(0);
}

.product-card .quick-add-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.product-card .quick-add-btn:hover {
  transform: scale(1.03);
}

/* ===== Discount Badge ===== */
.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(192, 57, 43, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
}

/* ===== Social Proof Banner ===== */
.social-proof-banner {
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.15);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-proof-banner .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-proof-banner .stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
}

.social-proof-banner .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-proof-banner .divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 60px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: rgba(26, 23, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.testimonial-card .stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.testimonial-card .stars svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.testimonial-card .text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-card .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-dark);
  font-size: 0.85rem;
}

.testimonial-card .author-info .name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.testimonial-card .author-info .location {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.testimonial-card .verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--success);
  margin-top: 4px;
}

.testimonial-card .verified svg {
  width: 12px;
  height: 12px;
}

/* ===== Limited Time Offer Banner ===== */
.offer-banner {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.15), rgba(201, 162, 39, 0.1));
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  margin-bottom: 32px;
}

.offer-banner .offer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.offer-banner .offer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.offer-banner .countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.offer-banner .countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer-banner .countdown-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  background: rgba(13, 11, 8, 0.6);
  border-radius: 6px;
  padding: 4px 12px;
  min-width: 48px;
}

.offer-banner .countdown-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ===== Guarantee Section ===== */
.guarantee-section {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 280px;
}

.guarantee-item svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  flex-shrink: 0;
}

.guarantee-item .guarantee-text h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.guarantee-item .guarantee-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== Sticky Add to Cart Bar (Product Page) ===== */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 11, 8, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-hover);
  padding: 12px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.sticky-cart-bar.visible {
  display: flex;
}

.sticky-cart-bar .sticky-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-cart-bar .sticky-name {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.sticky-cart-bar .sticky-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.sticky-cart-bar .sticky-btn {
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-dark);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .guarantee-section {
    gap: 16px;
  }
  .trust-badges {
    gap: 12px;
  }
  .offer-banner .countdown {
    gap: 8px;
  }
  .offer-banner .countdown-num {
    font-size: 1.2rem;
    min-width: 36px;
  }
  .sticky-cart-bar {
    padding: 10px 16px;
  }
  .sticky-cart-bar .sticky-name {
    font-size: 0.8rem;
  }
}
