/* ===========================
   SONAMSHOP – MARKETPLACE CSS
   =========================== */

/* ---- MP Hero ---- */
.mp-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #312e81 70%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
}
.mp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.mp-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.2; }
.mp-s1 { width: 500px; height: 500px; background: radial-gradient(circle, #8b5cf6, transparent); top: -150px; right: -100px; animation: float1 8s ease-in-out infinite; }
.mp-s2 { width: 350px; height: 350px; background: radial-gradient(circle, #f97316, transparent); bottom: -80px; left: -80px; animation: float2 10s ease-in-out infinite; }
.mp-s3 { width: 250px; height: 250px; background: radial-gradient(circle, #ec4899, transparent); top: 40%; left: 45%; animation: float3 12s ease-in-out infinite; }

.mp-hero-content { position: relative; z-index: 1; text-align: center; }
.mp-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(139,92,246,0.2); border: 1px solid rgba(139,92,246,0.4); color: #c4b5fd; padding: 8px 18px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; }
.mp-hero-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 16px; letter-spacing: -1px; }
.mp-hero-content p { font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 32px; }
.mp-hero-stats { display: flex; align-items: center; justify-content: center; gap: 24px; background: rgba(255,255,255,0.07); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 18px 32px; width: fit-content; margin: 0 auto; flex-wrap: wrap; }
.mp-stat { text-align: center; }
.mp-stat-num { display: block; font-size: 1.8rem; font-weight: 900; color: var(--white); }
.mp-stat-lbl { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.mp-stat-div { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* ---- Featured Banner ---- */
.mp-featured-wrap { padding: 64px 0; background: linear-gradient(135deg, #fdf4ff 0%, #fce7f3 50%, #ede9fe 100%); }
.mp-featured-hero {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(139,92,246,0.15);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border: 1px solid #e9d5ff;
}
.mp-featured-left { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
.mp-f-top-badge { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg,#fef3c7,#fde68a); color: #92400e; padding: 6px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 700; margin-bottom: 18px; width: fit-content; }
.mp-f-title { font-size: 2rem; font-weight: 900; color: var(--dark); line-height: 1.2; margin-bottom: 14px; }
.mp-f-title span { background: linear-gradient(135deg,#8b5cf6,#ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mp-f-sub { color: var(--text-light); font-size: 1rem; line-height: 1.7; margin-bottom: 24px; }
.mp-f-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.mp-f-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text); }
.mp-f-features li i { color: var(--success); font-size: 1rem; }
.mp-f-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.mp-f-price-old { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.mp-f-price-now { font-size: 2.4rem; font-weight: 900; color: var(--success); }
.mp-f-discount-badge { background: #fef2f2; color: #ef4444; padding: 4px 10px; border-radius: 6px; font-size: 0.82rem; font-weight: 700; }
.mp-f-btn { font-size: 1.05rem; padding: 15px 28px; }
.mp-f-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.mp-f-badges span { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.mp-f-badges i { color: var(--success); }

.mp-featured-right { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%); display: flex; align-items: center; justify-content: center; padding: 48px 40px; position: relative; }
.mp-f-visual { text-align: center; position: relative; z-index: 1; }
.mp-f-icon { font-size: 5rem; margin-bottom: 16px; }
.mp-f-visual-title { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.mp-f-visual-sub { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.mp-f-stars { color: var(--warning); font-size: 1.2rem; letter-spacing: 3px; margin-bottom: 8px; }
.mp-f-reviews { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.mp-float-badge { position: absolute; background: var(--white); border-radius: 10px; padding: 8px 14px; font-size: 0.8rem; font-weight: 600; color: var(--dark); box-shadow: 0 4px 16px rgba(0,0,0,0.25); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mp-float-badge i { color: var(--warning); }
.mp-fb-top { top: -16px; right: -16px; animation: floatBadge 3s ease-in-out infinite; }
.mp-fb-bot { bottom: -16px; left: -16px; animation: floatBadge 3s ease-in-out infinite 1.5s; }

/* ---- Filter Bar ---- */
.mp-filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 0; position: sticky; top: 64px; z-index: 100; box-shadow: 0 2px 12px rgba(15,23,42,0.06); }
.mp-filter-inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mp-search-wrap { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 2px solid var(--border); border-radius: 10px; padding: 10px 16px; flex: 0 0 260px; transition: var(--transition); }
.mp-search-wrap:focus-within { border-color: var(--primary); background: var(--white); }
.mp-search-wrap i { color: var(--text-muted); }
.mp-search-wrap input { background: none; border: none; outline: none; font-size: 0.9rem; font-family: var(--font); color: var(--text); width: 100%; }
.mp-cat-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-cat-btn { padding: 7px 14px; border-radius: 8px; border: 2px solid var(--border); background: var(--white); color: var(--text); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: var(--transition); white-space: nowrap; }
.mp-cat-btn:hover { border-color: var(--primary); color: var(--primary); }
.mp-cat-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---- Count Bar ---- */
.mp-count-bar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.mp-count-bar span { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.mp-view-toggle { display: flex; gap: 4px; }
.mp-view-btn { width: 36px; height: 36px; border: 2px solid var(--border); background: var(--white); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.mp-view-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ---- Section Headers ---- */
.mp-main { padding: 48px 0 80px; background: var(--bg); }
.mp-section-header { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px 24px; }
.mp-section-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.mp-section-header p { font-size: 0.95rem; color: var(--text-light); max-width: 480px; }
.mp-sec-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 12px; }
.ai-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.women-icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.funnel-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.courses-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.fitness-icon { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.music-icon { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.webinar-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.whatsapp-icon { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.plr-icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.add-icon { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }

/* ---- Products Grid ---- */
.mp-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  align-items: start;
}
.mp-products-grid.list-view { grid-template-columns: 1fr; }
.mp-products-grid.list-view .mp-card { flex-direction: row; max-height: none; }
.mp-products-grid.list-view .mp-card-img { width: 200px; min-width: 200px; flex-shrink: 0; }
.mp-products-grid.list-view .mp-section-header { grid-column: 1; }

/* ---- Product Cards ---- */
.mp-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15,23,42,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mp-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(15,23,42,0.14); border-color: var(--primary); }
.featured-card { border: 2px solid var(--success); box-shadow: 0 4px 24px rgba(34,197,94,0.15); }
.featured-card:hover { border-color: var(--success); box-shadow: 0 16px 48px rgba(34,197,94,0.2); }

/* Card Badge */
.mp-card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 8px; font-size: 0.73rem; font-weight: 700; }
.mp-card-badge.hot { background: #fef2f2; color: #ef4444; }
.mp-card-badge.trending { background: #fef3c7; color: #92400e; }
.mp-card-badge.value { background: #dcfce7; color: #14532d; }

/* Card Image */
.mp-card-img { height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mp-img-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 0.82rem; font-weight: 600; transition: transform 0.4s ease; }
.mp-card:hover .mp-img-inner { transform: scale(1.05); }
.mp-prod-icon { font-size: 2.8rem; }
.ai-img { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1e40af; }
.women-img { background: linear-gradient(135deg, #fdf4ff, #fce7f3); color: #9d174d; }
.funnel-img { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #78350f; }
.courses-img { background: linear-gradient(135deg, #f5f3ff, #ede9fe); color: #5b21b6; }
.fitness-img { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #14532d; }
.music-img { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #9a3412; }
.webinar-img { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #1e40af; }
.whatsapp-img { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #14532d; }
.plr-img { background: linear-gradient(135deg, #fdf4ff, #f3e8ff); color: #6b21a8; }
.add-img { background: linear-gradient(135deg, #f8fafc, #f1f5f9); color: #475569; }

/* Card Body */
.mp-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.mp-card-cat { margin-bottom: 8px; }
.cat-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 3px 10px; border-radius: 100px; }
.ai-cat { background: #dbeafe; color: #1e40af; }
.women-cat { background: #fce7f3; color: #9d174d; }
.funnel-cat { background: #fef3c7; color: #78350f; }
.courses-cat { background: #ede9fe; color: #5b21b6; }
.fitness-cat { background: #dcfce7; color: #14532d; }
.music-cat { background: #ffedd5; color: #9a3412; }
.webinar-cat { background: #dbeafe; color: #1e40af; }
.whatsapp-cat { background: #dcfce7; color: #14532d; }
.plr-cat { background: #f3e8ff; color: #6b21a8; }
.add-cat { background: #f1f5f9; color: #475569; }

.mp-card-title { font-size: 0.97rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.mp-card-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.65; margin-bottom: 12px; flex: 1; }
.mp-card-benefits { list-style: none; margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.mp-card-benefits li { font-size: 0.82rem; color: var(--text); display: flex; align-items: flex-start; gap: 7px; }
.mp-card-benefits li i { color: var(--success); font-size: 0.78rem; margin-top: 3px; flex-shrink: 0; }
.mp-card-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.mp-price-old { font-size: 0.95rem; color: var(--text-muted); text-decoration: line-through; }
.mp-price-now { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.mp-card-footer { margin-top: auto; }
.mp-cta-btn { font-size: 0.88rem; padding: 11px 16px; border-radius: 10px; font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.mp-cta-btn:hover { transform: translateY(-2px) !important; }

/* ---- Yazing Section ---- */
.mp-yazing-section { padding: 64px 0; background: linear-gradient(135deg, var(--white), var(--bg)); }
.yazing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.yazing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.yazing-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(15,23,42,0.12); border-color: var(--warning); }
.y-icon { font-size: 2.2rem; }
.y-brand { font-weight: 700; font-size: 0.92rem; color: var(--dark); }
.y-tag { font-size: 0.75rem; color: var(--text-muted); }
.y-btn { margin-top: 8px; background: var(--warning); color: var(--white); padding: 7px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; transition: var(--transition); display: inline-block; }
.yazing-card:hover .y-btn { background: var(--warning-dark); }

/* ---- INVL Section ---- */
.mp-invl-section { padding: 64px 0; background: linear-gradient(135deg, #0f172a, #1e293b); }
.mp-invl-section .mp-section-header h2 { color: var(--white); }
.mp-invl-section .mp-section-header p { color: rgba(255,255,255,0.6); }
.invl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.invl-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.invl-card:hover { background: rgba(139,92,246,0.2); border-color: #8b5cf6; transform: translateY(-4px); }
.invl-icon { font-size: 2rem; }
.invl-label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.invl-btn { margin-top: 8px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: var(--white); padding: 7px 16px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; display: inline-block; transition: var(--transition); }
.invl-card:hover .invl-btn { background: linear-gradient(135deg, #7c3aed, #5b21b6); }

/* ---- Amazon Section ---- */
.mp-amazon-section { padding: 64px 0; background: var(--bg); }
.amazon-featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.amazon-prod-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--warning);
  box-shadow: 0 4px 24px rgba(249,115,22,0.12);
  position: relative;
  transition: var(--transition);
}
.amazon-prod-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(249,115,22,0.2); }
.amz-badge { position: absolute; top: 14px; left: 14px; background: linear-gradient(135deg, var(--warning), var(--primary)); color: var(--white); padding: 5px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; }
.amz-img { height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, #fff7ed, #fed7aa); font-size: 0.9rem; font-weight: 600; color: var(--primary-dark); }
.amz-icon { font-size: 3.5rem; }
.amz-body { padding: 24px; }
.amz-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.amz-body p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.amz-badges { display: flex; gap: 10px; margin-bottom: 16px; }
.amz-badges span { background: var(--bg); border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; color: var(--text); }
.amz-btns { display: flex; flex-direction: column; gap: 8px; }

/* ---- Bonus Section ---- */
.mp-bonus-section { padding: 64px 0; background: linear-gradient(135deg, #fdf4ff, #fce7f3); }
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.bonus-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}
.bonus-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(15,23,42,0.14); border-color: var(--purple); }
.bonus-icon { font-size: 2.8rem; margin-bottom: 4px; }
.bonus-title { font-size: 1rem; font-weight: 700; color: var(--dark); }
.bonus-sub { font-size: 0.82rem; color: var(--text-muted); }
.bonus-btn { margin-top: 10px; background: var(--purple); color: var(--white); padding: 9px 20px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; display: inline-block; transition: var(--transition); }
.bonus-card:hover .bonus-btn { background: var(--purple-dark); }

/* ---- No Results ---- */
.mp-no-results { text-align: center; padding: 80px 20px; background: var(--bg); }
.no-res-icon { font-size: 3rem; margin-bottom: 16px; }
.mp-no-results h3 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.mp-no-results p { color: var(--text-muted); margin-bottom: 24px; }

/* ---- Hidden Card (for filtering) ---- */
.mp-card.hidden { display: none; }
.mp-section-header.hidden { display: none; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .mp-featured-hero { grid-template-columns: 1fr; }
  .mp-featured-right { min-height: 280px; }
}
@media (max-width: 768px) {
  .mp-hero { padding: 100px 0 48px; }
  .mp-hero-content h1 { font-size: 2rem; }
  .mp-featured-left { padding: 32px 24px; }
  .mp-f-title { font-size: 1.6rem; }
  .mp-filter-inner { flex-direction: column; align-items: stretch; }
  .mp-search-wrap { flex: 1; }
  .mp-products-grid { grid-template-columns: 1fr; }
  .yazing-grid { grid-template-columns: repeat(2, 1fr); }
  .invl-grid { grid-template-columns: repeat(2, 1fr); }
  .amazon-featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mp-hero-stats { flex-direction: column; gap: 12px; }
  .mp-stat-div { display: none; }
  .yazing-grid { grid-template-columns: 1fr; }
  .invl-grid { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
}
