/* ============================================================
   PVABUNDLE.COM — MARKETPLACE REDESIGN
   ============================================================ */

/* ---- Hero ---- */
.mp-hero {
  background: linear-gradient(135deg, #040a16 0%, #071220 45%, #0a1a2e 100%);
  padding: clamp(110px, 13vw, 170px) 0 clamp(56px, 7vw, 90px);
  position: relative;
  overflow: hidden;
}
.mp-hero::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 999px;
  right: -120px; top: -100px;
  background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.mp-hero::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 999px;
  left: -80px; bottom: -80px;
  background: radial-gradient(circle, rgba(99,102,241,0.14), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.mp-hero .container { position: relative; z-index: 1; }

.mp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(20,184,166,0.12);
  border: 1px solid rgba(20,184,166,0.28);
  color: #5eead4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.mp-hero-eyebrow span {
  background: #14b8a6;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
}

.mp-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 18px;
}
.mp-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #5eead4, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mp-hero-sub {
  font-size: 17px;
  color: #8a9bb5;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 36px;
}

/* Stat strip */
.mp-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 40px;
}
.mp-stat { display: flex; flex-direction: column; }
.mp-stat strong { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.04em; line-height: 1; }
.mp-stat span { font-size: 12px; color: #637489; font-weight: 600; letter-spacing: 0.05em; margin-top: 4px; }

/* ---- Search + Filter bar ---- */
.mp-controls {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  position: sticky;
  top: 70px;
  z-index: 100;
  padding: 0;
}
.mp-controls .container {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 64px;
}

.mp-search-wrap {
  position: relative;
  flex: 0 0 260px;
  border-right: 1px solid #e8ecf0;
}
.mp-search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: #9ca3af;
  pointer-events: none;
}
.mp-search-wrap input {
  width: 100%;
  height: 64px;
  border: none;
  outline: none;
  padding: 0 16px 0 44px;
  font-size: 14px;
  font-family: inherit;
  color: #101827;
  background: transparent;
}
.mp-search-wrap input::placeholder { color: #9ca3af; }

.mp-filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 8px;
  flex: 1;
  scrollbar-width: none;
}
.mp-filter-tabs::-webkit-scrollbar { display: none; }

.mp-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  height: 64px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #5f6b7a;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .18s, border-color .18s;
  position: relative;
  top: 0;
}
.mp-tab svg { width: 15px; height: 15px; opacity: .6; }
.mp-tab:hover { color: #101827; }
.mp-tab.active {
  color: #0f766e;
  border-bottom-color: #14b8a6;
  font-weight: 700;
}
.mp-tab .mp-count {
  background: #f0fdf4;
  border: 1px solid #d1fae5;
  color: #059669;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.mp-tab.active .mp-count {
  background: #ccfbf1;
  border-color: #99f6e4;
  color: #0f766e;
}

/* ---- Product Grid ---- */
.mp-grid-section {
  padding: 48px 0 80px;
}

.mp-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.mp-section-label h2 {
  font-size: 20px;
  font-weight: 800;
  color: #101827;
  letter-spacing: -0.03em;
}
.mp-section-label .mp-label-line {
  flex: 1;
  height: 1px;
  background: #e8ecf0;
}
.mp-section-label .mp-label-count {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
}

.mp-group { margin-bottom: 56px; }
.mp-group[hidden] { display: none; }

.mp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.mp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.mp-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  transform: translateY(-3px);
  border-color: #c7efe9;
  text-decoration: none;
  color: inherit;
}

.mp-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.mp-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.mp-card-meta h3 {
  font-size: 15px;
  font-weight: 700;
  color: #101827;
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}
.mp-card-meta span {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mp-card-body {
  padding: 16px 20px;
  flex: 1;
}
.mp-card-body p {
  font-size: 13px;
  color: #5f6b7a;
  line-height: 1.6;
  margin: 0;
}

.mp-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}
.mp-card-price {
  display: flex;
  flex-direction: column;
}
.mp-card-price .from { font-size: 10px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.mp-card-price .amount { font-size: 16px; font-weight: 800; color: #101827; letter-spacing: -0.03em; margin-top: 1px; }

.mp-card-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  color: #0f766e;
}
.mp-card-badge.hot {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.mp-card-badge.new {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.mp-card-badge.bulk {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

/* No-results */
.mp-no-results {
  text-align: center;
  padding: 80px 20px;
  display: none;
}
.mp-no-results.visible { display: block; }
.mp-no-results h3 { font-size: 20px; color: #101827; margin-bottom: 8px; }
.mp-no-results p { color: #6b7280; margin-bottom: 24px; }

/* ---- CTA strip ---- */
.mp-cta-strip {
  background: linear-gradient(135deg, #040a16 0%, #0a1a2e 100%);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  margin: 0 0 80px;
  border: 1px solid rgba(20,184,166,0.18);
  position: relative;
  overflow: hidden;
}
.mp-cta-strip::before {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse at 50% 0%, rgba(20,184,166,0.15), transparent 60%);
  pointer-events:none;
}
.mp-cta-strip h2 { font-size: clamp(22px, 3vw, 34px); color: #fff; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 10px; }
.mp-cta-strip p { color: #8a9bb5; font-size: 16px; margin-bottom: 28px; }
.mp-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mp-cta-btns .btn-primary { background: #14b8a6; color: #fff; border: none; }
.mp-cta-btns .btn-primary:hover { background: #0f9d8c; }
.mp-cta-btns .btn-secondary { background: transparent; color: #5eead4; border: 1px solid rgba(94,234,212,0.35); }
.mp-cta-btns .btn-secondary:hover { background: rgba(20,184,166,0.1); }

@media (max-width: 768px) {
  .mp-controls .container { flex-direction: column; align-items: stretch; gap: 0; }
  .mp-search-wrap { flex: 1; border-right: none; border-bottom: 1px solid #e8ecf0; }
  .mp-search-wrap input { padding-left: 44px; }
  .mp-filter-tabs { padding: 8px; gap: 4px; }
  .mp-tab { height: 40px; padding: 0 14px; font-size: 12px; border-bottom: none; border-radius: 999px; }
  .mp-tab.active { background: #ccfbf1; }
  .mp-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mp-cta-strip { padding: 32px 24px; }
  .mp-stat-strip { gap: 20px; }
  .mp-controls { top: 60px; }
}
@media (max-width: 480px) {
  .mp-cards { grid-template-columns: 1fr; }
}
