/* =====================================================
   Pehlwan Rewari — Components Stylesheet
   ===================================================== */

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
.quick-view-modal {
  border: none;
  border-radius: var(--radius-xl, 32px);
  overflow: hidden;
  background: var(--pr-warm-white, #FFFBF5);
}
.btn-close-modal {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #666;
  font-size: 1rem;
  transition: all 0.2s;
}
.btn-close-modal:hover { background: rgba(0,0,0,0.2); color: #333; }

/* ============================================================
   IMAGE ZOOM OVERLAY
   ============================================================ */
.img-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.img-zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.img-zoom-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.img-zoom-close:hover { background: rgba(255,255,255,0.25); }

/* ============================================================
   SHIPPING CALCULATOR
   ============================================================ */
.shipping-calc {
  background: var(--pr-cream, #F2E8D5);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--pr-border, #E8D9C0);
}
.shipping-calc-title {
  font-weight: 700;
  color: var(--pr-green, #1A4A1A);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   STARS
   ============================================================ */
.stars { display: inline-flex; gap: 2px; }
.stars i { font-size: 0.8rem; }
.stars .fa-star, .stars .fa-star-half-alt { color: var(--pr-gold, #C9A227); }
.stars .fa-star.far { color: #ddd; }

/* ============================================================
   PRODUCT SKELETON LOADER
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8d9c0;
}
.skeleton-img { aspect-ratio: 1/1; width: 100%; }
.skeleton-body { padding: 1.25rem; }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-btn { height: 40px; border-radius: 50px; margin-top: 1rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-link {
  border: 2px solid var(--pr-border, #E8D9C0);
  border-radius: 50px !important;
  color: var(--pr-green, #1A4A1A);
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  transition: all 0.2s;
  background: #fff;
}
.pagination .page-link:hover {
  background: var(--pr-orange, #E8640A);
  color: #fff;
  border-color: var(--pr-orange, #E8640A);
}
.pagination .page-item.active .page-link {
  background: var(--pr-green, #1A4A1A);
  border-color: var(--pr-green, #1A4A1A);
  color: #fff;
}
.pagination .page-item.disabled .page-link { opacity: 0.5; }

/* ============================================================
   WISHLIST HEART ANIMATION
   ============================================================ */
.wishlist-btn.liked i { color: #e74c3c !important; animation: heartBeat 0.4s ease; }
@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ============================================================
   ADD TO CART ANIMATION
   ============================================================ */
@keyframes cartBounce {
  0% { transform: scale(1); }
  30% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.cart-count.bounce { animation: cartBounce 0.4s ease; }

/* ============================================================
   RELATED PRODUCTS CAROUSEL
   ============================================================ */
.related-products-wrapper { overflow: hidden; }

/* ============================================================
   PROGRESS BAR (order steps)
   ============================================================ */
.order-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 2rem 0;
}
.order-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 2px;
  background: var(--pr-border, #E8D9C0);
  transform: translateY(-50%);
  z-index: 0;
}
.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}
.order-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pr-border, #E8D9C0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #999;
  border: 3px solid #fff;
}
.order-step.active .order-step-dot { background: var(--pr-orange, #E8640A); color: #fff; }
.order-step.done .order-step-dot   { background: #28a745; color: #fff; }
.order-step-label { font-size: 0.7rem; color: var(--pr-text-light, #7A6550); font-weight: 600; white-space: nowrap; }

/* ============================================================
   REVIEW FORM
   ============================================================ */
.review-stars-select { display: flex; gap: 0.4rem; }
.review-stars-select i {
  font-size: 1.5rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}
.review-stars-select i.active, .review-stars-select i:hover { color: var(--pr-gold, #C9A227); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  width: 50px; height: 50px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 500;
  transition: all 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,0.5); }

/* ============================================================
   PARALLAX
   ============================================================ */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ============================================================
   MICRO INTERACTIONS
   ============================================================ */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(200,130,40,0.2); }

.hover-scale { transition: transform 0.3s ease; }
.hover-scale:hover { transform: scale(1.02); }

/* ============================================================
   PRINT STYLES (Invoice)
   ============================================================ */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
  .site-footer, .navbar-main, .topbar, .back-to-top, .whatsapp-float { display: none; }
}
