/* ==========================================================================
   FEATURED SOURCE CODES & DIGITAL PRODUCTS MARKETPLACE STYLING
   Mohd Irshad Digital Store - Ultra-Modern Luxury Cards with 3D Hover
   ========================================================================== */

.products-marketplace-section {
  padding: 4rem 0 4.5rem;
  width: 100%;
  position: relative;
}

/* Top Header & Stats Row */
.products-top-header-row {
  display: grid;
  grid-template-columns: 1.15fr 1.6fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.products-header-left {
  display: flex;
  flex-direction: column;
}

.products-work-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.tag-accent-line {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #ea580c, transparent);
}

.products-main-title {
  font-family: 'Plus Jakarta Sans', var(--font-sans), sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.18;
  letter-spacing: -0.6px;
  margin: 0 0 0.6rem 0;
}

.products-grad-text {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.products-main-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}

/* Stats Cards */
.products-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.product-stat-card, .project-stat-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.product-stat-card:hover, .project-stat-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.product-stat-card.active-stat {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
}

.p-stat-icon-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.p-stat-icon-box.orange { background: #ffedd5; color: #ea580c; }
.p-stat-icon-box.purple { background: #ede9fe; color: #7c3aed; }
.p-stat-icon-box.green  { background: #dcfce7; color: #16a34a; }
.p-stat-icon-box.pink   { background: #fce7f3; color: #db2777; }

.p-stat-numbers h3 {
  font-family: var(--font-sans), 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.1;
}

.p-stat-numbers span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.p-stat-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ea580c, #f97316);
}

/* Category Filter Bar - Luxury Glassmorphic Pill Container */
.products-filter-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.products-categories-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.4rem;
  gap: 0.4rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), inset 0 1px 2px rgba(255, 255, 255, 1);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.p-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  user-select: none;
}

.p-filter-pill i {
  font-size: 0.88rem;
  transition: transform 0.25s ease;
}

.pill-count-bubble {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  line-height: 1;
}

.p-filter-pill:hover {
  color: #ea580c;
  background: #fff7ed;
  border-color: #fed7aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
}
.p-filter-pill:hover i {
  transform: scale(1.15);
}
.p-filter-pill:hover .pill-count-bubble {
  background: #ffedd5;
  color: #ea580c;
}

.p-filter-pill.active {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
  transform: translateY(-1px);
}
.p-filter-pill.active i {
  transform: scale(1.1);
  color: #ffffff;
}
.p-filter-pill.active .pill-count-bubble {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   LUXURY PRODUCTS GRID & CARD ARCHITECTURE
   ========================================================================== */
.luxury-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 1.6rem;
}

.luxury-prod-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  position: relative;
}

.luxury-prod-card:hover {
  transform: translateY(-8px);
  border-color: #fdba74;
  box-shadow: 0 20px 45px rgba(234, 88, 12, 0.14);
}

/* Card Media Header */
.luxury-card-media {
  position: relative;
  width: 100%;
  height: 175px;
  background: #090d16;
  overflow: hidden;
}

.luxury-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.luxury-prod-card:hover .luxury-card-img {
  transform: scale(1.08);
}

.luxury-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.15) 0%, rgba(9, 13, 22, 0.75) 100%);
  pointer-events: none;
}

/* Top Tags on Image */
.luxury-media-top-tags {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  gap: 0.5rem;
}

.luxury-cat-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.24rem 0.65rem;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.luxury-cat-badge.cat-purple { background: #7c3aed; }
.luxury-cat-badge.cat-orange { background: #ea580c; }
.luxury-cat-badge.cat-pink   { background: #db2777; }
.luxury-cat-badge.cat-blue   { background: #0284c7; }

.luxury-price-tag-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.luxury-discount-pill {
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.24rem 0.55rem;
  border-radius: 8px;
  background: #ef4444;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulseDiscountBadge 2.2s infinite ease-in-out;
}
.luxury-discount-pill.free {
  background: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

@keyframes pulseDiscountBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.luxury-price-badge.paid {
  font-family: var(--font-sans), 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.24rem 0.65rem;
  border-radius: 8px;
  background: #ea580c;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.4);
}

/* Hover Quick Actions */
.luxury-media-hover-actions {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.luxury-prod-card:hover .luxury-media-hover-actions {
  opacity: 1;
  transform: translateY(0);
}

.luxury-hover-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.luxury-hover-btn.demo {
  background: #22c55e;
  color: #ffffff;
}
.luxury-hover-btn.demo:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.luxury-hover-btn.get-code {
  background: #ffffff;
  color: #0f172a;
}
.luxury-hover-btn.get-code:hover {
  background: #ea580c;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   CARD BODY & TYPOGRAPHY
   ========================================================================== */
.luxury-card-body {
  padding: 1.25rem 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Stats Strip (Rating + Downloads) */
.luxury-card-stats-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.luxury-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #f59e0b;
}

.luxury-stats-dot {
  color: #cbd5e1;
}

.luxury-sales-number {
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.luxury-source-ready-badge {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 800;
  color: #16a34a;
  background: #dcfce7;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.luxury-card-title {
  font-family: var(--font-sans), 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.45rem 0;
  line-height: 1.35;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.luxury-prod-card:hover .luxury-card-title {
  color: #ea580c;
}

.luxury-card-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.9rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tech Stack Tags */
.luxury-card-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.luxury-tech-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.luxury-prod-card:hover .luxury-tech-tag {
  background: #fff7ed;
  color: #c2410c;
  border-color: #ffedd5;
}

/* Card Footer & Price Box */
.luxury-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed #e2e8f0;
}

.luxury-footer-price-box {
  display: flex;
  flex-direction: column;
}

.price-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.price-current-amount {
  font-family: var(--font-sans), 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.price-orig-strikethrough {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.price-main-val.free {
  font-family: var(--font-sans), 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #16a34a;
  line-height: 1;
}

.price-sub-note {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 0.2rem;
}

.luxury-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.luxury-prod-card:hover .luxury-action-pill {
  transform: translateX(3px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45);
}

@keyframes productSaleFadeIn {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1200px) {
  .products-top-header-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .products-stats-row { grid-template-columns: repeat(2, 1fr); }
  .luxury-products-grid { grid-template-columns: 1fr; }
  .products-filter-bar-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0.3rem 0.2rem 0.6rem 0.2rem;
    scrollbar-width: none;
  }
  .products-filter-bar-wrap::-webkit-scrollbar {
    display: none;
  }
  .products-categories-pills {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    border-radius: 9999px;
    padding: 0.35rem 0.55rem;
    gap: 0.4rem;
  }
  .p-filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.74rem;
    padding: 0.4rem 0.85rem;
  }
}
