/* =====================================================
   MARKETPLACE MODULE HEADER – STANDOUT STYLE
===================================================== */
.module-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1.2rem 1rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, rgba(255,140,50,0.08), transparent 80%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 0 24px rgba(255,140,50,0.08);
  position: relative;
}

/* Neon outline glow */
.module-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--border-soft);
  box-shadow:
    0 0 6px rgba(255,140,50,0.25),
    0 0 20px rgba(255,140,50,0.15);
  pointer-events: none;
}

/* Heading */
.module-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--orange-main);
  text-shadow:
    0 0 8px var(--orange-glow),
    0 0 20px var(--orange-glow-soft);
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Subtext / tagline */
.module-header p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 0;
}

/* Optional floating spark emoji decoration */
.module-header h2::after {
  content: "✨";
  margin-left: 0.4rem;
  font-size: 1.1em;
  filter: drop-shadow(0 0 6px var(--orange-glow-soft));
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .module-header {
    padding: 1rem 0.8rem;
  }

  .module-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .module-header p {
    font-size: 0.9rem;
  }
}

/* =====================================================
   MARKETPLACE PREVIEW – PRO GRID (UPDATED)
===================================================== */

/* SECTION SPACING */
#marketplace-preview {
  position: relative;
}

/* =====================================================
   PRODUCT GRID
===================================================== */
.marketplace-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}

/* =====================================================
   PRODUCT CARD
===================================================== */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;

  display: flex;
  flex-direction: column;

  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-orange);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.45),
    0 0 30px var(--orange-glow-soft);
}

/* =====================================================
   PRODUCT IMAGE
===================================================== */
.product-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #111;
}

/* =====================================================
   PRODUCT BADGES
===================================================== */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;

  font-size: 0.65rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;

  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border-orange);
  box-shadow: 0 0 14px var(--orange-glow-soft);
}

.product-badge.hot { color: #ff6b6b; }
.product-badge.new { color: #6bffb0; }
.product-badge.deal { color: #ffd36b; }
.product-badge.verified { color: #6bb7ff; }

/* =====================================================
   PAY LATER (MOVED UP – IMAGE AREA)
===================================================== */
.product-card::after {
  content: "Pay Later";
  position: absolute;
  top: 135px;
  left: 12px;
  z-index: 3;

  font-size: 0.6rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;

  background: rgba(0,0,0,0.6);
  color: #6dff9f;
  border: 1px solid rgba(109,255,159,0.4);

  backdrop-filter: blur(6px);
}

/* =====================================================
   PRODUCT INFO (CLEARER & BIGGER)
===================================================== */
.product-info {
  padding: 0.9rem 0.9rem 0.4rem;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.price {
  color: var(--orange-main);
  font-weight: 700;
  font-size: 1rem;
}

.product-info::after {
  content: "📍 Near You";
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =====================================================
   META ROW
===================================================== */
.product-meta {
  padding: 0.2rem 0.9rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CATEGORY – STANDS OUT */
.category {
  font-weight: 600;
  color: #fff;
  background: rgba(255,140,0,0.15);
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border-orange);
  box-shadow: 0 0 10px var(--orange-glow-soft);
}
/* =====================================================
   SELLER AVATAR – HARD FIXED 50x50 (UNBREAKABLE)
===================================================== */

.seller-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

/* HARD-CONSTRAINED AVATAR */
.seller-avatar {
  display: block;

  width: 50px !important;
  height: 50px !important;

  max-width: 50px !important;
  max-height: 50px !important;

  min-width: 50px !important;
  min-height: 50px !important;

  border-radius: 50% !important;

  object-fit: cover !important;      /* crop image */
  object-position: center !important;

  overflow: hidden !important;

  border: 2px solid var(--border-orange);
  box-shadow: 0 0 8px rgba(255,140,0,0.35);

  background: #111;

  transform: none !important;
}

/* Seller popup */
.seller:hover::before {
  content: "⭐ 4.9\n✔ Verified Seller\n320 Sales";
  white-space: pre;

  position: absolute;
  bottom: 140%;
  right: 0;

  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);

  padding: 0.6rem;
  font-size: 0.65rem;
  color: var(--text-muted);

  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* =====================================================
   ACTIONS (LIKE • VIEW DETAILS • RATING)
===================================================== */
.product-actions {
  padding: 0.7rem 0.9rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.like-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.like-btn:hover {
  transform: scale(1.15);
}

.view-details {
  font-size: 0.75rem;
  color: var(--orange-main);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border-orange);
  transition: background 0.2s ease, transform 0.2s ease;
}

.view-details:hover {
  background: rgba(255,140,0,0.15);
  transform: translateY(-1px);
}

.rating {
  font-size: 0.8rem;
  font-weight: 600;
}

/* =====================================================
   RESPONSIVE GRID
===================================================== */
@media (max-width: 1200px) {
  .marketplace-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .marketplace-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .marketplace-products {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
   SELLER WRAP – POSITION CONTEXT
===================================================== */
.seller-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* =====================================================
   SELLER AVATAR – HARD FIXED
===================================================== */
.seller-avatar {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px;
  min-height: 50px;

  border-radius: 50%;
  object-fit: cover;
  background: #111;

  border: 2px solid var(--border-orange);
  box-shadow: 0 0 8px rgba(255,140,0,0.35);
}

/* =====================================================
   FLOATING VERIFIED BADGE (NO LAYOUT SHIFT)
===================================================== */
.seller-badge {
  position: absolute;
  top: -28px;                /* FLOAT ABOVE IMAGE */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;

  pointer-events: none;      /* no interference */
}

/* Years text ABOVE */
.seller-badge .years {
  font-size: 0.6rem;
  font-weight: 600;
  color: #6dff9f;

  padding: 0.15rem 0.45rem;
  border-radius: 999px;

  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(109,255,159,0.4);
  backdrop-filter: blur(6px);
}

/* Cute circular verified icon */
.seller-badge .verified-icon {
  width: 18px;
  height: 18px;

  border-radius: 50%;
  background: #6bb7ff;
  color: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.6rem;
  font-weight: 800;

  box-shadow: 0 0 6px rgba(107,183,255,0.6);
}
